:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #0f172a;
  --muted: #526077;
  --line: #e2e8f0;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --card: #ffffff;
  --up: #059669;
  --down: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #111833;
    --text: #e8ecf6;
    --muted: #a3aec4;
    --line: #233056;
    --accent: #8b8cff;
    --accent-ink: #0b1020;
    --accent-soft: #1b2250;
    --card: #121a35;
    --up: #34d399;
    --down: #f87171;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 14px; letter-spacing: 0.5px;
}
nav { display: flex; gap: 20px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
nav a:hover { color: var(--text); }
nav .nav-cta { color: var(--accent); }
@media (max-width: 640px) {
  nav a:not(.nav-cta) { display: none; }
}

.hero { padding: 96px 0 80px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 14ch; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 0 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-size: 16px; font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: default; }

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.section-lead { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }

.grid.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { display: flex; gap: 14px; }
.steps p { color: var(--muted); margin: 0; }
.step-n {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}

.feature {
  display: grid; gap: 32px; align-items: center; grid-template-columns: 1.2fr 1fr;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.feature-text p { color: var(--muted); }
.feature-text h3 { font-size: 26px; }
.feature-art {
  border-radius: 12px; padding: 20px; background: linear-gradient(160deg, #111833, #1e1b4b); color: #e8ecf6;
  font-variant-numeric: tabular-nums; display: grid; gap: 10px;
}
.ticker { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.ticker .up { color: #34d399; }
.ticker .down { color: #f87171; }
.spark { width: 100%; height: 70px; display: block; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; padding: 24px; }
}

.about { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; align-items: start; }
.about p { color: var(--muted); }
.facts { margin: 0; display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

.contact { display: grid; gap: 40px; grid-template-columns: 1fr 1.2fr; align-items: start; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
label { font-weight: 500; font-size: 15px; }
.optional { color: var(--muted); font-weight: 400; }
input, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; min-height: 46px;
}
input:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.small { font-size: 14px; margin: 0; }
.form-status { margin: 0; min-height: 1.6em; font-weight: 500; }
.form-status.ok { color: var(--up); }
.form-status.error { color: var(--down); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-inner p { margin: 0; }

.prose { max-width: 70ch; padding: 64px 0; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); max-width: none; }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose p, .prose li { color: var(--muted); }
