/* ============================================================
   PolyPulse — polymarketaipredictions.com
   Dark fintech design system. No frameworks, no external deps.
   ============================================================ */

:root {
  --bg: #070b12;
  --bg-soft: #0b111c;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e6edf6;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --grad: linear-gradient(100deg, #22d3ee 0%, #60a5fa 45%, #a78bfa 100%);
  --up: #34d399;
  --down: #f87171;
  --amber: #fbbf24;
  --radius: 16px;
  --radius-lg: 22px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-card: 0 20px 50px -20px rgba(2, 8, 20, 0.9);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(34, 211, 238, 0.28); }

/* ---------- Ambient background ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }

.bg-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 35%, transparent 100%);
}

.bg-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width: 560px; height: 560px; top: -180px; left: -120px; background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 65%); animation: drift 26s ease-in-out infinite alternate; }
.orb-2 { width: 640px; height: 640px; top: 10%; right: -220px; background: radial-gradient(circle, rgba(129, 140, 248, 0.2), transparent 65%); animation: drift 32s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 520px; height: 520px; bottom: -200px; left: 30%; background: radial-gradient(circle, rgba(52, 211, 153, 0.12), transparent 65%); animation: drift 38s ease-in-out infinite alternate; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

.bg-scan {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.025) 48%, rgba(34, 211, 238, 0.05) 50%, rgba(34, 211, 238, 0.025) 52%, transparent 100%);
  background-size: 100% 240px;
  animation: scan 9s linear infinite;
  opacity: 0.6;
}
@keyframes scan { from { background-position: 0 -240px; } to { background-position: 0 calc(100vh + 240px); } }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #04121a; padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.15rem; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55);
  animation: pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: 14px; border: none;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad); color: #051018;
  box-shadow: 0 12px 34px -12px rgba(34, 211, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(34, 211, 238, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

.btn-ghost {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; border-radius: 11px; }
.btn-xl { padding: 18px 38px; font-size: 1.12rem; border-radius: 16px; }

kbd {
  font-family: var(--mono); font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-strong);
  border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; color: var(--text-dim);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 11, 18, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.45)); }
.brand-name { font-size: 1.22rem; font-weight: 500; letter-spacing: -0.02em; }
.brand-name b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s ease; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.palette-hint {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.palette-hint kbd { cursor: pointer; }
.palette-hint:hover kbd { color: var(--accent); border-color: var(--accent); }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700; color: var(--text-dim);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 7px 11px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.5); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  min-width: 168px; list-style: none; padding: 6px;
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(9, 14, 24, 0.99));
  border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.85);
}
.lang-menu a {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--text-dim); text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.lang-menu a:hover { background: rgba(34, 211, 238, 0.1); color: var(--text); }
.lang-menu a.active { color: var(--accent); font-weight: 700; background: rgba(34, 211, 238, 0.08); }

/* ---------- Hero ---------- */
.hero { padding: 96px 24px 40px; position: relative; }
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-sub { color: var(--text-dim); font-size: 1.16rem; max-width: 34em; margin: 22px 0 30px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; list-style: none; }
.chip {
  font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px;
  background: var(--panel);
}
.chip-pay { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.06); }

/* ---------- Terminal mock ---------- */
.hero-term { position: relative; }
.term {
  position: relative; z-index: 2;
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.92), rgba(9, 14, 24, 0.96));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
  font-family: var(--mono); font-size: 0.8rem;
}
.term-glow {
  position: absolute; inset: 8% -6% -8% 8%; z-index: 1;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(129, 140, 248, 0.12));
  filter: blur(48px); border-radius: 40px;
}
.term-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.tl { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.tl:nth-child(1) { background: #f87171; } .tl:nth-child(2) { background: #fbbf24; } .tl:nth-child(3) { background: #34d399; }
.term-title { color: var(--text-faint); margin-left: 8px; flex: 1; font-size: 0.74rem; }
.term-live { display: inline-flex; align-items: center; gap: 6px; color: var(--up); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; }
.term-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 1.6s infinite; }

.term-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

.pred-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pred-card {
  border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px; background: var(--panel);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.pred-card.up.hot { border-color: rgba(52, 211, 153, 0.55); box-shadow: 0 0 22px -6px rgba(52, 211, 153, 0.45); }
.pred-card.down.hot { border-color: rgba(248, 113, 113, 0.55); box-shadow: 0 0 22px -6px rgba(248, 113, 113, 0.45); }
.pred-label { font-weight: 700; letter-spacing: 0.06em; font-size: 0.72rem; }
.pred-card.up .pred-label { color: var(--up); }
.pred-card.down .pred-label { color: var(--down); }
.pred-price { font-size: 1.5rem; font-weight: 800; font-family: var(--font); }
.pred-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.pred-bar i { display: block; height: 100%; width: 60%; border-radius: 3px; transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.pred-card.up .pred-bar i { background: linear-gradient(90deg, #10b981, #34d399); }
.pred-card.down .pred-bar i { background: linear-gradient(90deg, #ef4444, #f87171); }

.term-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.term-cell {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  display: flex; flex-direction: column; gap: 2px; background: var(--panel);
}
.tc-label { color: var(--text-faint); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tc-value { font-weight: 700; font-family: var(--font); font-size: 0.95rem; }
.tc-edge { color: var(--accent); }
.tc-pnl { color: var(--up); }
.tc-ok { color: var(--up); font-family: var(--mono); font-size: 0.8rem; }

.pnl-spark { width: 100%; height: 72px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }

.book { display: flex; flex-direction: column; gap: 3px; }
.book-row {
  display: grid; grid-template-columns: 52px 1fr 64px; align-items: center; gap: 10px;
  position: relative; padding: 2px 8px; border-radius: 5px; font-size: 0.72rem;
}
.book-row i {
  position: absolute; left: 52px; top: 2px; bottom: 2px; width: var(--w, 30%);
  border-radius: 4px; opacity: 0.16; z-index: 0; transition: width 0.8s ease;
}
.book-row.ask i { background: var(--down); }
.book-row.bid i { background: var(--up); }
.book-row span, .book-row b { position: relative; z-index: 1; font-weight: 500; }
.book-row b { text-align: right; color: var(--text-dim); font-weight: 400; }
.book-row.ask span { color: var(--down); }
.book-row.bid span { color: var(--up); }
.book-mid { text-align: center; color: var(--text-faint); font-size: 0.68rem; padding: 1px 0; letter-spacing: 0.08em; }

.term-foot {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 0.68rem; border-top: 1px solid var(--line); padding-top: 12px;
}
.term-foot b { color: var(--accent); font-weight: 600; }

/* ---------- Stats band ---------- */
.stats { max-width: 1200px; margin: 30px auto 0; padding: 0 24px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  padding: 28px 22px;
}
.stat { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-cap { color: var(--text-faint); font-size: 0.78rem; line-height: 1.4; }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 110px 24px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-sub { color: var(--text-dim); font-size: 1.06rem; margin-top: 16px; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--panel-strong); }
.feature-card:hover::before { opacity: 1; }
.f-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.22);
}
.f-icon svg { width: 22px; height: 22px; }
.feature-card p { color: var(--text-dim); font-size: 0.93rem; margin-top: 10px; }

/* ---------- Architecture ---------- */
.arch {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 14px; align-items: stretch;
}
.arch-col { display: flex; flex-direction: column; gap: 12px; }
.arch-col h4 {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); text-align: center; margin-bottom: 4px; font-weight: 600;
}
.arch-node {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  text-align: center; font-weight: 600; font-size: 0.88rem;
  background: var(--panel); flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.arch-node small { color: var(--text-faint); font-weight: 400; font-size: 0.74rem; line-height: 1.45; }
.arch-node.src { border-left: 3px solid rgba(34, 211, 238, 0.5); }
.arch-node.mid { border-left: 3px solid rgba(251, 191, 36, 0.5); }
.arch-node.mid.small { flex: 0; }
.arch-node.core { border-left: 3px solid rgba(129, 140, 248, 0.6); }
.arch-node.core.gate {
  border: 1px solid rgba(52, 211, 153, 0.4); border-left: 3px solid var(--up);
  background: rgba(52, 211, 153, 0.05);
}
.arch-node.out { border-left: 3px solid rgba(167, 139, 250, 0.55); }
.arch-arrow {
  align-self: center; color: var(--text-faint); font-size: 1.4rem;
  animation: arrowflow 2.4s ease-in-out infinite;
}
@keyframes arrowflow { 0%, 100% { opacity: 0.4; transform: translateX(0); } 50% { opacity: 1; transform: translateX(4px); } }

/* ---------- Strategy chips ---------- */
.chips-wrap { display: flex; flex-wrap: wrap; gap: 12px; max-width: 860px; }
.mode-chip {
  font-family: var(--mono); font-size: 0.86rem; font-weight: 600;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text-dim);
  transition: all 0.18s ease; cursor: default;
}
.mode-chip:hover {
  color: var(--accent); border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.07); transform: translateY(-2px);
  box-shadow: 0 8px 22px -10px rgba(34, 211, 238, 0.4);
}

/* ---------- Cockpit ---------- */
.cockpit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cockpit-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.cockpit-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); }
.cockpit-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; }
.ck-ico { font-size: 1.2rem; }
.cockpit-card p { color: var(--text-dim); font-size: 0.9rem; margin-top: 10px; }

/* ---------- Pricing ---------- */
.pricing-card {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.85), rgba(9, 14, 24, 0.95));
  box-shadow: var(--shadow-card); overflow: hidden;
  position: relative;
}
.pricing-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 0;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.5), transparent 30%, transparent 70%, rgba(167, 139, 250, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.pricing-main { padding: 44px 46px; position: relative; z-index: 1; }
.pricing-badge {
  display: inline-block; font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.07);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.pricing-name { font-size: 1.5rem; font-weight: 700; }
.pricing-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.pricing-price { font-size: clamp(3rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 26px; font-variant-numeric: tabular-nums; }
.pricing-price .cur { font-size: 0.5em; vertical-align: 24px; color: var(--text-dim); font-weight: 700; }
.pricing-price .per { font-size: 0.95rem; color: var(--text-faint); font-weight: 500; margin-left: 10px; letter-spacing: 0; }

.pricing-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; margin-bottom: 32px; }
.pricing-features li {
  color: var(--text-dim); font-size: 0.9rem; padding-left: 26px; position: relative;
}
.pricing-features li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  color: var(--up); font-weight: 800;
}

.pay-form { display: block; }
.pay-note { color: var(--text-faint); font-size: 0.82rem; margin-top: 16px; max-width: 34em; }
.pay-note b { color: var(--amber); }

.pricing-side {
  border-left: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  padding: 40px 34px; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1;
}
.side-box {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--panel);
}
.side-box h4 { font-size: 0.95rem; margin-bottom: 4px; }
.side-box p { color: var(--text-faint); font-size: 0.82rem; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  overflow: hidden; transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: rgba(34, 211, 238, 0.4); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--accent);
  transition: transform 0.2s ease; flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--text-dim); font-size: 0.94rem; max-width: 60em; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; padding: 130px 24px 140px; max-width: 720px; margin: 0 auto; }
.final-cta p { color: var(--text-dim); font-size: 1.12rem; margin: 18px 0 34px; }
.cta-fine { font-family: var(--mono); font-size: 0.78rem !important; color: var(--text-faint) !important; margin-top: 22px !important; letter-spacing: 0.08em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(5, 8, 14, 0.7); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 56px 24px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 36px;
}
.footer-brand p { color: var(--text-faint); font-size: 0.86rem; margin-top: 10px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 4px; font-weight: 600;
}
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: 0.88rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  max-width: 1200px; margin: 0 auto; padding: 20px 24px 34px;
  border-top: 1px solid var(--line);
}
.footer-legal p { color: var(--text-faint); font-size: 0.76rem; line-height: 1.6; }
.footer-legal p + p { margin-top: 8px; }
.footer-legal b { color: var(--text-dim); }

/* ---------- Command palette ---------- */
.palette {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4, 7, 12, 0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 18vh;
}
.palette[hidden] { display: none; }
.palette-box {
  width: min(560px, 92vw); border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.97), rgba(9, 14, 24, 0.98));
  border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: palin 0.16s ease;
}
@keyframes palin { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
.palette-box input {
  width: 100%; background: none; border: none; outline: none; color: var(--text);
  font-size: 1.05rem; padding: 20px 22px; font-family: var(--font);
  border-bottom: 1px solid var(--line);
}
.palette-box input::placeholder { color: var(--text-faint); }
.palette-box ul { list-style: none; max-height: 300px; overflow-y: auto; padding: 8px; }
.palette-box li {
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; font-size: 0.94rem; color: var(--text-dim);
}
.palette-box li .p-ico { width: 20px; text-align: center; flex-shrink: 0; }
.palette-box li.selected, .palette-box li:hover { background: rgba(34, 211, 238, 0.1); color: var(--text); }
.palette-box li .p-hint { margin-left: auto; font-family: var(--mono); font-size: 0.7rem; color: var(--text-faint); }
.palette-foot {
  padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text-faint);
  font-size: 0.74rem; display: flex; gap: 14px; align-items: center;
}

/* ---------- Toasts ---------- */
.toast-zone {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  display: flex; flex-direction: column; gap: 10px; max-width: min(380px, 90vw);
}
.toast {
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.97), rgba(9, 14, 24, 0.98));
  border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 14px 18px; font-size: 0.88rem; color: var(--text);
  box-shadow: var(--shadow-card); animation: toastin 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.warn { border-left-color: var(--amber); }
.toast.ok { border-left-color: var(--up); }
@keyframes toastin { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.toast.leaving { opacity: 0; transform: translateX(30px); transition: all 0.3s ease; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
.mobile-br { display: none; }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 72px; }
  .hero-term { max-width: 620px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .features-grid, .cockpit-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card { grid-template-columns: 1fr; }
  .pricing-side { border-left: none; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .side-box { flex: 1 1 240px; }
  .arch { grid-template-columns: 1fr; }
  .arch-arrow { transform: rotate(90deg); justify-self: center; }
  .arch-col h4 { text-align: left; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .mobile-br { display: block; }
  .features-grid, .cockpit-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-main { padding: 34px 26px; }
  .pricing-features { grid-template-columns: 1fr; }
  .pricing-side { padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .term-grid { grid-template-columns: repeat(2, 1fr); }
  .palette-hint { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-orb, .bg-scan, .pulse-dot, .term-live i, .arch-arrow { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature-card, .cockpit-card, .mode-chip { transition: none; }
}
