:root {
  --bg: #0a0d15;
  --bg-elevated: #10141f;
  --surface: #151b28;
  --surface-2: #1b2233;
  --border: #262f42;
  --text: #edf0f7;
  --text-muted: #8b93a7;
  --accent: #d4a24e;
  --accent-bright: #f0c274;
  --accent-soft: rgba(212, 162, 78, 0.12);
  --accent-2: #4fb8a8;
  --success: #3ddc84;
  --success-soft: rgba(61, 220, 132, 0.12);
  --danger: #ef5b5b;
  --danger-soft: rgba(239, 91, 91, 0.12);
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 16px 40px rgba(0,0,0,0.35);
  --radius: 14px;
  --font-display: "Avenir Next", "Century Gothic", ui-sans-serif, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,21,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; text-decoration: none; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(212,162,78,0.35);
}
.nav-links { display: flex; gap: 6px; margin-left: 8px; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg-elevated); flex-direction: column; padding: 10px; border-bottom: 1px solid var(--border); display: none; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #17120a;
  box-shadow: 0 8px 22px rgba(212,162,78,0.28);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(212,162,78,0.4); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; margin: 0 0 18px; line-height: 1.08; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.lede { font-size: 17.5px; color: var(--text-muted); max-width: 60ch; }
.section-note { color: var(--text-muted); font-size: 15px; max-width: 64ch; margin: 0 0 40px; }

/* ---------- Sections ---------- */
section.pad { padding: 96px 0; }
section.pad-sm { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .section-note { margin-left: auto; margin-right: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: .05s; }
.reveal-2 { transition-delay: .15s; }
.reveal-3 { transition-delay: .25s; }
.reveal-4 { transition-delay: .35s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 720px; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 700; color: var(--accent-bright); }
.hero-stat .label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.badge-note { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }

/* ---------- Terminal readout ---------- */
.hero-terminal {
  margin-top: 30px; max-width: 380px;
  background: rgba(16,20,30,0.72); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 16px; backdrop-filter: blur(10px);
}
.hero-terminal .term-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.hero-terminal .term-dot { width: 8px; height: 8px; border-radius: 50%; }
.hero-terminal .term-dot.r { background: #ef5b5b; }
.hero-terminal .term-dot.y { background: #e8c547; }
.hero-terminal .term-dot.g { background: #3ddc84; }
.hero-terminal .term-label { margin-left: auto; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.hero-terminal .term-label .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(61,220,132,0.5); } 50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(61,220,132,0); } }
.hero-terminal .term-body { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); min-height: 18px; }
.hero-terminal .term-body .cursor { display: inline-block; width: 7px; height: 14px; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: blinkCursor 1s steps(1) infinite; }
@keyframes blinkCursor { 50% { opacity: 0; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 1040px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-5 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(212,162,78,0.4); }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 16px;
}
.card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------- Chart ---------- */
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.chart-card .chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; gap: 8px; }
.chart-card .chart-head .val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; color: var(--success); }
.chart-card .chart-head .sub { font-size: 13px; color: var(--text-muted); }
.equity-svg path.line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.equity-svg path.fill { fill: url(#eqGrad); opacity: 0.5; }
.example-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; margin-bottom: 10px; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.spec-table td:first-child { color: var(--text-muted); width: 40%; }
.spec-table td:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s ease, border-color .25s ease;
  position: relative;
}
.price-card:hover { transform: translateY(-5px); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(212,162,78,0.15); }
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent)); color: #17120a;
  font-size: 11.5px; font-weight: 700; padding: 5px 14px; border-radius: 100px; letter-spacing: 0.02em;
}
.price-card .plan-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.price-card .plan-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 800; }
.price-card .plan-per-day { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.price-card .save { font-size: 12px; color: var(--success); font-weight: 700; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.price-card li { font-size: 13.5px; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; }
.price-card li::before { content: "\2713"; color: var(--accent-2); font-weight: 700; flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tcard .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; font-size: 14px; }
.tcard .quote { font-size: 14.5px; color: var(--text); margin: 0 0 16px; }
.tcard .who { display: flex; align-items: center; gap: 10px; }
.tcard .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--accent); }
.tcard .name { font-size: 13.5px; font-weight: 600; }
.tcard .role { font-size: 12px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-size: 16px; font-weight: 600; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-body); }
.faq-q .plus { color: var(--accent); font-size: 20px; transition: transform .25s ease; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { color: var(--text-muted); font-size: 14.5px; padding: 0 4px 20px; margin: 0; }

/* ---------- Forms ---------- */
.auth-shell { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-size: 14.5px; font-family: var(--font-body);
}
.field input:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.field-pw { position: relative; }
.field-pw input { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 12px; padding: 8px 10px; font-weight: 600;
}
.pw-toggle:hover { color: var(--text); }
.form-msg { font-size: 13.5px; padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: var(--danger-soft); color: var(--danger); }
.form-msg.ok { background: var(--success-soft); color: var(--success); }

/* ---------- Auth split-screen ---------- */
.auth-split { min-height: 100vh; display: flex; }
.auth-visual {
  flex: 1 1 46%; position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 15%, #1c2740 0%, var(--bg) 55%), var(--bg);
  padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-visual canvas { position: absolute; inset: 0; opacity: 0.7; }
.auth-visual .av-content { position: relative; z-index: 1; }
.auth-visual .av-top { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.auth-visual .av-logo-big { display: block; width: 120px; margin-bottom: 4px; }
.auth-visual .av-logo-big img { width: 100%; display: block; border-radius: 50%; box-shadow: 0 10px 34px rgba(212,162,78,0.28); }
.auth-visual .av-quote { position: relative; z-index: 1; max-width: 400px; }
.auth-visual .av-quote h2 { font-size: 28px; line-height: 1.25; margin-bottom: 16px; }
.auth-visual .av-points { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.auth-visual .av-point { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-muted); }
.auth-visual .av-point .chk { width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; margin-top: 1px; }
.auth-form-side { flex: 1 1 54%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form-side .auth-card { box-shadow: none; border: none; background: none; padding: 0; max-width: 380px; }
@media (max-width: 880px) { .auth-visual { display: none; } }

/* ---------- Dashboard ---------- */
.dash-shell { display: flex; min-height: calc(100vh - 68px); background: var(--bg); }
.dash-side { width: 232px; flex-shrink: 0; border-right: 1px solid var(--border); padding: 20px 12px; }
.dash-side a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px;
  color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; margin-bottom: 3px;
  border-left: 2px solid transparent; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.dash-side a .di { width: 17px; text-align: center; flex-shrink: 0; opacity: 0.8; }
.dash-side a:hover { background: var(--surface-2); color: var(--text); }
.dash-side a.active { background: var(--accent-soft); color: var(--accent-bright); border-left-color: var(--accent); }
.dash-main { flex: 1; padding: 32px; min-width: 0; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 100px; }
.status-pill.active { background: var(--success-soft); color: var(--success); }
.status-pill.pending { background: var(--accent-soft); color: var(--accent); }
.status-pill.none { background: var(--surface-2); color: var(--text-muted); }
.status-pill .sp-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.active .sp-dot { animation: pulseDot 1.6s ease-in-out infinite; }

.kv-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--text-muted); }
.kv-row .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.license-box { font-family: var(--font-mono); background: var(--bg-elevated); border: 1px dashed var(--border); border-radius: 9px; padding: 14px 16px; font-size: 14px; letter-spacing: 0.03em; word-break: break-all; }

/* Hero overview card */
.dash-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 85% 0%, rgba(212,162,78,0.12), transparent 55%), var(--surface);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 32px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.dash-hero-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 14px;
}
.dash-hero h2 { font-size: 24px; margin-bottom: 6px; }
.dash-hero-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.dash-hero .license-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dash-hero .license-row .license-box { flex: 1; min-width: 220px; margin: 0; }

.progress-ring { position: relative; width: 128px; height: 128px; flex-shrink: 0; }
.progress-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.progress-ring circle { fill: none; stroke-width: 8; }
.progress-ring .ring-bg { stroke: var(--surface-2); }
.progress-ring .ring-fg { stroke: url(#ringGradient); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.22,.9,.32,1); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label .ring-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 27px; font-weight: 800; color: var(--accent-bright); }
.ring-label .ring-unit { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* KPI tiles */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
@media (max-width: 700px) { .kpi-row { grid-template-columns: 1fr; } }
.kpi-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; transition: transform .2s ease, border-color .2s ease; }
.kpi-tile:hover { transform: translateY(-3px); border-color: rgba(212,162,78,0.35); }
.kpi-tile .kpi-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.kpi-tile .kpi-val { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-tile .kpi-label { font-size: 12px; color: var(--text-muted); }

.tx-row {
  display: flex; justify-content: space-between; align-items: center; padding: 13px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
  opacity: 0; transform: translateX(-8px); animation: txIn .4s ease forwards;
}
.tx-row:last-child { border-bottom: none; }
@keyframes txIn { to { opacity: 1; transform: translateX(0); } }

@media (max-width: 760px) { .dash-shell { flex-direction: column; } .dash-side { width: 100%; border-right: none; border-bottom: 1px solid var(--border); display: flex; overflow-x: auto; padding: 12px; } .dash-side a { white-space: nowrap; } .dash-hero { flex-direction: column; align-items: flex-start; } }

/* ---------- Disclaimer / footer ---------- */
.disclaimer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 22px 0; font-size: 12.5px; color: var(--text-muted); }
footer.site { border-top: 1px solid var(--border); padding: 56px 0 28px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer.site .foot-brand { max-width: 320px; color: var(--text-muted); font-size: 13.5px; }
footer.site .foot-links { display: flex; gap: 48px; flex-wrap: wrap; }
footer.site .foot-links h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 12px; }
footer.site .foot-links a { display: block; text-decoration: none; color: var(--text); font-size: 14px; margin-bottom: 9px; }
footer.site .copyright { text-align: center; margin-top: 40px; font-size: 12.5px; color: var(--text-muted); }
