:root {
  --bg-dark: #0f1214;
  --bg-card: #181c20;
  --bg-subtle: #1e2328;
  --fg: #e8e4df;
  --fg-muted: #9a9590;
  --accent: #e8853a;
  --accent-glow: rgba(232, 133, 58, 0.15);
  --accent-soft: #c26b2a;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #fbbf24;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1140px;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SITE NAV ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 18, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo-icon { font-size: 20px; }
.nav-logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--fg); background: rgba(255, 255, 255, 0.04); }
.nav-link.active { color: var(--accent); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-email {
  font-size: 13px;
  color: var(--fg-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-signout {
  background: none;
  border: 1px solid #2a2f35;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s, color 0.15s;
}
.nav-signout:hover { border-color: var(--fg-muted); color: var(--fg); }

/* Guest CTA buttons */
.nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  transition: color 0.15s;
}
.nav-signin:hover { color: var(--fg); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: opacity 0.15s, transform 0.1s;
}
.nav-cta:hover { opacity: 0.9; }
.nav-cta:active { transform: scale(0.97); }
.nav-cta-arrow { font-size: 15px; }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid #2a2f35;
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg-muted);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 18, 20, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 14px; font-size: 15px; }
  .nav-user {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-top: 12px;
    margin-top: 8px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: space-between;
  }
  .nav-signin { width: 100%; padding: 12px 14px; font-size: 15px; }
  .nav-cta { width: 100%; justify-content: center; padding: 14px 24px; font-size: 15px; margin-top: 4px; }
}

/* Push page content below fixed nav */
body { padding-top: 64px; }

/* ===== HERO ===== */
.hero {
  min-height: calc(90vh - 64px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -300px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(232, 133, 58, 0.25);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  font-size: 13px;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

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

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Mock diagnostic card */
.diag-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.diag-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232, 133, 58, 0.2), transparent 50%);
  z-index: -1;
}

.diag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.diag-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.diag-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--green);
  font-family: var(--font-mono);
}

.diag-status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.diag-issue {
  margin-bottom: 20px;
}

.diag-issue-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.diag-issue-text {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-display);
}

.diag-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.diag-meta-item {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 14px 16px;
}

.diag-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.diag-meta-value {
  font-size: 15px;
  font-weight: 600;
}

.urgency-medium { color: var(--yellow); }
.urgency-low { color: var(--green); }

.diag-parts {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 16px;
}

.diag-parts-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.diag-part {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}

.diag-part + .diag-part {
  border-top: 1px solid rgba(255,255,255,0.04);
}

.diag-part-price {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  max-width: 600px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: border-color 0.3s;
}

.step-card:hover {
  border-color: rgba(232, 133, 58, 0.3);
}

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: rgba(232, 133, 58, 0.15);
  line-height: 1;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== SYSTEMS COVERED ===== */
.systems-section {
  padding: 100px 0 120px;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.system-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.3s;
}

.system-row:hover {
  border-color: rgba(232, 133, 58, 0.2);
}

.system-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.system-info h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.system-info p {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ===== CLOSING ===== */
.closing-section {
  padding: 100px 0 120px;
  text-align: center;
}

.closing-section .section-label {
  text-align: center;
}

.closing-quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin: 0 auto 24px;
}

.closing-sub {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

.footer-brand span {
  color: var(--accent);
}

.footer-copy {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 40px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .systems-grid { grid-template-columns: 1fr; }
  .diag-meta { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 2rem; }
  .diag-card { padding: 24px 20px; }
}