:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #15171a;
  --muted: #5d636b;
  --line: #e4e2dc;
  --green: #5fa82f;
  --blue: #2f6fe0;
  --accent: #2f6fe0;
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 8px 24px rgba(20, 22, 26, 0.06);
  --radius: 20px;
  --scorpion-bg: #120b0c;
  --scorpion-red: #e0312b;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1113;
    --surface: #181b1f;
    --ink: #f1f0ec;
    --muted: #a3a8af;
    --line: #2a2e34;
    --accent: #6b9cf5;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0f1113;
    --surface: #181b1f;
    --ink: #f1f0ec;
    --muted: #a3a8af;
    --line: #2a2e34;
    --accent: #6b9cf5;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Inter", "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.he { font-family: "Heebo", "Inter", sans-serif; text-align: left; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
}
.top nav { display: flex; gap: 4px; }
.top nav a {
  text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.top nav a:hover { color: var(--ink); background: var(--line); }

/* Hero */
.hero { padding: 88px 0 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface);
  padding: 6px 14px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 {
  margin: 20px auto 0; max-width: 820px;
  font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 20px auto 0; max-width: 600px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

.stats { margin: 56px auto 0; display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stats div { text-align: center; }
.stats strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; line-height: 1.15; }
.section-head p { margin-top: 8px; color: var(--muted); font-size: 17px; max-width: 640px; }

/* Scorpion spotlight */
.spotlight {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
  padding: 48px; border-radius: 28px;
  background: radial-gradient(120% 120% at 100% 0%, #3a0f12 0%, var(--scorpion-bg) 55%);
  color: #f5f3ef;
  box-shadow: 0 30px 60px -30px rgba(224, 49, 43, 0.45);
}
.spotlight::after {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(224, 49, 43, 0.25), transparent);
  pointer-events: none;
}
.spot-art { position: relative; z-index: 1; display: flex; justify-content: center; }
.spot-art img {
  width: 100%; max-width: 380px; aspect-ratio: 1; object-fit: cover;
  border-radius: 22%; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.spot-body { position: relative; z-index: 1; }
.tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #ffd100; margin-bottom: 12px;
}
.spot-body h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.spot-body h3 .he { display: block; font-size: 0.6em; font-weight: 700; color: #c9c4bd; margin-top: 6px; }
.spot-body > p { margin-top: 16px; color: #c9c4bd; font-size: 17px; }
.features { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; list-style: none; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #e8e4de; }
.features li::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--scorpion-red);
}
.spot-actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px;
  background: #fff; color: #111; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.2;
  transition: transform 0.2s;
}
.store:hover { transform: translateY(-1px); }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; }
.store svg { width: 22px; height: 22px; flex: none; }
.store.outline { background: transparent; color: #f5f3ef; border: 1px solid rgba(255, 255, 255, 0.25); }
.store.soon { background: rgba(255, 255, 255, 0.08); color: #c9c4bd; cursor: default; }
.store.soon:hover { transform: none; }
.fine { margin-top: 18px; font-size: 12px; color: #8c867e; }

/* App grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.app {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.app:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.app-top { display: flex; gap: 14px; align-items: center; }
.app-top img { width: 64px; height: 64px; border-radius: 15px; flex: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.app h3 { font-size: 18px; line-height: 1.25; }
.app .sub { font-size: 14px; color: var(--muted); }
.app p { font-size: 15px; color: var(--muted); flex: 1; }
.app-foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.go { color: var(--accent); font-weight: 600; }

/* About */
.about {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  padding: 40px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
}
.about h2 { font-size: clamp(26px, 3.5vw, 34px); letter-spacing: -0.02em; }
.about p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.about-actions { display: flex; flex-direction: column; gap: 10px; }
.about-actions .btn { justify-content: center; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
  .spot-art img { max-width: 240px; }
  .about { grid-template-columns: 1fr; padding: 28px 22px; }
}
@media (max-width: 560px) {
  .top nav a:not(.keep) { display: none; }
  .hero { padding: 56px 0 32px; }
  .stats { gap: 28px; }
  .features { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .app, .store { transition: none; }
}

/* Legal pages */
.legal { max-width: 760px; padding: 56px 20px 24px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; line-height: 1.1; }
.legal .updated { margin-top: 8px; color: var(--muted); font-size: 14px; }
.legal h2 { margin-top: 36px; font-size: 22px; letter-spacing: -0.01em; }
.legal h3 { margin-top: 20px; font-size: 17px; }
.legal p, .legal li { margin-top: 10px; color: var(--muted); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }
.legal .note { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }

/* Accessibility */
:root[data-text="1"] main, :root[data-text="1"] footer { zoom: 1.15; }
:root[data-text="2"] main, :root[data-text="2"] footer { zoom: 1.3; }
:root[data-links="1"] a:not(.btn):not(.store):not(.app):not(.brand) { text-decoration: underline !important; text-underline-offset: 3px; }
:root[data-contrast="1"] { --muted: var(--ink); --line: #6b7078; }
:root[data-motion="0"] *, :root[data-motion="0"] *::before, :root[data-motion="0"] *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.a11y-btn {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.a11y-btn svg { width: 28px; height: 28px; }
.a11y-panel {
  position: fixed; left: 16px; bottom: 80px; z-index: 50; width: min(300px, calc(100vw - 32px));
  padding: 18px; border-radius: 18px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 17px; margin-bottom: 12px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.a11y-seg { display: flex; gap: 4px; }
.a11y-seg button, .a11y-toggle, .a11y-reset {
  font: inherit; font-size: 14px; cursor: pointer; padding: 6px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.a11y-seg button[aria-pressed="true"], .a11y-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.a11y-reset { margin-top: 10px; width: 100%; }
