/* ===== TYPOGRAPHY ===== */
:root {
  --bg: #0f1923;
  --bg-card: #162030;
  --bg-card-hover: #1c2a3e;
  --fg: #e8edf5;
  --fg-muted: #7a8ba0;
  --accent-orange: #ff6b35;
  --accent-teal: #00c9a7;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(255,107,53,0.3);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(15, 25, 35, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--fg);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--fg-muted);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }

/* ===== HERO ===== */
.hero {
  padding: 80px 48px 64px;
  position: relative;
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  background: rgba(0, 201, 167, 0.1);
  border: 1px solid rgba(0, 201, 167, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 24px;
  width: fit-content;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #e55a27; transform: translateY(-1px); }
.btn-large { padding: 16px 32px; font-size: 16px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--fg-muted); color: var(--fg); }
.hero-note { font-size: 12px; color: var(--fg-muted); }

/* ===== DISPATCH CARD ===== */
.dispatch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  position: relative;
}
.dispatch-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255,107,53,0.2), transparent 50%, rgba(0,201,167,0.2));
  z-index: -1;
}
.dispatch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.dispatch-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}
.dispatch-date { font-size: 12px; color: var(--fg-muted); }
.dispatch-rows { display: flex; flex-direction: column; gap: 16px; }
.dispatch-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
}
.tech-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange), #e55a27);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.avatar-teal { background: linear-gradient(135deg, var(--accent-teal), #00a888); }
.avatar-muted { background: rgba(255,255,255,0.1); color: var(--fg-muted); }
.tech-info { display: flex; flex-direction: column; }
.tech-name { font-size: 13px; font-weight: 600; color: var(--fg); font-family: var(--font-display); }
.tech-specialty { font-size: 11px; color: var(--fg-muted); }
.job-stack { display: flex; flex-direction: column; gap: 6px; }
.job-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
}
.chip-active {
  background: rgba(255, 107, 53, 0.12);
  border-color: rgba(255, 107, 53, 0.3);
}
.chip-pending {
  background: rgba(0, 201, 167, 0.08);
  border-color: rgba(0, 201, 167, 0.2);
}
.job-time { color: var(--fg-muted); font-variant-numeric: tabular-nums; min-width: 60px; }
.job-address { color: var(--fg); font-weight: 500; flex: 1; }
.job-type {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.type-hvac { background: rgba(255, 107, 53, 0.2); color: #ff8c5a; }
.type-cooling { background: rgba(100, 149, 237, 0.2); color: #87ceeb; }
.type-repair { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.type-plumb { background: rgba(0, 201, 167, 0.2); color: #33d9b3; }
.type-inspect { background: rgba(148, 0, 211, 0.2); color: #da70d6; }
.type-electric { background: rgba(255, 165, 0, 0.2); color: #ffa500; }
.type-install { background: rgba(255, 99, 71, 0.2); color: #ff6347; }
.tech-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tech-status.online { background: var(--accent-teal); }
.tech-status.busy { background: var(--accent-orange); }
.dispatch-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.ai-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent-teal);
  font-weight: 500;
}

/* ===== SECTION DISPATCH (FLOW) ===== */
.section-dispatch {
  padding: 64px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dispatch-center { max-width: 800px; margin: 0 auto; text-align: center; }
.dispatch-center-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  margin-bottom: 32px;
}
.dispatch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}
.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
}
.flow-arrow {
  width: 32px;
  height: 1px;
  background: var(--border);
  position: relative;
}
.flow-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  border: 5px solid transparent;
  border-left: 6px solid var(--border);
}
.dispatch-center-sub { font-size: 16px; color: var(--fg-muted); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ===== FEATURES ===== */
.section-features { padding: 96px 48px; }
.section-header { max-width: 560px; margin-bottom: 64px; }
.section-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--fg);
  margin-bottom: 16px;
}
.section-sub { font-size: 16px; color: var(--fg-muted); line-height: 1.7; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.feature-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* ===== METRICS ===== */
.section-metrics { padding: 80px 48px; border-top: 1px solid var(--border); }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 32px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.metric-label { font-size: 13px; color: var(--fg-muted); margin-bottom: 16px; line-height: 1.4; }
.metric-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-orange), var(--accent-teal)); border-radius: 2px; }
.metrics-note { text-align: center; font-size: 12px; color: var(--fg-muted); max-width: 1200px; margin: 0 auto; }

/* ===== CLOSING ===== */
.section-closing {
  padding: 96px 48px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.03));
}
.closing-content { max-width: 640px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--fg);
  margin-bottom: 20px;
}
.closing-sub { font-size: 17px; color: var(--fg-muted); line-height: 1.7; margin-bottom: 40px; }
.closing-cta { margin-bottom: 16px; }
.closing-fine { font-size: 12px; color: var(--fg-muted); }

/* ===== FOOTER ===== */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}
.footer-tagline { font-size: 13px; color: var(--fg-muted); margin-top: 12px; line-height: 1.6; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--fg-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--fg); }

/* ===== PRICING ===== */
.section-pricing { padding: 96px 48px; border-top: 1px solid var(--border); }
.pricing-wrap { max-width: 1200px; margin: 0 auto; }
.pricing-wrap .section-header { margin-bottom: 56px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  border-color: rgba(255, 107, 53, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.pricing-card--featured {
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.15), 0 24px 64px rgba(255, 107, 53, 0.1);
}
.pricing-card--featured:hover {
  border-color: rgba(255, 107, 53, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.25), 0 28px 72px rgba(255, 107, 53, 0.15);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  margin-bottom: 16px;
}
.pricing-card--featured .plan-label { color: var(--accent-orange); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--fg);
  line-height: 1;
}
.price-period {
  font-size: 18px;
  color: var(--fg-muted);
  font-weight: 400;
}

.plan-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  min-height: 52px;
}

.btn-plan {
  display: block;
  text-align: center;
  width: 100%;
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  margin-bottom: 28px;
}
.btn-plan:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.btn-plan--primary {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}
.btn-plan--primary:hover {
  background: #e55a27;
  border-color: #e55a27;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}
.feat-check {
  color: var(--accent-teal);
  font-size: 13px;
  flex-shrink: 0;
  font-weight: 700;
}

.pricing-footer {
  margin-top: 40px;
  text-align: center;
}
.freetrial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 100px;
}
.freetrial-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .dispatch-flow { flex-direction: column; }
  .flow-arrow { width: 1px; height: 24px; }
  .flow-arrow::after { display: none; }
}
@media (max-width: 640px) {
  .navbar { padding: 16px 24px; }
  .hero { padding: 48px 24px 40px; }
  .section-features { padding: 64px 24px; }
  .section-metrics { padding: 64px 24px; }
  .section-closing { padding: 64px 24px; }
  .section-pricing { padding: 64px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
  .dispatch-row { grid-template-columns: auto 1fr auto; }
  .job-stack { display: none; }
  .price-amount { font-size: 42px; }
}