/* Tokens mirror docs/design.md; change the doc first. */
:root {
  color-scheme: dark;

  /* Neutrals and roles (dark only, hue 255; ADR-010) */
  --background: #0a121c;
  --foreground: #eef3f9;
  --card: #111b28;
  --card-foreground: #eef3f9;
  --muted: #0e1824;
  --muted-foreground: #9fb0c4;
  --border: #1c2a3c;
  --primary: #729bcf;
  --primary-foreground: #0a121c;
  --accent: #182e4b;
  --accent-foreground: #f0f6fd;
  --ring: #729bcf;
  --band: #1d4371;
  --band-deep: #182e4b;
  --band-foreground: #fff;

  /* Phone frame on a dark page */
  --bezel: #05080c;
  --bezel-rail: #3a4656;
  --bezel-rail-shade: #161d27;
  --glow: rgb(69 118 180 / 32%);
  --glow-fade: rgb(69 118 180 / 0%);

  /* Scrollbars */
  --scrollbar-thumb: #2c3f58;
  --scrollbar-thumb-hover: #3e5779;
  --scrollbar-track: #0e1824;

  /* Steel scale (hue 255) */
  --steel-50: #f0f6fd;
  --steel-100: #dfe9f5;
  --steel-200: #c8d9ef;
  --steel-300: #a4c0e4;
  --steel-400: #729bcf;
  --steel-500: #4576b4;
  --steel-600: #255691;
  --steel-700: #1d4371;
  --steel-800: #182e4b;
  --steel-900: #111b28;
  --steel-950: #0a121c;

  /* Radius */
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --radius-4xl: calc(var(--radius) * 2.6);
  --radius-full: 9999px;
  --radius-phone: 2.125rem;
  --radius-phone-screen: 1.625rem;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 5%);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
  --shadow-phone:
    0 1px 2px rgb(0 0 0 / 40%),
    0 12px 24px -8px rgb(0 0 0 / 45%),
    0 40px 80px -24px rgb(0 0 0 / 70%);

  /* Font */
  --font-sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout (not design tokens) */
  --gutter: 1.25rem;
  --phone-width: 17.5rem;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
}

/* Scrollbars */
html {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  background-clip: padding-box;
  border: 3px solid var(--glow-fade);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Wordmark */
.wordmark {
  font-size: 1.125rem;
  color: var(--foreground);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

a.wordmark:hover {
  color: var(--primary);
}

/* Header */
.site-header {
  background-color: var(--band);
  background-image: linear-gradient(135deg, var(--band), var(--band-deep));
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

/* Hero */
.hero {
  padding-block: 2.5rem 2rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
}

.hero-copy {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.06em;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-title {
  margin-top: 1rem;
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: balance;
  color: var(--muted-foreground);
}

.hero-visual {
  display: flex;
  justify-content: center;
  padding-block: 1rem;
  background: radial-gradient(closest-side, var(--glow), var(--glow-fade));
}

/* Phone frame: graphite rail, black bezel, concentric corners */
.phone {
  position: relative;
  flex: 0 0 auto;
  width: var(--phone-width);
  max-width: 100%;
  padding: 0.375rem;
  background:
    linear-gradient(var(--bezel), var(--bezel)) padding-box,
    linear-gradient(var(--bezel-rail), var(--bezel-rail-shade)) border-box;
  border: 2px solid var(--glow-fade);
  border-radius: var(--radius-phone);
  box-shadow: var(--shadow-phone);
}

/* Side keys: volume left, power right */
.phone::before,
.phone::after {
  position: absolute;
  width: 3px;
  content: "";
  background: linear-gradient(var(--bezel-rail), var(--bezel-rail-shade));
}

.phone::before {
  top: 22%;
  left: -5px;
  height: 11%;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.phone::after {
  top: 26%;
  right: -5px;
  height: 14%;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.phone-screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 195 / 422;
  background: var(--card);
  border-radius: var(--radius-phone-screen);
}

/* Sections */
.screens {
  padding-block: 2.5rem 3rem;
  background: var(--muted);
  border-block: 1px solid var(--border);
}

/* Screens showcase: stacked on mobile, two-up, then four-up */
.screens-row {
  display: grid;
  grid-template-columns: minmax(0, var(--phone-width));
  gap: 3.5rem;
  justify-content: center;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screen-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.screen-title {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.screen .phone {
  margin-top: auto;
}

/* CTA band */
.band {
  padding-block: 4rem;
  color: var(--band-foreground);
  background-color: var(--band);
  background-image: linear-gradient(135deg, var(--band), var(--band-deep));
}

.band-inner {
  text-align: center;
}

.band-title {
  max-width: 20ch;
  margin-inline: auto;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.band-copy {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--steel-200);
}

/* Footer */
.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

@media (width >= 640px) {
  .hero-copy {
    max-width: 36rem;
  }

  .screens-row {
    grid-template-columns: repeat(2, minmax(0, var(--phone-width)));
    gap: 3rem 2rem;
  }
}

@media (width >= 1024px) {
  :root {
    --gutter: 1.5rem;
  }

  .hero {
    padding-block: 4rem 5rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
    align-items: center;
  }

  .hero-copy {
    margin-inline: 0;
    text-align: start;
  }

  .band-inner {
    text-align: start;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .lead {
    font-size: 1.25rem;
    text-wrap: wrap;
  }

  .band-title {
    margin-inline: 0;
    font-size: 2.25rem;
  }

  .band-copy {
    font-size: 1.25rem;
  }

  .screens {
    padding-block: 5rem 3.5rem;
  }

  .band {
    padding-block: 5rem;
  }

  .screens-row {
    grid-template-columns: repeat(4, minmax(0, var(--phone-width)));
    gap: 2rem;
    padding-block: 1.5rem 2.5rem;
  }
}
