/* ─── Theme tokens (change colours here) ─────────────────────────────── */
:root {
  --bg: #0b0f14;
  --bg-2: #0e131a;
  --card: #111821;
  --card-2: #0f1d1c;
  --line: #1c2530;
  --line-2: #22303c;
  --text: #f2f5f7;
  --muted: #8b97a5;
  --muted-2: #6b7785;
  --green: #12d99a;
  --green-2: #7ff0c6;
  --green-soft: rgba(18, 217, 154, 0.12);
  --orange: #f7a531;
  --orange-soft: rgba(247, 165, 49, 0.12);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
main { overflow-x: clip; }
img, svg { display: block; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.g { color: var(--green-2); }
.o { color: var(--orange); }

/* ─── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 32px; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 8px 10px; }

/* ─── Buttons & badges ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 10px;
  padding: 12px 22px; font-weight: 500; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  font-family: var(--font);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #1ee3a3, #0fcf91); color: #04281c;
  box-shadow: 0 0 24px rgba(18, 217, 154, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 36px rgba(18, 217, 154, 0.4); }
.btn-ghost { background: var(--bg-2); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: #33424f; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  color: var(--green); background: var(--green-soft); border: 1px solid rgba(18, 217, 154, 0.35);
  padding: 5px 13px; border-radius: 999px;
}
.badge svg { width: 13px; height: 13px; }
.badge.orange { color: var(--orange); background: var(--orange-soft); border-color: rgba(247, 165, 49, 0.4); }
.chip { display: inline-block; font-size: 13px; font-weight: 500; background: #1b222b; color: #dfe5ea; padding: 4px 10px; border-radius: 6px; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 44px 0 72px; position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: -60px -20vw 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 85% 35%, rgba(18, 217, 154, 0.10), transparent 70%),
    linear-gradient(var(--bg), var(--bg));
}
.hero h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.035em;
  font-size: clamp(44px, 6.4vw, 76px); line-height: 0.98; margin: 28px 0 32px;
}
.hero h1 span { display: block; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 540px; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 64px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .v { font-family: var(--mono); font-size: 23px; font-weight: 600; color: var(--green-2); letter-spacing: 0.02em; }
.hero-stats .l { font-size: 13px; color: var(--muted); }

.hero-art { position: relative; }
.hero-art .screen {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(120% 90% at 70% 20%, #0f2a22, #070b0f 70%);
  aspect-ratio: 16 / 11; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 80px rgba(18,217,154,.08);
}
.hero-art .screen svg { width: 100%; height: 100%; filter: blur(0.6px) saturate(1.1); }
.verified-pill {
  position: absolute; left: -28px; bottom: -26px; display: flex; gap: 14px; align-items: center;
  background: rgba(14, 19, 26, .94); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.verified-pill .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); display: grid; place-items: center; color: var(--green); }
.verified-pill .ic svg { width: 20px; height: 20px; }
.verified-pill .t { font-size: 13px; color: var(--muted); }
.verified-pill .v { font-family: var(--mono); color: var(--green); font-weight: 600; }

/* ─── KPI strip ──────────────────────────────────────────────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in > div { padding: 24px 24px 26px; border-left: 1px solid var(--line); }
.strip-in > div:first-child { border-left: 0; }
.k-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.k-val { font-family: var(--mono); font-size: 34px; font-weight: 600; color: var(--green-2); line-height: 1.3; letter-spacing: 0.02em; }
.k-val.white { color: var(--text); }
.k-sub { font-size: 13px; color: var(--muted); }

/* ─── Sections ───────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; margin: 18px 0 18px; max-width: 760px;
}
.section .sub { color: var(--muted); max-width: 680px; margin: 0 0 40px; }

/* ─── Chart card ─────────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.chart-card { padding: 28px 32px 22px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.legend { display: flex; gap: 26px; flex-wrap: wrap; font-size: 15px; color: #c9d1d9; }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.legend b { font-family: var(--mono); font-weight: 600; margin-left: 6px; }
.chart-wrap { position: relative; height: 340px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-tip {
  position: absolute; pointer-events: none; background: #0b1117; border: 1px solid var(--line-2);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity .1s;
}
.chart-tip .d { color: var(--muted); }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; }

.tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin-top: 26px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.tile .k-label { font-size: 11px; }
.tile .tv { font-family: var(--mono); font-weight: 600; font-size: 16px; margin-top: 6px; }
.live-note { font-size: 13px; color: var(--muted); margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(18,217,154,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(18,217,154,0); } 100% { box-shadow: 0 0 0 0 rgba(18,217,154,0); } }

/* ─── Product cards (Strategies / Academy) ──────────────────────────────────── */
.product {
  display: grid; grid-template-columns: 1fr 380px; gap: 36px; padding: 40px;
  background: linear-gradient(135deg, #0f2a26 0%, #101a20 45%, #12171d 100%);
  border: 1px solid var(--line); border-radius: 20px;
}
.product.amber { background: linear-gradient(135deg, #0f2a26 0%, #101a20 50%, #1b1a17 100%); }
.product h3 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; margin: 18px 0 12px; }
.product p { color: var(--muted); margin: 0 0 22px; max-width: 640px; }
.feats { display: flex; flex-wrap: wrap; gap: 14px 30px; font-size: 15px; color: #d6dde3; }
.feats span { display: inline-flex; align-items: center; gap: 9px; }
.feats svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.side { background: rgba(10, 14, 19, 0.75); border: 1px solid var(--line); border-radius: 14px; padding: 24px; align-self: start; }
.side .big { font-family: var(--mono); font-weight: 600; font-size: 36px; color: var(--green-2); line-height: 1.2; }
.side .note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.kv { display: flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }
.kv span:first-child { color: var(--muted); }
.side .btn { margin-top: 18px; }

/* ─── Curriculum pop-up ──────────────────────────────────────────────── */
.modal { border: 1px solid var(--line-2); border-radius: 18px; padding: 0; background: var(--card); color: var(--text);
  width: min(720px, 100% - 24px); max-height: min(88vh, 900px); }
.modal::backdrop { background: rgba(3, 6, 9, 0.72); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-in { padding: 32px; position: relative; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--muted); cursor: pointer; font-size: 14px; }
.modal-x:hover { color: var(--text); }
.modal h3 { font-family: var(--display); font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 40px 4px 0; }
.modal-sub { color: var(--orange); font-size: 14px; margin-bottom: 22px; }
.modal h4 { font-size: 15px; margin: 26px 0 12px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts .fv { font-weight: 600; margin-top: 2px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.ticks li { display: flex; gap: 10px; color: #d6dde3; font-size: 14.5px; }
.ticks svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 3px; }
.mods details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--bg-2); }
.mods summary { cursor: pointer; padding: 13px 16px; font-weight: 600; list-style: none; display: flex; gap: 12px; align-items: center; }
.mods summary::-webkit-details-marker { display: none; }
.mods summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 18px; }
.mods details[open] summary::after { content: "–"; }
.mn { font-family: var(--mono); font-size: 12px; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.mods ol { margin: 0; padding: 0 16px 14px 44px; color: #c9d1d9; font-size: 14.5px; }
.mods li { padding: 3px 0; }
.modal-note { color: var(--muted); font-size: 13px; margin: 22px 0 18px; }
@media (max-width: 720px) {
  .modal-in { padding: 24px 18px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .facts > div { padding: 10px; }
  .ticks { grid-template-columns: 1fr; }
}

/* ─── About ──────────────────────────────────────────────────────────── */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.person { padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.avatar { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 600; background: var(--green-soft); color: var(--green-2); flex: none; }
.person h4 { margin: 0; font-size: 17px; }
.person .role { color: var(--green); font-size: 14px; }
.person .bio { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ─── CTA panel ──────────────────────────────────────────────────────── */
.cta-panel {
  text-align: center; padding: 72px 24px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(520px 260px at 50% 0%, rgba(18, 217, 154, 0.16), transparent 70%), var(--card);
}
.cta-panel h2 { margin: 0 auto 18px; font-size: clamp(34px, 4.8vw, 58px); }
.cta-panel p { color: var(--muted); max-width: 520px; margin: 0 auto 34px; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.f-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 32px; }
.f-grid h5 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.f-grid ul { list-style: none; margin: 0; padding: 0; }
.f-grid li { padding: 3px 0; }
.f-grid li a { color: var(--muted); }
.f-grid li a:hover { color: var(--text); }
.f-about p { color: var(--muted); margin: 14px 0 18px; }
.f-contact div { display: flex; gap: 10px; color: var(--muted); padding: 3px 0; }
.f-contact svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 4px; }
.f-legal { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 26px; font-size: 13px; color: var(--muted); }
.f-legal strong { color: var(--text); }
.f-legal a { color: var(--green); }
.reg-box { margin: 18px 0; padding: 16px 18px; border: 1px solid rgba(18, 217, 154, 0.35); background: rgba(18, 217, 154, 0.05); border-radius: 12px; color: var(--text); }
.reg-box .h { font-weight: 600; margin-bottom: 6px; }
.f-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; font-size: 13px; color: var(--muted); }

/* ─── Legal pages ────────────────────────────────────────────────────── */
.doc { padding: 64px 0 88px; max-width: 820px; }
.doc h1 { font-family: var(--display); font-size: 40px; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .upd { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc p, .doc li { color: #c9d1d9; }
.doc .todo { border: 1px dashed var(--orange); color: var(--orange); background: var(--orange-soft); padding: 14px 16px; border-radius: 10px; font-size: 14px; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
  .verified-pill { left: 12px; }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .strip-in > div:nth-child(3) { border-left: 0; }
  .strip-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .product { grid-template-columns: 1fr; padding: 28px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .menu-btn { display: block; }
  .nav .btn-sm { display: none; }
  .hero-stats { gap: 32px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .chart-card { padding: 20px 16px; }
  .chart-wrap { height: 260px; }
  .k-val { font-size: 26px; }
  .section { padding: 64px 0; }
  .f-grid { grid-template-columns: 1fr; }
  .f-bottom { flex-direction: column; gap: 6px; }
}

/* ─── About & profile pop-ups ────────────────────────────────────────── */
.modal-in { max-height: inherit; overflow-y: auto; }
.modal.modal-wide { width: min(1040px, 100% - 24px); }
.modal-lead { color: var(--muted); margin: 10px 0 24px; max-width: 640px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; }
.thead { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.tcard h4 { margin: 0; font-size: 16px; }
.texp { font-size: 13px; color: var(--orange); }
.trole { font-size: 14px; color: var(--green-2); margin-bottom: 8px; }
.tpts { margin: 0 0 14px; padding-left: 18px; color: #c9d1d9; font-size: 14px; flex: 1; }
.tpts li { padding: 2px 0; }
.tbtn { align-self: flex-start; }
.avatar.ph { object-fit: cover; padding: 0; }
.avatar-lg { width: 72px; height: 72px; font-size: 24px; border-radius: 16px; }
.phead { display: flex; gap: 18px; align-items: center; margin: 0 40px 18px 0; }
.phead h3 { margin: 0 0 4px; }
.pbio { color: #c9d1d9; margin: 0; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } .phead { flex-direction: column; align-items: flex-start; } }

/* legal page tables & fill-in markers */
.doc ul, .doc ol { padding-left: 22px; }
.doc li { padding: 3px 0; }
.doc .table-wrap { overflow-x: auto; margin: 10px 0 6px; border: 1px solid var(--line); border-radius: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #c9d1d9; vertical-align: top; }
.doc th { background: var(--bg-2); color: var(--text); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.doc .small { font-size: 13px; color: var(--muted); }
.doc .fill { background: var(--orange-soft); color: var(--orange); border: 1px dashed rgba(247,165,49,.5); border-radius: 5px; padding: 0 6px; }
.doc .todo { margin-bottom: 18px; }
