/* ── FIXMATE LANDING — DARK DESIGN SYSTEM ── */

:root {
  --bg: #07080F;
  --card: #0D0E18;
  --accent: #FF531F;
  --green: #22C55E;
  --text: #ECEEF6;
  --text-dim: rgba(236, 238, 246, 0.5);
  --border: 1px solid rgba(255, 255, 255, 0.08);
  --card-border: 1px solid rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --section-pad: 72px 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── NAV ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 8, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.1px;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: #e64519; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
.hero-map-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-map-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
}
.hero-map-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(7,8,15,0.1) 0%, rgba(7,8,15,0.88) 70%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-left { display: flex; flex-direction: column; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: var(--card-border);
  color: var(--green);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px 6px 10px;
  border-radius: 9999px;
  margin-bottom: 28px;
  width: fit-content;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: gpulse 2s ease-in-out infinite;
}
@keyframes gpulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.hero-body {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-stats {
  background: var(--card);
  border: var(--card-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  margin-bottom: 0;
}
.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
}
.stat-cell:first-child { padding-left: 0; }
.stat-cell:last-child { padding-right: 0; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.stat-div {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* ── BOOKING CARD ── */
.booking-card {
  background: var(--card);
  border: var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bc-engineers-nearby {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--green);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px 5px 8px;
  border-radius: 9999px;
  width: fit-content;
}
.bc-engineers-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.london-map {
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 160px;
}
.london-map svg { width: 100%; height: 100%; }

.trade-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.trade-chips::-webkit-scrollbar { display: none; }
.trade-chip {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.trade-chip:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--text); }
.trade-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.bc-input {
  width: 100%;
  padding: 12px 14px 12px 36px;
  background: var(--bg);
  border: var(--card-border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  position: relative;
}
.bc-input:focus { border-color: rgba(255, 83, 31, 0.5); }
.bc-input::placeholder { color: var(--text-dim); }

.input-wrapper { position: relative; }
.input-wrapper .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--accent);
}

.bc-eta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  padding: 4px 0;
}

.bc-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.bc-submit:hover { background: #e64519; transform: translateY(-1px); }
.bc-submit:active { transform: translateY(0); }

/* ── TRADES STRIP ── */
.trades-strip {
  padding: 40px 0;
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--bg);
  overflow: hidden;
}
.trades-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.trades-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.trades-track::-webkit-scrollbar { height: 4px; }
.trades-track::-webkit-scrollbar-track { background: transparent; }
.trades-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

@media (max-width: 768px) {
  .trades-track {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .trades-track::-webkit-scrollbar { display: none; }
}
.trade-pill {
  flex-shrink: 0;
  background: var(--card);
  border: var(--card-border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.trade-pill:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: #131524;
}

/* ── HOW IT WORKS ── */
.how-it-works {
  padding: var(--section-pad);
  background: var(--bg);
}
.hiw-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.hiw-header { text-align: center; margin-bottom: 56px; }
.hiw-h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.8px;
  margin-bottom: 0;
}
/* NOTE: hiw-steps and hiw-step styles are now defined inline in how-it-works.ejs */

/* ── WHY FIXMATE ── */
.why-fixmate {
  padding: var(--section-pad);
  background: var(--bg);
  border-top: var(--border);
  border-bottom: var(--border);
}
.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.why-h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}
.why-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 36px;
}

.compare-table {
  background: var(--card);
  border: var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 60px 60px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.compare-row:last-child { border-bottom: none; }
.compare-header {
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  padding-bottom: 10px;
}
.compare-header .compare-feature {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: rgba(236, 238, 246, 0.35);
  font-family: 'IBM Plex Mono', monospace;
}
.compare-feature {
  font-size: 14px;
  color: var(--text-dim);
}
.compare-check {
  display: flex;
  justify-content: center;
  color: var(--green);
}
.compare-muted {
  display: flex;
  justify-content: center;
  color: rgba(236, 238, 246, 0.2);
  font-size: 16px;
}

/* Live engineers panel */
.engineers-panel {
  background: var(--card);
  border: var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 20px;
}
.panel-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
}
.panel-header-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
}
.engineer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.engineer-row:last-child { border-bottom: none; }
.eng-avatar {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.eng-info { flex: 1; }
.eng-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.eng-meta {
  font-size: 12px;
  color: var(--text-dim);
}
.eng-dist {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-right: 10px;
}
.eng-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}
.eng-status.en-route {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}
.eng-status.available {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}

/* ── FOR ENGINEERS ── */
.for-engineers {
  padding: var(--section-pad);
  background: var(--bg);
}
.fe-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.fe-h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}
.fe-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 32px;
}
.fe-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.15s;
  width: fit-content;
}
.fe-cta:hover { background: #e64519; transform: translateY(-1px); }

/* Perks list */
.perks-list {
  background: var(--card);
  border: var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.perk-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.perk-row:last-child { border-bottom: none; }
.perk-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
}
.perk-text {
  font-size: 14px;
  color: var(--text-dim);
}
.perk-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--bg);
  border-top: var(--border);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-logo-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(236, 238, 246, 0.3);
  font-family: 'IBM Plex Mono', monospace;
}
.footer-col-head {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(236, 238, 246, 0.3);
  font-family: 'IBM Plex Mono', monospace;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px 40px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }
  .stat-div { display: none; }
  .hiw-steps {
    grid-template-columns: 1fr;
  }
  .hiw-step {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 0;
  }
  .hiw-step:last-child { border-bottom: none; }
  .why-inner, .fe-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .nav-links { display: none; }
  .hero-h1 { font-size: 36px; }
  .fe-h2, .why-h2, .hiw-h2 { font-size: 32px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}