/* ============================================================
   ALZero — Enterprise Navy design system (light base + navy bands)
   Sections: tokens / base / header / hero / mockups / stats /
   compare / pillars / calculator / pipeline / table / form / footer
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #F5F7FA;
  --bg-navy: #0C1A33;
  --surface: #FFFFFF;
  --surface-dark: rgba(255, 255, 255, 0.05);
  --border: #DCE3EE;
  --border-dark: #22375C;
  --yellow: #FFC400;
  --gold: #A97700;
  --blue: #1D4ED8;
  --emerald: #00C853;
  --emerald-2: #0E9F6E;
  --crimson: #FF1744;
  --crimson-2: #DC2626;
  --crimson-bright: #FF4D6D;
  --text: #16233C;
  --text-dim: #5A6B85;
  --text-dark: #E6EAF2;
  --text-dim-dark: #93A4BF;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --radius: 12px;
  --maxw: 1200px;
  --shadow: 0 8px 28px rgba(12, 26, 51, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.15rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 720px; }

.text-yellow { color: var(--gold); }
.text-emerald { color: var(--emerald); }
.text-crimson { color: var(--crimson-2); }
.text-blue { color: var(--blue); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.mono-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }

.section { padding: 5rem 0; }
.black-section {
  background: var(--bg-navy);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-dark);
}
.black-section .section-sub,
.black-section .eyebrow,
.black-section .mono-tag,
.black-section .feature-list li,
.black-section .pipe-step p { color: var(--text-dim-dark); }
.black-section .text-yellow { color: var(--yellow); }
.black-section .text-crimson { color: var(--crimson-bright); }
.section-sub { color: var(--text-dim); max-width: 42rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: #14213D; border-color: var(--yellow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.black-section .btn-ghost { color: var(--text-dark); border-color: var(--border-dark); }
.black-section .btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* LEDs */
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.45em; vertical-align: middle; }
.led-green { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); animation: pulse 1.6s infinite; }
.led-yellow { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 1.25rem; margin-left: auto; }
.main-nav a { color: var(--text-dim); font-size: 0.88rem; font-weight: 500; }
.main-nav a:hover { color: var(--gold); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.lang-toggle {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-dim); font-family: var(--font-mono); font-size: 0.72rem;
  padding: 0.35rem 0.6rem; cursor: pointer;
}
.lang-active { color: var(--gold); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 5rem;
  background:
    linear-gradient(rgba(29, 78, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(29, 78, 216, 0.08), transparent);
  background-size: 48px 48px, 48px 48px, 100% 100%;
}
.status-pill {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.4rem 1rem; font-size: 0.82rem; font-weight: 500;
  background: var(--surface);
  margin-bottom: 1.5rem;
}
.hero-sub { color: var(--text-dim); font-size: 1.1rem; max-width: 46rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.75rem 0 3rem; }

/* Showcase toggle + mockups */
.showcase-toggle { display: none; gap: 0.5rem; margin-bottom: 1rem; }
.showcase-tab {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer;
}
.showcase-tab.active { border-color: var(--gold); color: var(--gold); }
.showcase { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; align-items: start; }

.mockup { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.phone { border-radius: 28px; padding: 0.6rem; max-width: 340px; }
.phone-notch { width: 90px; height: 6px; background: var(--border); border-radius: 3px; margin: 0.3rem auto 0.6rem; }
.phone-screen { background: #081226; border-radius: 20px; padding: 1rem; min-height: 460px; display: flex; flex-direction: column; gap: 1rem; color: var(--text-dark); }
.phone-screen .mono-tag, .phone-screen .test-steps li { color: var(--text-dim-dark); }
.mock-head { display: flex; justify-content: space-between; align-items: center; }
.ble-state { font-family: var(--font-mono); font-size: 0.62rem; color: var(--emerald); }

.test-steps { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 0.7rem; display: flex; flex-direction: column; gap: 0.4rem; }
.test-steps li { color: var(--text-dim); padding-left: 1.1rem; position: relative; }
.test-steps li::before { content: "○"; position: absolute; left: 0; }
.test-steps li.done { color: var(--emerald); }
.test-steps li.done::before { content: "●"; }
.test-steps li.active { color: var(--yellow); }
.test-steps li.active::before { content: "◉"; }

.viewfinder { position: relative; border: 1px dashed var(--border-dark); border-radius: 10px; height: 90px; display: flex; align-items: center; justify-content: center; }
.vf-corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--emerald); }
.vf-corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.vf-corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.vf-corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.vf-corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }
.vf-label { color: var(--emerald); }

.bac-readout { margin-top: auto; text-align: center; display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }
.bac-value { font-family: var(--font-mono); font-size: 3rem; font-weight: 700; }
.bac-unit { font-size: 0.85rem; margin-left: 0.4rem; }

.chip { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; padding: 0.2rem 0.55rem; border-radius: 4px; }
.chip-pass { background: rgba(14, 159, 110, 0.1); color: #047857; border: 1px solid rgba(14, 159, 110, 0.35); }
.chip-fail { background: rgba(220, 38, 38, 0.08); color: var(--crimson-2); border: 1px solid rgba(220, 38, 38, 0.35); }
.phone-screen .chip-pass { background: rgba(0, 200, 83, 0.12); color: var(--emerald); border-color: rgba(0, 200, 83, 0.4); }
.phone-screen .chip-fail { background: rgba(255, 77, 109, 0.12); color: var(--crimson-bright); border-color: rgba(255, 77, 109, 0.4); }

/* Browser mockup */
.browser-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); }
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser-url { margin-left: 0.6rem; background: #EEF2F8; padding: 0.25rem 0.7rem; border-radius: 5px; }
.browser-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.console-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; }
.driver-card { border: 1px solid var(--border); border-radius: 8px; padding: 0.7rem; background: #F5F8FC; }
.driver-card.card-alert { border-color: rgba(220, 38, 38, 0.45); }
.dc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; font-size: 0.88rem; }
.photo-row { display: flex; align-items: center; gap: 0.6rem; }
.photo-thumb { width: 56px; height: 40px; border-radius: 6px; border: 1px solid var(--border); background: linear-gradient(135deg, #E4EAF3, #D3DCE8); }
.gps-line { display: flex; align-items: center; }

/* ---------- Stats bar ---------- */
.stats-bar { border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); background: var(--bg-navy); padding: 2.5rem 0; color: var(--text-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-value { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--yellow); }
.stat-label { font-size: 0.82rem; color: var(--text-dim-dark); }

/* ---------- Compare ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.compare-col { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; background: var(--surface); box-shadow: var(--shadow); }
.black-section .compare-col { background: var(--surface-dark); border-color: var(--border-dark); box-shadow: none; }
.highlight-col { border-color: rgba(0, 200, 83, 0.4); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; }
.check-list li.bad::before { content: "✕"; color: var(--crimson-2); position: absolute; left: 0; font-weight: 700; }
.black-section .check-list li.bad::before { color: var(--crimson-bright); }
.check-list li.good::before { content: "✓"; color: var(--emerald-2); position: absolute; left: 0; font-weight: 700; }
.black-section .check-list li.good::before { color: var(--emerald); }

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.glass-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.black-section .glass-card { background: var(--surface-dark); border-color: var(--border-dark); box-shadow: none; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.feature-list li { padding-left: 1.4rem; position: relative; font-size: 0.93rem; color: var(--text-dim); }
.feature-list li::before { content: "▸"; color: var(--gold); position: absolute; left: 0; }
.black-section .feature-list li::before { color: var(--yellow); }

/* ---------- Calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.calc-inputs label { display: block; font-size: 0.88rem; font-weight: 600; margin: 1.2rem 0 0.4rem; }
.calc-inputs label:first-child { margin-top: 0; }
.calc-inputs input[type="range"] { width: 100%; accent-color: var(--yellow); }
.calc-inputs select {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 8px;
  border: 1px solid var(--border-dark); background: #12244A; color: var(--text-dark);
  color-scheme: dark;
  font-family: var(--font-ui); font-size: 0.95rem;
}
.lead-form select, .lead-form input {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-family: var(--font-ui); font-size: 0.95rem;
}
.calc-inputs select:focus { outline: none; border-color: var(--yellow); }
.lead-form select:focus, .lead-form input:focus { outline: none; border-color: var(--blue); }
.calc-outputs { display: flex; flex-direction: column; gap: 1.2rem; }
.calc-out { display: flex; flex-direction: column; gap: 0.2rem; }
.calc-big { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 700; }
.calc-outputs .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Pipeline ---------- */
.pipeline { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.pipe-step { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 1.5rem; }
.pipe-step p { font-size: 0.88rem; color: var(--text-dim); margin: 0; }
.pipe-num { display: inline-block; color: var(--gold); border: 1px solid var(--border); border-radius: 6px; padding: 0.2rem 0.55rem; margin-bottom: 0.8rem; }
.pipe-arrow { align-self: center; color: var(--gold); font-size: 1.4rem; font-weight: 700; }

/* ---------- Spec table ---------- */
.table-wrap { overflow-x: auto; margin-top: 2rem; border: 1px solid var(--border); border-radius: var(--radius); }
.black-section .table-wrap { border-color: var(--border-dark); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--border); }
.black-section .spec-table th, .black-section .spec-table td { border-bottom-color: var(--border-dark); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); width: 240px; background: rgba(12, 26, 51, 0.04); }
.black-section .spec-table th { color: var(--text-dim-dark); background: rgba(0, 0, 0, 0.25); }
.mono-cell { font-family: var(--font-mono); color: var(--emerald-2); }
.black-section .mono-cell { color: var(--emerald); }

/* ---------- Lead form ---------- */
.lead-form { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.field-full { grid-column: 1 / -1; }
.field input.invalid, .field select.invalid { border-color: var(--crimson-2); }
.form-msg { grid-column: 1 / -1; margin: 0; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--emerald-2); }
.form-msg.err { color: var(--crimson-2); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-dark); background: var(--bg-navy); padding: 3rem 0; color: var(--text-dim-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--text-dim-dark); font-size: 0.88rem; }
.footer-links a:hover { color: var(--yellow); }
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.mono-pill { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--border-dark); border-radius: 999px; padding: 0.3rem 0.8rem; color: var(--text-dim-dark); }
.copyright { font-size: 0.8rem; color: var(--text-dim-dark); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; gap: 0.9rem;
  }
  .showcase { grid-template-columns: 1fr; }
  .showcase-toggle { display: flex; }
  .mockup { display: none; }
  .mockup.active { display: block; }
  .phone { margin: 0 auto; }
  .calc-grid, .pillar-grid, .compare-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); justify-self: center; }
  .lead-form { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
}
