/* ===== Tokens — dark is the cinematic default; light designed as an equal ===== */
:root {
  --bg: #0c1114;
  --hero: radial-gradient(120% 90% at 50% 0%, #141d21 0%, #0c1114 55%, #090d10 100%);
  --girih: #22343a;
  --ink: #e9f4f2;
  --ink-2: #c8d6d4;
  --text: #9db4b1;
  --muted: #5f6f6d;
  --line: rgba(233,244,242,.09);
  --line-2: rgba(233,244,242,.14);
  --card: #12191d;
  --card-hover: rgba(63,196,191,.35);
  --accent: #3fc4bf;
  --accent-hi: #7ae0db;
  --accent-hover: #54d4cf;
  --on-accent: #07211f;
  --accent-soft: rgba(63,196,191,.08);
  --pill-on-bg: rgba(63,196,191,.16);
  --pill-on-ink: #7ae0db;
  --btn-ghost: rgba(233,244,242,.08);
  --btn-ghost-hover: rgba(233,244,242,.14);
  --panel: rgba(24,32,35,.85);
  --panel-line: rgba(233,244,242,.14);
  --panel-shadow: 0 22px 60px rgba(0,0,0,.5);
  --input-bg: rgba(12,17,20,.7);
  --input-line: rgba(233,244,242,.1);
  --input-ph: #5f6f6d;
  --glow: rgba(63,196,191,.34);
  --glow-2: rgba(63,196,191,.1);
  --wick: rgba(220,248,246,.75);
  --wick-dim: rgba(220,248,246,.5);
  --wick-glow: 0 0 8px rgba(63,196,191,.8);
  --up-bg: linear-gradient(160deg, rgba(122,224,219,.5), rgba(63,196,191,.28));
  --up-line: rgba(190,240,238,.55);
  --up-shadow: inset 0 0 18px rgba(63,196,191,.5), 0 0 22px rgba(63,196,191,.28);
  --down-bg: rgba(233,244,242,.05);
  --down-line: rgba(210,235,233,.4);
  --down-shadow: inset 0 0 12px rgba(233,244,242,.1);
  --core: #7ae0db;
  --core-glow: 0 0 16px rgba(63,196,191,.9);
  --near-bg: linear-gradient(170deg, #132022, #0f171a);
  --near-line: rgba(63,196,191,.2);
  --near-shadow: 0 18px 44px rgba(0,0,0,.35);
  --far-bg: #101619;
  --far-line: rgba(233,244,242,.1);
  --ok: #3ec98f;
  --ok-bg: rgba(62,201,143,.1);
  --ok-line: rgba(62,201,143,.4);
  --err: #ff8f75;
  --vip: #d9a96a;
  --vip-bg: rgba(217,169,106,.08);
  --live: #3ec98f;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f3ef;
    --hero: radial-gradient(120% 90% at 50% 0%, #fcfbf8 0%, #f4f3ef 55%, #edebe4 100%);
    --girih: #dcd8cc;
    --ink: #101619;
    --ink-2: #4a5250;
    --text: #4a5250;
    --muted: #8a877d;
    --line: rgba(16,22,25,.08);
    --line-2: rgba(16,22,25,.14);
    --card: #fcfbf8;
    --card-hover: rgba(14,138,135,.35);
    --accent: #0e8a87;
    --accent-hi: #0b706d;
    --accent-hover: #0b706d;
    --on-accent: #fdfefe;
    --accent-soft: rgba(14,138,135,.07);
    --pill-on-bg: rgba(14,138,135,.1);
    --pill-on-ink: #0e8a87;
    --btn-ghost: rgba(16,22,25,.06);
    --btn-ghost-hover: rgba(16,22,25,.12);
    --panel: #fcfbf8;
    --panel-line: rgba(16,22,25,.1);
    --panel-shadow: 0 22px 60px rgba(16,22,25,.14);
    --input-bg: #f4f3ef;
    --input-line: rgba(16,22,25,.12);
    --input-ph: #a3a094;
    --glow: rgba(14,138,135,.2);
    --glow-2: rgba(14,138,135,.06);
    --wick: rgba(14,138,135,.6);
    --wick-dim: rgba(16,22,25,.3);
    --wick-glow: none;
    --up-bg: linear-gradient(160deg, rgba(14,138,135,.6), rgba(14,138,135,.35));
    --up-line: rgba(14,138,135,.8);
    --up-shadow: inset 0 0 18px rgba(14,138,135,.16), 0 10px 24px rgba(14,138,135,.16);
    --down-bg: rgba(255,255,255,.5);
    --down-line: rgba(16,22,25,.22);
    --down-shadow: 0 10px 24px rgba(16,22,25,.08);
    --core: #0e8a87;
    --core-glow: 0 0 12px rgba(14,138,135,.5);
    --near-bg: #fcfbf8;
    --near-line: rgba(14,138,135,.35);
    --near-shadow: 0 18px 44px rgba(16,22,25,.1);
    --far-bg: #f0eee8;
    --far-line: rgba(16,22,25,.1);
    --ok: #157a4e;
    --ok-bg: rgba(21,122,78,.08);
    --ok-line: rgba(21,122,78,.35);
    --err: #b03e28;
    --vip: #a4713a;
    --vip-bg: rgba(164,113,58,.08);
    --live: #157a4e;
  }
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif; font-size: 15px; line-height: 2.1;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul, fieldset { margin: 0; }
h1, h2, h3 { font-family: "Estedad", "Vazirmatn", sans-serif; font-weight: 800; color: var(--ink); line-height: 1.5; text-wrap: balance; }
a { color: var(--accent); text-decoration: none; }
.mono, .tickers li[dir="ltr"], .link-mail { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.skip { position: absolute; top: -60px; right: 16px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { top: 12px; }

/* ===== Hero (depth planes: far girih / mid copy / near star + form) ===== */
.hero { position: relative; overflow: hidden; background: var(--hero); padding-bottom: 56px; }
.girih {
  position: absolute; left: -20%; right: -20%; top: 24%; height: 130%; opacity: 0; filter: blur(1.6px);
  transform: perspective(900px) rotateX(58deg); transform-origin: 50% 0; pointer-events: none;
  animation: fade-in 600ms ease-out 150ms both;
  --shift: 0px;
}
.girih svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateY(var(--shift)); }
.girih-fade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 60%, var(--bg) 100%); }
@keyframes fade-in { to { opacity: .5; } }

.top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px clamp(18px, 4vw, 48px); max-width: 1200px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 22px; height: 22px; color: var(--accent); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s; display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.on { opacity: 1; transform: scale(1); }
.brand-name { font-family: "Estedad", "Vazirmatn", sans-serif; font-weight: 800; font-size: 17px; }
.brand-latin { font: 700 9.5px "Space Grotesk", sans-serif; letter-spacing: .26em; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.status { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 14px; font-size: 11.5px; color: var(--text); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(62,201,143,.5); } 60% { box-shadow: 0 0 0 6px rgba(62,201,143,0); } }
.tg { background: var(--btn-ghost); color: var(--ink); font-weight: 700; font-size: 12px; padding: 9px 18px; border-radius: 6px; transition: background .18s; }
.tg:hover { background: var(--btn-ghost-hover); color: var(--ink); }

.stage { position: relative; z-index: 2; display: flex; justify-content: center; margin-top: 4px; }
.star-wrap { position: relative; width: 300px; height: 300px; transform-origin: 50% 50%; will-change: transform, opacity; }
.glow { position: absolute; inset: -60px; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, var(--glow-2) 42%, transparent 68%); filter: blur(18px); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .95; transform: scale(1.12); } }
.spin { position: absolute; inset: 0; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.arm { position: absolute; inset: 0; transform: rotate(var(--r)); }
.arm .wick, .arm .body { position: absolute; left: 50%; display: block; }
.arm .wick { top: 4px; width: 3px; height: 20px; margin-left: -1.5px; background: var(--wick); box-shadow: var(--wick-glow); }
.arm .wick.dim { background: var(--wick-dim); box-shadow: none; }
.arm .body { top: 24px; width: 30px; height: 102px; margin-left: -15px; border-radius: 4px; border: 1.5px solid; }
.arm .body.up { background: var(--up-bg); border-color: var(--up-line); box-shadow: var(--up-shadow); }
.arm .body.down { background: var(--down-bg); border-color: var(--down-line); box-shadow: var(--down-shadow); }
.core { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--core); box-shadow: var(--core-glow); }
/* load: candles fly in from depth and lock, 60ms stagger, overshoot */
.arm .wick, .arm .body { animation: candle-in 800ms cubic-bezier(.2,.9,.3,1.15) calc(250ms + var(--i) * 60ms) both; }
@keyframes candle-in { from { opacity: 0; transform: translateY(-40px) scale(1.4); } to { opacity: 1; transform: none; } }
.core { animation: core-in 600ms ease-out 780ms both; }
@keyframes core-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
.glow { animation-delay: 0s; }

.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; text-align: center; padding: 0 clamp(18px, 4vw, 48px); }
.eyebrow { font: 600 11px "Space Grotesk", "Vazirmatn", sans-serif; letter-spacing: .3em; color: var(--accent); animation: word-in 500ms ease-out 900ms both; }
h1 { font-weight: 900; font-size: clamp(27px, 4.2vw, 46px); line-height: 1.5; }
h1 .w { display: inline-block; animation: word-in 500ms ease-out calc(900ms + var(--i) * 120ms) both; }
h1 .accent { color: var(--accent); }
@keyframes word-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.lede { max-width: 640px; font-size: 15px; line-height: 2.1; color: var(--text); animation: word-in 500ms ease-out 1500ms both; }

/* form — the one solid object in the scene (near plane) */
.waitlist { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; animation: form-in 700ms cubic-bezier(.2,.9,.3,1) 1950ms both; width: 100%; max-width: 560px; }
@keyframes form-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.roles { border: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 12px; color: var(--text); }
.roles legend { float: right; padding: 0; margin-left: 4px; }
.roles label { position: relative; cursor: pointer; }
.roles input { position: absolute; opacity: 0; inset: 0; }
.roles span { display: inline-block; border: 1px solid var(--line-2); color: var(--text); font-size: 11.5px; padding: 6px 16px; border-radius: 99px; transition: border-color .18s, color .18s, transform .18s; }
.roles label:hover span { border-color: var(--card-hover); color: var(--ink); }
.roles input:checked + span { background: var(--pill-on-bg); border-color: var(--accent); color: var(--pill-on-ink); font-weight: 700; }
.roles input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel-form { display: flex; gap: 10px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 10px; padding: 10px; box-shadow: var(--panel-shadow); width: 100%; max-width: 560px; }
.fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel-form input {
  min-width: 0; width: 100%; font: inherit; font-size: 13px; padding: 11px 14px; color: var(--ink); text-align: right;
  background: var(--input-bg); border: 1px solid var(--input-line); border-radius: 7px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.panel-form input::placeholder { color: var(--input-ph); }
.panel-form input[dir="ltr"] { direction: ltr; text-align: left; }
.panel-form input[dir="ltr"]::placeholder { direction: rtl; text-align: right; }
.panel-form input:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--accent-soft); }
.panel-form input:focus { outline: none; border: 1.5px solid var(--accent); box-shadow: 0 0 0 3px var(--pill-on-bg); transform: translateY(-2px); }
.panel-form input[aria-invalid="true"] { border: 1.5px solid var(--err); }
.panel-form button {
  font: inherit; font-weight: 800; font-size: 13.5px; padding: 11px 26px; border: 0; border-radius: 7px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: background .18s;
}
.panel-form button:hover { background: var(--accent-hover); }
.panel-form button[disabled] { opacity: .6; cursor: wait; }
.spinner { display: none; width: 12px; height: 12px; border: 2px solid rgba(7,33,31,.35); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
button[disabled] .spinner { display: inline-block; }
.form-note { font-size: 10.5px; color: var(--muted); min-height: 1.8em; transition: color .2s; }
.form-note.ok { color: var(--ok); font-weight: 700; background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 7px; padding: 6px 14px; font-size: 12px; }
.form-note.err { color: var(--err); }

/* ===== Ticker ===== */
.coverage { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.coverage-label { padding: 0 clamp(18px, 4vw, 48px); font-size: 11px; font-weight: 700; color: var(--muted); max-width: 1200px; margin: 0 auto; width: 100%; }
.marquee-mask { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { display: flex; gap: 14px; width: max-content; animation: drift 46s linear 2.2s infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(50%); } }
.tickers { list-style: none; padding: 0; display: flex; gap: 14px; flex: none; }
.tickers li { border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 18px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.tickers li[dir="ltr"] { font-weight: 500; font-size: 11.5px; }

/* ===== Modules ===== */
.modules { padding: 64px 0; }
h2 { font-size: 26px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.mod { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s; }
.mod:hover { border-color: var(--card-hover); }
.mod h3 { font-size: 16px; }
.mod p { font-size: 12.5px; line-height: 2; color: var(--text); }
.icon { width: 56px; height: 56px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; position: relative; perspective: 200px; }
.mi-news { width: 26px; height: 20px; border: 2px solid currentColor; border-radius: 3px; display: flex; flex-direction: column; gap: 2px; padding: 3px; animation: flip 5s ease-in-out infinite; }
.mi-news span { height: 2px; background: currentColor; width: 80%; }
.mi-news span + span { width: 60%; opacity: .5; }
@keyframes flip { 0%,55%,100% { transform: rotateY(0); } 25%,35% { transform: rotateY(180deg); } }
.icon-bars { align-items: flex-end; gap: 3px; padding-bottom: 12px; }
.bar { width: 7px; height: 16px; background: var(--accent); opacity: .4; border-radius: 1px; }
.bar.mi-grow { height: 26px; opacity: 1; transform-origin: bottom; animation: grow 4s ease-in-out infinite; }
.bar:last-child { height: 12px; }
@keyframes grow { 0%,15% { transform: scaleY(.25); } 55%,80% { transform: scaleY(1); } 100% { transform: scaleY(.25); } }
.mi-ring { transform-origin: 50% 15%; animation: ring 4.5s ease-in-out infinite; }
@keyframes ring { 0%,60%,100% { transform: rotate(0); } 66% { transform: rotate(14deg); } 74% { transform: rotate(-11deg); } 82% { transform: rotate(7deg); } 90% { transform: rotate(-4deg); } }
.shackle { position: absolute; top: 12px; width: 14px; height: 12px; border: 2px solid currentColor; border-bottom: none; border-radius: 7px 7px 0 0; animation: lock 3.5s ease-in infinite; }
.lock-body { margin-top: 10px; width: 20px; height: 14px; background: currentColor; border-radius: 3px; }
@keyframes lock { 0%,40% { transform: translateY(-5px); } 55%,100% { transform: translateY(0); } }
.needle { position: absolute; bottom: 19px; left: 50%; width: 2px; height: 12px; background: currentColor; transform-origin: bottom; animation: dial 4s cubic-bezier(.3,1.4,.4,1) infinite; }
@keyframes dial { 0% { transform: rotate(-70deg); } 45% { transform: rotate(28deg); } 65% { transform: rotate(12deg); } 80%,100% { transform: rotate(18deg); } }
.icon-vip { background: var(--vip-bg); color: var(--vip); }
.seal { width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 9px "Space Grotesk", sans-serif; animation: seal 4s ease-in-out infinite; }
@keyframes seal { 0%,70%,100% { transform: scale(1); opacity: .9; } 82% { transform: scale(1.12); opacity: 1; } }

/* scroll reveal: 16px + blur→sharp, once, 80ms stagger */
.reveal { opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity 550ms ease-out, transform 550ms ease-out, filter 550ms ease-out; transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ===== Audience panels (two depths) ===== */
.audiences { padding: 0 0 64px; }
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.panel h2 { font-size: 20px; }
.panel p { font-size: 13px; line-height: 2.1; color: var(--text); flex: 1; }
.panel.near { background: var(--near-bg); border: 1px solid var(--near-line); box-shadow: var(--near-shadow); }
.panel.far { background: var(--far-bg); border: 1px solid var(--far-line); }
.link-btn { color: var(--accent); font-weight: 700; font-size: 13px; }
.link-btn:hover { color: var(--accent-hi); }
.link-mail { font-size: 12.5px; color: var(--accent); align-self: flex-start; }

/* ===== About / SEO ===== */
.about { padding: 0 0 64px; }
.about-text { max-width: 820px; margin-inline: 0; display: flex; flex-direction: column; gap: 16px; }
.about h2 { font-size: 22px; }
.about p { font-size: 13.5px; line-height: 2.3; color: var(--text); }
@media (min-width: 1200px) { .about-text { margin-inline: auto 0; padding-right: max(48px, calc((100% - 1200px) / 2 + 48px)); max-width: none; } .about-text > * { max-width: 820px; } }

/* ===== Footer ===== */
.foot { border-top: 1px solid var(--line); padding: 22px 0; }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { font-size: 12px; color: var(--text); }
.foot-brand .mono { font-size: 11px; }
.disclaimer { font-size: 10.5px; color: var(--muted); max-width: 520px; line-height: 1.9; }
.foot-links { display: flex; gap: 16px; font-size: 12px; }
.foot-links a { color: var(--text); }
.foot-links a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .module-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .brand-latin { display: none; }
}
@media (max-width: 640px) {
  .star-wrap { width: min(60vw, 240px); height: min(60vw, 240px); }
  .arm .body { width: 22px; height: 76px; margin-left: -11px; top: 20px; }
  .arm .wick { height: 16px; }
  .glow { inset: -40px; }
  .panel-form { flex-direction: column; }
  .fields { grid-template-columns: 1fr; }
  .panel-form button { justify-content: center; padding: 13px; }
  .tg { display: none; }
  .foot-grid { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mod { flex-direction: row-reverse; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
  .mod .icon { flex: none; width: 48px; height: 48px; }
  .mod h3 { width: calc(100% - 62px); }
  .mod p { width: 100%; }
}

/* ===== Reduced motion: static assembled star, instant reveals ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .girih, .arm .wick, .arm .body, .core, .eyebrow, h1 .w, .lede, .waitlist { animation: none !important; opacity: 1; }
  .girih { opacity: .5; }
  .spin, .glow, .dot, .marquee, .mi-news, .mi-grow, .mi-ring, .shackle, .needle, .seal { animation: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .star-wrap { transform: none !important; opacity: 1 !important; }
}
