/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0d0f;
  --bg-card: #14151a;
  --bg-row: #1a1c23;
  --bg-row-alt: #111318;
  --accent: #b4ff47;
  --accent-dim: rgba(180, 255, 71, 0.12);
  --text: #f0ede6;
  --text-mid: #a8a49c;
  --text-dim: #5c5a55;
  --border: rgba(240, 237, 230, 0.08);
  --green: #b4ff47;
  --lime: #d4ff5c;
  --zone-a: #2a3a1e;
  --zone-b: #1e2a3a;
  --zone-c: #2a2a1e;
  --zone-d: #3a1e2a;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 4rem 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(180, 255, 71, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1200px;
  width: 100%;
  align-items: center;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--accent-dim);
  border-radius: 2rem;
}

.headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 90px;
  line-height: 1.3;
}

/* ===== DISPATCH VIZ ===== */
.dispatch-viz {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.viz-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.job-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.4rem;
  margin-bottom: 0.4rem;
  background: var(--bg-row-alt);
  font-size: 0.82rem;
}

.job-row--active { background: rgba(180, 255, 71, 0.06); border: 1px solid rgba(180, 255, 71, 0.15); }
.job-row--done { opacity: 0.5; }

.job-id { font-family: 'Syne', sans-serif; font-weight: 600; color: var(--text-mid); min-width: 48px; }
.job-zone { flex: 1; color: var(--text-mid); }

.job-status { font-size: 0.75rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: 2rem; }
.job-status.assigned { background: rgba(180, 255, 71, 0.15); color: var(--accent); }
.job-status.pending { background: rgba(100, 100, 100, 0.2); color: var(--text-mid); }
.job-status.quote { background: rgba(100, 100, 200, 0.15); color: #a0a0ff; }
.job-status.scheduled { background: rgba(200, 150, 50, 0.15); color: #ffc870; }
.job-status.done { background: rgba(80, 200, 120, 0.15); color: #6effb0; }

.ai-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.ai-text { font-size: 0.72rem; color: var(--text-dim); font-family: 'Syne', sans-serif; font-weight: 600; }

/* ===== SECTIONS ===== */
section { padding: 6rem 4rem; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3rem;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 500px;
}

p { color: var(--text-mid); line-height: 1.75; }

/* ===== DISPATCH SECTION ===== */
.dispatch { border-top: 1px solid var(--border); }

.dispatch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.dispatch-features {
  list-style: none;
  margin-top: 1.5rem;
}

.dispatch-features li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.dispatch-features li:last-child { border-bottom: none; }

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 220px;
}

.zone {
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-mid);
  line-height: 1.3;
}

.zone small { font-size: 0.7rem; font-weight: 400; opacity: 0.6; }

.zone--a { background: var(--zone-a); border: 1px solid rgba(180, 255, 71, 0.1); }
.zone--b { background: var(--zone-b); border: 1px solid rgba(100, 150, 255, 0.1); }
.zone--c { background: var(--zone-c); border: 1px solid rgba(200, 255, 100, 0.1); }
.zone--d { background: var(--zone-d); border: 1px solid rgba(255, 100, 150, 0.1); }

.pulse-line {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1rem;
  text-align: center;
  font-family: 'Syne', sans-serif;
}

/* ===== UPTIME SECTION ===== */
.uptime { background: var(--bg-row-alt); border-top: 1px solid var(--border); }

.uptime-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.system-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.system-metric {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.metric-val {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.metric-label { font-size: 0.75rem; color: var(--text-dim); }

.system-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-mid);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(240, 237, 230, 0.05);
}

.ok { color: #6effb0; font-size: 0.75rem; font-weight: 600; }
.warn { color: #ffc870; font-size: 0.75rem; font-weight: 600; }

.auto-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(180, 255, 71, 0.06);
  border-radius: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-mid);
}

.action-icon { font-size: 1rem; }

.uptime-text h2 { max-width: 420px; }
.uptime-sub { margin-top: 1.25rem; font-size: 0.95rem; color: var(--text-dim); }

/* ===== INVOICES SECTION ===== */
.invoices { border-top: 1px solid var(--border); }

.invoices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.invoice-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.inv-stat { display: flex; flex-direction: column; }

.inv-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.inv-label { font-size: 0.75rem; color: var(--text-dim); }

.invoices-visual { display: flex; flex-direction: column; gap: 1rem; }

.invoice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.inv-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.inv-num { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem; }
.inv-date { font-size: 0.75rem; color: var(--text-dim); }

.inv-body {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.inv-line { font-size: 0.8rem; color: var(--text-mid); padding: 0.25rem 0; }

.inv-total {
  display: flex;
  justify-content: space-between;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.inv-status { font-size: 0.75rem; font-weight: 600; text-align: center; padding: 0.25rem; border-radius: 2rem; }
.inv-status--paid { background: rgba(110, 255, 176, 0.12); color: #6effb0; }

.follow-up-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.fup-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.fup-step {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 0.35rem 0;
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
  margin-bottom: 0.25rem;
}

.fup-done { color: var(--text-mid); border-color: rgba(180, 255, 71, 0.3); }
.fup-current { color: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ===== CLOSING ===== */
.closing {
  border-top: 1px solid var(--border);
  padding: 7rem 4rem;
}

.closing-content { max-width: 700px; margin: 0 auto; text-align: center; }

.closing h2 { max-width: none; margin: 0 auto 1.5rem; }
.closing p { max-width: 540px; margin: 0 auto 1rem; }
.closing-sub { font-size: 0.9rem; color: var(--text-dim); max-width: 460px; margin: 1.5rem auto 0; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.footer-tagline { font-size: 0.8rem; color: var(--text-dim); display: block; margin-top: 0.2rem; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); display: inline-block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner,
  .dispatch-grid,
  .uptime-layout,
  .invoices-grid { grid-template-columns: 1fr; }

  .hero { padding: 4rem 1.5rem 3rem; }
  section { padding: 4rem 1.5rem; }
  footer { padding: 2.5rem 1.5rem; }
  .closing { padding: 5rem 1.5rem; }

  .hero-right { margin-top: 2rem; }
  .dispatch-visual { margin-top: 2rem; }
  .uptime-visual { order: -1; margin-bottom: 1.5rem; }
  .invoices-visual { margin-top: 1.5rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1.5rem; }
  .headline { font-size: 2.8rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat { flex-direction: row; align-items: baseline; gap: 0.5rem; }
  .stat-num { font-size: 1.5rem; margin-bottom: 0; }
  .stat-label { max-width: none; }
}