:root {
  color-scheme: dark;
  --paper: #09070f;
  --raised: #160d22;
  --elevated: #241333;
  --ink: #d9c8ff;
  --muted: #8c7aa8;
  --rule: #3a2b48;
  --rule-strong: #59416c;
  --mark: #7c3aed;
  --mark-hover: #8b5cf6;
  --mark-active: #6d28d9;
  --focus: #a78bfa;
  --danger: #f06a7a;
  --warn: #f5b942;
  --font-ui: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --ease-snap: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); font-family: var(--font-ui); line-height: 1.5; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  z-index: 100;
  background-image: linear-gradient(rgba(217,200,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(217,200,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 200; background: var(--ink); color: var(--paper); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 5rem;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  background: rgba(9,7,15,.92);
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; font-weight: 600; letter-spacing: .35em; font-size: .9rem; }
.brand img { display: block; }
.site-header nav, .site-footer nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.site-header nav a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); }

.hero { min-height: calc(100dvh - 5rem); display: grid; grid-template-columns: minmax(20rem, 42%) 1fr; overflow: hidden; }
.hero-photo {
  min-height: 46rem;
  position: relative;
  border-right: 1px solid var(--mark);
  background: linear-gradient(90deg, rgba(9,7,15,.38), rgba(9,7,15,.08)), url("/assets/asynym-scaffold.png") 64% center / cover;
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--paper)); }
.hero-number {
  position: absolute;
  left: -4vw;
  bottom: -8vw;
  z-index: 2;
  font-size: clamp(18rem, 35vw, 40rem);
  line-height: .72;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217,200,255,.6);
  letter-spacing: -.1em;
}
.hero-copy {
  padding: clamp(4rem, 10vw, 10rem) clamp(1.5rem, 7vw, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}
.eyebrow { margin: 0 0 1.5rem; color: var(--muted); font: 500 .75rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .16em; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 10ch; margin: 0; font-size: clamp(3.5rem, 7vw, 7.8rem); line-height: .92; letter-spacing: -.055em; font-weight: 650; }
h1 em { color: var(--mark); font-style: normal; }
.hero-copy > p:not(.eyebrow):not(.trust-line) { max-width: 40ch; margin: 2rem 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.button { min-height: 3.25rem; display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; padding: .8rem 1.2rem; border: 1px solid var(--rule-strong); border-radius: .5rem; text-decoration: none; cursor: pointer; transition: transform 220ms var(--ease-snap), background-color 220ms var(--ease-snap), border-color 220ms var(--ease-snap); }
.button-primary { background: var(--mark); color: #f4eeff; border-color: var(--mark); font-weight: 700; }
.button-primary:active { background: var(--mark-active); transform: translateY(0) scale(.98); }
.button:disabled { background: var(--elevated); color: var(--muted); border-color: var(--rule); cursor: not-allowed; transform: none; }
.trust-line { margin: 1.2rem 0 0; color: var(--muted); font: .72rem/1.5 var(--font-mono); }

.section { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 7rem); }
.section-heading { max-width: 70rem; display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; margin-bottom: 5rem; }
.section h2 { margin: 0; font-size: clamp(2.25rem, 5vw, 5rem); line-height: 1; letter-spacing: -.045em; }
.process { background: var(--raised); }
.process ol { list-style: none; padding: 0; margin: 0 0 0 auto; max-width: 72rem; border-top: 1px solid var(--rule-strong); }
.process li { display: grid; grid-template-columns: 8rem 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--rule-strong); }
.process li > span { color: var(--mark); font: 500 .8rem var(--font-mono); }
.process h3, .package-register h3 { margin: 0 0 .4rem; font-size: 1.35rem; }
.process li p, .package-register p { margin: 0; color: var(--muted); }
.package-preview { display: grid; grid-template-columns: minmax(17rem, .8fr) 1.2fr; gap: clamp(3rem, 8vw, 9rem); }
.package-intro { position: sticky; top: 3rem; align-self: start; }
.text-link { display: inline-block; margin-top: 2rem; color: var(--ink); text-underline-offset: .35rem; }
.package-register { border-top: 1px solid var(--rule-strong); }
.package-register article { display: grid; grid-template-columns: 5rem 1fr; padding: 2rem 0; border-bottom: 1px solid var(--rule-strong); }
.package-register article > span { color: var(--mark); font: .8rem var(--font-mono); }
.cost-break { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(rgba(9,7,15,.35),rgba(9,7,15,.72)), url("/assets/asynym-scaffold.png") center 55% / cover; }
.cost-break p, .cost-break span { margin: 0; color: var(--muted); font: .82rem var(--font-mono); text-transform: uppercase; letter-spacing: .13em; }
.cost-break strong { margin: .4rem 0; font-size: clamp(4rem, 12vw, 11rem); line-height: .9; letter-spacing: -.065em; }
.final-cta { text-align: center; display: flex; flex-direction: column; align-items: center; background: var(--raised); }
.final-cta h2 { max-width: 12ch; margin-bottom: 2.5rem; }
.site-footer { padding: 3rem clamp(1.25rem, 4vw, 4.5rem); border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--muted); }
.site-footer p { font-size: .8rem; }

@media (prefers-reduced-motion: no-preference) {
  .site-header { animation: nav-in 520ms var(--ease-out) both; }
  .hero-copy > * { animation: reveal 680ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
  @keyframes reveal { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  .reveal { opacity: 0; transform: translateY(24px); filter: blur(5px); }
  .reveal.is-visible { opacity: 1; transform: none; filter: none; transition: opacity 680ms var(--ease-out), transform 680ms var(--ease-out), filter 680ms var(--ease-out); }
}

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover { background: var(--mark-hover); border-color: var(--mark-hover); transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}

@media (max-width: 800px) {
  .site-header { min-height: 4.5rem; }
  .site-header nav { display: none; }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-photo { min-height: 12rem; border-right: 0; border-bottom: 1px solid var(--mark); background-position: center 42%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(9,7,15,.05), var(--paper)); }
  .hero-number { left: -.5rem; bottom: -2rem; font-size: 12rem; }
  .hero-copy { padding: 4rem 1.25rem 5rem; }
  h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .section-heading, .package-preview { grid-template-columns: 1fr; }
  .section-heading { gap: 0; margin-bottom: 3rem; }
  .package-intro { position: static; }
  .process li { grid-template-columns: 3rem 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
