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

:root {
  --site-font-ui: 'Geist', 'Inter', system-ui, sans-serif;
  --site-base-font-size: 16px;
  /* Brand */
  --navy: #0A0F1E;
  --navy-surface: #111827;
  --navy-card: #1E293B;
  --code-bg: #0F172A;
  --brand-accent: #2563EB;
  --brand-accent2: #F59E0B;
  --brand-primary: #1E2A38;
  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  /* Backgrounds */
  --bg-main: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-surface2: #F1F5F9;
  /* Borders */
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-strong: #CBD5E1;
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 24px rgba(15,23,42,0.10);
  --shadow-lg: 0 18px 60px rgba(15,23,42,0.12);
  --shadow-floating: 0 20px 60px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.15);
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ═══ Material Symbols ═══════════════════════════ */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@font-face {
  font-family: 'Lexend';
  src: url('/fonts/lexend-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('/fonts/opendyslexic-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

html {
  font-size: var(--site-base-font-size);
}
body {
  font-family: var(--site-font-ui);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Keep navigation UI stable regardless of reader font */
nav,
.nav-logo,
.nav-links a,
.nav-cta,
.nav-menu-toggle,
.lang-toggle,
.font-setting-control,
footer,
footer a {
  font-family: 'Inter', system-ui, sans-serif;
}

a { cursor: pointer; transition: all 0.15s ease; }
button { cursor: pointer; transition: all 0.15s ease; }
input[type="text"], input[type="email"], input[type="search"], textarea, select { transition: all 0.15s ease; }
input[type="checkbox"], input[type="radio"] { cursor: pointer; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ════════════════════════════════════════
   NAV — dark sticky
════════════════════════════════════════ */
nav {
  background: rgba(10,15,30,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.nav-logo img {
  height: 32px;
  width: 32px;
  border-radius: 5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin-left: auto;
  margin-right: 0;
}
.nav-links a {
  text-decoration: none;
  color: #94A3B8;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #60A5FA; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 36px;
  box-sizing: border-box;
  background: var(--brand-accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: none;
}
.nav-cta:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.nav-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}

/* Font setting control — dark variant */
.font-setting-control {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  height: 36px;
  box-sizing: border-box;
}
.font-setting-control select {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  background: transparent;
  color: #CBD5E1;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
  height: 100%;
  box-sizing: border-box;
  width: 74px;
}
.font-setting-control select option { background: #1E293B; color: #CBD5E1; }

/* Lang toggle — dark */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  height: 36px;
  box-sizing: border-box;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1;
}
.lang-toggle:hover { background: rgba(255,255,255,0.12); color: #fff; }
/* Hidden on desktop — shown only in the mobile header */
.lang-toggle-header { display: none; }

/* Mobile hamburger — dark */
.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: #94A3B8;
  cursor: pointer;
}
.nav-menu-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-menu-icon { font-size: 24px; line-height: 1; }

/* Accessibility font overrides */
html[data-site-font="opendyslexic"] .hero h1,
html[data-site-font="opendyslexic"] .hero-sub,
html[data-site-font="opendyslexic"] .section-header h2,
html[data-site-font="opendyslexic"] .section-header p { letter-spacing: 0; }

html[data-site-font="opendyslexic"] code,
html[data-site-font="opendyslexic"] pre,
html[data-site-font="opendyslexic"] .feat-code,
html[data-site-font="opendyslexic"] .feat-code *,
html[data-site-font="opendyslexic"] .hero-mono,
html[data-site-font="opendyslexic"] .hero-mono *,
html[data-site-font="opendyslexic"] .tech-section-block code,
html[data-site-font="opendyslexic"] .release-items code {
  font-family: "OpenDyslexic", "Comic Sans MS", sans-serif !important;
  line-height: 1.9;
}
/* Enlarged: rem-based elements scale automatically; only buttons need padding adjustment */
html[data-site-font="enlarged"] .btn-primary,
html[data-site-font="enlarged"] .btn-ghost { padding: 18px 38px; }

html[lang="uk"] .nav-links { gap: 16px; }
html[lang="uk"] .nav-links a { font-size: 13px; }
html[lang="uk"] .nav-cta { padding: 8px 12px; font-size: 12px; }

/* ════════════════════════════════════════
   HERO — full-width dark
════════════════════════════════════════ */
.hero {
  background: radial-gradient(ellipse 120% 80% at 50% 30%, #1a2a4a 0%, var(--navy) 100%);
  padding: 96px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(96,165,250,0.3);
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 24px;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #60A5FA; flex-shrink: 0; }
.hero-badge-text { font-size: 12px; font-weight: 500; color: #93C5FD; white-space: nowrap; }

.hero h1 {
  font-family: var(--site-font-ui);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 860px;
  margin-bottom: 20px;
}
.hero h1 span { color: #60A5FA; }

.hero-sub {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: #94A3B8;
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: var(--brand-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #1D4ED8; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.4); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: rgba(255,255,255,0.07);
  color: #CBD5E1;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
/* Legacy alias for pages that still use btn-secondary */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--bg-surface2); border-color: var(--brand-accent); }

.hero-note { margin-top: 14px; font-size: 0.8125rem; color: #475569; }

/* Hero playground preview */
/* Hero preview wrapper */
.hero-preview-wrap {
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-preview {
  width: 100%;
  border-radius: 0 0 12px 12px;
  border: 1px solid #334155;
  border-top: none;
  box-shadow: var(--shadow-floating);
  overflow: hidden;
  text-align: left;
  background: var(--navy-surface);
}

/* Offline chip in browser bar */
.hero-offline-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: #F59E0B;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .02em;
}

/* Try real editor bar — sits on top of the mockup */
.hero-try-real {
  border: 1px solid #334155;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px 12px 0 0;
  background: #080E1C;
  padding: 12px 20px;
}
.hero-try-real-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-try-real-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hero-try-real-label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-try-real-sub {
  font-size: 13px;
  color: #94A3B8;
}
.hero-try-real-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563EB;
  color: #fff;
  font-family: var(--geist);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
  letter-spacing: .01em;
}
.hero-try-real-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.browser-bar {
  background: #1F2937;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
}
.browser-dot { width: 9px; height: 9px; border-radius: 50%; }
.browser-dot.red { background: #EF4444; }
.browser-dot.yellow { background: #F59E0B; }
.browser-dot.green { background: #22C55E; }
.browser-url {
  margin-left: 8px;
  background: #374151;
  border-radius: 4px;
  padding: 2px 10px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #9CA3AF;
}
.preview-body { display: flex; height: 320px; }
.code-pane {
  width: 55%;
  background: var(--code-bg);
  padding: 18px 20px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.75;
  overflow: hidden;
  text-align: left;
}
.code-line { white-space: pre; }
.kw { color: #818CF8; }
.fn { color: #60A5FA; }
.st { color: #34D399; }
.cm { color: #475569; }
.nm { color: #F9A8D4; }
.nu { color: #FCD34D; }
.op { color: #94A3B8; }
.line-nums {
  width: 36px;
  background: var(--code-bg);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 18px 0;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #374151;
  text-align: right;
}
.line-num { padding: 0 8px; line-height: 1.75; }
.console-pane {
  width: 45%;
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
}
.console-tab-bar {
  background: #111827;
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 32px;
}
.console-tab {
  padding: 0 14px;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.console-tab.active { color: #60A5FA; border-bottom-color: #60A5FA; }
.console-output {
  flex: 1;
  background: var(--navy);
  padding: 14px 16px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  overflow: hidden;
  text-align: left;
}
.console-output .out { color: #94A3B8; }
.console-output .out-val { color: #34D399; }
.console-output .out-err { color: #F87171; }
.console-input-bar {
  background: #111827;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 8px;
  height: 36px;
}
.console-prompt { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 12px; color: #475569; }

/* ════════════════════════════════════════
   STATS BAND
════════════════════════════════════════ */
.stats-band {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat-item {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--site-font-ui);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.8125rem; color: var(--text-muted); }

/* ════════════════════════════════════════
   SECTIONS
════════════════════════════════════════ */
section { padding: 80px 0; }
.section-alt { background: var(--bg-surface); }
.section-dark { background: var(--navy); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 10px;
}
.section-label .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.section-header h2 {
  font-family: var(--site-font-ui);
  font-size: 2.375rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.section-header h2.inv { color: #fff; }
.section-header p {
  margin-top: 12px;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.section-header p.inv { color: #64748B; }

/* ════════════════════════════════════════
   FEATURE ROWS — alternating
════════════════════════════════════════ */
.feat-rows { display: flex; flex-direction: column; }
.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.feat-row:last-child { border-bottom: none; }
.feat-row.rev { direction: rtl; }
.feat-row.rev > * { direction: ltr; }

.feat-row-info { display: flex; flex-direction: column; gap: 18px; }
.feat-row-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-accent);
  width: fit-content;
}
.feat-row-title {
  font-family: var(--site-font-ui);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.feat-row-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.feat-row-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feat-row-bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.feat-row-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--brand-accent);
  border-radius: 50%;
  margin-top: 8px;
}
.feat-row-link {
  color: var(--brand-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}
.feat-row-link:hover { color: #1D4ED8; text-decoration: underline; }

/* Code visual panel */
.feat-visual {
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-md);
}
.feat-visual-bar {
  background: #1F2937;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.feat-dot { width: 8px; height: 8px; border-radius: 50%; }
.feat-dot.r { background: #EF4444; }
.feat-dot.y { background: #F59E0B; }
.feat-dot.g { background: #22C55E; }
.feat-code {
  padding: 18px 20px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
  overflow-x: auto;
  color: #CBD5E1;
}
.feat-code .cl { white-space: pre; }
.feat-output {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #060d1a;
  padding: 12px 20px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #64748B;
  text-align: left;
}
.feat-output .out-label { font-size: 10px; color: #374151; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.feat-output .out-val { color: #34D399; }

/* ════════════════════════════════════════
   COMPARISON TABLE
════════════════════════════════════════ */
.compare-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-collapse: collapse;
}
.compare-header {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.compare-header-cell {
  padding: 14px 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  text-align: center;
}
.compare-header-cell:first-child { text-align: left; }
.compare-header-cell:last-child { border-right: none; }
.compare-header-cell.pyroom {
  background: #EFF6FF;
  color: var(--brand-accent);
  font-family: var(--site-font-ui);
  font-size: 0.875rem;
}
.compare-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  border-top: 1px solid var(--border);
  background: #fff;
}
.compare-row:nth-child(even) { background: #FAFAFA; }
.compare-cell {
  padding: 13px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.compare-cell:last-child { border-right: none; }
.compare-cell.pyroom { background: rgba(239,246,255,0.5); justify-content: center; }
.compare-cell.center { justify-content: center; }
.icon-yes { color: var(--brand-accent); font-size: 16px; font-weight: 700; }
.icon-yes .material-symbols-outlined { color: #2563EB; }
.icon-no { color: #EF4444; font-size: 14px; }
.icon-no .material-symbols-outlined { color: #94A3B8; }
.icon-partial { color: #F59E0B; font-size: 12px; font-weight: 600; }

/* ════════════════════════════════════════
   AUDIENCE CARDS
════════════════════════════════════════ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.audience-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.audience-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.usecase-emoji { display: flex; align-items: center; justify-content: center; }
.audience-card h3 {
  font-family: var(--site-font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.audience-card p { font-size: 0.9375rem; line-height: 1.7; color: var(--text-secondary); flex: 1; }
.audience-highlight {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.hl-blue { background: #EFF6FF; color: var(--brand-accent); }
.hl-green { background: #F0FDF4; color: #16A34A; }
.hl-orange { background: #FFF7ED; color: #EA580C; }

/* ════════════════════════════════════════
   ACCESSIBILITY SECTION
════════════════════════════════════════ */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.access-info { display: flex; flex-direction: column; gap: 18px; }
.access-info h2 {
  font-family: var(--site-font-ui);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.access-info p { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; }
.access-font-options { display: flex; flex-direction: column; gap: 12px; }
.access-font-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.access-font-option:hover { border-color: var(--brand-accent); box-shadow: var(--shadow-sm); }
.access-font-option.active { border-color: var(--brand-accent); background: #EFF6FF; }
.access-font-preview {
  width: 48px;
  height: 40px;
  background: var(--bg-surface2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}
.access-font-name { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.access-font-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ════════════════════════════════════════
   WORKFLOWS (kept for compatibility)
════════════════════════════════════════ */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.workflow-icon { font-size: 34px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.workflow-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.workflow-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.5; }

/* ════════════════════════════════════════
   BUILD / EXAMPLES GRID (kept)
════════════════════════════════════════ */
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.build-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.build-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.build-card-preview {
  background: var(--brand-primary);
  padding: 22px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}
.build-card-preview code {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: #94A3B8;
  white-space: pre;
  line-height: 1.65;
}
.build-card-preview code .kw { color: #818CF8; }
.build-card-preview code .fn { color: #67E8F9; }
.build-card-preview code .str { color: #86EFAC; }
.build-card-preview code .num { color: #FCA5A5; }
.build-card-body { padding: 18px 20px; }
.build-card-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 5px; }
.build-card-body p { font-size: 0.8125rem; color: var(--text-muted); }

/* ════════════════════════════════════════
   CTA DARK SECTION
════════════════════════════════════════ */
.cta-section {
  background: var(--navy);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(37,99,235,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: var(--site-font-ui);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 680px;
  margin: 0 auto 14px;
  position: relative;
}
.cta-section p { font-size: 1.0625rem; color: #64748B; margin-bottom: 32px; position: relative; }
.cta-btns { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; position: relative; }

/* ════════════════════════════════════════
   DONATE
════════════════════════════════════════ */
.donate {
  text-align: center;
  background: var(--navy);
  color: var(--text-inverse);
  padding: 64px 0;
}
.donate h2 { font-size: 1.875rem; font-weight: 700; color: var(--text-inverse); }
.donate p { margin-top: 12px; font-size: 1.0625rem; color: #64748B; max-width: 540px; margin-left: auto; margin-right: auto; }
.donate .btn-donate {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--brand-accent2);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
.donate .btn-donate:hover { opacity: 0.9; }
.donate-currencies { margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 0.8125rem; color: #475569; }

/* ════════════════════════════════════════
   SUPPORT PAGE
════════════════════════════════════════ */
.nav-support { color: #e05c5c !important; }
.nav-support:hover { color: #ef4444 !important; }
.support-page-header {
  background: var(--navy);
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.support-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(245,158,11,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.support-page-header h1 { font-family: var(--site-font-ui); font-size: 48px; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin-bottom: 14px; position: relative; }
.support-page-header p { font-size: 1.0625rem; color: #94A3B8; max-width: 520px; margin: 0 auto; line-height: 1.65; position: relative; }
.support-body { padding: 0 0 80px; }
.support-body .container { max-width: 1120px; }
.support-why { padding: 56px 0 48px; border-bottom: 1px solid var(--border); }
.support-why h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }
.support-why p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.support-why p:last-child { margin-bottom: 0; }
.support-why ul { margin: 4px 0 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.support-why ul li { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.support-platforms { padding: 48px 0 0; }
.support-platforms h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 28px; }
/* 3 cards in one horizontal row; scroll on narrow viewports */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.platform-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.15s, transform 0.15s;
}
.platform-card:not(.coming-soon):hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.platform-card.coming-soon { opacity: 0.55; }
.platform-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  width: 100%;
}
.platform-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--navy-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.platform-card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.platform-card-info h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.platform-card-info p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }
.platform-currencies { font-size: 0.8125rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; }
.btn-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--brand-accent2);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: opacity 0.15s;
  align-self: flex-start;
  margin-top: 6px;
}
.btn-platform:hover { opacity: 0.88; }
.platform-card-info p.platform-preferred {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(240, 185, 11, 0.15);
  border: 1px solid rgba(240, 185, 11, 0.5);
  color: #946600;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.platform-coming-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--bg-surface2);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  align-self: flex-start;
}
/* QR: natural proportions, centred, full image (no cropping) */
.platform-qr {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  background: #fff;
  box-sizing: border-box;
}
.platform-qr img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  cursor: zoom-in;
  border-radius: 4px;
  background: #fff;
}
/* ── Zoom / lightbox overlay ── */
.img-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.img-zoom-overlay.is-open { display: flex; }
.img-zoom-inner { position: relative; }
.img-zoom-inner img {
  max-width: min(520px, 92vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
  cursor: default;
}
.img-zoom-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
  font-family: sans-serif;
}
.platform-nickname {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.platform-nickname strong { color: var(--text-primary); font-family: 'Geist Mono', 'JetBrains Mono', monospace; }
.platform-wallet { word-break: break-all; font-size: 0.75rem; letter-spacing: 0.02em; }
.platform-wallet-copy-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.platform-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px 3px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.platform-copy-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.07); }
.platform-copy-btn.copied { color: #22c55e; }
.platform-copy-btn .material-symbols-outlined { font-size: 15px; line-height: 1; user-select: none; }
.platform-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.platform-bullets li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.platform-bullets li::before {
  content: '•';
  color: var(--brand-accent2, #F59E0B);
  font-size: 1.1em;
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .support-page-header h1 { font-size: 2rem; }
  /* Keep horizontal row; allow scroll on narrow screens */
  .platform-cards {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .platform-card { padding: 32px 28px; }
}

/* ════════════════════════════════════════
   SUBSCRIBE
════════════════════════════════════════ */
.subscribe {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}
.subscribe h2 { font-size: 1.625rem; font-weight: 700; color: var(--text-primary); }
.subscribe p { margin-top: 10px; font-size: 1rem; color: var(--text-muted); max-width: 460px; margin-left: auto; margin-right: auto; }
.subscribe-form { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
  padding: 11px 16px;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  width: 280px;
  outline: none;
  font-family: inherit;
}
.subscribe-form input[type="email"]:hover { border-color: var(--brand-accent); }
.subscribe-form input[type="email"]:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.subscribe-form button {
  padding: 11px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--brand-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.subscribe-form button:hover { opacity: 0.88; transform: translateY(-1px); }
.subscribe-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.subscribe-msg { margin-top: 12px; font-size: 0.875rem; min-height: 20px; }
.subscribe-msg.ok { color: #16A34A; }
.subscribe-msg.err { color: #DC2626; }

/* ════════════════════════════════════════
   BUG REPORT
════════════════════════════════════════ */
.bug-report { background: var(--bg-main); border-top: 1px solid var(--border); padding: 64px 0; }
.bug-report .container { max-width: 640px; text-align: center; }
.bug-report h2 { font-size: 1.625rem; font-weight: 700; color: var(--text-primary); }
.bug-report > .container > p { margin-top: 10px; font-size: 1rem; color: var(--text-muted); }
.bug-report-form { margin-top: 32px; text-align: left; }
.bug-report-form .form-group { margin-bottom: 20px; }
.bug-report-form label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.bug-report-form .required-mark { color: #DC2626; margin-left: 2px; }
.bug-report-form input[type="text"],
.bug-report-form input[type="email"],
.bug-report-form textarea,
.bug-report-form select {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}
.bug-report-form input:hover, .bug-report-form textarea:hover, .bug-report-form select:hover { border-color: var(--brand-accent); }
.bug-report-form input:focus, .bug-report-form textarea:focus, .bug-report-form select:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.bug-report-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2317223B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.bug-report-form textarea { resize: vertical; min-height: 120px; }
.bug-report-form input.is-invalid, .bug-report-form textarea.is-invalid, .bug-report-form select.is-invalid { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }
.bug-report-form .field-error { margin-top: 6px; font-size: 0.8125rem; color: #DC2626; line-height: 1.3; }
.bug-report-form small { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--text-muted); }
.bug-report-form .btn-primary { width: 100%; padding: 13px 24px; font-size: 1rem; margin-top: 8px; border: none; }
.bug-report-msg { margin-top: 16px; font-size: 0.875rem; min-height: 20px; text-align: center; }
.bug-report-msg.ok { color: #16A34A; }
.bug-report-msg.ok a { color: #16A34A; text-decoration: underline; }
.bug-report-msg.err { color: #DC2626; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: #475569; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; list-style: none; }
.footer-links a { font-size: 13px; color: #64748B; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #CBD5E1; }
.footer-links a.footer-donate { color: #e05c5c; }
.footer-links a.footer-donate:hover { color: #ef4444; }

/* ════════════════════════════════════════
   RELEASES PAGE
════════════════════════════════════════ */
.releases-page-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 52px;
  text-align: center;
}
.releases-page-header h1 {
  font-family: var(--site-font-ui);
  font-size: 2.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.releases-page-header p { font-size: 1.0625rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 28px; line-height: 1.65; }
.releases-filter-bar { display: flex; gap: 8px; justify-content: center; }
.releases-filter-btn {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  transition: all 0.12s;
  font-family: inherit;
}
.releases-filter-btn:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.releases-filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.releases-body { max-width: 820px; margin: 0 auto; padding: 56px 40px 96px; }

/* Featured latest release */
.release-featured {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.release-featured::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.featured-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.featured-version { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 26px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.featured-date { font-size: 13px; color: #475569; margin-top: 4px; }
.release-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.release-badge.major { background: rgba(37,99,235,0.2); color: #93C5FD; border: 1px solid rgba(96,165,250,0.3); }
.release-badge.minor { background: rgba(255,255,255,0.07); color: #94A3B8; border: 1px solid rgba(255,255,255,0.1); }
.release-badge.patch { background: rgba(255,255,255,0.04); color: #64748B; border: 1px solid rgba(255,255,255,0.06); }

.featured-items { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.featured-items li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: #CBD5E1; line-height: 1.65; }
.featured-items li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; background: #3B82F6; border-radius: 50%; margin-top: 8px; }

/* Timeline */
.releases-timeline { display: flex; flex-direction: column; }
.release-entry { display: flex; gap: 0; position: relative; }
.release-entry::after { content: ''; position: absolute; left: 119px; top: 50px; bottom: -1px; width: 1px; background: var(--border); }
.release-entry:last-child::after { display: none; }

.release-meta { flex-shrink: 0; width: 120px; padding: 28px 20px 28px 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.release-version { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.release-date { font-size: 12px; color: var(--text-muted); }

.timeline-dot { flex-shrink: 0; width: 40px; display: flex; align-items: flex-start; padding-top: 36px; justify-content: center; position: relative; z-index: 1; }
.timeline-dot-inner { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); border: 2px solid #fff; box-shadow: 0 0 0 3px var(--border); }
.timeline-dot-inner.major { background: var(--brand-accent); box-shadow: 0 0 0 3px #DBEAFE; }
.timeline-dot-inner.minor { background: #94A3B8; }
.timeline-dot-inner.patch { background: var(--border-strong); }

.release-body { flex: 1; padding: 28px 0 28px 20px; }
.release-body ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.release-body li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }
.release-body li::before { content: ''; flex-shrink: 0; width: 5px; height: 5px; background: var(--text-muted); border-radius: 50%; margin-top: 9px; }

/* ════════════════════════════════════════
   TECH PAGE
════════════════════════════════════════ */
.tech-page-header {
  background: var(--navy);
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tech-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(37,99,235,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.tech-page-header h1 { font-family: var(--site-font-ui); font-size: 48px; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin-bottom: 14px; position: relative; }
.tech-page-header p { font-size: 1.0625rem; color: #94A3B8; max-width: 520px; margin: 0 auto; line-height: 1.65; position: relative; }
.tech-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(96,165,250,0.3);
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 500;
  color: #93C5FD;
  position: relative;
}
.tech-section-block { padding: 64px 0; border-bottom: 1px solid var(--border); }
.tech-section-block:last-child { border-bottom: none; }
.tech-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.tech-meta-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.tech-meta-card .label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px; }
.tech-meta-card .value { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 20px; font-weight: 600; color: var(--brand-accent); margin-bottom: 4px; }
.tech-meta-card .sub { font-size: 12px; color: var(--text-muted); }

.tech-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.tech-list li { position: relative; padding-left: 28px; font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.65; }
.tech-list li::before { content: ''; position: absolute; left: 0; top: .76em; transform: translateY(-50%); width: 6px; height: 6px; background: var(--brand-accent); border-radius: 50%; }
.tech-list li.cross::before { background: #94a3b8; }
.tech-list li code, .tech-section-block p code {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 12.5px;
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-primary);
}
.tech-notice {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-size: 0.875rem;
  color: #1D4ED8;
  margin-bottom: 20px;
}
.pkg-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pkg-tag { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-size: 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; color: var(--text-secondary); }

.arch-diagram {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 16px;
  overflow-x: auto;
}
.arch-diagram .layer { display: flex; align-items: center; gap: 12px; }
.arch-diagram .layer-label { min-width: 130px; color: var(--text-muted); font-size: 11px; }
.arch-diagram .layer-box { flex: 1; background: var(--bg-surface2); border: 1px solid var(--border); border-radius: 6px; padding: 7px 14px; color: var(--text-primary); font-size: 12px; }
.arch-diagram .layer-box.accent { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.arch-diagram .arrow { color: var(--text-muted); text-align: center; padding-left: 130px; font-size: 16px; line-height: 1.2; }

/* ════════════════════════════════════════
   HOW TO USE PAGE
════════════════════════════════════════ */
.howto-page-header {
  background: var(--navy);
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.howto-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(37,99,235,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.howto-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(96,165,250,0.3);
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 500;
  color: #93C5FD;
  position: relative;
}
.howto-page-header h1 { font-family: var(--site-font-ui); font-size: 48px; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin-bottom: 14px; position: relative; }
.howto-page-header p { font-size: 1.0625rem; color: #94A3B8; max-width: 560px; margin: 0 auto 28px; line-height: 1.65; position: relative; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1280px) {
  .nav-inner { position: relative; height: auto; min-height: 64px; padding: 8px 0; gap: 10px; }
  .nav-links {
    display: none;
    margin: 0;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    background: #1E293B;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 12px; border-radius: 6px; }
  .nav-links a:hover { background: rgba(255,255,255,0.06); }
  .nav-links .lang-toggle { display: none; }
  .lang-toggle-header { display: inline-flex; }
  .nav-actions { margin-left: auto; gap: 8px; }
  .nav-menu-toggle { display: inline-flex; }
  .nav-cta { padding: 7px 12px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .feat-row { grid-template-columns: 1fr; gap: 40px; }
  .feat-row.rev { direction: ltr; }
  .access-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .build-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 72px 20px 0; }
  .hero h1 { font-size: 2.125rem; }
  .hero-sub { font-size: 1rem; }
  .preview-body { height: 260px; }
  .code-pane { width: 100%; }
  .console-pane { display: none; }
  section { padding: 56px 0; }
  .section-header h2 { font-size: 1.75rem; }
  .releases-body { padding: 40px 20px 72px; }
  .release-featured { padding: 24px; }
  .featured-version { font-size: 1.25rem; }
  .release-entry { flex-direction: column; gap: 0; }
  .release-entry::after { display: none; }
  .release-meta { width: auto; text-align: left; flex-direction: row; align-items: center; padding: 20px 0 8px; }
  .timeline-dot { display: none; }
  .release-body { padding: 0 0 20px; }
  .audience-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: 1fr; }
  .tech-meta-grid { grid-template-columns: 1fr; }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .compare-header, .compare-row { grid-template-columns: 1.8fr 1fr 1fr; }
  .compare-header-cell:nth-child(n+4), .compare-cell:nth-child(n+4) { display: none; }
  .releases-page-header h1 { font-size: 2rem; }
  .tech-page-header h1 { font-size: 2.125rem; }
  .howto-page-header h1 { font-size: 2.125rem; }
  .arch-diagram .layer-label { min-width: 80px; font-size: 10px; }
  .arch-diagram .arrow { padding-left: 80px; }
  .nav-logo img { width: 28px; height: 28px; }
  .nav-cta { font-size: 12px; padding: 6px 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { gap: 10px 16px; }
  .hero-try-real { border-radius: 8px 8px 0 0; }
  .hero-preview { border-radius: 0 0 8px 8px; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 16px 0; }
  .hero-badge { padding: 4px 10px; gap: 6px; }
  .hero-badge-text { font-size: 10.5px; }
  .hero h1 { font-size: 1.75rem; line-height: 1.2; }
  .hero-sub { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; justify-content: center; }
  .hero-preview-wrap { display: none; }
  .stats-band-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 18px 12px; }
  .stat-num { font-size: 1.75rem; }
  .section-header h2 { font-size: 1.5rem; }
  .compare-header, .compare-row { grid-template-columns: 2fr 1fr 1fr; }
  .compare-header-cell:nth-child(n+4), .compare-cell:nth-child(n+4) { display: none; }
  .compare-header-cell { padding: 10px 8px; font-size: 0.75rem; }
  .compare-cell { padding: 10px 8px; font-size: 0.8rem; }
  .compare-cell .material-symbols-outlined { font-size: 16px !important; }
  .icon-partial { font-size: 11px; }
  .audience-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .access-font-options { gap: 8px; }
  section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .releases-page-header h1, .tech-page-header h1 { font-size: 1.75rem; }
  .bug-report-form { gap: 12px; }
  footer { padding: 28px 0; }
}

/* Language suggestion banner */
#lang-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--brand-accent);
  color: var(--text-inverse);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  flex-wrap: wrap;
}
#lang-banner a { color: var(--text-inverse); text-decoration: underline; font-weight: 600; white-space: nowrap; }
#lang-banner button { background: none; border: none; color: var(--text-inverse); font-size: 1.2rem; line-height: 1; opacity: 0.8; padding: 4px 8px; }
#lang-banner button:hover { opacity: 1; }
@media (max-width: 768px) {
  #lang-banner { font-size: 0.82rem; gap: 8px; padding: 8px 12px; }
}

/* ════════════════════════════════════════
   LEGAL & INFO PAGES (privacy, terms, classroom)
════════════════════════════════════════ */
.legal-header { background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 64px 0 40px; }
.legal-header .container { max-width: 860px; }
.legal-header .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 10px; }
.legal-header h1 { font-family: var(--site-font-ui); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 12px; line-height: 1.15; }
.legal-header .legal-lead { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.65; max-width: 68ch; }
.legal-header .legal-meta { margin-top: 16px; font-size: 14px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-header .legal-meta a { color: var(--brand-accent); }
.legal { padding: 40px 0 80px; }
.legal .container { max-width: 860px; }
.legal-brief { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 32px; }
.legal-brief h2 { font-size: 1.125rem; margin: 0 0 10px; color: var(--text-primary); }
.legal-brief ul { margin: 0 0 0 20px; display: grid; gap: 6px; }
.legal-brief li { color: var(--text-secondary); line-height: 1.6; }
/* The TOC is a <nav>; undo the sticky dark site-header styles of the global nav rule. */
.legal-toc { position: static; z-index: auto; background: var(--bg-main); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 40px; font-family: inherit; }
.legal-toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 8px; }
.legal-toc ol { margin: 0 0 0 20px; columns: 2; column-gap: 32px; }
.legal-toc li { padding: 3px 0; break-inside: avoid; }
.legal-toc a, .legal-prose a { color: var(--brand-accent); text-underline-offset: 2px; }
.legal-prose { max-width: 75ch; color: var(--text-secondary); font-size: 16px; line-height: 1.75; }
/* Undo the landing page's 80px section padding inside documents. */
.legal-prose section, section.legal-brief { padding: 0; }
.legal-prose section { scroll-margin-top: 88px; }
.legal-prose section:first-child h2 { margin-top: 0; }
.legal-prose h2 { font-family: var(--site-font-ui); font-size: 1.5rem; color: var(--text-primary); margin: 44px 0 12px; scroll-margin-top: 88px; }
.legal-prose h3 { font-size: 1.125rem; color: var(--text-primary); margin: 28px 0 8px; scroll-margin-top: 88px; }
.legal-prose p { margin: 0 0 14px; }
.legal-prose ul, .legal-prose ol { margin: 0 0 16px 22px; display: grid; gap: 6px; }
.legal-prose strong { color: var(--text-primary); }
.legal-prose code { font-family: 'JetBrains Mono', monospace; font-size: .85em; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.legal-note { background: var(--bg-surface); border-left: 3px solid var(--brand-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 16px; margin: 16px 0; }
.legal-note.warn { border-left-color: #F59E0B; background: #FFFBEB; }
.table-scroll { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; min-width: 560px; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table-scroll th { background: var(--bg-surface); color: var(--text-primary); font-weight: 600; }
.table-scroll tr:last-child td { border-bottom: 0; }
.legal-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 12px 20px; border-radius: 10px; background: var(--brand-accent); color: #fff !important; font-weight: 600; text-decoration: none; }
.legal-prose a:focus-visible, .legal-toc a:focus-visible, .legal-cta:focus-visible, .legal-header a:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 720px) {
  .legal-header { padding: 40px 0 28px; }
  .legal-header h1 { font-size: 30px; }
  .legal-toc ol { columns: 1; }
  .legal { padding-top: 28px; }
  .legal-brief { padding: 16px 18px; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.legal-note p:last-child { margin-bottom: 0; }
/* Pricing page */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 18px; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; display: grid; gap: 6px; align-content: start; background: var(--bg-main); }
.price-card h3 { margin: 0 0 4px; }
.price-card p { margin: 0; }
.price-line { color: var(--text-primary); }
.price-line [data-price] { font-weight: 700; font-size: 1.15rem; }
.price-line .price-unit { color: var(--text-muted); font-size: .9rem; }
.price-line:not(:has([data-price]:not([hidden]))) { display: none; }
.prices-loaded .price-fallback { display: none; }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }

/* Features menu */
.nav-feature-item { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-feature-item > a { flex: 0 1 auto; }
.nav-feature-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
.nav-feature-toggle:hover, .nav-feature-toggle[aria-expanded="true"] { color: var(--text-inverse); }
.nav-feature-panel { position: absolute; top: calc(100% + 14px); left: -14px; width: 520px; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 8px; background: var(--navy-card); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); box-shadow: var(--shadow-floating); z-index: 120; }
.nav-feature-panel a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-inverse); white-space: normal; }
.nav-feature-panel a:hover { background: rgba(255,255,255,0.06); }
.nav-feature-panel small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: #94A3B8; }
@media (min-width: 1281px) {
  .nav-feature-item.is-open > .nav-feature-panel { display: grid; }
  /* Bridges the gap below the link so hover survives the move into the panel. */
  .nav-feature-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
}
@media (hover: hover) and (min-width: 1281px) {
  .nav-feature-item:hover > .nav-feature-panel { display: grid; }
}
@media (max-width: 1280px) {
  .nav-feature-item { flex-wrap: wrap; }
  .nav-feature-toggle { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .nav-feature-panel { position: static; flex-basis: 100%; width: 100%; grid-template-columns: 1fr; display: none; gap: 4px; margin-top: 4px; padding: 4px; box-shadow: none; }
  .nav-feature-item.is-open > .nav-feature-panel { display: grid; }
  .nav-feature-panel a { min-height: 44px; }
}
a:focus-visible, button:focus-visible { outline: 2px solid #60A5FA; outline-offset: 2px; }
