/* ---------- Tokens ---------- */
:root {
  --bg: #05060c;
  --surface: #0a0c15;
  --surface-2: #0e111c;
  --surface-3: #151a2a;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .15);
  --ink: #f5f6fb;          /* headings */
  --ink-2: #c5c9d7;        /* body */
  --muted: #8b91a5;
  --glow: #2f4bff;
  --accent: #4b63ff;
  --accent-text: #aab6ff;
  --sky: #27aae1;
  --signal: #2bd47a;
  --focus: #aab6ff;
  --frame-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13'%3E%3Cpath d='M6.5 0v13M0 6.5h13' stroke='%23ffffff' stroke-opacity='.45'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --dots: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.5px) 0 0 / 16px 16px;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
  --wrap: 1200px;
  --frame: min(1328px, calc(100vw - 32px));
  --header-h: 88px;

  --font-head: "Clash Display", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* page frame: two faint vertical guides that run the full height */
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: calc(50% - var(--frame) / 2) 0, calc(50% + var(--frame) / 2) 0;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal a, .prose a, .note a, .info-list a, .lead a, .footer-brand .contact a, .sebi-offices a, .disclaimer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal a:hover, .prose a:hover, .info-list a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .55em; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.frame-x { width: var(--frame); margin: 0 auto; }
.section { position: relative; padding: clamp(80px, 10vw, 130px) 0; }
.section--flush { padding-bottom: 0; }
.mono { font-family: var(--font-mono); font-weight: 600; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; max-width: 32em; }
.section-head--big { max-width: 960px; }
.section-head--big h2 { text-transform: uppercase; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.04; text-wrap: balance; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Full-width hairlines between home sections, with "+" where they cross the frame */
.site-header::before, main > section + section::before, .site-footer::before {
  content: ""; position: absolute; left: 50%; z-index: 2;
  width: calc(var(--frame) + 13px); height: 13px; translate: -50% -50%;
  background: var(--frame-mark) left center no-repeat, var(--frame-mark) right center no-repeat;
  pointer-events: none;
}
.site-header::before { top: 100%; }
main > section + section::before, .site-footer::before { top: 0; }
main > section + section:not([style]) { border-top: 1px solid var(--line); }
main > section[style] + section::before { display: none; }
@media (max-width: 640px) {
  body { background-image: none; }
  .site-header::before, main > section + section::before, .site-footer::before { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1.04rem;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s, color .15s, box-shadow .2s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { display: block; font-size: .62rem; font-weight: 600; opacity: .6; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.btn .stack { display: flex; flex-direction: column; line-height: 1.15; gap: 3px; text-align: left; }
/* White pill with a dark arrow disc and a soft outer ring */
.btn--primary, .btn--light {
  background: #fff padding-box; color: #05060c; padding: 10px 10px 10px 24px;
  border: 4px solid rgba(255, 255, 255, .28); background-clip: padding-box;
}
.btn--primary::after, .btn--light::after {
  content: ""; flex: none; width: 34px; height: 34px; margin-left: 8px; border-radius: 50%;
  background: #05060c var(--arrow) center / 15px no-repeat;
  transition: transform .25s ease;
}
.btn--primary:hover, .btn--light:hover { color: #05060c; box-shadow: 0 10px 44px -8px rgba(75, 99, 255, .7); }
.btn--primary:hover::after, .btn--light:hover::after { transform: rotate(-45deg); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; padding: 17px 28px; }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 12, .55);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.site-header.is-scrolled { background: rgba(5, 6, 12, .85); }
.nav { position: relative; container: nav / inline-size; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; transition: height .25s ease; max-width: calc(var(--frame) - 64px); }
.site-header.is-scrolled .nav { height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: auto; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .01em; color: #fff; line-height: 1; }
.nav-links { flex: 1; display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links > li:first-child { margin-left: auto; }
.nav-links > li:has(.a11y-toggle) { margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 1.02rem; white-space: nowrap; transition: color .15s; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; }
/* Header CTA: large outlined pill */
.nav-links .btn { background: transparent; color: #fff; border: 1px solid var(--line-strong); padding: 13px 26px; box-shadow: none; font-size: 1.04rem; }
.nav-links .btn::after { display: none; }
.nav-links .btn:hover { border-color: #fff; background: #fff; color: #05060c; box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: #fff; }
.nav-toggle svg { width: 26px; height: 26px; }

/* The header collapses when its links no longer fit at the chosen text size */
@container nav (max-width: 70em) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links > li:first-child, .nav-links > li:has(.a11y-toggle) { margin-left: 0; }
  .nav-links.is-open { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 1px solid var(--line-strong); margin-top: 14px; justify-content: center; display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(96px, 11vw, 150px)) 0 clamp(72px, 9vw, 110px); }
/* The glowing horizon */
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: calc(var(--header-h) + 40px); translate: -50% 0;
  width: max(1500px, 138vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, #05060c 93%, rgba(14, 20, 60, .9) 99%, rgba(5, 6, 12, 0) 100%);
  box-shadow:
    0 -1px 0 0 rgba(200, 210, 255, .9),
    0 -10px 40px -4px rgba(47, 75, 255, .8),
    0 -50px 160px 10px rgba(47, 75, 255, .35),
    inset 0 30px 70px -30px rgba(47, 75, 255, .55);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; left: 50%; top: -300px; translate: -50% 0;
  width: 1300px; height: 760px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 75, 255, .2), transparent 75%);
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 26px;
}
.badge svg { width: 15px; height: 15px; color: #fff; }
.hero h1 { max-width: 14em; text-wrap: balance; }
.hero .lead { margin: 8px auto 0; max-width: 32em; text-align: center; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.hero-note { text-align: center; margin: 18px 0 0; font-size: .95rem; color: var(--ink-2); }

/* Product window under the hero copy */
.window {
  position: relative; max-width: 1100px; margin: clamp(80px, 9vw, 110px) auto 0;
  padding: 12px; border-radius: 30px;
  border: 1px solid rgba(110, 130, 255, .6);
  background: rgba(8, 10, 20, .65);
  box-shadow: 0 -18px 70px -24px rgba(47, 75, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.window::before { /* light pooling on the top edge */
  content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; top: -150px; height: 260px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(47, 75, 255, .6), transparent);
  filter: blur(18px);
}
.window::after {
  content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 228, 255, .95), transparent);
}
.window-inner { display: grid; grid-template-columns: 170px minmax(0, 1fr); border-radius: 20px; border: 1px solid var(--line-strong); background: #07080f; overflow: hidden; text-align: left; }
.window-side { padding: 14px 12px; border-right: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); }
.ws-brand { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); color: #fff; font-weight: 500; margin-bottom: 26px; }
.ws-brand img { width: 16px; }
.ws-brand svg { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.ws-label { display: block; font-size: .72rem; color: var(--muted); margin: 0 0 8px 6px; }
.window-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.window-side li { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; }
.window-side li svg { width: 14px; height: 14px; color: var(--muted); }
.window-side li.is-active { background: rgba(255, 255, 255, .07); color: #fff; }
.window-main { min-width: 0; }
.window-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); }
.window-bar > span:first-child { display: flex; align-items: center; gap: 8px; }
.window-bar svg { width: 14px; height: 14px; color: var(--muted); }
.wb-actions { display: flex; gap: 6px; }
.wb-actions i { font-style: normal; font-size: .74rem; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-2); }
.window-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; margin: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }

.reg-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 4px; color: var(--ink); }
.reg-card:hover { text-decoration: none; }
.reg-card .label { font-size: .76rem; color: var(--muted); }
.reg-card .value { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: #fff; letter-spacing: -.01em; line-height: 1.2; margin: 4px 0 2px; }
.reg-card .who { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.reg-card .verify { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .74rem; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.reg-card .verify svg { width: 12px; height: 12px; color: var(--signal); }
.reg-card:hover .verify { border-color: var(--accent); color: #fff; background: rgba(75, 99, 255, .12); }

.window-chart { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015); }
.wc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .74rem; }
.wc-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.wc-tabs b, .wc-tabs i { font-style: normal; font-weight: 400; padding: 3px 9px; border-radius: 6px; color: var(--ink-2); }
.wc-tabs b { background: rgba(255, 255, 255, .08); color: #fff; }
.wc-pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-2); color: var(--ink-2); }
.wc-pill svg { width: 12px; height: 12px; }
.wc-chart { width: 100%; height: 150px; }
.wc-tip { position: absolute; left: calc(64% + 8px); top: 46px; display: grid; gap: 2px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(21, 26, 42, .92); font-size: .7rem; color: var(--muted); }
.wc-tip b { display: flex; align-items: center; gap: 6px; color: #fff; font-size: .8rem; font-weight: 500; }
.wc-tip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.wc-days { display: flex; justify-content: space-between; padding: 6px 4px 0; font-size: .7rem; color: var(--muted); }

.facts-grid { margin: 0 16px 16px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fact { padding: 12px 14px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact dt { font-size: .72rem; color: var(--muted); margin-bottom: 2px; }
.fact dd { margin: 0; font-weight: 500; color: var(--ink); font-size: .92rem; }
.fact dd.mono { font-family: var(--font-body); font-weight: 500; color: var(--accent-text); }

@media (max-width: 900px) {
  .window-inner { grid-template-columns: minmax(0, 1fr); }
  .window-side { display: none; }
  .window-grid { grid-template-columns: minmax(0, 1fr); }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .window { padding: 6px; border-radius: 22px; }
  .window-inner { border-radius: 16px; }
  .wb-actions { display: none; }
  .window-grid { margin: 10px; padding: 10px; }
  .facts-grid { margin: 0 10px 10px; grid-template-columns: 1fr; }
  .fact { border-left: 0; }
  .fact:nth-child(n+2) { border-top: 1px solid var(--line); }
  .wc-tip { display: none; }
  .wc-pill svg { display: none; }
}

/* ---------- Statement (who we are) ---------- */
.statement { overflow: hidden; isolation: isolate; text-align: center; }
.statement-mark {
  position: absolute; z-index: -1; left: 50%; top: 50%; translate: -50% -50%; width: min(620px, 110vw); height: auto; opacity: .75;
}
@media (max-width: 640px) { .statement-mark { opacity: .3; } } /* keep the copy readable over the mark */
.statement::after { content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; translate: -50% -50%; width: 760px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 75, 255, .12), transparent 75%); }
.statement-inner { display: flex; flex-direction: column; align-items: center; padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(60px, 8vw, 120px); }
.statement h2 { text-transform: uppercase; font-size: clamp(1.7rem, 3.9vw, 3.1rem); line-height: 1.28; letter-spacing: .005em; max-width: 21em; text-wrap: balance; }
.statement .lead { margin: 10px auto 34px; text-align: center; color: var(--ink-2); }

/* ---------- Feature cells ("+" at every corner) ---------- */
.section--cells { padding: clamp(64px, 8vw, 100px) 0; }
.cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cell { position: relative; display: flex; flex-direction: column; min-height: 400px; padding: 34px 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell::before {
  content: ""; position: absolute; inset: -7px; pointer-events: none;
  background: var(--frame-mark) top left no-repeat, var(--frame-mark) top right no-repeat, var(--frame-mark) bottom left no-repeat, var(--frame-mark) bottom right no-repeat;
}
.cell h3 { font-size: 1.22rem; margin-bottom: 10px; }
.cell > p { color: var(--muted); margin-bottom: 32px; max-width: 26em; }
.cell-mock { margin-top: auto; overflow: hidden; padding: 0 4px; }
.mini {
  position: relative; padding: 18px 18px 22px; margin-bottom: -10px;
  border: 1px solid rgba(110, 130, 255, .45); border-bottom: 0; border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #0d1020, #07080f);
  box-shadow: 0 -20px 50px -30px rgba(47, 75, 255, .7);
  transition: translate .5s cubic-bezier(.2, .7, .2, 1);
}
.cell:hover .mini { translate: 0 -6px; }
.mini-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mini-head > span:nth-child(2) { flex: 1; display: grid; line-height: 1.3; }
.mini-head b { color: #fff; font-weight: 500; font-size: .92rem; }
.mini-head small { color: var(--muted); font-size: .76rem; }
.mini-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); border: 1px solid var(--line-strong); color: #fff; }
.mini-icon svg { width: 17px; height: 17px; }
.mini em, .viz-head em, .plan-row em { font-style: normal; font-size: .72rem; font-weight: 500; color: var(--signal); background: rgba(43, 212, 122, .1); border: 1px solid rgba(43, 212, 122, .3); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.mini em::before, .viz-head em::before, .plan-row em::before { content: "• "; }
.mini .em--blue { color: var(--accent-text); background: rgba(75, 99, 255, .12); border-color: rgba(75, 99, 255, .45); }
.mini .em--muted { color: var(--ink-2); background: rgba(255, 255, 255, .04); border-color: var(--line-strong); }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.mini-row:last-child { border-bottom: 0; }
.mini-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.mini-levels span { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.mini-levels small { font-size: .7rem; color: var(--muted); }
.mini-levels i { height: 6px; border-radius: 9px; background: linear-gradient(90deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .08)); }
.mini-chart { width: 100%; height: auto; }
@media (max-width: 960px) {
  .cells { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cell { min-height: 0; }
}

/* ---------- Segment columns (One Plan) ---------- */
.segments { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.segment { display: flex; flex-direction: column; }
.segment + .segment { border-left: 1px solid var(--line); }
.segment:nth-child(2) { --d: .12s; } .segment:nth-child(3) { --d: .24s; }
.tp-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(32px, 4vw, 52px) clamp(20px, 3vw, 40px); }
.tp-copy h3 { font-family: var(--font-head); font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 14px; }
.tp-copy p { color: var(--muted); font-size: 1.04rem; max-width: 26em; }
.tp-visual, .split-visual, .hub-panel { background: var(--dots); }
.tp-visual { display: grid; place-items: center; padding: 40px clamp(16px, 2.6vw, 32px); border-top: 1px solid var(--line); }
.viz-card {
  width: min(100%, 500px); padding: 22px; border-radius: 18px;
  border: 1px solid rgba(110, 130, 255, .5); background: linear-gradient(180deg, #0d1020, #07080f);
  box-shadow: 0 30px 80px -30px rgba(47, 75, 255, .55);
}
.viz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.viz-head > span:nth-child(2) { flex: 1; display: grid; line-height: 1.3; }
.viz-head b { color: #fff; font-weight: 500; }
.viz-head small { color: var(--muted); font-size: .8rem; }
.viz-chart { width: 100%; height: auto; }
.js .segments:not(.in-view) :is(.tp-copy > *, .viz-card) { opacity: 0; }
.segments.in-view .tp-copy > * { animation: rise .6s var(--d, 0s) cubic-bezier(.2, .7, .2, 1) both; }
.segments.in-view .tp-copy > :nth-child(2) { animation-delay: calc(var(--d, 0s) + .06s); }
.segments.in-view .tp-copy > :nth-child(3) { animation-delay: calc(var(--d, 0s) + .12s); }
.segments.in-view .viz-card { animation: card-in .7s calc(var(--d, 0s) + .15s) cubic-bezier(.2, .7, .2, 1) both; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.tags li { font-size: .8rem; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-strong); padding: 4px 12px; border-radius: 999px; }

@media (max-width: 860px) {
  .tp-copy { padding: 28px 18px; }
  .tp-copy p { font-size: .95rem; }
  .tp-visual { padding: 28px 14px; }
  .viz-card { padding: 16px; }
  .viz-head small { display: none; } /* the tags above already say this */
}

@media (max-width: 640px) { /* phones: one segment per row */
  .segments { grid-template-columns: minmax(0, 1fr); }
  .segment + .segment { border-left: 0; border-top: 1px solid var(--line); }
  .tp-copy { padding: 28px 20px; }
  .tp-visual { padding: 24px 20px; }
}

/* ---------- How it works: numbered steps beside fanned cards ---------- */
.how-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.split-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(40px, 5vw, 64px) clamp(20px, 4.4vw, 56px); }
.split-visual { position: relative; display: grid; place-items: center; min-height: 500px; padding: 40px 16px; border-left: 1px solid var(--line); overflow: hidden; }
.steps { list-style: none; padding: 0; margin: 0 0 44px; counter-reset: step; display: grid; gap: 30px; }
.step { position: relative; padding-left: 68px; min-height: 42px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -4px; width: 42px; height: 42px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: #fff;
  /* bracket corners top-left and bottom-right */
  background:
    linear-gradient(#fff, #fff) top left / 9px 1.5px no-repeat, linear-gradient(#fff, #fff) top left / 1.5px 9px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 9px 1.5px no-repeat, linear-gradient(#fff, #fff) bottom right / 1.5px 9px no-repeat,
    rgba(255, 255, 255, .03);
  transition: background .3s, color .3s;
}
.step h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; max-width: 26em; }
.step.is-lit::before, .step:hover::before { background-color: #fff; color: #05060c; }

.fan { position: relative; width: min(100%, 560px); height: 440px; }
.fan-phone { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: 200px; }
.fan-phone::before { content: ""; position: absolute; inset: 8% -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 75, 255, .55), transparent 72%); filter: blur(12px); z-index: -1; }
.phone { position: relative; width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); transition: transform .4s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.fan-card {
  position: absolute; top: 50%; width: 220px; padding: 16px;
  border: 1px solid rgba(110, 130, 255, .45); border-radius: 16px;
  background: linear-gradient(180deg, #0f1324, #07080f);
  box-shadow: var(--shadow-lg);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s;
}
.fan-card--l { left: 0; transform: translateY(-50%) perspective(900px) rotateY(22deg) rotate(-6deg); }
.fan-card--r { right: 0; transform: translateY(-46%) perspective(900px) rotateY(-22deg) rotate(6deg); }
.plan-card-head { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; font-size: .86rem; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.plan-card-head img { width: 18px; }
.plan-card-head svg { width: 18px; height: 18px; color: var(--accent-text); }
.plan-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 0; }
.plan-row > span { flex: 1; display: grid; line-height: 1.3; }
.plan-row b { color: var(--ink); font-weight: 500; font-size: .86rem; }
.plan-row small { color: var(--muted); font-size: .72rem; }
.plan-row em { font-size: .64rem; padding: 1px 7px; }
.report-card { display: grid; gap: 10px; }
.report-card svg:not(.plan-card-head svg) { width: 100%; height: auto; margin: 4px 0; }
.rc-line { height: 7px; border-radius: 9px; background: linear-gradient(90deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06)); }
.rc-line--s { width: 60%; }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  background: rgba(14, 17, 28, .9); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  font-size: .78rem; font-weight: 500; white-space: nowrap;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.chip--a { left: 18%; top: 6%; }
.chip--b { right: 14%; bottom: 5%; }
.chip--b i { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

@media (max-width: 960px) {
  .how-split { grid-template-columns: minmax(0, 1fr); }
  .split-visual { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .fan { height: 400px; }
  .fan-card { width: 150px; padding: 12px; }
  .fan-card--l { left: 0; } .fan-card--r { right: 0; }
  .fan-phone { width: 170px; }
  .chip--a { left: 0; } .chip--b { right: 0; }
}

/* ---------- Investor resources (node hub) ---------- */
.hub-panel { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 56px); }
.hub { display: grid; grid-template-columns: minmax(0, 1fr) 270px minmax(0, 1fr); gap: 60px; align-items: center; max-width: 1120px; margin: 0 auto; }
.resources { display: grid; gap: 14px; }
.resource {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 14px;
  background: rgba(9, 11, 20, .92); border: 1px solid rgba(110, 130, 255, .35);
  color: var(--ink); font-weight: 500; font-size: .98rem;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.resource:hover { text-decoration: none; border-color: var(--accent); background: rgba(20, 26, 52, .95); color: #fff; box-shadow: 0 0 30px -8px rgba(75, 99, 255, .7); }
.resource > svg { width: 16px; height: 16px; margin-left: auto; color: var(--muted); flex: none; transition: transform .25s ease, color .2s; }
.resource:hover > svg { transform: translate(3px, -3px); color: var(--accent-text); }
.ri { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); border: 1px solid var(--line-strong); }
.ri svg { width: 16px; height: 16px; color: #fff; }
/* connector lines toward the core */
.resource::after {
  content: ""; position: absolute; top: 50%; width: 60px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #c8d2ff, transparent) -60% 0 / 40% 100% no-repeat, linear-gradient(90deg, var(--line-strong), rgba(75, 99, 255, .7));
  animation: flow 2.6s linear infinite; animation-delay: var(--d, 0s);
}
.resources--left .resource::after { left: 100%; }
.resources--right .resource::after { right: 100%; background: linear-gradient(90deg, transparent, #c8d2ff, transparent) -60% 0 / 40% 100% no-repeat, linear-gradient(90deg, rgba(75, 99, 255, .7), var(--line-strong)); animation-direction: reverse; }
.resource:nth-child(2) { --d: -.65s; } .resource:nth-child(3) { --d: -1.3s; } .resource:nth-child(4) { --d: -1.95s; }
.hub-core {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(180deg, #10142a, #080a14);
  border: 1px solid rgba(110, 130, 255, .75);
  box-shadow: 0 0 0 5px rgba(47, 75, 255, .08), 0 0 70px -10px rgba(47, 75, 255, .75);
}
.hc-head { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .9rem; font-weight: 500; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.hc-head img { width: 22px; }
.hub-core .label { font-size: .76rem; color: var(--muted); }
.hub-core .value { font-weight: 500; font-size: 1.5rem; color: #fff; letter-spacing: -.01em; }
.hub-core svg { width: 100%; height: auto; margin-top: 10px; }
@media (max-width: 960px) {
  .hub { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 520px; }
  .hub-core { display: none; }
  .resource::after { display: none; }
}

/* ---------- Closing call to action ---------- */
.section--cta { overflow: hidden; isolation: isolate; padding: clamp(100px, 12vw, 170px) 0 clamp(150px, 18vw, 240px); }
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px;
  padding: clamp(56px, 9vw, 110px) clamp(24px, 5vw, 64px) clamp(80px, 11vw, 140px);
  border: 1px solid var(--line-strong); border-radius: 28px; background: var(--dots), var(--surface);
}
.cta-band::before { /* horizon glow rising from the bottom */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 80%; translate: -50% 0;
  width: 220%; aspect-ratio: 1; border-radius: 50%; background: var(--bg);
  box-shadow: 0 -1px 0 rgba(200, 210, 255, .85), 0 -14px 60px -6px rgba(47, 75, 255, .8), 0 -50px 120px 0 rgba(47, 75, 255, .28);
}
.cta-band .mark-bg { display: none; }
/* On the home page the closing band opens out to the full width */
.section--cta .cta-band { overflow: visible; padding: 0; border: 0; border-radius: 0; background: none; gap: 34px; }
.section--cta .cta-band::before { display: none; }
.section--cta::after { /* horizon rising from the bottom edge */
  content: ""; position: absolute; z-index: -1; left: 50%; top: calc(100% - 120px); translate: -50% 0;
  width: max(1500px, 138vw); aspect-ratio: 1; border-radius: 50%; background: var(--bg);
  box-shadow: 0 -1px 0 rgba(200, 210, 255, .85), 0 -12px 50px -6px rgba(47, 75, 255, .8), 0 -60px 160px 0 rgba(47, 75, 255, .3);
}
.cta-band h2 { text-transform: uppercase; margin-bottom: .35em; font-size: clamp(2.1rem, 5.6vw, 4.4rem); line-height: 1.04; }
.cta-band p { color: var(--ink-2); margin: 0 auto; max-width: 30em; font-size: 1.1rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(80px, 10vw, 128px)) 0 clamp(64px, 8vw, 100px); border-bottom: 1px solid var(--line); }
/* inner pages set padding-top:0 inline on the section after the title band */
.page-hero + .section { padding-top: clamp(48px, 6vw, 72px) !important; }
.page-hero::before { /* horizon arc, as on the home page */
  content: ""; position: absolute; z-index: -1; left: 50%; top: calc(var(--header-h) + 28px); translate: -50% 0;
  width: max(1500px, 150vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, #05060c 94%, rgba(14, 20, 60, .9) 99%, rgba(5, 6, 12, 0) 100%);
  box-shadow: 0 -1px 0 0 rgba(200, 210, 255, .8), 0 -10px 40px -4px rgba(47, 75, 255, .7), 0 -50px 140px 10px rgba(47, 75, 255, .3), inset 0 30px 70px -30px rgba(47, 75, 255, .5);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -2; left: 50%; top: -300px; translate: -50% 0;
  width: 1200px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 75, 255, .2), transparent 75%);
}
.page-hero .wrap { display: flex; flex-direction: column; align-items: center; }
.page-hero h1 { max-width: 16em; text-wrap: balance; font-size: clamp(2.2rem, 4.8vw, 4rem); }
.page-hero .lead { margin: 4px auto 0; text-align: center; }
.page-hero .meta { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.page-hero .mono { color: var(--accent-text); }
.page-hero .hero-cta { justify-content: center; margin-top: 32px; }
.page-hero .badge, .page-hero .eyebrow { margin-bottom: 22px; }
.prose p { font-size: 1.08rem; }
.prose strong { color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.info-card { background: linear-gradient(180deg, #0d1020, #07080f); border: 1px solid rgba(110, 130, 255, .4); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 30px 80px -40px rgba(47, 75, 255, .6); }
.info-card h2 { font-family: var(--font-body); font-size: 1.15rem; margin-bottom: 20px; }
.info-list { margin: 0; display: grid; gap: 16px; }
.info-list div { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.info-list div:last-child { border: 0; padding-bottom: 0; }
.info-list dt { font-size: .78rem; color: var(--muted); }
.info-list dd { margin: 0; color: var(--ink); font-weight: 500; }
.note {
  border: 1px solid rgba(110, 130, 255, .35); border-left: 3px solid var(--accent);
  background: rgba(47, 75, 255, .07);
  padding: 20px 24px; border-radius: var(--radius);
  color: var(--ink-2);
}
.note p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--bg); color: var(--muted); font-size: .95rem; padding-top: 72px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: #fff; }
.site-footer h2 { color: var(--muted); font-family: var(--font-body); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.brand--footer { margin-bottom: 22px; }
.brand--footer img { width: 34px; }
.footer-brand address { font-style: normal; line-height: 1.7; max-width: 30em; }
.footer-brand .contact { margin-top: 16px; display: grid; gap: 4px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 1.02rem; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink-2); transition: background .15s, color .15s, border-color .15s; }
.socials a:hover { background: #fff; color: #05060c; border-color: #fff; }
.socials svg { width: 15px; height: 15px; }

.sebi-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.7; }
.sebi-offices strong { display: block; color: var(--ink); font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.disclaimer { margin: 0; padding: 32px 0; font-size: .84rem; line-height: 1.7; color: #7d8396; border-top: 1px solid var(--line); }
.disclaimer strong { color: var(--ink-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px 0 34px; font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); }

@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .sebi-offices { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal-nav { position: sticky; top: 92px; }
.legal-nav h2 { font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.legal-nav ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 8px 14px; border-radius: 10px; border: 1px solid transparent; color: var(--ink-2); font-size: .9rem; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.legal-nav a:hover { background: var(--surface-2); color: #fff; text-decoration: none; }
.legal-nav a[aria-current="page"] { background: var(--surface-2); border-color: var(--line-strong); color: #fff; }
.legal { max-width: 72ch; min-width: 0; }
.legal h2 { font-size: 1.25rem; margin: 2.2em 0 .7em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1rem; margin: 1.6em 0 .6em; }
.legal p, .legal li { font-size: 1rem; line-height: 1.8; }
.legal strong, .legal b { color: var(--ink); }
.legal ul, .legal ol { margin: 0 0 1.2em; padding-left: 1.3em; display: grid; gap: 8px; }
.legal li::marker { color: var(--accent-text); font-weight: 600; }
.legal a { overflow-wrap: anywhere; }
.legal .clause b { margin-right: 4px; }
.legal ol.steps-list { list-style: none; padding: 0; counter-reset: s; gap: 12px; }
.legal ol.steps-list li { counter-increment: s; position: relative; padding: 18px 22px 18px 66px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.legal ol.steps-list li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 6px; background: #fff; color: #05060a; font-family: var(--font-mono); font-weight: 600; font-size: .82rem; display: grid; place-items: center; }
.legal .note { margin: 0 0 1.2em; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-nav { position: static; min-width: 0; }
  .legal-nav h2 { display: none; }
  /* relative: keeps the absolutely positioned sr-only labels inside the scrolling row */
  .legal-nav ul { position: relative; display: flex; gap: 8px; overflow-x: auto; margin: 0 0 8px; padding-bottom: 6px; scrollbar-width: none; }
  .legal-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
  .legal-nav a[aria-current="page"] { background: #fff; color: #05060a; border-color: #fff; }
}

/* ---------- Motion ---------- */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes breathe { 50% { opacity: .72; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes word-in { from { opacity: 0; translate: 0 .45em; filter: blur(10px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes arc-rise { from { opacity: 0; transform: translateY(180px); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 50% { opacity: .35; } }
@keyframes star-drift { to { background-position: 0 -480px; } }
@keyframes tilt-in { from { transform: perspective(1400px) rotateX(26deg) scale(.92); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes ping { from { scale: 1; opacity: .9; } to { scale: 4.5; opacity: 0; } }
@keyframes flow { from { background-position: -60% 0, 0 0; } to { background-position: 160% 0, 0 0; } }
@keyframes ring { from { opacity: .8; scale: 1; } to { opacity: 0; scale: 1.18; } }
@keyframes sheen { 0%, 72% { translate: -130% 0; } 100% { translate: 130% 0; } }
@keyframes mark-glow { 50% { opacity: .95; filter: drop-shadow(0 0 26px rgba(47, 75, 255, .7)); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes card-in { from { opacity: 0; translate: 0 26px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes cursor { 0%, 100% { translate: 0 0; } 50% { translate: -40px 0; } }

/* Hero copy rises in; the horizon lifts into place and breathes */
.hero-inner > *, .page-hero .wrap > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
.hero-inner > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
.hero-inner > :nth-child(4), .page-hero .wrap > :nth-child(4) { animation-delay: .24s; }
.hero::before, .page-hero::before { animation: arc-rise 1.8s cubic-bezier(.2, .7, .2, 1) both, breathe 7s 1.8s ease-in-out infinite; }
.hero-cta, .hero-note { animation: rise .8s .5s cubic-bezier(.2, .7, .2, 1) both; }
.window { animation: rise 1.1s .3s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 .w { display: inline-block; animation: word-in .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.15s + var(--i) * 70ms); }

/* Drifting star field under the hero copy, and a light that follows the cursor */
.stars, .stars::after {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 24px 40px, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1px 1px at 130px 90px, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1.5px 1.5px at 200px 210px, rgba(170, 182, 255, .9), transparent),
    radial-gradient(1px 1px at 70px 170px, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1px 1px at 180px 20px, rgba(255, 255, 255, .6), transparent);
  background-size: 240px 240px;
  -webkit-mask-image: radial-gradient(40% 22% at 50% 52%, #000, transparent);
  mask-image: radial-gradient(40% 22% at 50% 52%, #000, transparent);
  animation: twinkle 5s ease-in-out infinite, star-drift 90s linear infinite;
}
.stars::after { content: ""; background-size: 380px 380px; animation-delay: -2.5s, -40s; opacity: .7; }
.hero-spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130px circle at var(--sx, 50%) var(--sy, 25%), rgba(47, 75, 255, .13), transparent 65%);
}

/* Window chart draws in, the cursor dot pulses */
.wc-line { stroke-dasharray: 1; animation: draw 1.8s .9s cubic-bezier(.4, 0, .2, 1) both; }
.wc-area, .wc-future, .wc-cursor, .wc-dot, .wc-tip { animation: fade .8s 2.2s both; }
.wc-dot { transform-box: fill-box; transform-origin: center; }

/* Statement: the mark draws itself, words light up as you scroll */
.statement-mark path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s cubic-bezier(.4, 0, .2, 1), fill-opacity 1.2s 1.6s; }
.statement-mark path:nth-child(2) { transition-delay: .35s, 1.9s; }
.statement-mark path:nth-child(3) { transition-delay: .7s, 2.2s; }
.js .statement:not(.in-view) .statement-mark path { stroke-dashoffset: 1; fill-opacity: 0; }
.statement.in-view .statement-mark { animation: mark-glow 5s 2.4s ease-in-out infinite; }
.statement h2 .w { transition: opacity .25s linear; }

/* Feature cells: mock cards slide up when the row arrives */
.mini { transition: translate .7s cubic-bezier(.2, .7, .2, 1), opacity .7s; }
.cells > li:nth-child(2) .mini { transition-delay: .12s; } .cells > li:nth-child(3) .mini { transition-delay: .24s; }
.js .cell:not(.in-view) .mini { translate: 0 60px; opacity: 0; }
.cell.in-view:hover .mini { transition-delay: 0s; }

/* Charts draw in when their card is on screen */
.mini-chart .draw, .viz-chart .draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1) .25s; }
.viz-chart .draw--late { transition-delay: .7s; }
.js .cell:not(.in-view) .mini-chart .draw { stroke-dashoffset: 1; }
.segments.in-view .viz-chart .draw { animation: draw 1.6s .25s cubic-bezier(.4, 0, .2, 1) both; }
.segments.in-view .viz-chart .draw--late { animation-delay: .7s; }
.viz-chart rect, .viz-chart .area { transform-box: fill-box; transform-origin: bottom; }
.segments.in-view .viz-chart rect { animation: bar-grow .7s cubic-bezier(.2, .7, .2, 1) both; }
.segments.in-view .viz-chart rect:nth-child(2) { animation-delay: 80ms; } .segments.in-view .viz-chart rect:nth-child(3) { animation-delay: 160ms; }
.segments.in-view .viz-chart rect:nth-child(4) { animation-delay: 240ms; } .segments.in-view .viz-chart rect:nth-child(5) { animation-delay: 320ms; }
.segments.in-view .viz-chart rect:nth-child(6) { animation-delay: 400ms; } .segments.in-view .viz-chart rect:nth-child(7) { animation-delay: 480ms; }
.segments.in-view .viz-chart .area { animation: fade 1s .8s both; }
@keyframes bar-grow { from { scale: 1 0; } }
.viz-chart .ping { transform-box: fill-box; transform-origin: center; animation: ping 2.2s ease-out infinite; }

/* How it works: numbers light up in turn, side cards fan out */
.steps.in-view .step::before { animation: step-on .45s both; }
.steps.in-view .step:nth-child(2)::before { animation-delay: .6s; }
.steps.in-view .step:nth-child(3)::before { animation-delay: 1.2s; }
@keyframes step-on { to { background-color: #fff; color: #05060c; } }
.js .fan:not(.in-view) .fan-card--l { transform: translate(60%, -50%) rotate(0); opacity: 0; }
.js .fan:not(.in-view) .fan-card--r { transform: translate(-60%, -50%) rotate(0); opacity: 0; }
.fan-card--r { transition-delay: .12s; }
.chip--a { animation: bob 5s ease-in-out infinite; }
.chip--b { animation: bob 6s 1.2s ease-in-out infinite; }

/* Investor hub: the core sends out rings */
.hub-core::before, .hub-core::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgba(110, 130, 255, .7); pointer-events: none; animation: ring 2.8s ease-out infinite; }
.hub-core::after { animation-delay: 1.4s; }

/* Closing horizons rise into view */
.section--cta::after, .cta-band::before { transition: transform 1.8s cubic-bezier(.2, .7, .2, 1), opacity 1.2s; }
.js .section--cta:not(.in-view)::after, .js .cta-band:not(.in-view)::before { transform: translateY(160px); opacity: 0; }

/* Buttons: an occasional light sweep across the white pills */
.btn--light, .btn--primary { overflow: hidden; }
.btn--light::before, .btn--primary::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(75, 99, 255, .28) 50%, transparent 65%);
  animation: sheen 6s ease-in-out infinite;
}
.nav-links .btn::before { display: none; }

/* Menu links: underline slides in */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; scale: 0 1; transform-origin: left; transition: scale .3s ease; }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { scale: 1 1; }
@container nav (max-width: 70em) { .nav-links a:not(.btn)::after { display: none; } }

/* Scroll-linked effects (browsers without support simply show everything) */
@supports (animation-timeline: view()) {
  .site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, var(--glow), var(--accent-text)); transform-origin: 0 50%;
    animation: grow linear both; animation-timeline: scroll(root);
  }
  .section-head, .statement-inner > *, .cell h3, .cell > p, .step, .resource, .hub-core,
  .cta-band > div, .info-card, .prose > *, .legal > * {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
  .cells > li:nth-child(2) > *, .step:nth-child(2) { animation-range: entry 8% entry 90%; }
  .cells > li:nth-child(3) > *, .step:nth-child(3) { animation-range: entry 16% cover 22%; }
  /* the product window tilts up into place as it scrolls in */
  .window { animation: tilt-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
}

html[data-contrast="high"] .stars, html[data-contrast="high"] .hero-spot,
html[data-contrast="high"] .hub-core::before, html[data-contrast="high"] .hub-core::after { display: none; }

/* ---------- Performance records (rendered by performance.js) ---------- */
.perf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 40px; }
.perf-head .section-head { margin: 0; }
.perf { min-height: 200px; }
/* relative: keeps the absolutely positioned sr-only link labels inside the scroll box */
.perf-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.perf-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.perf-table thead th { position: sticky; top: 0; text-align: left; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 16px 14px; border-bottom: 1px solid var(--line-strong); background: var(--surface-2); white-space: nowrap; }
.perf-table tbody th, .perf-table td { text-align: left; font-weight: 400; vertical-align: top; padding: 16px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.perf-table tbody tr:last-child > * { border-bottom: 0; }
.perf-table tbody tr { transition: background .15s; }
.perf-table tbody tr:hover { background: rgba(77, 123, 255, .05); }
.perf-scrip { display: block; font-family: var(--font-mono); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.perf-company { display: block; font-size: .8rem; color: var(--muted); }
.perf-action { display: inline-block; font-size: .74rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-strong); padding: 2px 10px; border-radius: 999px; }
.perf-action--buy { color: var(--signal); border-color: rgba(43, 212, 122, .35); background: rgba(43, 212, 122, .08); }
.perf-action--sell { color: #ff9b9b; border-color: rgba(255, 123, 123, .4); background: rgba(255, 123, 123, .08); }
.perf-held { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.perf-strategy { display: block; color: var(--ink); font-weight: 600; }
.perf-legs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-2); white-space: nowrap; }
.perf-side { display: inline-block; min-width: 34px; font-weight: 600; }
.perf-side--buy { color: var(--signal); }
.perf-side--sell { color: #ff9b9b; }
.perf-notes { display: block; margin-top: 6px; font-size: .76rem; color: var(--muted); }
/* Options rows carry legs and notes, so that table runs a little tighter to fit beside the rationale */
.perf-table--options { font-size: .86rem; }
.perf-table--options tbody th, .perf-table--options td, .perf-table--options thead th { padding-left: 11px; padding-right: 11px; }
.perf-table--options .perf-why-cell { min-width: 150px; max-width: 220px; }
.perf-table--options .perf-call { min-width: 0; max-width: 230px; }

/* Segment tabs */
.perf-tabs { display: flex; gap: 0; margin-bottom: 24px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.perf-tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
  position: relative; background: transparent; border: 0; border-left: 1px solid var(--line); padding: 16px 28px; min-height: 44px;
  font-size: 1.02rem; color: var(--muted); transition: color .2s;
}
.perf-tab:first-child { border-left: 0; padding-left: 4px; }
.perf-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: #fff; scale: 0 1; transform-origin: left; transition: scale .35s cubic-bezier(.2, .7, .2, 1); }
.perf-tab:hover { color: #fff; }
.perf-tab[aria-selected="true"] { color: #fff; }
.perf-tab[aria-selected="true"]::after { scale: 1 1; }
.perf-count { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; opacity: .65; }
.perf-count:empty { display: none; }
.perf-panel:focus-visible { outline-offset: 6px; }
.perf-price { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; }
.perf-table time { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.perf-table time small { margin-left: 6px; opacity: .75; }
.perf-pnl { white-space: nowrap; }
.perf-pct { display: block; font-weight: 700; font-size: 1rem; }
.perf-pnl small { font-size: .78rem; color: var(--muted); }
.perf-pnl--up .perf-pct { color: var(--signal); }
.perf-pnl--down .perf-pct { color: #ff7b7b; }
.perf-pnl--flat .perf-pct { color: var(--ink-2); }
.perf-status { font-size: .74rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-strong); padding: 2px 10px; border-radius: 999px; }
.perf-status--open { color: var(--accent-text); border-color: rgba(77, 123, 255, .5); }
.perf-why-cell { min-width: 200px; max-width: 280px; }
.perf-why summary { cursor: pointer; color: var(--ink); font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.perf-why summary::-webkit-details-marker { display: none; }
.perf-why summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-text); }
.perf-why[open] summary::after { content: "–"; }
.perf-why p { margin: 8px 0 0; font-size: .86rem; line-height: 1.6; color: var(--muted); }
.perf-chart { white-space: nowrap; }
.perf-chart::after { content: " ↗"; }

.perf-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 16px; }
.perf-search {
  flex: 1 1 240px; max-width: 340px; font: inherit; font-size: .92rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 18px;
}
.perf-search::placeholder { color: var(--muted); }
.perf-search:focus-visible { outline-offset: 2px; }
.perf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.perf-chips button {
  font: inherit; font-size: .84rem; font-weight: 500; color: var(--ink-2); cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; min-height: 36px;
  transition: background .15s, color .15s, border-color .15s;
}
.perf-chips button:hover { border-color: #fff; color: #fff; }
.perf-chips button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #05060a; }
.perf-summary { font-size: .86rem; color: var(--muted); margin: 0 0 14px; }
.perf-more { margin-top: 20px; }
.perf-empty { padding: 40px 20px; margin: 0; text-align: center; color: var(--muted); }
.perf-foot { display: grid; gap: 16px; margin-top: 40px; }
.perf-foot .note p { font-size: .9rem; }
.perf-source { justify-self: start; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.perf-source::after { content: " ↗"; }
.perf-disclaimer { margin: 16px 0 0; font-size: .8rem; color: var(--muted); }

.perf-loading { display: grid; gap: 10px; }
.perf-skel { height: 56px; border-radius: 12px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.perf-error { padding: 32px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.perf-error p { color: var(--ink-2); }

/* Phones: each row becomes a card with labelled values */
@media (max-width: 760px) {
  .perf-scroll { border: 0; background: none; overflow: visible; }
  .perf-table, .perf-table tbody, .perf-table tr, .perf-table th, .perf-table td { display: block; }
  .perf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .perf-table tbody { display: grid; gap: 12px; }
  .perf-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .perf-table tbody th, .perf-table td { padding: 0; border: 0; }
  .perf-table tbody th { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .perf-table td::before { content: attr(data-label); display: block; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .perf-why-cell { grid-column: 1 / -1; max-width: none; }
  .perf-company { text-align: right; }
  .perf-call { grid-column: 1 / -1; }
  .perf-legs { white-space: normal; }
}

html[data-contrast="high"] .perf-pnl--up .perf-pct, html[data-contrast="high"] .perf-pnl--down .perf-pct { color: #fff; text-decoration: underline; }
html[data-contrast="high"] .perf-scroll, html[data-contrast="high"] .perf-table tbody tr { border-color: #fff; background: #000; }

/* ---------- Accessibility options ---------- */
html[data-text="1"] { font-size: 112.5%; }
html[data-text="2"] { font-size: 125%; }
html[data-text="3"] { font-size: 140%; }

.a11y-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 500; font-size: .9rem; color: var(--ink-2);
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
}
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { border-color: #fff; color: #fff; }
.a11y-toggle svg { width: 17px; height: 17px; }

.a11y-panel {
  position: absolute; top: calc(100% + 8px); right: max(24px, env(safe-area-inset-right, 0px));
  width: min(340px, calc(100vw - 32px)); z-index: 60;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px;
}
.a11y-panel h2 { font-family: var(--font-body); font-size: 1.05rem; margin: 0 0 4px; }
.a11y-panel > p { font-size: .86rem; color: var(--muted); margin: 0 0 16px; }
.a11y-group { border: 0; margin: 0 0 16px; padding: 0; }
.a11y-group legend { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.a11y-options { display: flex; flex-wrap: wrap; gap: 8px; }
.a11y-options button {
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 8px 12px; min-width: 44px; min-height: 44px; cursor: pointer;
}
.a11y-options button:hover { border-color: #fff; }
.a11y-options button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #05060a; }
.a11y-options button[aria-pressed="true"]::before { content: "✓ "; }
.a11y-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .88rem; }
.a11y-footer a { text-decoration: underline; text-underline-offset: 3px; }
.a11y-footer button { font: inherit; font-size: .88rem; background: none; border: 0; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 0; }

@container nav (max-width: 64em) {
  .nav-links .a11y-toggle { width: 100%; justify-content: flex-start; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
  .a11y-panel { top: calc(100% + 8px); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: auto; max-height: calc(100vh - 110px); overflow-y: auto; }
}

/* High contrast: pure black and white, every link underlined, glows removed */
html[data-contrast="high"] {
  --bg: #000; --surface: #000; --surface-2: #000; --surface-3: #000;
  --line: rgba(255, 255, 255, .6); --line-strong: #fff;
  --ink: #fff; --ink-2: #fff; --muted: #fff; --accent-text: #ffe066; --focus: #ffd166; --dots: none;
}
html[data-contrast="high"] a:not(.btn):not(.brand):not(.resource) { text-decoration: underline; text-underline-offset: 3px; }
html[data-contrast="high"] :is(.hero, .page-hero, .statement, .cta-band, .window, .section--cta)::before,
html[data-contrast="high"] :is(.hero, .page-hero, .statement, .window, .section--cta)::after,
html[data-contrast="high"] .statement-mark, html[data-contrast="high"] .fan-phone::before, html[data-contrast="high"] .mark-bg { display: none; }
html[data-contrast="high"] body { background-image: none; }
html[data-contrast="high"] :is(.tp-visual, .split-visual, .hub-panel, .cta-band) { background: #000; }
html[data-contrast="high"] :is(.window, .window-inner, .hub-core, .fan-card, .mini, .viz-card, .info-card) { box-shadow: none; background: #000; border-color: #fff; }
html[data-contrast="high"] .resource { border: 2px solid #fff; background: #000; }
html[data-contrast="high"] .perf-tab[aria-selected="true"] { text-decoration: underline; text-underline-offset: 6px; }
html[data-contrast="high"] .site-header { background: #000; border-bottom: 2px solid #fff; }

/* Stop animations (WCAG 2.2.2) — also applied automatically for reduced-motion users */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
