/* =====================================================================
   Husk iOS — design system
   One stylesheet. No framework. No build step.
   ---------------------------------------------------------------------
   1. Tokens          6. Buttons           11. FAQ accordion
   2. Reset / base    7. Sections          12. Timeline
   3. Layout shell    8. Cards / methods   13. Forms
   4. Header / nav    9. Steps             14. Footer
   5. Hero            10. Download hub     15. Utilities + motion
   ===================================================================== */

/* ---------------------------------------------------------------- 1. Tokens */
:root {
  /* surface */
  --bg:          #07080c;
  --bg-alt:      #0a0c12;
  --surface:     #10131b;
  --surface-2:   #151924;
  --line:        #232838;
  --line-soft:   #1b2030;

  /* type */
  --text:        #eef1f7;
  --muted:       #98a0b5;
  --faint:       #6b7488;

  /* brand */
  --green:       #3ddc84;
  --green-dim:   #23a862;
  --blue:        #4c8dff;
  --blue-dim:    #2f6ad9;
  --amber:       #ffb648;
  --red:         #ff6b6b;

  --grad:        linear-gradient(120deg, var(--green) 0%, #7ee0c0 45%, var(--blue) 100%);

  /* shape */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow:    0 18px 50px -22px rgba(0, 0, 0, .95);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 1);
  --glow:      0 0 0 1px rgba(61, 220, 132, .28), 0 18px 50px -18px rgba(61, 220, 132, .35);

  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* --------------------------------------------------------- 2. Reset / base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 12% -8%, rgba(61, 220, 132, .16), transparent 60%),
    radial-gradient(800px 600px at 88% 4%, rgba(76, 141, 255, .16), transparent 62%),
    radial-gradient(1100px 800px at 50% 110%, rgba(76, 141, 255, .07), transparent 65%),
    var(--bg);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.32rem); }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1.1em; }

code {
  font-family: var(--font-mono);
  font-size: .87em;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: .12em .42em;
  color: #cfe9da;
  overflow-wrap: anywhere;
}

::selection { background: rgba(61, 220, 132, .28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: #2a3145 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #262d40; border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #36405a; background-clip: content-box; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #04160c; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ambience */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

/* ------------------------------------------------------- 3. Layout shell */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.prose-col { max-width: 800px; }
.prose-col > h2 { margin-top: 1.8em; }
.prose-col > h2:first-of-type { margin-top: 0; }
.prose-col > p, .prose-col > ul { color: #d6dbe7; }
.prose-col a { color: var(--green); border-bottom: 1px solid rgba(61, 220, 132, .3); }
.prose-col a:hover { border-bottom-color: var(--green); }
.center { text-align: center; }
.center .hero-actions { justify-content: center; }

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

/* ------------------------------------------------------ 4. Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(7, 8, 12, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(7, 8, 12, .88); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { display: grid; place-items: center; transition: transform .45s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: -.03em;
}
.brand-text strong { font-weight: 700; }
.brand-dot { color: var(--green); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  position: relative;
  padding: .45rem .7rem;
  border-radius: 8px;
  font-size: .93rem;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: .7rem; right: .7rem; bottom: .1rem;
  height: 2px; border-radius: 2px;
  background: var(--grad);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block; width: 17px; height: 1.8px; border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* ----------------------------------------------------------- 5. Buttons */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn-primary {
  background: var(--grad);
  color: #04140b;
  box-shadow: 0 10px 30px -12px rgba(61, 220, 132, .6);
}
.btn-primary:hover { box-shadow: 0 18px 44px -14px rgba(76, 141, 255, .65); }

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
}
.btn-ghost:hover { border-color: #39415a; background: rgba(255, 255, 255, .05); }

.btn-sm  { padding: .55rem 1rem; font-size: .87rem; }
.btn-lg  { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-tiny { padding: .35rem .7rem; font-size: .76rem; border-radius: 8px; border-color: var(--line); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  cursor: default;
}
.pill-green { border-color: rgba(61, 220, 132, .38); background: rgba(61, 220, 132, .12); color: #a5f3c8; }
.pill-blue  { border-color: rgba(76, 141, 255, .38); background: rgba(76, 141, 255, .12); color: #bcd3ff; }
.pill-ghost:hover { border-color: var(--green); color: var(--green); cursor: pointer; }

/* alerts */
.alert {
  border: 1px solid var(--line);
  border-left: 3px solid var(--faint);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: .95rem 1.15rem;
  margin: 1.25rem 0;
  font-size: .95rem;
}
.alert-ok   { border-left-color: var(--green); }
.alert-bad  { border-left-color: var(--red); }
.alert-warn { border-left-color: var(--amber); background: rgba(255, 182, 72, .06); }
.alert ul { margin: .5rem 0 0; padding-left: 1.1rem; }

/* ------------------------------------------------------------- 6. Hero */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 0; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted);
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.hero-title { margin: 1.2rem 0 0; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: #c8cedd;
  max-width: 58ch;
  margin-top: 1.2rem;
}
.lede em { color: var(--text); font-style: normal; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
.lede strong { color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  overflow: hidden;
}
.hero-facts li {
  background: rgba(255, 255, 255, .02);
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.hero-facts strong { font-family: var(--font-display); font-size: 1.02rem; }
.hero-facts span { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }

/* phone mockup */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18.6;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2b3244, #10131b 40%, #222836);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .07) inset;
  transform: rotate(2.5deg);
  transition: transform .6s var(--ease);
}
.phone:hover { transform: rotate(0deg) translateY(-8px); }
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 35px;
  background: linear-gradient(180deg, #0c0f17, #0a0c12);
  border: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1rem 1rem;
  gap: .8rem;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 20px; border-radius: 999px;
  background: #05060a;
}
.app-bar { display: flex; align-items: center; gap: .45rem; }
.app-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.app-name { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.app-dots { margin-left: auto; color: var(--faint); letter-spacing: 2px; }
.app-tabs {
  display: flex; gap: .3rem; padding: .25rem;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02);
  font-size: .6rem; color: var(--faint);
}
.app-tabs span { flex: 1; text-align: center; padding: .3rem .1rem; border-radius: 7px; }
.app-tabs .on { background: rgba(61, 220, 132, .14); color: #a5f3c8; }
.app-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: .2rem;
}
.app-tile {
  aspect-ratio: 1; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .08);
  animation: floaty 5s ease-in-out infinite;
}
.tile-1 { background: linear-gradient(150deg, #2b6c48, #16351f); }
.tile-2 { background: linear-gradient(150deg, #3a4d8f, #1b2450); animation-delay: .3s; }
.tile-3 { background: linear-gradient(150deg, #6b3a8f, #2f1a45); animation-delay: .6s; }
.tile-4 { background: linear-gradient(150deg, #8f5a3a, #45291a); animation-delay: .9s; }
.tile-5 { background: linear-gradient(150deg, #2a6f7c, #143a42); animation-delay: 1.2s; }
.tile-6 { background: linear-gradient(150deg, #7c2a44, #3d1424); animation-delay: 1.5s; }
.tile-add {
  background: rgba(255, 255, 255, .03);
  border-style: dashed;
  border-color: rgba(255, 255, 255, .18);
  color: var(--faint); font-size: 1.2rem;
  animation: none;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.app-status { margin-top: auto; display: grid; gap: .4rem; }
.app-status .bar { display: block; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.app-status .bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.app-status .lbl { font-family: var(--font-mono); font-size: .58rem; color: var(--faint); }

.glow { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; }
.glow-a { width: 260px; height: 260px; background: rgba(61, 220, 132, .30); top: -6%; left: 4%; }
.glow-b { width: 300px; height: 300px; background: rgba(76, 141, 255, .28); bottom: -4%; right: 2%; }

/* marquee */
.marquee {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  border-block: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .015);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 1.6rem;
  padding: .9rem 0;
  width: max-content;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .2em;
  color: var(--faint);
  animation: scrollx 34s linear infinite;
}
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- 7. Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .017) 12%, rgba(255, 255, 255, .017) 88%, transparent); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-bottom: .6rem; }
.section-lede { color: var(--muted); font-size: 1.04rem; margin: 0; }

.page-hero {
  padding: clamp(2.8rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { margin-bottom: 0; }

.req-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip {
  padding: .3rem .75rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted);
}

/* -------------------------------------------------- 8. Cards / methods */
.fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.fact {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  padding: 1.3rem 1.25rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.fact:hover { transform: translateY(-4px); border-color: #333c55; }
.fact h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.fact p { margin: 0; font-size: .9rem; color: var(--muted); }

.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.method {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  padding: 1.9rem 1.75rem;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.method::after {
  content: ''; position: absolute; inset: 0 auto auto 0; height: 2px; width: 100%;
  background: var(--grad); opacity: .55;
}
.method-slow::after { background: linear-gradient(120deg, var(--blue), #9b7bff); }
.method:hover { transform: translateY(-5px); border-color: #333c55; }
.method-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.method-badge {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint);
}
.method h3 { font-size: 1.55rem; margin-bottom: .25rem; }
.method-sub { color: var(--muted); font-size: .96rem; margin-bottom: 1.2rem; }
.method-foot { margin: 1.2rem 0 0; font-size: .85rem; color: var(--faint); border-top: 1px solid var(--line-soft); padding-top: .9rem; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tick-list li { position: relative; padding-left: 1.6rem; font-size: .96rem; color: #d3d9e6; }
.tick-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 1.05rem; height: 1.05rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(61, 220, 132, .14);
  border: 1px solid rgba(61, 220, 132, .35);
  color: var(--green);
  font-size: .62rem;
  font-weight: 700;
}
.tick-x li::before { content: '✕'; background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .35); color: var(--red); }

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r);
  background: rgba(76, 141, 255, .05);
  padding: 1.4rem 1.5rem;
  margin: 2rem 0;
}
.note h4 { margin-bottom: .5rem; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note-info { border-left-color: var(--green); background: rgba(61, 220, 132, .05); }
.note-warn  { border-left-color: var(--amber); background: rgba(255, 182, 72, .055); }

.steps-cta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.2rem;
  margin-top: 3rem;
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(61, 220, 132, .07), rgba(76, 141, 255, .07));
}
.steps-cta h3 { margin-bottom: .15rem; }
.steps-cta p { margin: 0; color: var(--muted); font-size: .94rem; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.6rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 260px at 12% 0%, rgba(61, 220, 132, .16), transparent 70%),
    radial-gradient(600px 260px at 88% 100%, rgba(76, 141, 255, .16), transparent 70%),
    var(--surface);
}
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-compact { padding: 1.6rem 1.8rem; border-radius: var(--r); }

/* -------------------------------------------------------- 9. Steps list */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 0 0 2.1rem;
}
.step::before {
  content: '';
  position: absolute;
  left: 30px; top: 44px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--line), transparent);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }

.step-num {
  position: relative;
  z-index: 1;
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--green);
  box-shadow: 0 0 0 6px rgba(7, 8, 12, .9);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover .step-num {
  transform: scale(1.06);
  border-color: rgba(61, 220, 132, .5);
  box-shadow: 0 0 0 6px rgba(7, 8, 12, .9), 0 0 26px -6px rgba(61, 220, 132, .55);
}
.step-body h3 { margin-bottom: .35rem; }
.step-body p { margin: 0; color: #ccd3e1; max-width: 72ch; }
.step-tag {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .16rem .5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.steps-compact .step { padding-bottom: 1.5rem; }
.steps-compact .step-num { width: 48px; height: 48px; font-size: .82rem; }
.steps-compact .step::before { left: 24px; top: 36px; }
.steps-compact { grid-template-columns: 48px; }

/* --------------------------------------------------- 10. Download hub */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }

.dl-card, .panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  padding: 1.7rem 1.6rem;
}
.dl-card { box-shadow: var(--shadow); }
.dl-side { display: grid; gap: 1rem; }
.panel h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.panel p { font-size: .93rem; }
.panel-soft { background: rgba(255, 255, 255, .015); }

.dl-card-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.dl-icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; flex: none;
  border-radius: 16px;
  background: rgba(61, 220, 132, .12);
  border: 1px solid rgba(61, 220, 132, .3);
  color: var(--green);
}
.dl-card-top h2 { margin: 0; font-size: 1.5rem; }
.dl-card-top .ver { color: var(--green); font-size: .9rem; margin-left: .3rem; }
.dl-card-top p { margin: .1rem 0 0; font-size: .85rem; }
.dl-status { margin-left: auto; }

.dl-size { text-align: center; font-size: .84rem; margin: .7rem 0 0; }

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.7rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  overflow: hidden;
}
.spec-list > div { background: rgba(10, 12, 18, .85); padding: .8rem .95rem; }
.spec-list dt {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.spec-list dd { margin: .2rem 0 0; font-size: .95rem; font-weight: 500; }

.hash-block {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: rgba(0, 0, 0, .25);
}
.hash-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .4rem;
}
.hash { display: block; font-size: .8rem; margin-bottom: .6rem; }
.copy-row { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.copy-target {
  flex: 1; min-width: 0;
  font-size: .76rem;
  padding: .45rem .6rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.qr {
  display: grid; place-items: center;
  padding: 1rem;
  background: #fff;
  border-radius: var(--r);
  margin: 1rem 0;
}
.qr img { width: 100%; max-width: 180px; height: auto; image-rendering: pixelated; }

.link-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }

.prereq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.prereq-col h3 { font-size: 1.02rem; margin-bottom: .8rem; }
.prereq-col .tick-list li { font-size: .92rem; }

.fix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.fix {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .022);
  padding: 1.4rem 1.4rem 1.2rem;
}
.fix-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--red);
  letter-spacing: .16em;
  margin-bottom: .6rem;
}
.fix h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.fix p { margin: 0; font-size: .92rem; color: var(--muted); }

.code-404 {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: .9;
  margin: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------- 11. FAQ accordion */
.accordion { display: grid; gap: .7rem; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .022);
  overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.acc-item:has(.acc-trigger[aria-expanded="true"]) { border-color: rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .045); }
.acc-head { margin: 0; font-size: inherit; }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  width: 100%;
  padding: 1.1rem 1.3rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color .2s var(--ease);
}
.acc-trigger:hover { color: var(--green); }
.acc-icon { position: relative; flex: none; width: 18px; height: 18px; }
.acc-icon::before, .acc-icon::after {
  content: ''; position: absolute; inset: 50% 0 auto 0;
  height: 2px; border-radius: 2px; background: currentColor;
  transform: translateY(-50%);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.acc-icon::after { transform: translateY(-50%) rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.acc-panel { padding: 0 1.3rem 1.25rem; }
.acc-panel p { margin: 0; color: var(--muted); font-size: .96rem; }
.acc-panel a { color: var(--green); border-bottom: 1px solid rgba(61, 220, 132, .35); }

/* --------------------------------------------------------- 12. Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-item { position: relative; padding: 0 0 1.6rem 2.4rem; }
.tl-item::before {
  content: ''; position: absolute;
  left: 6px; top: 26px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--line), transparent);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  position: absolute; left: 0; top: 18px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--faint);
}
.tl-stable  { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 5px rgba(61, 220, 132, .14); }
.tl-beta    { border-color: var(--blue); }
.tl-planned { border-color: var(--faint); border-style: dashed; }
.tl-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .022);
  padding: 1.3rem 1.4rem;
}
.tl-head { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-bottom: .9rem; }
.tl-head h2 { margin: 0; font-size: 1.2rem; }
.tl-head time { margin-left: auto; font-family: var(--font-mono); font-size: .78rem; color: var(--faint); }

/* ------------------------------------------------------------ 13. Forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.contact-side { display: grid; gap: 1rem; }
.panel-form { padding: 1.8rem 1.7rem; }

.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field label {
  display: block;
  margin-bottom: .4rem;
  font-size: .84rem;
  font-weight: 500;
  color: #c3cadb;
}
.req { color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .32);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #333c55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 132, .16);
  background: rgba(0, 0, 0, .5);
}
.field input::placeholder, .field textarea::placeholder { color: #59617a; }
.field .hint { display: block; margin-top: .35rem; text-align: right; font-family: var(--font-mono); font-size: .7rem; color: var(--faint); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.plain-list { margin: .3rem 0 0; padding-left: 1.1rem; }

/* ----------------------------------------------------------- 14. Footer */
.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45));
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr); gap: 2.5rem; }
.footer-tag { color: var(--muted); font-size: .93rem; max-width: 40ch; margin-top: 1rem; }
.footer-version { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.footer-cols h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .9rem;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-cols a { font-size: .92rem; color: var(--muted); transition: color .2s var(--ease); }
.footer-cols a:hover { color: var(--green); }

.footer-safety {
  margin-top: 2.4rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255, 182, 72, .25);
  border-left: 3px solid var(--amber);
  border-radius: var(--r);
  background: rgba(255, 182, 72, .05);
  font-size: .89rem;
  color: #cdc4b3;
}
.footer-safety strong { color: var(--amber); }
.footer-safety em { color: #e6dcc9; font-style: italic; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.2rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.footer-bottom p { margin: 0; font-size: .8rem; max-width: 78ch; }
.footer-badges { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }

/* ------------------------------------------------ 15. Utilities + motion */
.muted { color: var(--muted); }
.tiny  { font-size: .82rem; }
.mt-s  { margin-top: .6rem; }
.mt-l  { margin-top: 2.2rem; }
code.tiny { font-size: .78em; }

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 24px);
  z-index: 200;
  padding: .7rem 1.2rem;
  border: 1px solid rgba(61, 220, 132, .4);
  border-radius: 999px;
  background: rgba(12, 16, 22, .96);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: .88rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
.js [data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }
.js [data-reveal][data-reveal-delay="4"] { transition-delay: .32s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

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

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .phone { width: min(260px, 62vw); }
  .dl-grid, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .dl-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    padding: 1.4rem 1.25rem 1.8rem;
    background: rgba(7, 8, 12, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .site-nav a:not(.btn) { display: block; padding: .8rem .5rem; font-size: 1rem; }
  .site-nav a.is-active::after { display: none; }
  .nav-cta { margin-top: .6rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .fact-row, .method-grid, .prereq, .fix-grid, .footer-cols, .field-row, .spec-list { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { flex: 1 1 auto; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: .9rem; }
  .step-num { width: 44px; height: 44px; font-size: .8rem; }
  .step::before { left: 22px; top: 32px; }
  .tl-head time { margin-left: 0; width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-facts { grid-template-columns: 1fr; }
  .dl-card { padding: 1.3rem 1.15rem; }
  .panel { padding: 1.3rem 1.15rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

@media print {
  .site-header, .site-footer, .marquee, .grain, .bg-grid, .hero-visual, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
