/* ============================================================
   AetherOne — Aether Spark / Cosmos theme
   ============================================================ */
:root {
  --void: #0A0717;
  --void-2: #0D0A1E;
  --indigo: #241858;
  --violet: #8B5CF6;
  --violet-soft: #A78BFA;
  --blue: #6366F1;
  --blue-soft: #818cf8;
  --gold: #FFD27A;
  --mint: #34E3C0;
  --ink: #EDEAFF;
  --ink-2: #cdc7e8;
  --muted: #9A93B5;
  --muted-2: #6f6a86;
  --surface: rgba(255,255,255,0.035);
  --surface-2: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(167,139,250,0.22);

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--void);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* cosmic backdrop */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 700px at 18% -8%, rgba(124,58,237,0.28), transparent 60%),
    radial-gradient(900px 650px at 92% 4%, rgba(99,102,241,0.20), transparent 60%),
    radial-gradient(800px 800px at 50% 120%, rgba(52,227,192,0.07), transparent 55%),
    var(--void);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.2px 1.2px at 70% 20%, rgba(255,255,255,0.40), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.1px 1.1px at 85% 60%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.3px 1.3px at 12% 80%, rgba(255,255,255,0.30), transparent),
    radial-gradient(1.2px 1.2px at 60% 85%, rgba(255,255,255,0.30), transparent);
  opacity: .5;
  animation: twinkle 7s ease-in-out infinite;
}
@keyframes twinkle { 0%,100%{opacity:.32} 50%{opacity:.6} }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- helpers ---------- */
.eyebrow {
  font-family: var(--display); font-weight: 500; font-size: 12.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--violet-soft);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section__head { max-width: 680px; margin-bottom: 52px; }
.section__title { font-size: clamp(28px, 4.4vw, 46px); margin: 16px 0 14px; }
.section__sub { color: var(--muted); font-size: 17px; max-width: 60ch; }
.grad-text { background: linear-gradient(100deg, var(--violet-soft), var(--blue-soft) 55%, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--surface-2);
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 500; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-2); }
.btn--primary {
  border: none; color: #140a2e;
  background: linear-gradient(100deg, var(--violet-soft), var(--blue) 60%);
  box-shadow: 0 10px 30px -10px rgba(124,58,237,.7);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(124,58,237,.85); }
.btn--gold { border:none; color:#241300; background: linear-gradient(100deg,#FFE3A8,var(--gold)); box-shadow: 0 10px 30px -12px rgba(255,210,122,.6); }
.btn .ic { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,7,23,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand svg { width: 32px; height: 32px; }
.brand .one { color: var(--violet-soft); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--ink-2); font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; color: var(--ink); cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: clamp(56px, 9vw, 104px) 0 clamp(60px, 8vw, 96px); }
.hero__glyph { position: relative; width: 132px; height: 132px; margin: 0 auto 30px; display: grid; place-items: center; }
.hero__glyph img { width: 116px; height: 116px; border-radius: 30px; box-shadow: 0 30px 80px -20px rgba(124,58,237,.6), 0 0 0 1px var(--line); position: relative; z-index: 2; }
.hero__ring { position: absolute; inset: -16px; border-radius: 50%; border: 1px solid rgba(167,139,250,.35); animation: spin 18s linear infinite; }
.hero__ring::before { content:""; position:absolute; top:-4px; left:50%; width:8px; height:8px; margin-left:-4px; border-radius:50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.hero__halo { position:absolute; inset:-40px; border-radius:50%; background: radial-gradient(closest-side, rgba(124,58,237,.45), transparent 70%); filter: blur(6px); animation: pulse 4.5s ease-in-out infinite; z-index:0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:.6; transform:scale(1)} 50%{opacity:1; transform:scale(1.06)} }

.hero h1 { font-size: clamp(38px, 7vw, 76px); letter-spacing: -.03em; }
.hero__sub { color: var(--ink-2); font-size: clamp(16px, 2vw, 20px); max-width: 56ch; margin: 22px auto 0; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }

/* ---------- manifesto ---------- */
.manifesto { text-align: center; padding: clamp(48px,7vw,84px) 0; }
.manifesto p { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 3.4vw, 34px); line-height: 1.32; max-width: 20ch; margin-inline: auto; letter-spacing: -.02em; }

/* ---------- feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  grid-column: span 4;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(124,58,237,.16); border: 1px solid var(--line-2); color: var(--violet-soft); }
.card__ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 18.5px; margin-bottom: 8px; display:flex; align-items:center; gap:9px; }
.card h3::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--gold); box-shadow:0 0 8px var(--gold); flex:none; }
.card p { color: var(--muted); font-size: 14.5px; }
.card--wide { grid-column: span 8; }
.card--tall { grid-column: span 4; }

/* ---------- split / AIM ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.split__media { position: relative; }
.mesh-stage { aspect-ratio: 1/1; width: 100%; max-width: 440px; margin-inline: auto; }
.list-clean { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.list-clean li { display: flex; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.list-clean li svg { width: 20px; height: 20px; color: var(--mint); flex: none; margin-top: 2px; }

/* never-collect chips */
.never { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.never span { font-size: 13.5px; color: var(--muted); padding: 8px 14px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.16); position: relative; }
.never span::before { content:"\00d7"; color: var(--violet-soft); margin-right: 7px; font-weight: 700; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step__n { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--gold); letter-spacing: .1em; }
.step h3 { font-size: 19px; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- phone mockup ---------- */
.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.phone {
  width: 288px; height: 596px; margin-inline: auto; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a2350, #0c0a1c);
  box-shadow: 0 40px 90px -30px rgba(124,58,237,.6), inset 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
}
.phone__screen { width: 100%; height: 100%; border-radius: 34px; background: radial-gradient(120% 80% at 50% 0%, #1a1336, #07050f); overflow: hidden; position: relative; }
.phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #06040d; border-radius: 0 0 14px 14px; z-index: 3; }
.scr { padding: 40px 18px 18px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.scr__greet { font-family: var(--display); font-weight: 600; font-size: 19px; }
.scr__greet small { display:block; font-family: var(--body); font-weight:400; font-size: 11.5px; color: var(--violet-soft); margin-top:3px; }
.scr-card { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.scr-card .t { font-size: 12.5px; color: var(--muted); }
.scr-card .b { font-size: 14px; margin-top: 6px; }
.scr-bar { display:flex; align-items:center; gap:8px; background: rgba(255,255,255,.05); border:1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: 12.5px; color: var(--muted); }
.scr-bar .send { margin-left:auto; width:22px; height:22px; border-radius:50%; background: linear-gradient(100deg,var(--violet-soft),var(--blue)); }
.scr-chips { display:flex; gap:7px; flex-wrap: wrap; }
.scr-chips b { font-weight:500; font-size: 11.5px; padding: 6px 11px; border-radius: 999px; border:1px solid var(--line-2); color: var(--violet-soft); background: rgba(124,58,237,.12); }
.scr-foot { margin-top:auto; display:flex; align-items:center; gap:7px; font-size: 11px; color: var(--muted-2); }
.scr-foot .d { width:6px;height:6px;border-radius:50%;background:var(--mint);box-shadow:0 0 7px var(--mint); }

/* ---------- transparency log ---------- */
.log { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: rgba(7,5,15,.6); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.log__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.log__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2350; }
.log__bar i:nth-child(1){ background:#FF5F57 } .log__bar i:nth-child(2){ background:#FEBC2E } .log__bar i:nth-child(3){ background:#28C840 }
.log__bar span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.log__body { padding: 16px; display: grid; gap: 12px; font-size: 13px; }
.log__row { display: grid; gap: 3px; }
.log__row .tag { color: var(--violet-soft); }
.log__row .msg { color: var(--ink-2); }
.log__row .meta { color: var(--muted-2); font-size: 11.5px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); cursor: pointer; padding: 22px 4px; font-family: var(--display); font-weight: 500; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq__q .pm { flex: none; width: 22px; height: 22px; position: relative; transition: transform .3s var(--ease); color: var(--violet-soft); }
.faq__item.is-open .faq__q .pm { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { color: var(--muted); font-size: 15px; padding: 0 4px 22px; }

/* ---------- cta band ---------- */
.cta {
  text-align: center; border-radius: var(--radius-lg); padding: clamp(46px,7vw,76px) 26px;
  background: linear-gradient(150deg, rgba(124,58,237,.30), rgba(99,102,241,.16) 60%, rgba(52,227,192,.08));
  border: 1px solid var(--line-2); position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(28px, 5vw, 50px); }
.cta p { color: var(--ink-2); margin: 16px auto 30px; max-width: 50ch; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 40px; margin-top: 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 30ch; }
.footer h4 { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); font-size: 14.5px; }
.footer ul a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; flex-wrap: wrap; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px,7vw,80px) 0; }
.legal h1 { font-size: clamp(30px,5vw,44px); }
.legal .updated { color: var(--muted-2); margin: 10px 0 30px; font-size: 14px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal ul { padding-left: 20px; display: grid; gap: 7px; margin: 10px 0; }
.legal a { color: var(--violet-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav.is-open .nav__links { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 4px; padding: 16px 22px 24px; background: rgba(10,7,23,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
  .nav.is-open .nav__links a { padding: 10px 0; width: 100%; }
  .split, .showcase { grid-template-columns: 1fr; gap: 40px; }
  .showcase .phone { order: -1; }
  .card, .card--wide, .card--tall { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid { gap: 14px; }
  .card, .card--wide, .card--tall { grid-column: span 12; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; border-radius: 6px; }

/* ---------- AIM mesh animation ---------- */
.mesh-edge { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 7s var(--ease) infinite; }
.mesh-node { transform-box: fill-box; transform-origin: center; animation: nodePulse 7s ease-in-out infinite; }
.mesh-edge:nth-child(2){animation-delay:.2s}.mesh-edge:nth-child(3){animation-delay:.4s}
.mesh-edge:nth-child(4){animation-delay:.6s}.mesh-edge:nth-child(5){animation-delay:.8s}
@keyframes draw {
  0% { stroke-dashoffset: 240; opacity: 0; }
  18% { stroke-dashoffset: 0; opacity: 1; }
  72% { opacity: 1; }
  92%,100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes nodePulse {
  0%,8% { opacity: 0; transform: scale(.4); }
  20%,72% { opacity: 1; transform: scale(1); }
  92%,100% { opacity: 0; transform: scale(.6); }
}
