:root {
  color-scheme: dark;
  --ink: #111515;
  --paper: #f1eadb;
  --green: #06201d;
  --green-soft: #123d35;
  --yellow: #ffc347;
  --rust: #a83323;
  --moon: #b2672c;
  --line: rgba(255, 255, 255, 0.22);
  --header-height: 72px;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--green);
  color: var(--paper);
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 32, 29, 0.72);
  backdrop-filter: blur(18px);
}

.wordmark {
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.wordmark span {
  color: var(--yellow);
  margin: 0 0.25em;
}

nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
}

nav a {
  color: rgba(241, 234, 219, 0.76);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--yellow);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + 7vh) clamp(24px, 6vw, 96px) 7vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(255, 195, 71, 0.13), transparent 31%),
    linear-gradient(115deg, #031714, var(--green) 55%, #092a25);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 690px;
}

.eyebrow,
.product-number {
  margin: 0 0 22px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(5rem, 12vw, 11.5rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.71;
  text-transform: uppercase;
}

.hero-deck {
  max-width: 580px;
  margin: clamp(40px, 6vh, 70px) 0 0;
  color: rgba(241, 234, 219, 0.76);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid currentColor;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: transparent;
  color: var(--yellow);
}

.text-link {
  color: rgba(241, 234, 219, 0.76);
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 5px;
}

.hero-visual {
  position: relative;
  min-height: min(76vh, 820px);
  perspective: 1100px;
}

.orbit {
  position: absolute;
  width: min(42vw, 640px);
  aspect-ratio: 1;
  top: 50%;
  left: 54%;
  border: 1px solid rgba(255, 195, 71, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
}

.orbit::after {
  inset: 27%;
}

.phone {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 44px;
  background: #051b18;
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.46);
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-main {
  z-index: 3;
  width: min(25vw, 360px);
  aspect-ratio: 0.466;
  top: 5%;
  left: 46%;
  transform: rotate(3deg) translateZ(30px);
}

.phone-back {
  z-index: 2;
  width: min(22vw, 316px);
  aspect-ratio: 0.466;
  top: 15%;
  left: 15%;
  opacity: 0.62;
  transform: rotate(-9deg) translateZ(-45px);
}

.hero-visual:hover .phone-main {
  transform: rotate(1deg) translate3d(7px, -8px, 55px);
}

.hero-visual:hover .phone-back {
  transform: rotate(-7deg) translate3d(-5px, 4px, -30px);
}

.visual-caption {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 4%;
  margin: 0;
  color: rgba(241, 234, 219, 0.58);
  font: 0.72rem/1.45 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.hero-index {
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  bottom: 24px;
  margin: 0;
  color: rgba(241, 234, 219, 0.38);
  font: 0.72rem "Courier New", monospace;
}

.purchase-strip {
  min-height: 76px;
  padding: 18px clamp(24px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(17, 21, 21, 0.18);
  background: var(--yellow);
  color: var(--ink);
}

.purchase-strip span {
  position: relative;
  padding-left: 18px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.purchase-strip span::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: 50%;
  left: 0;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.hero-step {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 700ms forwards cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hero-step:nth-child(2) { animation-delay: 90ms; }
.hero-step:nth-child(3) { animation-delay: 180ms; }
.hero-step:nth-child(4) { animation-delay: 270ms; }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

.evidence,
.terms {
  padding: clamp(80px, 12vw, 180px) clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(44px, 9vw, 140px);
  background: var(--paper);
  color: var(--ink);
}

.evidence h2,
.terms h2,
.contact h2 {
  margin: 0;
  font-size: clamp(3rem, 6.5vw, 7rem);
  letter-spacing: -0.06em;
  line-height: 0.93;
}

.evidence-copy > p,
.terms-columns p,
.contact > p {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.proof-list {
  margin: 56px 0 0;
  border-top: 1px solid rgba(17, 21, 21, 0.26);
}

.proof-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(17, 21, 21, 0.18);
}

.proof-list dt {
  color: rgba(17, 21, 21, 0.66);
}

.proof-list dd {
  margin: 0;
  font-weight: 900;
}

.product {
  min-height: 100svh;
  padding: clamp(90px, 10vw, 150px) clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(46px, 9vw, 150px);
  overflow: hidden;
}

.product-linebloom {
  --cta-bg: var(--yellow);
  --cta-fg: var(--ink);
  background: var(--green);
  color: var(--paper);
}

.product-moonlit {
  --cta-bg: var(--ink);
  --cta-fg: var(--paper);
  background: #f3e7cd;
  color: var(--ink);
}

.product-latchform {
  --cta-bg: #f4eddf;
  --cta-fg: var(--rust);
  background: var(--rust);
  color: #f4eddf;
}

.product-starter {
  --cta-bg: #63e5da;
  --cta-fg: #0b1024;
  background: #171039;
  color: #f4f1ff;
}

.product-control-room {
  --cta-bg: #ffd15c;
  --cta-fg: #10152e;
  background: #e85a3f;
  color: #fff6e8;
}

.control-room-card {
  background: rgba(16, 21, 46, 0.58);
}

.product-analyzer {
  --cta-bg: #10152e;
  --cta-fg: #f3e7cd;
  background: #63e5da;
  color: #10152e;
}

.product-recruiting {
  --cta-bg: #123447;
  --cta-fg: #f2e7d5;
  background: #e76345;
  color: #fff8ea;
}

.recruiting-card {
  background: rgba(18, 52, 71, 0.54);
  border-color: rgba(255, 248, 234, 0.3);
}

.recruiting-card figcaption {
  color: rgba(255, 248, 234, 0.72);
}

.product-travel {
  --cta-bg: #17324d;
  --cta-fg: #e4f0e8;
  background: #e4f0e8;
  color: #17324d;
}

.travel-media img {
  border: 1px solid rgba(23, 50, 77, 0.25);
  border-radius: 18px;
  box-shadow: 0 50px 100px rgba(23, 50, 77, 0.2);
}

.travel-media figcaption {
  margin-top: 14px;
  font: 0.7rem/1.4 "Courier New", monospace;
  letter-spacing: 0.06em;
  opacity: 0.66;
  text-align: right;
  text-transform: uppercase;
}

.analyzer-media img {
  border: 1px solid rgba(16, 21, 46, 0.28);
  border-radius: 18px;
  box-shadow: 0 50px 100px rgba(16, 21, 46, 0.28);
}

.analyzer-media figcaption {
  margin-top: 14px;
  font: 0.7rem/1.4 "Courier New", monospace;
  letter-spacing: 0.06em;
  opacity: 0.66;
  text-align: right;
  text-transform: uppercase;
}

.product-number {
  color: currentColor;
  opacity: 0.64;
}

.product h2 {
  margin: 0;
  font-size: clamp(4.4rem, 9vw, 10rem);
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.product-lead {
  max-width: 650px;
  margin: 42px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.product-facts {
  margin: 42px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid currentColor;
}

.product-facts li {
  padding: 13px 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.92rem;
  opacity: 0.76;
}

.offer-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 570px;
  gap: 10px 30px;
  align-items: baseline;
}

.offer-line span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.66;
  text-transform: uppercase;
}

.offer-line strong {
  font-size: 1.35rem;
}

.product-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.button-purchase {
  border-color: var(--cta-bg);
  background: var(--cta-bg);
  color: var(--cta-fg);
}

.button-purchase:hover,
.button-purchase:focus-visible {
  background: transparent;
  color: var(--cta-bg);
}

.product-link,
.contact-link {
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.product-link {
  opacity: 0.76;
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-link:hover,
.product-link:focus-visible {
  opacity: 1;
  transform: translateX(3px);
}

.disclosure {
  max-width: 620px;
  margin: 34px 0 0;
  font: 0.76rem/1.55 "Courier New", monospace;
  opacity: 0.62;
  text-transform: uppercase;
}

.product-media {
  position: relative;
  margin: 0;
  justify-self: center;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.product-media:hover {
  transform: translateY(-8px) rotate(-0.5deg);
}

.media-phone {
  width: min(28vw, 420px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 48px;
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.46);
}

.moonlit-stack {
  width: min(38vw, 610px);
  min-height: min(72vw, 760px);
}

.moonlit-stack img {
  position: absolute;
  width: min(23vw, 350px);
  border: 1px solid rgba(17, 21, 21, 0.17);
  border-radius: 34px;
  box-shadow: 0 42px 80px rgba(92, 54, 25, 0.22);
}

.moonlit-home {
  z-index: 2;
  top: 0;
  right: 0;
  transform: rotate(4deg);
}

.moonlit-board {
  z-index: 1;
  left: 0;
  bottom: 0;
  transform: rotate(-7deg);
}

.media-browser {
  width: min(56vw, 920px);
}

.media-browser img {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  box-shadow: 0 50px 100px rgba(44, 8, 4, 0.42);
}

.media-browser figcaption {
  margin-top: 14px;
  font: 0.7rem/1.4 "Courier New", monospace;
  letter-spacing: 0.06em;
  opacity: 0.65;
  text-align: right;
  text-transform: uppercase;
}

.starter-card {
  width: min(48vw, 720px);
  padding: 18px;
  border: 1px solid rgba(244, 241, 255, 0.22);
  border-radius: 28px;
  background: rgba(11, 16, 36, 0.62);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.32);
  transform: rotate(-2deg);
}

.starter-card img {
  border-radius: 16px;
}

.starter-card figcaption {
  margin-top: 14px;
  color: rgba(244, 241, 255, 0.62);
  font: 0.7rem/1.4 "Courier New", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terms {
  display: block;
}

.terms h2 {
  max-width: 1000px;
}

.terms-columns {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 10vw, 180px);
  border-top: 1px solid rgba(17, 21, 21, 0.26);
}

.terms-columns div {
  padding-top: 24px;
}

.terms-columns h3 {
  margin: 0 0 18px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-note {
  max-width: 820px;
  margin: clamp(54px, 8vw, 100px) 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 21, 21, 0.26);
  color: rgba(17, 21, 21, 0.7);
  font: 0.8rem/1.55 "Courier New", monospace;
  text-transform: uppercase;
}

.contact {
  min-height: 84svh;
  padding: clamp(100px, 14vw, 210px) clamp(24px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
}

.contact > p {
  max-width: 680px;
  margin-top: 38px;
}

.button-light {
  background: var(--ink);
  color: var(--paper);
}

.button-light:hover,
.button-light:focus-visible {
  background: transparent;
  color: var(--ink);
}

.contact-actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.contact-link {
  color: rgba(17, 21, 21, 0.74);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--ink);
}

footer {
  min-height: 90px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(241, 234, 219, 0.54);
  font: 0.7rem "Courier New", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer a {
  text-underline-offset: 5px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  :root { --header-height: 64px; }

  .site-header { padding-inline: 20px; }
  nav a:not(:last-child) { display: none; }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 72px);
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: clamp(5rem, 27vw, 8rem); }
  .hero-deck { margin-top: 40px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 650px; margin-top: 30px; }
  .phone-main { width: min(58vw, 330px); left: 49%; }
  .phone-back { width: min(48vw, 275px); left: 10%; }
  .orbit { width: min(88vw, 560px); }

  .evidence,
  .product,
  .terms-columns {
    grid-template-columns: 1fr;
  }

  .purchase-strip {
    grid-template-columns: 1fr 1fr;
  }

  .product {
    min-height: auto;
  }

  .product-moonlit .product-copy { grid-row: 1; }
  .product-moonlit .product-media { grid-row: 2; }

  .media-phone { width: min(74vw, 390px); }
  .moonlit-stack { width: min(86vw, 540px); min-height: 700px; }
  .moonlit-stack img { width: min(54vw, 320px); }
  .media-browser { width: 100%; }
  .starter-card { width: 100%; }
}

@media (max-width: 560px) {
  .hero-actions { gap: 20px; }
  .button { width: 100%; }
  .purchase-strip { grid-template-columns: 1fr; padding-block: 24px; }
  .product-actions,
  .contact-actions { align-items: stretch; flex-direction: column; }
  .product-link,
  .contact-link { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-visual { min-height: 510px; }
  .visual-caption { display: none; }
  .evidence h2,
  .terms h2,
  .contact h2 { font-size: clamp(2.9rem, 15vw, 4.6rem); }
  .product h2 { font-size: clamp(4rem, 20vw, 6.4rem); }
  .moonlit-stack { min-height: 550px; }
  footer { padding-block: 28px; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .hero-step,
  [data-reveal] { opacity: 1; transform: none; }
}
