/* Raw palette — only this file may use these. */
:root {
  --violet-500: #663af3;
  --violet-400: #7c55f5;
  --violet-600: #5730d4;
  --ink-950: #05060f;
  --frost-100: #d8ecf8;
  --frost-200: #d1e4fa;
  --frost-300: #c7d3ea;
  --frost-400: #9da7ba;
  --paper-000: #ffffff;
  --paper-050: #f7f9fc;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --max: 1100px;
}

:root[data-theme="dark"] {
  --canvas: #05060f;
  --surface: #0b0d18;
  --surface-raised: #141826;
  --surface-hover: #1e2333;
  --surface-glass: rgba(186, 214, 247, 0.04);
  --accent: #663af3;
  --accent-hover: #7c55f5;
  --accent-active: #5730d4;
  --focus-ring: #b6d9fc;
  --border-subtle: rgba(186, 215, 247, 0.12);
  --border: rgba(186, 215, 247, 0.28);
  --text: #d1e4fa;
  --text-heading: #d8ecf8;
  --text-muted: #c7d3ea;
  --text-helper: #9da7ba;
  --text-on-accent: #ffffff;
}

:root[data-theme="light"] {
  --canvas: #f7f9fc;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-hover: #eef1f7;
  --surface-glass: rgba(5, 6, 15, 0.03);
  --accent: #663af3;
  --accent-hover: #5730d4;
  --accent-active: #4a27b8;
  --focus-ring: #663af3;
  --border-subtle: rgba(5, 6, 15, 0.08);
  --border: rgba(5, 6, 15, 0.18);
  --text: #10141f;
  --text-heading: #05060f;
  --text-muted: #4a5567;
  --text-helper: #5c6879;
  --text-on-accent: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--canvas) 85%, transparent);
  border-bottom: 1px solid var(--border-subtle);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 650;
  color: var(--text-heading);
}

.mark {
  display: block;
  flex: 0 0 auto;
}

.nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text-heading);
}

.theme-toggle {
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--surface-hover);
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .theme-toggle {
    margin-left: 0;
  }
}

.hero {
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--text-helper);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: var(--text-on-accent);
}

.btn.primary:hover {
  background: var(--accent-hover);
}

.btn.primary:active {
  background: var(--accent-active);
}

.btn.ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.btn.ghost:hover {
  background: var(--surface-hover);
}

.features,
.how {
  padding: 2rem 0 4rem;
}

.features h2,
.how h2 {
  margin: 0 0 1.25rem;
  color: var(--text-heading);
  font-size: 1.5rem;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  color: var(--text-heading);
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
}

.steps strong {
  color: var(--text-heading);
}

.steps span {
  color: var(--text-muted);
}

.foot {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0 2rem;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--text-helper);
  font-size: 0.9rem;
}

.foot a {
  color: var(--text-muted);
}
