:root {
  color-scheme: light dark;
  --bg: #0e1013;
  --bg: light-dark(#f5f5f7, #0e1013);
  --surface: #15181c;
  --surface: light-dark(#ffffff, #15181c);
  --surface-2: #1b1f24;
  --surface-2: light-dark(#f0f0f2, #1b1f24);
  --text: #e6e8eb;
  --text: light-dark(#1d1d1f, #e6e8eb);
  --muted: #98a0a6;
  --muted: light-dark(#6e6e73, #98a0a6);
  --line: #272c33;
  --line: light-dark(#d9d9de, #272c33);
  --accent: #2dd4bf;
  --accent: light-dark(#0f766e, #2dd4bf);
  --accent-ink: #0e1013;
  --accent-ink: light-dark(#ffffff, #0e1013);
  --danger: #e06c75;
  --terminal: #101317;
  --terminal-line: #262c33;
  --terminal-text: #e6e8eb;
  --radius: 18px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.55);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, light-dark(rgba(15, 118, 110, 0.07), rgba(45, 212, 191, 0.07)) 0%, transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 7px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  padding: 7px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.06); text-decoration: none; }
.button:active { transform: translateY(0); }
.button-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.button-ghost:hover { background: var(--surface-2); filter: none; }
.button-small { min-height: 34px; padding: 0 15px; font-size: 0.84rem; }
.header-cta { margin-left: 8px; white-space: nowrap; }

/* Hero */
.hero { padding: clamp(48px, 9vw, 96px) 0 clamp(36px, 6vw, 64px); text-align: center; }
.hero-inner { display: grid; justify-items: center; gap: 18px; max-width: 820px; }
.hero-mark img { border-radius: 29px; box-shadow: var(--shadow); }
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero h1 { margin-top: 2px; font-size: clamp(2.5rem, 7vw, 4.6rem); letter-spacing: -0.045em; }
.hero-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.hero-note { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; }

.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark svg {
  position: absolute;
  left: -2%;
  bottom: -0.28em;
  width: 104%;
  height: 0.3em;
  overflow: visible;
}
.mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 0;
  animation: draw 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
@keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }

/* Terminal card */
.terminal {
  max-width: 760px;
  margin: clamp(38px, 6vw, 62px) auto 0;
  overflow: hidden;
  border: 1px solid var(--terminal-line);
  border-radius: 16px;
  background: var(--terminal);
  box-shadow: var(--shadow);
  text-align: left;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--terminal-line);
  color: #8f9aa4;
  font-family: var(--mono);
  font-size: 0.68rem;
}
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2c333b; }
.terminal-bar span:first-child { background: #3d4b55; }
.terminal-bar em { margin-left: 8px; font-style: normal; letter-spacing: 0.03em; }
.terminal-body { padding: 20px 22px 24px; color: var(--terminal-text); font-family: var(--mono); font-size: 0.8rem; }
.terminal-row { display: flex; justify-content: space-between; gap: 24px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.terminal-row span { color: #7f8b95; }
.terminal-row strong { font-weight: 500; color: #dfe4e8; }
.terminal-row strong.accent { color: #2dd4bf; }
.terminal-line { padding-top: 18px; color: #dfe4e8; }
.terminal-line .prompt { margin-right: 8px; color: #2dd4bf; }
.caret { display: inline-block; width: 7px; height: 1em; margin-left: 4px; background: #2dd4bf; vertical-align: -0.12em; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section { padding: clamp(56px, 9vw, 96px) 0; border-top: 1px solid var(--line); }
.section-alt { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { margin-top: 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-lede { margin-top: 14px; color: var(--muted); font-size: 1.02rem; line-height: 1.65; text-wrap: pretty; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.pillar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.numeral { color: var(--accent); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; }
.pillar-label { color: var(--muted); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; text-align: right; }
.pillar h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.pillar p { margin-top: 10px; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.split-copy h2 { margin: 10px 0 16px; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.split-copy p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.split-copy p + p { margin-top: 12px; }
.muted { color: var(--muted); font-size: 0.88rem !important; }
.fair-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fair-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fair-list span { color: var(--muted); font-size: 0.86rem; }
.fair-list strong { font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.02em; }

.status { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.status li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-available { background: color-mix(in srgb, #4ade80 16%, transparent); color: light-dark(#15803d, #4ade80); }
.tag-progress { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.tag-planned { background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted); }
.status-note { margin-top: 18px; color: var(--muted); font-size: 0.85rem; }

.section-cta { text-align: center; }
.cta-inner { display: grid; justify-items: center; gap: 16px; max-width: 720px; padding-top: 12px; padding-bottom: 12px; }
.cta-inner img { border-radius: 20px; box-shadow: var(--shadow); }
.cta-inner h2 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); }
.cta-inner p { max-width: 520px; color: var(--muted); font-size: 1rem; text-wrap: pretty; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 36px;
}
.footer-brand p { max-width: 300px; margin-top: 12px; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.footer-col h2 { margin-bottom: 12px; color: var(--muted); font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); font-size: 0.86rem; text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
}

/* Documents */
.doc-layout { max-width: 840px; padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(56px, 9vw, 96px); }
.doc-header { margin-bottom: 28px; }
.doc-header h1 { margin-top: 10px; font-size: clamp(2rem, 5vw, 3rem); }
.lede { margin-top: 14px; max-width: 620px; color: var(--muted); font-size: 1.06rem; line-height: 1.65; text-wrap: pretty; }
.updated { margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; }
.prose { padding: clamp(24px, 4vw, 40px); }
.doc-section + .doc-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.doc-section h2 { margin-bottom: 10px; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.doc-section p { color: var(--muted); font-size: 0.93rem; line-height: 1.75; }
.doc-section p + p { margin-top: 10px; }
.doc-section ul, .doc-section ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.93rem; line-height: 1.75; }
.doc-section li + li { margin-top: 7px; }
.doc-section strong { color: var(--text); font-weight: 600; }
.doc-actions { justify-content: flex-start; margin-top: 20px; }

/* Forms (password reset) */
.form-card {
  max-width: 460px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.form-error {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 9%, transparent);
  color: var(--danger);
  font-size: 0.86rem;
  line-height: 1.5;
}
.form-card .button { width: 100%; margin-top: 4px; }
.form-note { margin-top: 12px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }

/* Reveal animation, only where the browser supports scroll timelines. */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
  }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .pillars { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .header-inner { gap: 10px; height: 58px; }
  .brand span { font-size: 0.92rem; }
  .header-cta { min-height: 32px; padding: 0 13px; font-size: 0.8rem; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1; }
  .terminal-body { padding: 16px 16px 20px; font-size: 0.72rem; }
  .terminal-row { gap: 12px; }
  .pillar { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .doc-section p, .doc-section ul, .doc-section ol { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark path, .caret { animation: none; }
  .button { transition: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .terminal { display: none; }
  body { background: #fff; color: #000; }
  .doc-layout { max-width: none; }
  .prose { border: 0; padding: 0; }
}
