/* ==========================================================================
   General Autonomy — Design System
   AI-powered safety engineering for autonomous systems
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #070a0f;
  --bg-2: #0a0e14;
  --surface: #10151d;
  --surface-2: #151b24;
  --surface-3: #1b222d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f2f5f8;
  --text-muted: #9aa6b4;
  --text-dim: #6b7684;

  /* Brand accent (orange) */
  --accent: #f5811f;
  --accent-bright: #ff9640;
  --accent-soft: rgba(245, 129, 31, 0.14);
  --accent-line: rgba(245, 129, 31, 0.4);
  --accent-glow: rgba(245, 129, 31, 0.32);

  /* Secondary accent (steel cyan) for data / diagrams */
  --cyan: #40b4de;
  --cyan-soft: rgba(64, 180, 222, 0.14);
  --cyan-line: rgba(64, 180, 222, 0.4);

  /* Semantic */
  --ok: #43c98b;
  --warn: #f5c04a;
  --risk: #e0564a;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-sm: 6px;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 44px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 129, 31, 0.12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 4.5rem;
  --wrap: 75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--bg);
  min-height: 100vh;
  padding-top: var(--header-h);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-bright); text-underline-offset: 0.2em; }

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

strong { color: var(--text); font-weight: 650; }

/* ---- Background field ---- */
#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 10%, transparent 75%);
}

/* ==========================================================================
   Skip link
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2.25rem);
  background: rgba(7, 10, 15, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.site-nav { display: flex; align-items: center; flex: 1 1 auto; justify-content: flex-end; margin-right: 0.75rem; }
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link[aria-current="page"] { color: var(--accent-bright); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

/* Dropdown */
.has-menu { position: relative; }
.has-menu > .nav-link svg { transition: transform 0.2s var(--ease); }
.has-menu.open > .nav-link svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 20rem;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.has-menu.open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s var(--ease);
}
.nav-menu a:hover { background: rgba(255, 255, 255, 0.05); }
.nav-menu .menu-title { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.nav-menu .menu-desc { font-size: 0.82rem; color: var(--text-dim); margin: 0.1rem 0 0; }
.menu-badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem; height: 2.6rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--text); transition: transform 0.25s var(--ease), opacity 0.25s; }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(7, 10, 15, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .site-header.nav-open .site-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 0.75rem 1rem 1.5rem; gap: 0.1rem; }
  .nav-link { padding: 0.8rem 0.75rem; font-size: 0.98rem; }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    min-width: 0; padding: 0 0 0 1rem; max-height: 0; overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .has-menu.open .nav-menu { max-height: 40rem; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: #0a0a0a; box-shadow: 0 0 28px var(--accent-glow); }

.btn-ghost { background: transparent; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.84rem; }
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--accent-bright); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.text-link svg { width: 1em; height: 1em; transition: transform 0.18s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(48rem, 100% - 2.5rem); margin-inline: auto; }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; position: relative; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--surface { background: linear-gradient(180deg, rgba(16, 21, 29, 0.6), rgba(16, 21, 29, 0.9)); border-block: 1px solid var(--border); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--accent-line); }
.eyebrow--center { justify-content: center; }

.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.1rem; color: var(--text-muted); }

.lead { font-size: 1.18rem; line-height: 1.7; color: var(--text-muted); }
.measure { max-width: 42rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 719px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 60rem; height: 40rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; } }

.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 34rem; margin-bottom: 2rem; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Trust / logo strip
   ========================================================================== */
.trustbar { padding: 2.25rem 0; border-block: 1px solid var(--border); background: rgba(10, 14, 20, 0.5); }
.trustbar p { text-align: center; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 1.25rem; }
.trust-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1rem 2rem;
}
.trust-logos span {
  font-weight: 600; font-size: 0.95rem; color: var(--text-dim);
  letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  position: relative;
  padding: 1.75rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  height: 100%;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.98rem; }

.card-link { text-decoration: none; color: inherit; display: block; }

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; margin-bottom: 1.15rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: var(--accent-soft);
}
.icon-tile svg { width: 1.4rem; height: 1.4rem; }
.icon-tile.cyan { color: var(--cyan); border-color: var(--cyan-line); background: var(--cyan-soft); }

/* Feature list with checks */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.check-list li { position: relative; padding-left: 1.75rem; color: var(--text-muted); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 0.75rem; height: 0.4rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.check-list.cyan li::before { border-color: var(--cyan); }

/* ==========================================================================
   Metrics / stats
   ========================================================================== */
.stat-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 719px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.stat {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 21, 29, 0.5);
}
.stat .num {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .num .unit { color: var(--accent); }
.stat .label { display: block; margin-top: 0.6rem; font-size: 0.88rem; color: var(--text-muted); }

/* ==========================================================================
   Split feature (product showcase)
   ========================================================================== */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.reverse .split-media { order: -1; } }

.split-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Product header block
   ========================================================================== */
.product-mark {
  font-family: var(--mono);
  display: inline-flex; align-items: baseline; gap: 0.15rem;
  font-weight: 600; letter-spacing: -0.02em;
}
.product-mark .g { color: var(--accent); }

/* ==========================================================================
   Pills / tags (standards, chips)
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
}
.chip.accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.chip.cyan { color: var(--cyan); border-color: var(--cyan-line); background: var(--cyan-soft); }

/* ==========================================================================
   Diagram containers
   ========================================================================== */
.diagram {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 21, 29, 0.9), var(--bg-2));
  padding: clamp(1.25rem, 3vw, 2.25rem);
  overflow: hidden;
}
.diagram svg { width: 100%; height: auto; }
.diagram-caption { font-size: 0.85rem; color: var(--text-dim); margin-top: 1rem; text-align: center; }

/* SVG diagram tokens (used inline) */
.d-node { fill: var(--surface-2); stroke: var(--border-strong); }
.d-node-accent { fill: rgba(245, 129, 31, 0.1); stroke: var(--accent-line); }
.d-node-cyan { fill: rgba(64, 180, 222, 0.1); stroke: var(--cyan-line); }
.d-label { fill: #f2f5f8; font-family: var(--font); font-weight: 600; }
.d-sub { fill: #9aa6b4; font-family: var(--mono); }
.d-flow { stroke: var(--accent); stroke-width: 2; fill: none; }
.d-flow-cyan { stroke: var(--cyan); stroke-width: 2; fill: none; }

/* ==========================================================================
   Table (standards matrix)
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 640px; }
table.matrix th, table.matrix td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.matrix thead th { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em; }
table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
table.matrix .code { font-family: var(--mono); color: var(--accent); }

/* ==========================================================================
   Steps / process
   ========================================================================== */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 860px) { .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } .steps.steps-3 { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 21, 29, 0.5);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.step h4 { margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, rgba(245, 129, 31, 0.12), rgba(16, 21, 29, 0.9) 60%);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { max-width: 40rem; margin-inline: auto; margin-bottom: 1.75rem; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, black, transparent 70%);
}
.cta-band > * { position: relative; }

/* ==========================================================================
   Breadcrumb / page hero
   ========================================================================== */
.page-hero { padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.breadcrumb { font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.45rem; }
.field label .opt { color: var(--text-dim); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field-row { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.5rem; }
.form-success {
  display: none;
  padding: 1.5rem;
  border: 1px solid var(--ok);
  border-radius: var(--radius);
  background: rgba(67, 201, 139, 0.08);
  color: var(--text);
}
.form-success.on { display: block; }

/* ==========================================================================
   Misc content
   ========================================================================== */
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

.quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}
.quote p { font-size: 1.25rem; color: var(--text); line-height: 1.55; font-weight: 500; }
.quote cite { font-style: normal; font-size: 0.9rem; color: var(--text-dim); }

.kicker-num { font-family: var(--mono); color: var(--accent); font-size: 0.85rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.resource-card { display: flex; flex-direction: column; height: 100%; }
.resource-card .rtype { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.resource-card h3 { font-size: 1.15rem; }
.resource-card .text-link { margin-top: auto; padding-top: 1rem; }

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--mono); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.85rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: rgba(7, 10, 15, 0.6); padding: clamp(3rem, 5vw, 4rem) 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 22rem; }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-region {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(1rem);
  z-index: 200;
  padding: 0.65rem 1.25rem;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast-region.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
html.reveal-on .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.reveal-on .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.accent { color: var(--accent); }
.cyan { color: var(--cyan); }
.muted { color: var(--text-muted); }
.mono { font-family: var(--mono); }
.stack > * + * { margin-top: 1rem; }
.hide-mobile { }
@media (max-width: 719px) { .hide-mobile { display: none; } }
