/* Asovra website: dark, precise, technical. */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(/site/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(/site/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/site/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/site/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/site/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(/site/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/site/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #07080f;
  --bg-2: #0b0c16;
  --panel: #0f1020;
  --ink: #f4f4fb;
  --muted: #a3a3bd;
  --faint: #6c6c88;
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.07);
  --violet: #6e3ff6;
  --violet-2: #9b7bff;
  --ok: #4ade80;
  --radius: 14px;
  --wrap: 1180px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Drafting grid behind the page */
.grid-bg {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 8, 15, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 36px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.98rem; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; width: 46px; height: 46px; }
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-cta { margin-left: 0; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: calc(76px + env(safe-area-inset-top));
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
  }
  .site-header.open .nav-links a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); }
}

/* ---------------------------------------------------------------- type */
.label {
  font: 500 0.78rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
}
.label::before { content: ""; width: 7px; height: 7px; background: var(--violet); box-shadow: 0 0 12px var(--violet); border-radius: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.04; }
h1 { font-size: clamp(2.8rem, 7.4vw, 6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.2; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #d6d6e6; max-width: 640px; margin: 26px 0 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--violet-2); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 12px; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 0 0 1px rgba(155, 123, 255, .35), 0 10px 34px -10px rgba(110, 63, 246, .8); }
.btn-primary:hover { background: #7b52ff; box-shadow: 0 0 0 1px rgba(155, 123, 255, .6), 0 14px 40px -10px rgba(110, 63, 246, 1); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .04); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------------------------------------------------------------- sections */
section { border-bottom: 1px solid var(--line); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 820px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .label { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; min-height: calc(100vh - 77px); padding-top: 64px; padding-bottom: 72px; }
.hero-glow { position: absolute; width: 720px; height: 720px; right: -160px; top: 8%; background: radial-gradient(circle, rgba(110, 63, 246, .28), transparent 62%); pointer-events: none; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; }
  .hero-art { max-width: 420px; justify-self: center; width: 100%; }
}

/* Drafting animation */
.draft-svg { width: 100%; height: auto; overflow: visible; }
.draft-svg .cut { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.4; }
.draft-svg .stitch { fill: rgba(110, 63, 246, .06); stroke: var(--violet-2); stroke-width: 1; stroke-dasharray: 5 4; }
.draft-svg .guide { stroke: rgba(255, 255, 255, .28); stroke-width: .8; stroke-dasharray: 2 4; fill: none; }
.draft-svg .grain { stroke: rgba(255, 255, 255, .6); stroke-width: 1; marker-start: url(#arrow); marker-end: url(#arrow); }
.draft-svg .dart { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1; }
.draft-svg .tag { font: 500 9.5px var(--mono); fill: var(--muted); letter-spacing: .08em; }
.draft-svg .tag-strong { fill: var(--ink); }
.draft-svg .tick { stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.draft-svg .draw { stroke-dasharray: var(--len, 2400); stroke-dashoffset: var(--len, 2400); animation: draw 3.2s cubic-bezier(.6, .1, .2, 1) forwards; }
.draft-svg .draw.d2 { animation-delay: .5s; }
.draft-svg .fade { opacity: 0; animation: fade .8s ease forwards; animation-delay: 2.6s; }
.draft-svg .fade.f2 { animation-delay: 3.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .draft-svg .draw { animation: none; stroke-dashoffset: 0; }
  .draft-svg .fade { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
.frame { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: rgba(11, 12, 22, .6); }
.frame::before, .frame::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--violet-2); }
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.frame-bar { display: flex; justify-content: space-between; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; color: var(--faint); text-transform: uppercase; margin-bottom: 14px; }
.frame-bar .live { color: var(--ok); }
.frame-bar .live::before { content: "● "; }

/* Spec strip */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding: 34px 24px; border-right: 1px solid var(--line); }
.spec:last-child { border-right: 0; }
.spec .n { font: 700 clamp(2rem, 3.4vw, 2.8rem)/1 var(--display); letter-spacing: -0.02em; }
.spec .n small { font-size: .45em; color: var(--muted); font-weight: 500; margin-left: 4px; }
.spec .t { font: 500 .74rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
@media (max-width: 760px) {
  .specs { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: var(--bg-2); }
.step .no { font: 500 .8rem/1 var(--mono); color: var(--violet-2); letter-spacing: .18em; }
.step h3 { margin: 18px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature.flip > :first-child { order: 2; }
.feature h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.feature .sub { font: 500 .95rem/1.4 var(--mono); color: var(--muted); margin: 12px 0 0; }
.feature p.body { color: #d0d0e0; margin: 22px 0 0; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: #e3e3ef; }
.checks li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--violet-2); border-bottom: 2px solid var(--violet-2); transform: rotate(-45deg) translate(2px, 6px); }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px rgba(110, 63, 246, .45); }
.shot img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
}

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; background: var(--bg);
  transition: border-color .25s, background .25s, transform .25s;
}
.card:hover { border-color: rgba(155, 123, 255, .55); background: var(--bg-2); }
.card h3 { font-family: var(--body); font-weight: 600; font-size: 1.08rem; letter-spacing: 0; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .k { font: 500 .72rem/1 var(--mono); letter-spacing: .16em; color: var(--violet-2); text-transform: uppercase; margin-bottom: 18px; display: block; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards, .cards.three { grid-template-columns: 1fr; } }

/* Garments */
.garments { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.garment { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.garment b { display: block; font: 600 1.06rem var(--body); }
.garment span { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; }
.garment .code { font: 500 .72rem var(--mono); color: var(--faint); letter-spacing: .14em; margin-bottom: 14px; display: block; }

/* Honest note */
.note { border: 1px solid rgba(155, 123, 255, .4); border-radius: var(--radius); padding: 28px 30px; background: linear-gradient(135deg, rgba(110, 63, 246, .12), rgba(110, 63, 246, .02)); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.note .badge { font: 500 .72rem/1 var(--mono); letter-spacing: .16em; padding: 8px 10px; border: 1px solid var(--violet-2); color: var(--violet-2); border-radius: 6px; }
.note p { margin: 0; color: #dcdcea; }
@media (max-width: 640px) { .note { grid-template-columns: 1fr; } }

/* Pricing */
.toggle-note { display: inline-flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; margin-top: 34px; font: 500 .85rem var(--mono); letter-spacing: .06em; color: var(--muted); }
.toggle-note b { color: var(--ok); font-weight: 500; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; background: var(--bg); }
.plan.featured { border-color: rgba(155, 123, 255, .7); background: linear-gradient(180deg, rgba(110, 63, 246, .14), rgba(7, 8, 15, 0) 55%); box-shadow: 0 0 0 1px rgba(110, 63, 246, .2), 0 30px 70px -40px rgba(110, 63, 246, .8); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan h3 { font-family: var(--body); font-weight: 600; font-size: 1.3rem; letter-spacing: 0; }
.plan .tag { font: 500 .75rem var(--mono); letter-spacing: .08em; color: var(--violet-2); white-space: nowrap; }
.plan .desc { color: var(--muted); margin: 10px 0 0; font-size: .98rem; min-height: 3.2em; }
.price { font: 700 clamp(2.4rem, 4vw, 3.2rem)/1 var(--display); letter-spacing: -0.02em; margin: 26px 0 4px; }
.price small { font: 400 1rem var(--body); color: var(--muted); letter-spacing: 0; }
.plan .checks { margin-top: 26px; flex: 1; }
.plan .checks li { font-size: .98rem; }
.plan .btn { margin-top: 30px; width: 100%; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

.faq { max-width: 820px; margin: 56px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font: 600 1.08rem var(--body); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--violet-2); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 14px 0 0; }

/* Waitlist */
.cta { text-align: center; }
.waitlist { display: flex; gap: 12px; max-width: 560px; margin: 40px auto 0; }
.waitlist input {
  flex: 1; min-height: 54px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 0 18px; font: 1rem var(--body);
}
.waitlist input:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(110, 63, 246, .25); }
.form-msg { min-height: 1.6em; margin-top: 16px; font: 500 .9rem var(--mono); color: var(--muted); }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #ff8a8a; }
@media (max-width: 560px) { .waitlist { flex-direction: column; } }

/* Roadmap */
.roadmap { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.roadmap li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.roadmap .st { font: 500 .74rem/1.8 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.roadmap .st.now { color: var(--ok); }
.roadmap b { font-weight: 600; }
.roadmap p { margin: 6px 0 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 600px) { .roadmap li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, auto); gap: 56px; }
.foot .brand img { height: 30px; }
.foot p { color: var(--muted); margin: 18px 0 0; max-width: 340px; }
.foot h4 { font: 500 .78rem var(--mono); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 18px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot ul a { text-decoration: none; color: var(--muted); }
.foot ul a:hover { color: var(--ink); }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font: 500 .8rem var(--mono); color: var(--faint); letter-spacing: .06em; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; gap: 36px; } .foot > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
