/* ==========================================================================
   Advanced Financial Technologies — site styles
   ========================================================================== */

:root {
  --bg: #060a13;
  --bg-2: #0a1020;
  --surface: #0e1628;
  --surface-2: #131d33;
  --surface-3: #1a2540;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --text: #e8edf7;
  --text-2: #b4bfd3;
  --muted: #8391ab;
  --accent: #2ee6a6;
  --accent-hover: #5bf0bd;
  --accent-ink: #04261a;
  --accent-2: #5b8cff;
  --warn: #f5b544;
  --up: #2ee6a6;
  --down: #ff6b7a;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --container: 1200px;
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
}
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(46, 230, 166, 0.3); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .container { padding-inline: 16px; } }

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-grad {
  background: linear-gradient(92deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.mt-0 { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px;
  font: 600 15px/1 var(--font-body);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px -10px rgba(46, 230, 166, 0.6); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(148, 163, 184, 0.4); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 19, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(6, 10, 19, 0.9); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none !important; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 600 15px/1.15 var(--font-head); letter-spacing: -0.01em; }
.brand-sub { font: 600 9.5px/1.3 var(--font-body); letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  position: relative; color: var(--text-2); padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; text-decoration: none !important;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 14px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03);
  color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-open .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; margin: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .nav-link { padding: 14px 12px; font-size: 16px; }
  .nav-link[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .nav-actions { margin: 12px 0 0; flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; height: 48px; }
}
@media (max-width: 380px) { .brand-sub { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 12% 0%, rgba(46, 230, 166, 0.14), transparent 62%),
    radial-gradient(720px 520px at 88% 12%, rgba(91, 140, 255, 0.17), transparent 62%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.02fr; gap: 56px; align-items: center; }
@media (max-width: 1060px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-pill {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(46, 230, 166, 0.3); background: rgba(46, 230, 166, 0.08);
  letter-spacing: 0.08em;
}
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.18); }

.hero h1 { font-size: clamp(2.45rem, 5.4vw, 4.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: 22px 0 22px; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--text-2); max-width: 58ch; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-actions.center { justify-content: center; }
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 0; list-style: none; color: var(--text-2); font-size: 14px; }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row .icon { width: 18px; height: 18px; color: var(--accent); }

/* ---------- App window mock ---------- */
.app-window {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: 20px; overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.app-window::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(46, 230, 166, 0.35), transparent 30%, transparent 70%, rgba(91, 140, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.app-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3550; }
.app-pair { font: 500 13px/1 var(--font-mono); color: var(--text); }
.app-bar .spacer { flex: 1; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
.app-body { padding: 14px; display: grid; gap: 12px; }
.chart-box { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); border-radius: 12px; padding: 8px 6px 4px; }
.chart-box svg { width: 100%; height: auto; }
.ema-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s 0.3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.insight-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
@media (max-width: 560px) { .insight-grid { grid-template-columns: 1fr; } }
.insight { background: var(--surface-3); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.insight-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.insight-head .ai { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; }
.insight-head .ai .icon { width: 15px; height: 15px; color: var(--accent); }
.insight h4 { font-size: 15px; margin: 0 0 6px; letter-spacing: -0.01em; }
.insight p { font-size: 13px; color: var(--text-2); margin: 0 0 12px; line-height: 1.5; }
.tag { display: inline-block; font: 600 11px/1 var(--font-body); padding: 5px 8px; border-radius: 999px; letter-spacing: 0.04em; }
.tag-up { background: rgba(46, 230, 166, 0.12); color: var(--accent); }
.tag-blue { background: rgba(91, 140, 255, 0.14); color: #9db8ff; }
.tag-warn { background: rgba(245, 181, 68, 0.14); color: var(--warn); }
.meter-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.meter-label b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
.meter { height: 6px; background: rgba(255, 255, 255, 0.07); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.plan-list { list-style: none; margin: 0; padding: 0; font: 500 12.5px/1.2 var(--font-mono); }
.plan-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); color: var(--text-2); }
.plan-list li:last-child { border-bottom: 0; }
.plan-list .up { color: var(--up); }
.plan-list .down { color: var(--down); }
.plan-list .blue { color: #9db8ff; }
.illustrative { font-size: 11.5px; color: var(--muted); text-align: center; margin: 2px 0 0; }

/* ---------- Live ticker ---------- */
.ticker { position: relative; border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; }
.ticker[hidden] { display: none; }
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; gap: 10px; align-items: baseline; padding: 14px 28px; font: 500 14px/1 var(--font-mono); white-space: nowrap; border-right: 1px solid var(--border); }
.ticker-sym { color: var(--text); font-weight: 600; }
.ticker-price { color: var(--text-2); }
.ticker .up { color: var(--up); }
.ticker .down { color: var(--down); }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-credit { text-align: right; font-size: 11px; color: var(--muted); padding: 6px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }
@media (max-width: 760px) { .section { padding: 72px 0; } .section-tight { padding: 56px 0; } }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); margin: 14px 0 14px; letter-spacing: -0.03em; }
.section-head p { color: var(--text-2); font-size: 1.075rem; margin: 0; }
.section-foot { text-align: center; margin-top: 40px; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.card p { color: var(--text-2); margin: 0; font-size: 0.975rem; }
.card p + p { margin-top: 10px; }
.card .card-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card .card-list li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--text-2); }
.card .card-list .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(46, 230, 166, 0.1); color: var(--accent); border: 1px solid rgba(46, 230, 166, 0.22);
}
.icon-badge .icon { width: 22px; height: 22px; }
.icon-badge.blue { background: rgba(91, 140, 255, 0.1); color: #8fb0ff; border-color: rgba(91, 140, 255, 0.26); }
.icon-badge.warn { background: rgba(245, 181, 68, 0.1); color: var(--warn); border-color: rgba(245, 181, 68, 0.26); }
.icon-badge.danger { background: rgba(255, 107, 122, 0.1); color: var(--down); border-color: rgba(255, 107, 122, 0.26); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 13px/1 var(--font-mono); color: var(--accent);
  border: 1px solid rgba(46, 230, 166, 0.3); background: rgba(46, 230, 166, 0.07);
  border-radius: 8px; padding: 7px 10px;
}
.step .icon-badge { position: absolute; top: 28px; right: 28px; }

/* Timeline (platform page) */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2) 60%, transparent); opacity: 0.45; }
.timeline li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding-bottom: 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .t-num {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; z-index: 1;
  background: var(--surface-2); border: 1px solid rgba(46, 230, 166, 0.35); color: var(--accent);
  font: 600 15px/1 var(--font-mono);
}
.timeline h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.timeline p { color: var(--text-2); margin: 0; }
.timeline .card-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.timeline .card-list li { display: flex; gap: 10px; padding: 0; grid-template-columns: none; color: var(--text-2); font-size: 0.95rem; }
.timeline .card-list .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 44px; } .split.flip > :first-child { order: 0; } }
.split h2 { font-size: clamp(1.85rem, 3.3vw, 2.6rem); margin: 14px 0 16px; letter-spacing: -0.03em; }
.split > div > p { color: var(--text-2); font-size: 1.05rem; }

.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; color: var(--text-2); }
.check-list .icon { color: var(--accent); margin-top: 3px; }
.check-list.neg .icon { color: var(--down); }
.check-list strong { color: var(--text); font-weight: 600; }

/* Permission card */
.perm-card { padding: 26px; }
.perm-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.perm-card .sub { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.perm-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.perm-row:last-of-type { border-bottom: 0; }
.perm-row .label { display: flex; flex-direction: column; }
.perm-row .label b { font-weight: 600; font-size: 15px; }
.perm-row .label span { font-size: 13px; color: var(--muted); }
.switch { width: 44px; height: 24px; border-radius: 99px; position: relative; flex-shrink: 0; background: rgba(148, 163, 184, 0.25); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cbd5e1; transition: transform 0.2s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); background: #fff; }
.switch.off { background: rgba(255, 107, 122, 0.25); }
.switch.off::after { background: var(--down); }
.perm-foot { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 13px; background: rgba(46, 230, 166, 0.08); border: 1px solid rgba(46, 230, 166, 0.25); color: #bdf5e0; display: flex; gap: 10px; align-items: flex-start; }
.perm-foot .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }

/* Chips (exchanges) */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  padding: 14px 22px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); font: 600 15px/1 var(--font-head); color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chips-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* Audience cards */
.audience .card { display: flex; flex-direction: column; }
.audience .card .who { font: 600 12px/1 var(--font-body); color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 20px; }
.audience .card h3 { margin-top: 8px; }

/* Flow diagram */
.flow { display: grid; grid-template-columns: 1fr 64px 1.15fr 64px 1fr; align-items: stretch; }
.flow-node { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; padding: 26px; text-align: center; }
.flow-node.core { background: linear-gradient(180deg, rgba(46, 230, 166, 0.09), var(--surface)); border-color: rgba(46, 230, 166, 0.45); }
.flow-node .icon-badge { margin: 0 auto 14px; }
.flow-node h3 { font-size: 1.1rem; margin: 0 0 8px; }
.flow-node p { color: var(--text-2); font-size: 0.92rem; margin: 0; }
.flow-node ul { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.flow-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 11px; text-align: center; padding: 0 4px; }
.flow-arrow .icon { width: 26px; height: 26px; color: var(--accent); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { flex-direction: row; padding: 14px 0; }
  .flow-arrow .icon { transform: rotate(90deg); }
}

/* Anatomy */
.anatomy-card { padding: 22px; }
.anatomy-card .insight { position: relative; }
.anno { position: relative; }
.anno-mark {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 700 11px/1 var(--font-mono); flex-shrink: 0;
}
.anatomy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.anatomy-list li { display: flex; gap: 14px; }
.anatomy-list h4 { font-size: 1.05rem; margin: 0 0 4px; }
.anatomy-list p { color: var(--text-2); margin: 0; font-size: 0.97rem; }
.anno-row { display: flex; align-items: center; gap: 8px; }

/* Compare (features page) */
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .compare-cols { grid-template-columns: 1fr; } }
.compare-col { border-radius: 18px; padding: 30px; border: 1px solid var(--border); background: var(--surface); }
.compare-col.good { border-color: rgba(46, 230, 166, 0.4); background: linear-gradient(180deg, rgba(46, 230, 166, 0.07), var(--surface) 50%); }
.compare-col h3 { font-size: 1.2rem; margin: 0 0 6px; }

/* ---------- Pricing ---------- */
.billing { display: flex; justify-content: center; margin-bottom: 40px; }
.billing-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); gap: 4px; }
.billing-toggle button {
  border: 0; background: transparent; color: var(--text-2); padding: 10px 18px; border-radius: 9px;
  font: 600 14px/1 var(--font-body); cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.billing-toggle button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.save-tag { color: var(--accent); font-size: 12px; font-weight: 600; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; max-width: 500px; margin-inline: auto; } }
.price-card { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
.price-card.featured {
  border-color: rgba(46, 230, 166, 0.55);
  background: linear-gradient(180deg, rgba(46, 230, 166, 0.09), var(--surface) 45%);
  box-shadow: 0 30px 70px -35px rgba(46, 230, 166, 0.45);
}
.featured-badge {
  position: absolute; top: -12px; left: 30px; background: var(--accent); color: var(--accent-ink);
  font: 700 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; margin: 0 0 6px; }
.price-card .desc { color: var(--text-2); font-size: 0.95rem; margin: 0; min-height: 48px; }
.price { font: 700 3rem/1 var(--font-head); letter-spacing: -0.03em; margin: 24px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.price small { font: 500 1rem/1 var(--font-body); color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); font-size: 13px; min-height: 20px; margin: 0; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; flex: 1; align-content: start; }
.feature-list li { display: flex; gap: 10px; font-size: 15px; color: var(--text-2); }
.feature-list .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.pricing-fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; table-layout: fixed; }
.compare thead th:first-child { width: 37%; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text-2); }
.compare thead th { font: 600 15px/1.2 var(--font-head); color: var(--text); background: var(--surface-2); }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--text); }
.compare .yes .icon { color: var(--accent); margin: 0 auto; }
.compare .no { color: var(--muted); }
.compare .group td { background: rgba(255, 255, 255, 0.02); font: 600 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; position: relative;
  font: 600 1.04rem/1.45 var(--font-head); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 22px 22px; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 1.4rem; max-width: 860px; margin: 0 auto 18px; display: flex; align-items: center; gap: 12px; }
.faq-group h2 .icon-badge { width: 38px; height: 38px; border-radius: 10px; }
.faq-group h2 .icon-badge .icon { width: 19px; height: 19px; }

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; padding: 88px 0 72px; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; margin: 18px 0 18px; max-width: 20ch; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead { margin-inline: auto; }
.page-hero .meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
@media (max-width: 760px) { .page-hero { padding: 64px 0 52px; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; border-radius: 26px; padding: 72px 56px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(500px 260px at 20% 0%, rgba(46, 230, 166, 0.18), transparent 70%),
    radial-gradient(500px 300px at 85% 100%, rgba(91, 140, 255, 0.2), transparent 70%),
    var(--surface);
}
.cta-band h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 22ch; margin: 16px auto 14px; letter-spacing: -0.03em; }
.cta-band .lead { margin-inline: auto; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center; font-size: 15px; }
.cta-contacts a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.cta-contacts a:hover { color: var(--text); }
.cta-contacts .icon { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 640px) { .cta-band { padding: 44px 20px; border-radius: 20px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 13px 14px;
  font: 16px/1.4 var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5f6d86; }
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238391ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.18); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--down); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { display: none; font-size: 14px; padding: 12px 14px; border-radius: 10px; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(46, 230, 166, 0.1); border: 1px solid rgba(46, 230, 166, 0.35); color: #c3f7e4; }
.form-status.err { background: rgba(255, 107, 122, 0.1); border: 1px solid rgba(255, 107, 122, 0.35); color: #ffc9cf; }
.form-status.info { background: rgba(91, 140, 255, 0.1); border: 1px solid rgba(91, 140, 255, 0.35); color: #cddbff; }
.form-card { padding: 36px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border-strong); }
.form-card h2 { font-size: 1.5rem; margin: 0 0 6px; }
.form-card > p { color: var(--text-2); margin-bottom: 24px; }
@media (max-width: 640px) { .form-card { padding: 24px 18px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.contact-card h3 { font-size: 1rem; margin: 0 0 4px; }
.contact-card p, .contact-card address { margin: 0; color: var(--text-2); font-style: normal; font-size: 0.97rem; }
.contact-card a { color: var(--text); font-weight: 500; }
.contact-card a:hover { color: var(--accent); }
.map { margin-top: 40px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 21 / 8; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95); }
@media (max-width: 760px) { .map { aspect-ratio: 4 / 3; } }

/* Auth (login / get started) */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 64px 0; position: relative; overflow: hidden; }
.auth-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 400px at 50% 0%, rgba(46, 230, 166, 0.12), transparent 65%), radial-gradient(600px 400px at 50% 100%, rgba(91, 140, 255, 0.12), transparent 65%);
}
.auth-card { position: relative; width: 100%; max-width: 460px; }
.auth-card .brand-mark { width: 48px; height: 48px; margin: 0 auto 18px; }
.auth-card h1 { font-size: 1.8rem; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--text-2); margin-bottom: 28px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--text-2); margin-top: 22px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.signup-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .signup-grid { grid-template-columns: 1fr; gap: 40px; } }
.next-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; counter-increment: ns; }
.next-steps li::before {
  content: counter(ns); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font: 600 14px/1 var(--font-mono); color: var(--accent); background: rgba(46, 230, 166, 0.08); border: 1px solid rgba(46, 230, 166, 0.3);
}
.next-steps h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.next-steps p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* ---------- Facts table (about) ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
.fact { padding: 26px; border-right: 1px solid var(--border); }
.fact:last-child { border-right: 0; }
.fact dt { font: 600 12px/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fact dd { margin: 0; font: 600 1.1rem/1.35 var(--font-head); color: var(--text); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid var(--border); } .fact:last-child { border-bottom: 0; } }

.quote-block { border-left: 3px solid var(--accent); padding: 6px 0 6px 24px; font: 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.45 var(--font-head); letter-spacing: -0.015em; color: var(--text); margin: 0; }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 14px; border-radius: 14px; padding: 18px 20px; border: 1px solid rgba(245, 181, 68, 0.35); background: rgba(245, 181, 68, 0.07); color: #f3dfb8; font-size: 0.97rem; }
.callout .icon { color: var(--warn); margin-top: 2px; }
.callout p { margin: 0; }
.callout strong { color: #ffe9c2; }
.callout.danger { border-color: rgba(255, 107, 122, 0.35); background: rgba(255, 107, 122, 0.07); color: #ffd3d8; }
.callout.danger .icon { color: var(--down); }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; gap: 32px; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: var(--surface); }
@media (max-width: 960px) { .toc { position: static; } }
.toc h2 { font: 600 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--text); }
.prose { max-width: 780px; color: var(--text-2); font-size: 1.01rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.45rem; margin: 2.4em 0 0.6em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0.45em 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .callout { margin: 1.4em 0; }
.prose address { font-style: normal; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h) - 1px); display: grid; place-items: center; text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
.notfound .code { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-head); letter-spacing: -0.05em; }
.notfound h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 76px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr 0.8fr 1.6fr; gap: 40px; }
@media (max-width: 1060px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand, .footer-contact { grid-column: span 3; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .footer-brand, .footer-contact { grid-column: span 2; } }
.footer-brand p { color: var(--text-2); font-size: 15px; margin: 18px 0 0; max-width: 36ch; }
.footer-col h2 { font: 600 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-2); font-size: 15px; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.footer-contact address { font-style: normal; }
.footer-contact a[href^="mailto:"] { white-space: nowrap; }
@media (max-width: 360px) { .footer-contact a[href^="mailto:"] { font-size: 14px; } }
.risk-warning { margin-top: 56px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; font-size: 13px; line-height: 1.65; color: var(--muted); background: rgba(255, 255, 255, 0.015); }
.risk-warning strong { color: var(--text-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s !important; }
.reveal-d2 { transition-delay: 0.16s !important; }
.reveal-d3 { transition-delay: 0.24s !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ema-line { animation: none; stroke-dashoffset: 0; }
  .live-dot::after { animation: none; display: none; }
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
  .btn, .card { transition: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .ticker, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose strong, h1, h2, h3 { color: #000; }
}
