/* AutoTrace Platform & Forecourt Landing Style */
:root {
  --bg: #070b14;
  --bg-card: rgba(13, 20, 36, 0.75);
  --bg-card-hover: rgba(18, 28, 51, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(34, 211, 238, 0.35);
  --cyan: #22d3ee;
  --cyan-glow: rgba(34, 211, 238, 0.2);
  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.15);
  --text: #f8fafc;
  --text-mute: #94a3b8;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--text); }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  background: radial-gradient(circle at 50% -10%, #132442 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--cyan); color: #000; padding: 8px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.bar { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.logo-group { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo-group img { width: 32px; height: 32px; border-radius: 8px; }
.logo-badge { font-family: var(--mono); font-size: 10px; color: var(--cyan); border: 1px solid var(--border-cyan); padding: 2px 8px; border-radius: 999px; letter-spacing: 0.1em; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { font-size: 14px; font-weight: 600; color: var(--text-mute); transition: color 0.15s; }
nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn.cyan {
  background: linear-gradient(135deg, #0284c7 0%, #22d3ee 100%);
  color: #070b14;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}
.btn.cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.4);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.pill.green { background: var(--emerald-bg); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }
.pill.cyan { background: rgba(34, 211, 238, 0.1); border: 1px solid var(--border-cyan); color: var(--cyan); }
.pill.amber { background: var(--amber-bg); border: 1px solid rgba(245, 158, 11, 0.3); color: #fbbf24; }
.pill.red { background: var(--red-bg); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Hero */
.hero {
  padding: 72px 0 54px;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}
.hero .hero-actions { justify-content: center; }
.hero .kpi-strip { justify-content: center; gap: 36px; }
h1 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 900; }
h1 span { background: linear-gradient(135deg, #fff 40%, var(--cyan) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 18px; color: var(--text-mute); line-height: 1.6; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.kpi-strip { display: flex; gap: 24px; border-top: 1px solid var(--border); padding-top: 20px; }
.kpi-item b { display: block; font-size: 22px; font-weight: 800; color: #fff; }
.kpi-item span { font-size: 12px; color: var(--text-mute); }

/* Camera Frame HUD Visual */
.cctv-frame-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  background: #020408;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px var(--cyan-glow);
}
.cctv-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
  opacity: 0.95;
}
.hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.8) 0%, transparent 25%, transparent 70%, rgba(7, 11, 20, 0.9) 100%);
  font-family: var(--mono);
  font-size: 11px;
}
.hud-top, .hud-bottom { display: flex; justify-content: space-between; align-items: center; }
.hud-rec { color: #f87171; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hud-target {
  position: absolute;
  top: 52%;
  left: 41%;
  width: 25%;
  height: 22%;
  border: 2px solid var(--cyan);
  border-radius: 6px;
  box-shadow: 0 0 16px var(--cyan-glow);
}
.hud-target-tag {
  position: absolute;
  top: -24px;
  left: -2px;
  background: rgba(34, 211, 238, 0.95);
  color: #070b14;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* Trust ticker */
.trust-ticker {
  border-block: 1px solid var(--border);
  padding: 16px 0;
  background: rgba(13, 20, 36, 0.4);
}
.trust-ticker .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
}

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; letter-spacing: -0.025em; margin: 12px 0; }
.section-head p { color: var(--text-mute); font-size: 15px; }

/* Platform Features Grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(16px);
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--border-cyan);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.feature-card p { font-size: 14px; color: var(--text-mute); margin: 0; line-height: 1.6; }

/* Live Evidence Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  align-items: center;
}
.evidence-preview-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  background: #020408;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.crop-card img { width: 100%; border-radius: 8px; display: block; border: 1px solid rgba(255, 255, 255, 0.1); }
.crop-card span { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin-top: 6px; }

/* Live Detection Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #040812;
  margin-top: 24px;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th { padding: 12px 16px; font-family: var(--mono); color: var(--text-mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
tr:last-child td { border-bottom: none; }
.vrm-plate {
  display: inline-block;
  background: #ffdb00;
  color: #000;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  border: 1px solid #c7aa00;
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.price-card.featured {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.07) 0%, var(--bg-card) 60%);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--cyan-glow);
}
.price-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.price-tag { font-size: 36px; font-weight: 900; margin: 14px 0 6px; }
.price-tag span { font-size: 14px; color: var(--text-mute); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; font-size: 14px; color: var(--text-mute); display: grid; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--cyan); font-weight: 900; margin-right: 8px; }

/* Pilot Form Card */
.pilot-box {
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.9) 0%, rgba(8, 14, 28, 0.9) 100%);
  border: 1px solid var(--border-cyan);
  border-radius: 28px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
form { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 600; color: var(--text-mute); display: grid; gap: 6px; }
input, select, textarea {
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(4, 8, 18, 0.8);
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); }
output {
  display: block;
  background: #02050c;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  white-space: pre-wrap;
}
output:empty { display: none; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  color: var(--text-mute);
  font-size: 13px;
}
.footer-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }

/* Responsive */
@media (max-width: 960px) {
  .hero, .showcase-grid, .pilot-box { grid-template-columns: 1fr; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  nav a:not(.btn) { display: none; }
}

/* Dashboard Platform Visual */
.dashboard-preview-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  background: #0b1120;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 40px var(--cyan-glow);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #070d19;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
}
.browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.browser-bar .dot.red { background: #ef4444; }
.browser-bar .dot.yellow { background: #f59e0b; }
.browser-bar .dot.green { background: #10b981; }
.browser-bar .url-bar {
  flex: 1;
  background: #020611;
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--text-mute);
  border: 1px solid var(--border);
  margin: 0 8px;
  font-size: 11px;
}
.dashboard-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Form Row Helper */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* iOS & Small Screen Optimization */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  .wrap {
    padding: 0 16px;
  }
  .bar {
    height: auto;
    padding: 12px 0;
  }
  .logo-badge {
    display: none;
  }
  .btn {
    padding: 9px 15px;
    font-size: 13px;
  }
  .hero {
    padding: 40px 0 28px;
  }
  .hero .kpi-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .showcase-grid {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .evidence-preview-box {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pilot-box {
    padding: 24px 16px;
    border-radius: 18px;
    gap: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  /* Crucial for iOS: 16px font-size prevents Safari/Chrome viewport zoom */
  input, select, textarea {
    font-size: 16px;
  }
  .table-wrap {
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }
  th, td {
    padding: 10px 12px;
    font-size: 12px;
  }
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .logo-group span:not(.logo-badge) {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
