/* ===== Fire Command — design tokens ===== */
:root {
  --night: #121a2b;
  --panel: #1e2940;
  --card: #2a3650;
  --card-soft: #243049;
  --ink: #e8ecfa;
  --ink-soft: #9aa7bd;
  --ember: #ff6b1a;
  --fire: #c0261b;
  --hot: #ffc23d;
  --blue: #1e6fd9;
  --gold: #e8b53c;
  --green: #3ecf7a;
  --amber: #f5a623;
  --line: rgba(154, 167, 189, 0.18);
  --glow-fire: rgba(255, 107, 26, 0.35);
  --glow-blue: rgba(30, 111, 217, 0.25);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--night);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

em { font-style: normal; color: var(--ember); }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember); background: rgba(255, 107, 26, 0.12);
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 107, 26, 0.28);
}
.eyebrow--blue { color: var(--blue); background: rgba(30, 111, 217, 0.12); border-color: rgba(30, 111, 217, 0.28); }
.eyebrow--center { display: block; width: fit-content; margin: 0 auto 22px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(18, 26, 43, 0.88);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  font-size: 19px; font-weight: 700; color: var(--ink);
}
.brand__icon {
  width: 34px; height: 34px; border-radius: 10px;
  box-shadow: 0 0 20px var(--glow-fire);
}
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ember); }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__burger span {
  width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: .25s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s, filter .2s; cursor: pointer;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}
.btn--primary {
  background: linear-gradient(90deg, var(--fire), var(--ember), var(--hot));
  color: #fff; box-shadow: 0 12px 32px -8px var(--glow-fire);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(30, 111, 217, 0.55);
}
.btn--ghost:hover { background: rgba(30, 111, 217, 0.1); transform: translateY(-2px); }

/* ===== Hero ===== */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(90% 70% at 80% -10%, rgba(192, 38, 27, 0.22) 0%, transparent 55%),
    radial-gradient(60% 50% at 10% 20%, rgba(30, 111, 217, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, var(--night) 0%, #0f1524 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(154, 167, 189, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 167, 189, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 52px; align-items: center;
}
.hero h1 { font-size: clamp(36px, 5.5vw, 62px); margin: 20px 0 18px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 520px; }
.hero__cta { display: flex; gap: 14px; margin: 30px 0 36px; flex-wrap: wrap; }

.stats { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; gap: 2px; }
.stats strong {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 24px; color: var(--gold);
}
.stats span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

/* ===== Phone mockup ===== */
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative; width: 272px; height: 556px;
  background: #0a0e18; border-radius: 42px; padding: 12px;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.75), 0 0 60px -10px var(--glow-fire);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; background: #0a0e18;
  border-radius: 0 0 16px 16px; z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--night), var(--panel));
  border-radius: 32px; overflow: hidden;
}
.mini { padding: 38px 16px 16px; }
.mini__header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mini__header img { width: 28px; height: 28px; }
.mini__title { font-size: 20px; font-weight: 700; color: var(--ink); }
.mini__sub { font-size: 11px; color: var(--ink-soft); margin-bottom: 12px; }
.mini__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.mini__stat {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--blue); border-radius: 10px; padding: 10px;
}
.mini__stat b {
  display: block; font-family: "SF Mono", ui-monospace, monospace;
  font-size: 18px; color: var(--ember);
}
.mini__stat span { font-size: 10px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.mini__row {
  display: flex; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 10px; margin-bottom: 7px;
}
.mini__row img { width: 22px; height: 22px; flex: none; }
.mini__row b { display: block; font-size: 11px; font-weight: 600; }
.mini__row i { font-size: 10px; color: var(--ink-soft); font-style: normal; }
.alert-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--hot); background: rgba(192, 38, 27, 0.2);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
  animation: pulse-alert 2s ease-in-out infinite;
}
.alert-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fire); box-shadow: 0 0 8px var(--ember);
}

@keyframes pulse-alert {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* ===== Sections ===== */
.section { padding: 88px 0; position: relative; }
.section--features { background: var(--panel); }
.section--demo {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255, 107, 26, 0.08) 0%, transparent 60%),
    var(--night);
}
.section--about {
  background: linear-gradient(180deg, var(--panel) 0%, var(--night) 100%);
}
.section--privacy { background: var(--night); }
.section--contact { background: var(--panel); }
.section__title {
  font-size: clamp(28px, 4vw, 42px);
  text-align: center; max-width: 760px; margin: 0 auto 18px;
}
.section__intro {
  text-align: center; color: var(--ink-soft);
  max-width: 640px; margin: 0 auto 48px; font-size: 17px;
}

/* ===== Feature cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--blue); border-radius: 2px;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(30, 111, 217, 0.35);
}
.card__num {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 12px; font-weight: 700; color: var(--ember);
}
.card__icon { width: 40px; height: 40px; margin: 12px 0 8px; }
.card h3 { font-size: 19px; margin: 0 0 8px; }
.card p { font-size: 14px; color: var(--ink-soft); }

/* ===== Dispatch demo ===== */
.demo {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: 24px; align-items: stretch; max-width: 940px; margin: 0 auto;
}
.demo__stage {
  background: linear-gradient(180deg, #1a2740 0%, #152033 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-height: 360px; position: relative; overflow: hidden;
}
.demo__panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.demo__desc { color: var(--ink-soft); min-height: 72px; font-size: 15px; }
.demo__params { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.param {
  background: var(--card-soft); border-radius: var(--radius-sm); padding: 10px 14px;
  border: 1px solid var(--line);
}
.param span {
  display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-soft);
}
.param b {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 15px; color: var(--gold);
}
.demo__slider { width: 100%; margin: 6px 0 4px; accent-color: var(--ember); height: 6px; cursor: pointer; }
.demo__track { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); margin-bottom: 18px; }
.demo__score { display: flex; align-items: center; gap: 12px; }
.demo__score > span { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.bar { flex: 1; height: 8px; background: var(--night); border-radius: 999px; overflow: hidden; }
.bar__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--fire), var(--ember), var(--hot));
  border-radius: 999px; transition: width .4s ease;
}
.demo__score b {
  font-family: "SF Mono", ui-monospace, monospace;
  color: var(--ember); min-width: 42px; text-align: right;
}
.demo__note { font-size: 12px; color: var(--ink-soft); margin-top: 16px; font-style: italic; }
.demo__stagelabel { text-align: center; margin-top: 16px; z-index: 2; }
.demo__stagelabel b { font-size: 22px; color: var(--ink); display: block; }
.demo__stagelabel i { font-size: 11px; color: var(--ink-soft); font-style: normal; }

/* city scene */
.scene {
  position: relative; width: 220px; height: 240px; margin-bottom: 8px;
}
.scene__grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(154,167,189,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154,167,189,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 12px;
}
.scene__building {
  position: absolute; bottom: 36px; width: 44px; height: 56px;
  background: var(--card); border: 1px solid var(--line); border-radius: 4px 4px 0 0;
}
.scene__building--1 { left: 24px; height: 48px; }
.scene__building--2 { left: 78px; height: 72px; }
.scene__building--3 { right: 28px; height: 58px; width: 52px; }
.scene__road {
  position: absolute; bottom: 0; left: 0; right: 0; height: 36px;
  background: #111827; border-top: 2px dashed rgba(154,167,189,.15);
}
.scene__truck {
  position: absolute; bottom: 8px; left: 12px; width: 52px; height: 28px;
  transition: left .6s ease, transform .4s ease; z-index: 4;
}
.scene__truck img { width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.scene__fire {
  position: absolute; bottom: 84px; left: 86px; width: 36px; height: 48px;
  transition: opacity .5s, transform .5s; z-index: 3;
}
.scene__fire img { width: 100%; height: auto; }
.scene__water {
  position: absolute; bottom: 92px; left: 110px; width: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), rgba(30,111,217,.2));
  border-radius: 2px; transform-origin: left center;
  transition: width .5s ease; z-index: 2;
}
.scene__smoke {
  position: absolute; bottom: 120px; left: 90px;
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle, rgba(154,167,189,.35), transparent 70%);
  opacity: 0; transition: opacity .4s, transform .4s;
}
.scene[data-stage="0"] .scene__truck { left: 12px; opacity: .5; }
.scene[data-stage="1"] .scene__truck { left: 40px; }
.scene[data-stage="2"] .scene__truck { left: 72px; }
.scene[data-stage="3"] .scene__truck { left: 98px; transform: scale(1.05); }
.scene[data-stage="4"] .scene__water { width: 48px; }
.scene[data-stage="4"] .scene__smoke { opacity: .8; transform: translateY(-8px); }
.scene[data-stage="5"] .scene__fire { opacity: .25; transform: scale(.7); }
.scene[data-stage="5"] .scene__truck { left: 110px; }
.scene[data-stage="5"] .scene__water { width: 56px; }
.scene[data-stage="5"] .scene__smoke { opacity: .3; }

/* ===== About ===== */
.about { display: flex; flex-direction: column; gap: 20px; }
.about p { font-size: 17px; color: var(--ink-soft); }
.about p strong { color: var(--ink); }
.about__emoji { display: inline-block; margin-right: 8px; font-size: 20px; }
.about__tagline {
  text-align: center; font-size: 22px; font-weight: 700;
  color: var(--gold); margin-top: 36px;
}

/* ===== Privacy ===== */
.privacy__date { text-align: center; color: var(--ink-soft); font-size: 14px; margin-bottom: 36px; }
.privacy {
  list-style: none; counter-reset: p;
  display: flex; flex-direction: column; gap: 18px;
}
.privacy li {
  counter-increment: p;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px 24px;
}
.privacy li::before {
  content: "0" counter(p);
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 12px; font-weight: 700; color: var(--ember);
}
.privacy h3 { font-size: 17px; margin: 4px 0 6px; }
.privacy p { font-size: 15px; color: var(--ink-soft); }
.privacy a { color: var(--blue); text-decoration: underline; }

/* ===== Contact ===== */
.contact__reply { text-align: center; color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact__card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact__card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: rgba(255, 107, 26, 0.35);
}
.contact__card span { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.contact__card b { font-size: 14px; color: var(--ink); word-break: break-all; }

/* ===== Standalone page hero ===== */
.page-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(80% 60% at 50% -20%, rgba(192, 38, 27, 0.18) 0%, transparent 55%),
    var(--night);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); margin: 16px 0 12px; }
.page-hero p { color: var(--ink-soft); max-width: 560px; margin: 0 auto; font-size: 17px; }
.page-hero .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px; font-size: 14px; color: var(--blue);
}
.page-hero .back-link:hover { color: var(--ember); }

/* ===== Footer ===== */
.footer {
  background: #0a0e18; color: var(--ink-soft);
  padding: 48px 0; border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; text-align: center;
}
.brand--footer { color: var(--ink); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--ink-soft); font-size: 14px; transition: color .2s; }
.footer__links a:hover { color: var(--ember); }
.footer__copy { font-size: 13px; color: rgba(154, 167, 189, 0.65); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__device { order: 1; }
  .lead { margin-inline: auto; }
  .hero__cta, .stats { justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(18, 26, 43, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__links.open { max-height: 360px; }
  .nav__links a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav__burger { display: flex; }
  .nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
