:root {
  --green: #45696b;
  --teal: #94d6da;
  --orange: #e6654a;
  --ink: #113235;
  --paper: #fffdf6;
  --cream: #fff3dc;
  --sun: #f4c95d;
  --line: rgba(17, 50, 53, 0.16);
  --shadow: rgba(17, 50, 53, 0.18);
  --font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18px 18px, rgba(69, 105, 107, 0.08) 0 2px, transparent 2px) 0 0 / 42px 42px,
    linear-gradient(180deg, var(--paper), var(--cream));
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  transition: all 0.2s ease;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(22px, 6vw, 92px);
  color: var(--paper);
}

.topbar a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.topbar a:not(.brand-mark) {
  padding: 8px 18px;
  border: 1px solid rgba(255, 253, 246, 0.3);
  border-radius: 30px;
}

.topbar a:not(.brand-mark):hover {
  background: rgba(255, 253, 246, 0.1);
  border-color: rgba(255, 253, 246, 0.6);
}

.brand-mark {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 80svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
  overflow: hidden;
  padding: clamp(120px, 15vw, 180px) clamp(22px, 6vw, 92px) clamp(80px, 10vw, 140px);
  color: var(--paper);
  background:
    linear-gradient(120deg, rgba(17, 34, 37, 0.98), rgba(69, 105, 107, 0.88)),
    var(--green);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: min(760px, 56vw);
  height: 100%;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(148, 214, 218, 0.3) 42% 100%);
  opacity: 0.76;
}

.hero-copy,
.hero-collage {
  position: relative;
  z-index: 2;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.5px;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.8rem, 6.2vw, 5.8rem);
  font-weight: 800;
  line-height: 1.05;
}

h2 {
  margin-top: 16px;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-copy p {
  max-width: 600px;
  margin: 24px 0 0;
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-collage {
  min-height: 480px;
  position: relative;
  align-self: center;
}

.hero-collage img {
  position: absolute;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 253, 246, 0.2);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.collage-main {
  right: 0;
  bottom: 20px;
  width: min(500px, 100%);
  height: 340px;
  z-index: 2;
}

.collage-small {
  width: 220px;
  height: 150px;
}

.collage-small.top {
  top: 0;
  left: 0;
  z-index: 1;
}

.collage-small.bottom {
  right: 32px;
  bottom: 0;
  z-index: 3;
}

.hero-collage img:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 10;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

main {
  padding: clamp(46px, 7vw, 92px) clamp(18px, 5vw, 76px);
  max-width: 1400px;
  margin: 0 auto;
}

.page-links {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: clamp(42px, 7vw, 88px);
  padding-bottom: clamp(34px, 5vw, 62px);
  border-bottom: 1px solid var(--line);
}

.page-links > div > p {
  max-width: 480px;
  margin: 18px 0 0;
  font-size: 1.05rem;
  color: rgba(17, 50, 53, 0.7);
}

.page-links ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.page-links li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.page-entry {
  min-height: 96px;
  display: grid;
  grid-template-columns: 48px 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 50, 53, 0.04);
  text-decoration: none;
}

.page-entry::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--orange);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

.page-entry img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.page-entry span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.page-entry strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.page-entry em {
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
  color: rgba(17, 50, 53, 0.6);
}

.page-live {
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.page-entry:hover,
.page-live:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(230, 101, 74, 0.12);
}

.page-entry:hover strong {
  color: var(--orange);
}

.page-live:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.grid {
  display: grid;
  gap: clamp(42px, 8vw, 92px);
}

.site-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 60px var(--shadow);
}

.feature-card {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}

.feature-card .screenshot-link {
  order: 2;
}

.feature-card .card-body {
  order: 1;
}

.screenshot-link {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: var(--ink);
}

.screenshot-link::after {
  content: "Launch Website ↗";
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 10px 18px;
  color: var(--paper);
  background: var(--orange);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
  box-shadow: 0 10px 20px rgba(230, 101, 74, 0.3);
}

.screenshot-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.screenshot-link:hover img {
  transform: scale(1.03);
}

.card-body {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(34px, 6vw, 72px);
}

.card-number {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--orange);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -1px;
}

.card-body h2 {
  margin: 0 0 16px;
  font-size: 2rem;
  letter-spacing: -0.5px;
}

.card-body p {
  max-width: 560px;
  font-size: 1.05rem;
  color: rgba(17, 50, 53, 0.7);
  margin: 0 0 32px;
  line-height: 1.6;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  color: var(--paper);
  background: var(--orange);
  text-decoration: none;
  font-weight: 800;
  border-radius: 30px;
  box-shadow: 0 10px 20px rgba(230, 101, 74, 0.2);
  transition: all 0.2s ease;
}

.button.light {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.button.ghost {
  color: var(--paper);
  background: transparent;
  border: 1.5px solid rgba(255, 253, 246, 0.35);
  box-shadow: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(230, 101, 74, 0.35);
}

.button.light:hover {
  background: #ffffff;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
}

.button.ghost:hover {
  border-color: var(--paper);
  background: rgba(255, 253, 246, 0.1);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(22px, 6vw, 92px);
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid rgba(255, 253, 246, 0.1);
}

footer strong {
  font-size: 1.2rem;
  font-weight: 800;
}

footer span {
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-collage {
    min-height: 400px;
    max-width: 600px;
    width: 100%;
    margin: 40px auto 0;
  }

  .collage-main {
    left: 50px;
    bottom: 20px;
    width: calc(100% - 50px);
  }

  .collage-small.top {
    left: 0;
  }

  .page-links {
    grid-template-columns: 1fr;
  }

  .page-links > div {
    text-align: center;
  }

  .page-links > div > p {
    margin-left: auto;
    margin-right: auto;
  }

  .site-card,
  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card .screenshot-link,
  .feature-card .card-body {
    order: initial;
  }

  .screenshot-link {
    min-height: 360px;
  }

  .card-body {
    padding: 32px;
  }
}

@media (max-width: 620px) {
  .topbar {
    position: relative;
    padding: 16px 20px;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .topbar a:not(.brand-mark) {
    border-color: var(--line);
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 42px 20px 52px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-collage {
    min-height: 300px;
  }

  .collage-main {
    height: 220px;
  }

  .collage-small {
    width: 150px;
    height: 100px;
  }

  main {
    padding: 32px 16px;
  }

  .page-links li {
    grid-template-columns: 1fr;
  }

  .page-entry {
    grid-template-columns: 32px 72px minmax(0, 1fr);
    padding: 10px;
  }

  .page-entry img {
    width: 72px;
    height: 48px;
  }

  .page-live {
    width: 100%;
    margin-top: 8px;
  }

  .screenshot-link {
    min-height: 240px;
  }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
