:root {
  color-scheme: dark;
  --bg: #0a0e17;
  --bg-soft: #11161f;
  --surface: #161c27;
  --surface-soft: #1d2532;
  --text: #f1f4f8;
  --muted: #95a0b3;
  --border: #232c3a;
  --accent: #ff5a5a;
  --accent-soft: rgba(255, 90, 90, 0.18);
  --link: #8ab4ff;
  --code-bg: #1a212d;
  --serif: ui-serif, "Iowan Old Style", "Apple Garamond", "Source Serif Pro", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, #2a1b3d 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 110%, #1e3344 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
}

a:hover {
  color: #b9d0ff;
}

main {
  display: block;
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 80px 48px 72px;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-inner {
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.brand img {
  border-radius: 12px;
}

.brand-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 38em;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
}

.cta.primary {
  padding: 14px 22px;
  color: #0a0e17;
  background: var(--text);
  border-radius: 999px;
  transition: transform 120ms ease-out, background 120ms ease-out;
}

.cta.primary:hover {
  color: #0a0e17;
  background: #ffffff;
  transform: translateY(-1px);
}

.cta.primary .arrow {
  transition: transform 150ms ease-out;
}

.cta.primary:hover .arrow {
  transform: translateX(3px);
}

.cta.link {
  color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 30%, transparent);
  padding-bottom: 2px;
}

.cta.link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ─── Hero art ──────────────────────────────────────────────────────────── */

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-left: auto;
}

.vortex {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #000 0%, #000 24%, transparent 25%),
    conic-gradient(
      from 0deg,
      #ff8a4c 0deg,
      #ff5a5a 60deg,
      #b04dff 140deg,
      #4d7bff 220deg,
      #ff8a4c 360deg
    );
  filter: blur(0.4px);
  box-shadow:
    0 0 80px 10px color-mix(in srgb, #ff5a5a 25%, transparent),
    inset 0 0 50px rgba(0, 0, 0, 0.6);
  animation: spin 60s linear infinite;
}

.vortex::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 28%, rgba(0, 0, 0, 0.85) 60%);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vortex {
    animation: none;
  }
}

/* ─── Features ─────────────────────────────────────────────────────────── */

.features {
  padding: 80px 48px;
  max-width: 1180px;
  margin: 0 auto;
}

.features h2,
.scenario h2,
.cta-bottom h2 {
  margin: 0 0 48px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature {
  padding: 28px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.feature-mark {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15.5px;
}

kbd {
  display: inline-block;
  padding: 1px 7px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  font: inherit;
  font-size: 0.88em;
  color: var(--text);
}

/* ─── Scenario ─────────────────────────────────────────────────────────── */

.scenario {
  padding: 60px 48px 80px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.scenario-line {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.55;
  color: var(--text);
}

.scenario-line:last-child {
  color: var(--muted);
}

/* ─── Bottom CTA ───────────────────────────────────────────────────────── */

.cta-bottom {
  padding: 60px 48px 80px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.cta-bottom h2 {
  margin-bottom: 14px;
}

.cta-bottom p {
  margin: 0 auto 24px;
  max-width: 32em;
  color: var(--muted);
}

.cta-bottom .cta-row {
  justify-content: center;
}

/* ─── Footer ───────────────────────────────────────────────────────────── */

footer {
  padding: 40px 48px 56px;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin: 4px 0;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

.dot {
  margin: 0 10px;
  opacity: 0.5;
}

.copyright {
  font-size: 13px;
  opacity: 0.6;
}

/* ─── Privacy page (long-form document) ────────────────────────────────── */

body.document {
  background:
    radial-gradient(1000px 500px at 10% -10%, #1a2438 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}

.prose h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 44px 0 14px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.prose .updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.prose p,
.prose ul {
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin: 4px 0;
  color: var(--text);
}

.prose code {
  padding: 1px 6px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #d9e1ee;
}

.back-link {
  margin: 0 0 24px;
  font-size: 14px;
}

.back-link a {
  color: var(--muted);
  text-decoration: none;
}

.back-link a:hover {
  color: var(--text);
}

/* ─── Mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 64px 24px 48px;
  }

  .hero-art {
    max-width: 320px;
    margin: 0;
  }

  .features,
  .scenario,
  .cta-bottom {
    padding-left: 24px;
    padding-right: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature {
    padding: 22px 22px 26px;
  }

  .prose {
    padding: 40px 20px 80px;
  }
}
