:root {
  --ink: #172033;
  --muted: #5f6876;
  --paper: #f4efe6;
  --panel: #fffdf7;
  --line: #d9d0c2;
  --blue: #265bff;
  --teal: #087a78;
  --coral: #f47a4b;
  --gold: #ffd28c;
  --plum: #4b315f;
  --shadow: 0 18px 54px rgba(12, 20, 34, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  border-bottom: 1px solid rgba(23, 32, 51, 0.14);
  background: rgba(244, 239, 230, 0.94);
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(14px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  min-width: 0;
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fffdf7;
  font-size: 0.82rem;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 850;
  text-decoration: none;
}

.nav-button,
.primary-action {
  background: var(--coral);
  color: #fffdf7;
}

.secondary-action {
  border: 1px solid rgba(255, 253, 247, 0.34);
  background: rgba(255, 253, 247, 0.12);
  color: #fffdf7;
}

.hero {
  min-height: calc(86vh - 72px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(14, 21, 35, 0.95), rgba(8, 122, 120, 0.7), rgba(244, 122, 75, 0.16)),
    url("assets/scene-builder.png") center top / cover no-repeat;
  padding: 8vh max(24px, calc((100vw - 1180px) / 2));
}

.hero-copy {
  max-width: 790px;
  color: #fffdf7;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 7.2vw, 6.1rem);
  line-height: 0.94;
}

.lede {
  max-width: 720px;
  color: rgba(255, 253, 247, 0.88);
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.product-strip div {
  min-height: 118px;
  background: #fffdf7;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
}

.product-strip dt,
.product-strip dd {
  margin: 0;
}

.product-strip dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-strip dd {
  margin-top: 10px;
  font-size: 1.18rem;
  font-weight: 850;
}

.product-view,
.workflow,
.buyer-band,
.final-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
}

.product-view,
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(460px, 1.22fr);
  gap: 48px;
  align-items: center;
}

.section-copy h2,
.buyer-band h2,
.final-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.section-copy p,
.buyer-band p,
.final-cta p,
figcaption,
.feature-band p,
.workflow p {
  color: var(--muted);
  line-height: 1.58;
}

figure {
  margin: 0;
}

figure img,
.final-cta img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.feature-band article {
  min-height: 260px;
  background: var(--ink);
  color: #fffdf7;
  padding: 42px max(24px, calc((100vw - 1180px) / 2));
}

.feature-band article:nth-child(2) {
  background: #0f4e59;
}

.feature-band article:nth-child(3) {
  background: var(--plum);
}

.feature-band h3 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.feature-band p {
  color: rgba(255, 253, 247, 0.76);
}

.screenshots {
  background: #fffdf7;
  padding: 88px max(24px, calc((100vw - 1180px) / 2));
}

.screenshots .section-copy {
  max-width: 820px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin-top: 34px;
}

.preview-shot {
  grid-column: span 2;
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  align-self: start;
}

.preview-shot.large {
  grid-column: span 4;
}

.preview-shot.tall {
  grid-column: span 2;
}

.preview-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2f7;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.preview-shot.tall img {
  aspect-ratio: 9 / 12;
}

.preview-shot span {
  color: var(--ink);
  font-weight: 850;
}

.workflow ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  padding: 24px;
}

.workflow span {
  display: block;
  margin-bottom: 44px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.buyer-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.final-cta {
  padding-bottom: 104px;
}

.final-cta .primary-action {
  margin-top: 14px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 14, 24, 0.78);
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(1160px, 100%);
  max-height: calc(100vh - 56px);
  border-radius: 8px;
  background: #fffdf7;
  padding: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-header h2 {
  margin: 0;
  font-size: 1rem;
}

.lightbox-close {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  padding: 0 12px;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  nav a {
    font-size: 0.88rem;
  }

  .hero {
    min-height: 76vh;
    padding: 14vh 20px 44px;
    background-position: center top;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .product-strip,
  .feature-band,
  .workflow ol,
  .buyer-band,
  .product-view,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .product-strip div {
    padding: 24px 20px;
  }

  .product-view,
  .workflow,
  .buyer-band,
  .final-cta {
    width: min(100% - 40px, 720px);
    padding: 64px 0;
  }

  .product-view,
  .final-cta {
    gap: 28px;
  }

  .screenshots {
    padding: 64px 20px;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .preview-shot,
  .preview-shot.large,
  .preview-shot.tall {
    grid-column: span 1;
  }

  .preview-shot.tall img {
    aspect-ratio: 16 / 12;
  }

  .workflow span {
    margin-bottom: 24px;
  }
}

@media (max-width: 540px) {
  .brand span:last-child {
    overflow-wrap: anywhere;
  }

  .nav-button,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .lede {
    font-size: 1.04rem;
  }

  .section-copy h2,
  .buyer-band h2,
  .final-cta h2 {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-panel {
    max-height: calc(100vh - 24px);
    padding: 12px;
  }
}
