/* Left Lane: company site. Dark navy, editorial, brand teal accents. */

:root {
  /* Brand: navy #011b45, teal #006e93, cream #f0ede4. Teal is lightened for contrast on navy. */
  --bg: #01142f;
  --bg-raised: #05214c;
  --bg-sunk: #000d22;
  --line: #11305c;
  --line-strong: #1d4277;
  --text: #f0ede4;
  --text-muted: #a8b5ca;
  --text-faint: #7386a4;
  --accent: #3aa6cc;
  --accent-ink: #011b45;
  --accent-soft: rgba(58, 166, 204, 0.14);
  --ok: #5fd3a8;
  --danger: #ff8f80;

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 20, 47, 0.8);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; font-size: 18px; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--text-muted); font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5dbbdc; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-faint); }
.nav .btn { height: 38px; padding: 0 16px; font-size: 14px; color: var(--accent-ink); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 12vw, 140px) 0 clamp(96px, 14vw, 180px); }
.hero-road { position: absolute; inset: auto 0 0 0; height: 62%; z-index: -1; pointer-events: none; }
.hero-road svg { width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(58, 166, 204, 0.12), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(0, 110, 147, 0.18), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
  margin: 22px 0 24px; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-muted); max-width: 40em; margin: 0 0 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin: 16px 0 16px;
}
.section-head p { color: var(--text-muted); font-size: 19px; margin: 0; }

/* What we do */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--bg); padding: clamp(28px, 3.5vw, 40px); }
.pillar .num { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); letter-spacing: .08em; }
.pillar h3 { font-size: 22px; letter-spacing: -0.01em; margin: 18px 0 10px; }
.pillar p { margin: 0; color: var(--text-muted); }
.pillar svg { width: 44px; height: 44px; margin-top: 28px; color: var(--text-faint); }

/* Products */
.product {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 4px); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
}
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.product-copy { padding: clamp(28px, 4.5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.product-copy h3 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.02em; margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badge { font: 600 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.product-copy > p { margin: 0; color: var(--text-muted); font-size: 18px; }
.ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233aa6cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.product-copy .btn { align-self: flex-start; margin-top: auto; }

.product-visual { position: relative; background: var(--bg-sunk); border-left: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); display: flex; align-items: center; min-height: 340px; }
@media (max-width: 900px) { .product-visual { border-left: 0; border-top: 1px solid var(--line); } }
.mini { width: 100%; background: #031a3d; border: 1px solid var(--line-strong); border-radius: 12px; padding: 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.mini-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-faint); margin-bottom: 16px; }
.mini-head strong { color: var(--text); font-weight: 600; font-size: 14px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.mini-kpi { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.mini-kpi span { display: block; font-size: 11px; color: var(--text-faint); }
.mini-kpi b { font: 650 19px/1.3 var(--font); font-variant-numeric: tabular-nums; }
.mini-rows { display: grid; gap: 8px; font-size: 13px; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; background: var(--bg-raised); }
.mini-row .neg { color: var(--danger); font-variant-numeric: tabular-nums; }
.mini-row .pos { color: var(--ok); font-variant-numeric: tabular-nums; }
.mini-note { font-size: 11px; color: var(--text-faint); margin-top: 12px; text-align: right; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px) clamp(32px, 6vw, 80px); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.principle .icon { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--accent); }
.principle .icon svg { width: 22px; height: 22px; }
.principle h3 { margin: 4px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.principle p { margin: 0; color: var(--text-muted); }

/* Name */
.name-band { position: relative; overflow: hidden; }
.name-band .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .name-band .wrap { grid-template-columns: 1fr; } }
.name-band blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.name-band blockquote span { color: var(--accent); }
.name-band p { color: var(--text-muted); margin: 0 0 14px; font-size: 18px; }
.lanes { aspect-ratio: 3 / 1; margin-top: 28px; border-radius: var(--radius); background: var(--bg-sunk); border: 1px solid var(--line); overflow: hidden; }
.lanes svg { width: 100%; height: 100%; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact .section-head { margin-bottom: 0; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--text-muted); }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.form { background: var(--bg-raised); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { color: var(--text-faint); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-foot .btn { min-width: 160px; }
.form-status { font-size: 15px; margin: 0; min-height: 1.4em; }
.form-status.error { color: var(--danger); }
.form-done { text-align: center; padding: 32px 8px; }
.form-done svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--ok); }
.form-done h3 { margin: 0 0 8px; font-size: 22px; }
.form-done p { margin: 0; color: var(--text-muted); }
.cf-turnstile { min-height: 65px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--text-faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* Simple pages (thanks, 404) */
.simple { min-height: calc(100vh - 68px - 120px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.simple h1 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.03em; margin: 18px 0 14px; }
.simple p { color: var(--text-muted); font-size: 19px; margin: 0 auto 32px; max-width: 32em; }

/* Road animation */
.dash { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -64; } }
.lane-car { animation: pass 7s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes pass { 0% { transform: translateX(-80px); } 100% { transform: translateX(680px); } }
@media (prefers-reduced-motion: reduce) { .dash, .lane-car { animation: none; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
