/* ============================================================
   STONE — design system
   Sky-dark, aurora-lit, organic-tech. One file, no framework.
   Palette: night sky · cyan · magenta · nature green · warm stone
   ============================================================ */

:root {
  color-scheme: dark;

  /* night sky */
  --void:   #04060c;
  --sky-0:  #070b15;
  --sky-1:  #0b1120;
  --sky-2:  #111a2d;
  --sky-3:  #18233a;

  /* ink */
  --snow:   #eef4fb;
  --mist:   #aab8ca;
  --fog:    #6d7c92;

  /* aurora */
  --cyan:      #3fe0ff;
  --cyan-deep: #14b5dc;
  --magenta:   #ff5fd2;
  --magenta-deep: #cf3fae;
  --green:     #4de8a4;
  --green-deep:#1fc07d;

  /* stone */
  --pebble:      #cfc4b6;
  --pebble-dark: #857d72;

  --line:      rgba(170, 195, 225, 0.13);
  --line-soft: rgba(170, 195, 225, 0.07);

  --glass:      rgba(15, 22, 38, 0.82);
  --glass-hi:   rgba(20, 30, 52, 0.88);

  --aurora: linear-gradient(100deg, var(--cyan) 0%, var(--green) 48%, var(--magenta) 100%);
  --aurora-soft: linear-gradient(100deg,
      rgba(63, 224, 255, .16), rgba(77, 232, 164, .13), rgba(255, 95, 210, .16));

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

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --wrap: 1180px;

  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, .8);
  --shadow-glow-cyan: 0 0 44px -8px rgba(63, 224, 255, .35);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--mist);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--snow); }
::selection { background: rgba(63, 224, 255, .28); color: var(--snow); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--snow);
  letter-spacing: -0.022em;
  line-height: 1.06;
  font-weight: 700;
  text-wrap: balance;
}
strong, b { color: var(--snow); font-weight: 600; }
code, kbd { font-family: var(--font-mono); font-size: 0.88em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* subtle grain over everything — organic, not sterile */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2000;
  opacity: .05;
  transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap-tight { width: min(100% - 48px, 880px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 84px) 0; }

.kicker {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.h-display {
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: 0.99;
  letter-spacing: -0.035em;
}
h2.h-section, .h-section { font-size: clamp(30px, 4.2vw, 54px); margin-bottom: 18px; }
h3 { font-size: clamp(19px, 2vw, 23px); }
.lede {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
  max-width: 62ch;
  color: var(--mist);
}
.lede strong { color: var(--snow); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.small { font-size: 14px; color: var(--fog); }
.aurora-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 9, 17, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  width: min(100% - 48px, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; gap: 34px;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--snow);
}
.logo:hover { color: var(--snow); }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--mist);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--snow); }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-burger {
  display: none; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 10px;
  color: var(--snow);
}
.nav-burger svg { width: 24px; height: 24px; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.01em;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease,
              border-color .25s ease, color .2s ease;
}
.btn::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  color: #04121a;
  background: linear-gradient(100deg, var(--cyan) 0%, var(--green) 100%);
  box-shadow: 0 10px 34px -10px rgba(63, 224, 255, .55);
}
.btn-primary:hover {
  color: #04121a;
  box-shadow: 0 14px 44px -8px rgba(77, 232, 164, .6);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--snow);
  border-color: var(--line);
  background: rgba(20, 30, 52, 0.6);
}
.btn-ghost:hover { border-color: rgba(63, 224, 255, .5); color: var(--snow); transform: translateY(-2px); }
.btn-magenta {
  color: #1c0517;
  background: linear-gradient(100deg, var(--magenta) 0%, #ff8fb8 100%);
  box-shadow: 0 10px 34px -10px rgba(255, 95, 210, .5);
}
.btn-magenta:hover { color: #1c0517; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--mist);
  border: 1px solid var(--line);
  background: rgba(17, 26, 45, 0.5);
  border-radius: 999px;
  padding: 7px 15px;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(170, 195, 225, .3);
  box-shadow: 0 30px 70px -26px rgba(0, 0, 0, .9);
}
.card > h3 { margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--mist); }
.card .card-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(420px 200px at 50% -20%, rgba(63, 224, 255, .14), transparent 70%);
}
.card:hover .card-glow { opacity: 1; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- pebbles (the brand motif) ---------- */
.pebble-ico {
  width: 46px; height: 40px; margin-bottom: 18px;
  display: grid; place-items: center;
}
.pb {
  border-radius: 53% 47% 44% 56% / 49% 55% 45% 51%;
}
.pb-2 { border-radius: 61% 39% 52% 48% / 44% 59% 41% 56%; }
.pb-3 { border-radius: 44% 56% 61% 39% / 55% 43% 57% 45%; }
.pb-4 { border-radius: 57% 43% 38% 62% / 58% 46% 54% 42%; }
.pb-5 { border-radius: 39% 61% 55% 45% / 42% 52% 48% 58%; }
.grad-cyan    { background: linear-gradient(135deg, var(--cyan), var(--cyan-deep)); }
.grad-green   { background: linear-gradient(135deg, var(--green), var(--green-deep)); }
.grad-magenta { background: linear-gradient(135deg, var(--magenta), var(--magenta-deep)); }
.grad-stone   { background: linear-gradient(135deg, var(--pebble), var(--pebble-dark)); }
.grad-mix     { background: linear-gradient(135deg, var(--cyan), var(--magenta)); }
.grad-mix2    { background: linear-gradient(135deg, var(--green), var(--cyan)); }

/* ---------- aurora ambient blobs (section backgrounds) ---------- */
.ambient {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: -1;
}
.ambient .blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .16;
}
.ambient .b-cyan    { background: var(--cyan); }
.ambient .b-magenta { background: var(--magenta); }
.ambient .b-green   { background: var(--green); }

/* ---------- reveal on scroll ---------- */
.rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .65, .25, 1), transform .8s cubic-bezier(.2, .65, .25, 1);
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; } .rv-d4 { transition-delay: .32s; }
.rv-d5 { transition-delay: .40s; } .rv-d6 { transition-delay: .48s; }

/* ---------- tables (comparison) ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
table.compare {
  width: 100%; min-width: 760px;
  border-collapse: collapse;
  background: rgba(9, 14, 26, .65);
  font-size: 14.5px;
}
table.compare th, table.compare td {
  padding: 15px 18px; text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
table.compare thead th {
  font-family: var(--font-display); font-size: 15px; color: var(--snow);
  background: rgba(17, 26, 45, .8);
  position: sticky; top: 0;
}
table.compare thead th:first-child { min-width: 220px; }
table.compare tbody tr:hover { background: rgba(63, 224, 255, .035); }
table.compare td:first-child { color: var(--snow); font-weight: 500; }
table.compare .col-stone {
  background: rgba(63, 224, 255, .05);
  border-inline: 1px solid rgba(63, 224, 255, .18);
}
.tick   { color: var(--green); font-weight: 700; }
.cross  { color: var(--fog); }
.part   { color: var(--pebble); }
.foot-note { font-size: 12.5px; color: var(--fog); margin-top: 14px; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.tier {
  display: flex; flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.tier:hover { border-color: rgba(170, 195, 225, .32); box-shadow: 0 30px 70px -26px rgba(0, 0, 0, .85); }
.tier.featured {
  background: linear-gradient(180deg, rgba(63, 224, 255, .09), rgba(13, 20, 36, .7) 45%);
  border-color: rgba(63, 224, 255, .4);
  box-shadow: var(--shadow-glow-cyan);
}
.tier .tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #04121a; background: linear-gradient(100deg, var(--cyan), var(--green));
  border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.tier h3 { font-size: 21px; margin-bottom: 4px; }
.tier .for { font-size: 13.5px; color: var(--fog); min-height: 2.6em; }
.tier .price { font-family: var(--font-display); margin: 16px 0 2px; color: var(--snow); }
.tier .price b { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; }
.tier .price span { font-size: 14px; color: var(--fog); font-weight: 400; }
.tier .per { font-size: 12.5px; color: var(--fog); margin-bottom: 18px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0 26px; }
.tier li { font-size: 14px; color: var(--mist); padding-left: 24px; position: relative; }
.tier li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 9px; height: 8px;
  border-radius: 53% 47% 44% 56% / 49% 55% 45% 51%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}
.tier li.na { color: var(--fog); }
.tier li.na::before { background: var(--sky-3); }
.tier .btn { margin-top: auto; }

/* ---------- terminal mock ---------- */
.term {
  background: #060a13;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px;
  background: rgba(17, 26, 45, .65);
  border-bottom: 1px solid var(--line-soft);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font-size: 12px; color: var(--fog); font-family: var(--font-body); }
.term pre { padding: 18px 20px; overflow-x: auto; color: var(--mist); }
.term .p  { color: var(--green); }         /* prompt */
.term .c  { color: var(--fog); }           /* comment */
.term .o  { color: var(--cyan); }          /* output highlight */
.term .m  { color: var(--magenta); }       /* accent */

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  background: var(--aurora);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 12px;
}

/* ---------- feature list rows (pains) ---------- */
.pain {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
}
.pain:last-child { border-bottom: 0; }
.pain .x {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  color: var(--magenta); background: rgba(255, 95, 210, .1);
  border: 1px solid rgba(255, 95, 210, .3);
}
.pain b { display: block; color: var(--snow); font-size: 17px; margin-bottom: 3px; font-weight: 600; }
.pain span { font-size: 14.5px; color: var(--mist); line-height: 1.55; }

/* ---------- cert badges ---------- */
.badges { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.badge {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 158px; padding: 22px 14px 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.badge:hover { border-color: rgba(77, 232, 164, .45); box-shadow: 0 20px 50px -22px rgba(0, 0, 0, .8); }
.badge svg { width: 44px; height: 44px; }
.badge b { font-family: var(--font-display); font-size: 14.5px; color: var(--snow); letter-spacing: .02em; }
.badge span { font-size: 11.5px; color: var(--fog); text-align: center; line-height: 1.4; }

/* ---------- sub-page hero ---------- */
.page-hero {
  position: relative;
  padding: 170px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(255, 95, 210, .1), transparent 60%),
    radial-gradient(1100px 560px at 12% 0%, rgba(63, 224, 255, .12), transparent 60%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--void) 100%);
}
.page-hero .stars-layer { position: absolute; inset: 0; z-index: 0; }
.page-hero .wrap, .page-hero .wrap-tight { position: relative; z-index: 1; }
.page-hero .ridge {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 0;
  width: 100%; height: 110px; opacity: .9;
}

/* ---------- prose (legal/docs long-form) ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; }
.prose h3 { font-size: 19px; margin: 32px 0 10px; }
.prose p, .prose li { font-size: 15.5px; color: var(--mist); }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 7px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.prose code {
  background: rgba(63, 224, 255, .09); border: 1px solid rgba(63, 224, 255, .16);
  padding: 1.5px 7px; border-radius: 6px; color: var(--cyan); font-size: .84em;
}
.prose .term code { background: none; border: 0; color: inherit; padding: 0; }
.prose blockquote {
  border-left: 3px solid var(--green);
  padding: 6px 0 6px 20px; margin: 20px 0;
  color: var(--pebble);
}

/* ---------- docs layout ---------- */
.docs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 56px; align-items: start; }
.docs-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; }
.docs-toc a {
  font-size: 14px; color: var(--fog); padding: 7px 14px;
  border-left: 2px solid var(--line-soft); transition: all .2s;
}
.docs-toc a:hover { color: var(--snow); border-left-color: var(--cyan); }
.docs-toc .toc-h {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--mist);
  margin: 18px 0 6px; padding-left: 14px;
}
.docs-toc .toc-h:first-child { margin-top: 0; }

/* glossary */
.glossary dt {
  font-family: var(--font-display); color: var(--snow); font-weight: 600;
  font-size: 17px; margin-top: 26px;
}
.glossary dt code { color: var(--cyan); font-size: .85em; }
.glossary dd { font-size: 15px; color: var(--mist); margin-top: 5px; max-width: 72ch; }

/* ---------- status page ---------- */
.svc {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--line-soft);
}
.svc:last-child { border-bottom: 0; }
.svc .name { color: var(--snow); font-weight: 500; flex: 1; }
.svc .region { font-size: 13px; color: var(--fog); }
.svc .state { font-size: 13.5px; color: var(--green); display: flex; align-items: center; gap: 8px; }
.svc .state::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 9px var(--green);
}
.uptime { display: flex; gap: 2.5px; align-items: flex-end; height: 26px; }
.uptime i { flex: 1; min-width: 2.5px; height: 100%; border-radius: 2px; background: var(--green-deep); opacity: .8; }
.uptime i.dim { opacity: .35; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 500; color: var(--mist);
  margin-bottom: 7px; letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 15.5px; color: var(--snow);
  background: rgba(7, 11, 21, .7);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(63, 224, 255, .15);
}
.field input::placeholder { color: var(--fog); }
.field .hint { font-size: 12.5px; color: var(--fog); margin-top: 6px; }
.field input.mono {
  font-family: var(--font-mono); letter-spacing: .28em; text-transform: uppercase;
  text-align: center; font-size: 19px;
}
.form-msg {
  border-radius: var(--r-sm); padding: 13px 16px; font-size: 14px;
  margin-top: 16px; display: none; line-height: 1.5;
}
.form-msg.show { display: block; }
.form-msg.ok {
  background: rgba(77, 232, 164, .1); border: 1px solid rgba(77, 232, 164, .35); color: var(--green);
}
.form-msg.err {
  background: rgba(255, 95, 210, .08); border: 1px solid rgba(255, 95, 210, .3); color: var(--magenta);
}
.form-msg.info {
  background: rgba(63, 224, 255, .08); border: 1px solid rgba(63, 224, 255, .3); color: var(--cyan);
}

/* auth layout */
.auth-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 130px 24px 80px;
  position: relative;
}
.auth-card {
  width: min(100%, 440px);
  background: var(--glass-hi);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 36px 34px;
  box-shadow: var(--shadow-card);
  position: relative; z-index: 2;
}
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { font-size: 14.5px; color: var(--fog); margin-bottom: 26px; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(7, 11, 21, .7);
  border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 4px;
  margin-bottom: 28px;
}
.auth-tabs button {
  font: inherit; font-size: 14px; font-weight: 600;
  font-family: var(--font-display);
  color: var(--fog); background: none; border: 0;
  border-radius: 999px; padding: 9px 0; cursor: pointer;
  transition: all .25s ease;
}
.auth-tabs button.on { color: #04121a; background: linear-gradient(100deg, var(--cyan), var(--green)); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(1000px 400px at 50% 120%, rgba(63, 224, 255, .07), transparent 70%),
    linear-gradient(180deg, var(--void), var(--sky-0));
  padding: 72px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
.footer h4 {
  font-size: 13px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--snow); margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--fog); }
.footer-col a:hover { color: var(--snow); }
.footer-brand p { font-size: 14px; color: var(--fog); max-width: 34ch; margin: 14px 0 18px; line-height: 1.6; }
.footer-brand address { font-style: normal; font-size: 13.5px; color: var(--fog); line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--fog);
}
.footer-bottom .spacer { flex: 1; }
.footer-bottom a { color: var(--fog); } .footer-bottom a:hover { color: var(--snow); }

/* ============================================================
   HERO — full-bleed pebble photo (index)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: stretch;
  overflow: hidden;
  background: linear-gradient(180deg, #030509 0%, #071021 55%, #0a1626 78%, #040910 100%);
}
.hero-scene { position: absolute; inset: 0; z-index: 0; }
.hero-scene > * { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-photo { object-fit: cover; object-position: center 42%; }
.hero-shade {
  background:
    radial-gradient(62vw 64vh at 25% 34%, rgba(3, 5, 10, .42), transparent 72%),
    linear-gradient(180deg,
      transparent 0%,
      transparent 56%,
      rgba(4, 6, 12, .5) 80%,
      var(--void) 100%);
}

/* milky way band */
.milkyway {
  background:
    radial-gradient(58% 16% at 55% 34%, rgba(214, 234, 255, .16), transparent 70%),
    radial-gradient(42% 10% at 42% 42%, rgba(255, 187, 240, .1), transparent 70%),
    radial-gradient(70% 22% at 60% 30%, rgba(140, 190, 255, .08), transparent 75%);
  transform: rotate(-14deg) scale(1.35);
  filter: blur(2px);
}

/* aurora ribbons */
.aurora-ribbons { mix-blend-mode: screen; filter: blur(46px); opacity: .8; }
.aurora-ribbons i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.aurora-ribbons .r1 {
  width: 68vw; height: 34vh; left: 6vw; top: 6vh;
  background: linear-gradient(100deg, rgba(63, 224, 255, .34), rgba(77, 232, 164, .26) 60%, transparent);
  transform: rotate(-9deg);
  animation: drift1 17s ease-in-out infinite alternate;
}
.aurora-ribbons .r2 {
  width: 52vw; height: 26vh; right: 2vw; top: 13vh;
  background: linear-gradient(80deg, rgba(255, 95, 210, .3), rgba(140, 120, 255, .18) 70%, transparent);
  transform: rotate(7deg);
  animation: drift2 21s ease-in-out infinite alternate;
}
.aurora-ribbons .r3 {
  width: 44vw; height: 20vh; left: 26vw; top: 2vh;
  background: linear-gradient(120deg, rgba(77, 232, 164, .3), rgba(63, 224, 255, .16) 65%, transparent);
  transform: rotate(-16deg);
  animation: drift1 24s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 {
  from { transform: rotate(-9deg) translate3d(0, 0, 0) scaleY(1); }
  to   { transform: rotate(-5deg) translate3d(4vw, 3vh, 0) scaleY(1.25); }
}
@keyframes drift2 {
  from { transform: rotate(7deg) translate3d(0, 0, 0); }
  to   { transform: rotate(3deg) translate3d(-4vw, 2.5vh, 0) scaleY(1.18); }
}

.hero-content {
  position: relative; z-index: 5;
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
  display: flex; flex-direction: column;
  padding: 140px 0 52px;
}
.hero-main {
  display: flex; align-items: center;
  gap: clamp(40px, 5vw, 76px);
  margin-block: auto; padding: 20px 0 48px;
}
.hero-pitch {
  flex: 1 1 0; min-width: 0;
  text-shadow: 0 1px 4px rgba(3, 5, 10, .6), 0 4px 28px rgba(3, 5, 10, .85);
}

/* drop & share card — the WeTransfer-style kickstart */
.drop-card {
  flex: 0 0 360px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 26px 22px;
  box-shadow: 0 34px 90px -34px rgba(0, 0, 0, .9);
}
.drop-card h2 { font-size: 21px; margin-bottom: 6px; }
.drop-card .drop-intro { font-size: 13.5px; line-height: 1.5; color: var(--mist); margin-bottom: 18px; }
.dropzone {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 16px;
  margin-bottom: 18px;
  border: 1.5px dashed rgba(170, 195, 225, .35);
  border-radius: 13px;
  background: rgba(8, 12, 22, .5);
  color: var(--mist);
  font: inherit; font-size: 14px; text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.dropzone:hover, .dropzone.dz-on {
  border-color: var(--green);
  background: rgba(77, 232, 164, .08);
  color: var(--snow);
}
.dropzone svg { width: 26px; height: 26px; opacity: .85; }
.dz-files { font-size: 12.5px; color: var(--green); word-break: break-word; }
.drop-card .field { margin-bottom: 14px; }
.drop-card .dz-hint { font-size: 12px; line-height: 1.55; color: var(--fog); margin-top: 12px; }
.hero-foot { text-shadow: 0 1px 3px rgba(3, 5, 10, .6), 0 3px 18px rgba(3, 5, 10, .8); }
/* gradient-clipped text renders shadows through its transparent glyphs — keep it clean */
.hero .kicker, .hero .aurora-text, .hero .btn { text-shadow: none; }
.hero-content .h-display {
  font-size: clamp(38px, 4.8vw, 70px);
  max-width: 16ch; margin: 10px 0 26px;
}
.hero-content .h-display .dotrock {
  display: inline-block;
  width: .34em; height: .3em; margin-left: .06em;
  border-radius: 53% 47% 44% 56% / 49% 55% 45% 51%;
  background: var(--aurora);
  vertical-align: baseline;
  animation: dotpulse 5s ease-in-out infinite;
}
@keyframes dotpulse {
  0%, 100% { border-radius: 53% 47% 44% 56% / 49% 55% 45% 51%; }
  50% { border-radius: 44% 56% 58% 42% / 55% 45% 57% 43%; }
}
.hero-sub { font-size: clamp(17px, 1.7vw, 21px); max-width: 56ch; color: var(--mist); }
.hero-sub strong { color: var(--snow); }
.hero-ctas { display: flex; gap: 16px; margin: 38px 0 30px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* bottom strip: fact words left, CTA down right */
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 36px 56px; flex-wrap: wrap;
  border-top: 1px solid rgba(238, 244, 251, .16);
  padding-top: 26px;
}
.hero-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 34px;
  flex: 1 1 100%;
}
.hero-facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--snow); margin-bottom: 6px;
}
.hero-facts span { display: block; font-size: 13px; line-height: 1.5; color: var(--mist); }
.hero-cta {
  margin-left: auto;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  text-align: right;
}
.hero-cta .small { color: var(--mist); margin: 0; }

/* ---------- big CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(800px 380px at 22% 110%, rgba(77, 232, 164, .13), transparent 65%),
    radial-gradient(900px 420px at 82% -10%, rgba(255, 95, 210, .12), transparent 65%),
    linear-gradient(180deg, var(--sky-0), var(--sky-1));
  text-align: center;
  padding: clamp(80px, 11vw, 150px) 0;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1060px) {
  .hero-main { flex-direction: column; align-items: flex-start; gap: 44px; }
  .drop-card { flex: none; width: 100%; max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(6, 9, 17, .97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 26px;
  }
  .nav.open .nav-links a { padding: 12px 6px; font-size: 17px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-cta { margin-left: 0; align-items: flex-start; text-align: left; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .docs-toc .toc-h { display: none; }
  .docs-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .tiers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 118px 0 40px; }
  .hero-pitch { padding-bottom: 36px; }
  .auth-card { padding: 30px 24px 28px; }
}

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