/* Self-hosted Fira Sans + Fira Code (SIL OFL, see fonts/OFL.txt). latin-ext is
   subsetted via unicode-range so it only downloads when the text needs it. */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fira-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fira-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/fira-sans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/fira-sans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fira-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fira-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/fira-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/fira-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fira Code is a variable font — one file covers weights 500 and 600. */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/fira-code-500-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/fira-code-500-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #F0F9FF;
  --surface: #FFFFFF;
  --border: #DBEAFE;
  --text: #0F172A;
  --text-dim: #475569;
  --accent: #0E7490;
  --accent-hover: #155E75;
  --on-accent: #FFFFFF;
  --cta: #047857;
  --cta-hover: #059669;
  --on-cta: #FFFFFF;
  --muted: #E0F2FE;
  --header-bg: rgba(240, 249, 255, 0.8);
  --glow: rgba(14, 116, 144, 0.12);
  --warn-bg: #FFF8E1;
  --warn-border: #F9A825;
  --warn-text: #5D4037;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(14, 116, 144, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0B1220;
    --surface: #141E30;
    --border: #26334D;
    --text: #E8EEF6;
    --text-dim: #94A3B8;
    --accent: #22D3EE;
    --accent-hover: #67E8F9;
    --on-accent: #06202A;
    --cta: #34D399;
    --cta-hover: #6EE7B7;
    --on-cta: #052E22;
    --muted: #1B2942;
    --header-bg: rgba(11, 18, 32, 0.8);
    --glow: rgba(34, 211, 238, 0.13);
    --warn-bg: rgba(249, 168, 37, 0.12);
    --warn-border: #F9A825;
    --warn-text: #FFE0A3;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .btn {
  font-family: "Fira Sans", -apple-system, sans-serif;
}

.eyebrow, .badge {
  font-family: "Fira Code", ui-monospace, monospace;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a, [role="button"] { touch-action: manipulation; }

.reveal {
  opacity: 0;
  transform: translateY(10px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo-mark { border-radius: 7px; }

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

/* Hero */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
  background: radial-gradient(ellipse 75% 55% at 50% 0%, var(--glow), transparent 70%);
}

.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-secondary {
  background: var(--cta);
  color: var(--on-cta);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--cta-hover);
  box-shadow: var(--shadow-md);
}

.btn-muted {
  background: var(--muted);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* Features */
.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.features h2 {
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--muted);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.privacy-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* Legal pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal-page h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-page p { color: var(--text-dim); margin-bottom: 0.9rem; }

.legal-page h1 + p,
.legal-page h1 + p em { color: var(--text-dim); }

.legal-page ul, .legal-page ol {
  padding-left: 1.5rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.legal-page li { margin-bottom: 0.5rem; }

.legal-page a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page .safety {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  color: var(--warn-text);
  padding: 0.9rem 1.1rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
}

.legal-page pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85em;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.legal-page .footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
