/* ============================================================
   ZooTaxi — design system v1 (dark premium)
   Tokens → base → components → sections. No external deps.
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette (design-brief v0) */
  --bg-0: #0a0f1a;
  --bg-1: #101827;
  --bg-2: #16233a;
  --line: #223350;
  --amber: #f5a623;
  --amber-soft: #f5a62326;
  --blue: #4fc3f7;
  --blue-soft: #4fc3f71f;
  --ink: #e8edf5;
  --ink-2: #9fb0c7;
  --ink-3: #67799a;
  --ok: #4caf7d;

  --radius: 14px;
  --radius-s: 9px;
  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: #14100a; }

h1, h2, h3, h4 { font-weight: 650; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p  { color: var(--ink-2); }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); font-weight: 600; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #0a0f1acc;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #16233a99;
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo b { color: var(--amber); font-weight: 700; }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
  text-decoration: none !important;
}
.btn-primary { background: var(--amber); color: #191106; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: .95rem 2rem; font-size: 1.05rem; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 18%, var(--bg-1) 82%, var(--bg-0)); }
.kicker {
  display: inline-block; margin-bottom: 1rem;
  font-size: .8rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber);
}
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head p { margin-top: .9rem; font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(52% 60% at 78% 8%, #1d3050 0%, transparent 70%),
    radial-gradient(40% 50% at 12% 90%, #14263f 0%, transparent 70%),
    var(--bg-0);
}
.hero-inner { max-width: 780px; }
.hero h1 span { color: var(--amber); }
.hero .lead { margin-top: 1.4rem; font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 640px; }
.hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.2rem; font-size: .9rem; color: var(--ink-3); }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-1);
  font-size: .85rem; color: var(--ink-2); font-weight: 500;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2) 130%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: #33507e; transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--amber-soft); font-size: 1.35rem; margin-bottom: 1.1rem;
}
.card.blue .icon { background: var(--blue-soft); }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .97rem; }
.card .more { display: inline-block; margin-top: .9rem; font-size: .92rem; font-weight: 600; }

/* ---------- stat tiles ---------- */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.tile {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; background: var(--bg-1);
}
.tile .num {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.tile .num em { font-style: normal; color: var(--amber); }
.tile .cap { margin-top: .3rem; font-size: .88rem; color: var(--ink-3); }

/* ---------- feature rows ---------- */
.frow {
  display: grid; gap: 1.1rem; align-items: start;
  grid-template-columns: 46px 1fr; padding: 1.15rem 0;
  border-bottom: 1px solid #16233a;
}
.frow:last-child { border-bottom: 0; }
.frow .icon {
  width: 46px; height: 46px; border-radius: 12px; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; background: var(--blue-soft);
}
.frow h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.frow p { font-size: .96rem; }

/* ---------- timeline ---------- */
.timeline { display: grid; gap: 0; position: relative; margin-top: 1rem; }
.tl-item { display: grid; grid-template-columns: 30px 1fr; gap: 1.2rem; padding-bottom: 2rem; position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: 14px; top: 26px; bottom: 0;
  width: 2px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 30px; height: 30px; border-radius: 50%; z-index: 1;
  border: 2px solid var(--line); background: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: var(--ink-3);
}
.tl-item.done .tl-dot { border-color: var(--ok); color: var(--ok); }
.tl-item.now .tl-dot { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); }
.tl-item h3 { font-size: 1.05rem; }
.tl-item h3 small { color: var(--ink-3); font-weight: 500; margin-left: .5rem; font-size: .85rem; }
.tl-item p { font-size: .95rem; margin-top: .25rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 560px; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid #16233a; }
th { color: var(--ink-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; background: var(--bg-1); }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 550; }
tr:last-child td { border-bottom: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form label { font-size: .9rem; font-weight: 600; color: var(--ink); display: grid; gap: .4rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-s);
  background: var(--bg-1); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: .98rem;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--blue);
}
.form-status { font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #e08484; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(60% 120% at 85% 10%, #23334f 0%, transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  padding: clamp(2.2rem, 6vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { max-width: 520px; }
.cta-band p { margin-top: .6rem; max-width: 520px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid #16233a; padding: 2.6rem 0 3rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer p { font-size: .88rem; color: var(--ink-3); max-width: 640px; }
.site-footer .logo { font-size: 1.05rem; }
.footer-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink-3); font-size: .9rem; }
.disclaimer { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid #131e30; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); }
.page-hero p { margin-top: 1rem; font-size: 1.12rem; max-width: 680px; }

/* ---------- misc ---------- */
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }

@media (max-width: 640px) {
  .nav { gap: .9rem; padding-top: .6rem; padding-bottom: .6rem; }
  .nav-links { gap: .9rem; }
  .frow { grid-template-columns: 38px 1fr; }
}
