@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --serif: var(--sans);
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-alt: #fafaf9;
  --pane: #ffffff;
  --pane-muted: #f6f5f3;
  --field: #ffffff;
  --hover: #f3f2f0;
  --desk: #f4f3f1;
  --bar-bg: rgba(255, 255, 255, 0.9);

  --ink: #0a0a0a;
  --ink-2: #525252;
  --ink-3: #707070;

  --line: rgba(10, 10, 10, 0.08);
  --line-2: rgba(10, 10, 10, 0.14);
  --grid: rgba(10, 10, 10, 0.06);
  --mark: #a3a3a3;

  --accent: #0a0a0a;
  --accent-hover: #262626;
  --accent-ink: #ffffff;
  --accent-text: #c2410c;
  --accent-soft: rgba(234, 88, 12, 0.08);
  --accent-line: rgba(194, 65, 12, 0.35);
  --focus-ring: #ea580c;

  --warm: #ea580c;
  --glow-a: #ffd6b0;
  --glow-b: #ffeedd;
  --glow-c: #fff7ef;
  --dot: rgba(194, 65, 12, 0.16);

  --ok: #15803d;
  --ok-fill: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.1);

  --warn: #b45309;
  --warn-fill: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.12);

  --danger: #dc2626;
  --danger-fill: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.09);

  --shimmer: rgba(255, 255, 255, 0.75);
  --raise: 0 1px 2px rgba(10, 10, 10, 0.04);
  --raise-lg: 0 1px 2px rgba(10, 10, 10, 0.04), 0 12px 32px -12px rgba(10, 10, 10, 0.14);
  --raise-xl: 0 2px 6px rgba(10, 10, 10, 0.04), 0 32px 64px -24px rgba(10, 10, 10, 0.22);

  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;
  --bar: 60px;
  --max: 1120px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-snappy: cubic-bezier(0.34, 1.3, 0.64, 1);
  --spring-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-press: cubic-bezier(0.3, 0.9, 0.4, 1);

  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums lining-nums;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0a0a;
    --bg-alt: #0f0f0f;
    --pane: #131313;
    --pane-muted: #181818;
    --field: #101010;
    --hover: #1d1d1d;
    --desk: #1a1a1a;
    --bar-bg: rgba(10, 10, 10, 0.88);
    --ink: #fafafa;
    --ink-2: #a8a8a8;
    --ink-3: #8c8c8c;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.15);
    --grid: rgba(255, 255, 255, 0.05);
    --mark: #5c5c5c;
    --accent: #fafafa;
    --accent-hover: #e5e5e5;
    --accent-ink: #0a0a0a;
    --accent-text: #fb923c;
    --accent-soft: rgba(251, 146, 60, 0.1);
    --accent-line: rgba(251, 146, 60, 0.4);
    --focus-ring: #fb923c;
    --warm: #fb923c;
    --glow-a: rgba(234, 88, 12, 0.32);
    --glow-b: rgba(234, 88, 12, 0.12);
    --glow-c: rgba(234, 88, 12, 0.04);
    --dot: rgba(251, 146, 60, 0.2);
    --ok: #4ade80;
    --ok-fill: #22c55e;
    --ok-soft: rgba(34, 197, 94, 0.14);
    --warn: #fbbf24;
    --warn-fill: #f59e0b;
    --warn-soft: rgba(245, 158, 11, 0.15);
    --danger: #f87171;
    --danger-fill: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.15);
    --shimmer: rgba(255, 255, 255, 0.05);
    --raise: 0 1px 2px rgba(0, 0, 0, 0.5);
    --raise-lg: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -16px rgba(0, 0, 0, 0.8);
    --raise-xl: 0 2px 6px rgba(0, 0, 0, 0.5), 0 32px 64px -24px rgba(0, 0, 0, 0.9);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-alt: #0f0f0f;
  --pane: #131313;
  --pane-muted: #181818;
  --field: #101010;
  --hover: #1d1d1d;
  --desk: #1a1a1a;
  --bar-bg: rgba(10, 10, 10, 0.88);
  --ink: #fafafa;
  --ink-2: #a8a8a8;
  --ink-3: #8c8c8c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --grid: rgba(255, 255, 255, 0.05);
  --mark: #5c5c5c;
  --accent: #fafafa;
  --accent-hover: #e5e5e5;
  --accent-ink: #0a0a0a;
  --accent-text: #fb923c;
  --accent-soft: rgba(251, 146, 60, 0.1);
  --accent-line: rgba(251, 146, 60, 0.4);
  --focus-ring: #fb923c;
  --warm: #fb923c;
  --glow-a: rgba(234, 88, 12, 0.32);
  --glow-b: rgba(234, 88, 12, 0.12);
  --glow-c: rgba(234, 88, 12, 0.04);
  --dot: rgba(251, 146, 60, 0.2);
  --ok: #4ade80;
  --ok-fill: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.14);
  --warn: #fbbf24;
  --warn-fill: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.15);
  --danger: #f87171;
  --danger-fill: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.15);
  --shimmer: rgba(255, 255, 255, 0.05);
  --raise: 0 1px 2px rgba(0, 0, 0, 0.5);
  --raise-lg: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  --raise-xl: 0 2px 6px rgba(0, 0, 0, 0.5), 0 32px 64px -24px rgba(0, 0, 0, 0.9);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  background: var(--bg);
  scroll-padding-top: calc(var(--bar) + 24px);
  scrollbar-color: var(--mark) var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  background: var(--bg);
}
::selection { background: var(--glow-a); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--bg); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--mark); }

html.theme-transition,
html.theme-transition * {
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, fill 220ms ease, stroke 220ms ease !important;
}

html.js-motion [data-reveal]:not(.is-revealed),
html.js-motion [data-stagger]:not(.is-revealed) > *,
html.js-motion [data-hero]:not(.is-revealed) > * {
  opacity: 0;
  transform: translateY(12px);
}

a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
h3, h4 { font-weight: 550; letter-spacing: -0.015em; line-height: 1.3; }
p { text-wrap: pretty; margin: 0; }
code, .mono { font-family: var(--mono); }
code {
  font-size: 0.84em;
  background: var(--desk);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: var(--r-xs);
}
img { max-width: 100%; height: auto; }
svg { width: 18px; height: 18px; flex: none; }

.lbl {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sect { position: relative; }

.skip {
  position: fixed;
  left: -9999px;
  top: 10px;
  background: var(--pane);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 60;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  box-shadow: var(--raise-lg);
  text-decoration: none;
  font-weight: 500;
}
.skip:focus, .skip:focus-visible { left: 12px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--bar);
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  background: var(--bar-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.bar.is-scrolled { border-bottom-color: var(--line); }

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 15.5px;
  letter-spacing: -0.02em;
  min-height: 44px;
}
.brand-mark { width: 24px; height: 24px; color: var(--ink); }
.brand-mark [stroke="#FF0000"] { stroke: var(--warm); }
.brand-mark [fill="#FF0000"] { fill: var(--warm); }

.bar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 450;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.bar-nav a:hover { color: var(--ink); background: var(--hover); }
.bar-nav a[aria-current="page"] { color: var(--ink); }

.bar-actions {
  grid-column: -2 / -1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pro-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  padding: 0 16px;
  white-space: nowrap;
  min-height: 36px;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.pro-pill:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.pro-pill[data-on="true"] { color: var(--ok); border-color: var(--line-2); background: var(--ok-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s var(--spring-press);
}
.btn:active:not([disabled]) { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-primary[disabled], .btn[aria-busy="true"] { opacity: 0.55; cursor: progress; }
.btn-quiet {
  background: var(--pane);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--raise);
}
.btn-quiet:hover { background: var(--hover); }
.btn-sm { min-height: 36px; padding: 0 15px; font-size: 13.5px; }
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--pane);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.icon-btn:hover { color: var(--ink); background: var(--hover); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

input[type="text"],
input[type="url"],
input[type="email"],
input[type="search"],
select,
textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 0 14px;
  min-height: 44px;
  width: 100%;
  caret-color: var(--warm);
  box-shadow: var(--raise);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 88px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:not([type="radio"]):not([type="checkbox"]):hover, select:hover, textarea:hover { border-color: var(--mark); }
input:not([type="radio"]):not([type="checkbox"]):focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--warm);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
input[type="radio"], input[type="checkbox"] { accent-color: var(--ink); }

.wrap {
  max-width: calc(var(--max) + 2 * clamp(20px, 4vw, 40px));
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.card {
  position: relative;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--raise-lg);
}
.card-lift { position: relative; transition: transform 0.24s var(--ease-out-expo), box-shadow 0.24s var(--ease-out-expo); }
.card-lift:hover { transform: translateY(-2px); box-shadow: var(--raise-xl); }

.glow {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 14px 14px,
    radial-gradient(120% 90% at 85% 0%, var(--glow-a), transparent 60%),
    radial-gradient(90% 80% at 10% 100%, var(--glow-b), transparent 65%),
    var(--glow-c);
}

.foot {
  max-width: calc(var(--max) + 2 * clamp(20px, 4vw, 40px));
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 40px) 56px;
}
.foot::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--line);
  margin-bottom: 40px;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-bottom: 28px;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.foot-nav a:hover { color: var(--ink); }
.foot-disclaimer {
  max-width: 82ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.foot-disclaimer strong { color: var(--ink-2); font-weight: 550; }
.small { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.small a { color: var(--ink-2); }

@media (max-width: 920px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar-nav { display: none; }
}
@media (max-width: 640px) {
  .bar { padding: 0 16px; gap: 8px; }
  .brand { font-size: 15px; gap: 8px; }
  .pro-pill { font-size: 12.5px; padding: 0 12px; }
  input[type="text"], input[type="url"], input[type="email"], input[type="search"], select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html.js-motion [data-reveal]:not(.is-revealed),
  html.js-motion [data-stagger]:not(.is-revealed) > *,
  html.js-motion [data-hero]:not(.is-revealed) > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  .bar, .foot-nav { display: none !important; }
  body, html { background: #fff !important; color: #111 !important; }
}
