:root {
  --bg: #111318;
  --bg-elevated: #181b21;
  --bg-card: #1e2229;
  --fg: #f0ede8;
  --fg-muted: #8a8690;
  --accent: #F5A623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --border: rgba(240, 237, 232, 0.08);
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 19, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  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: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
}
.nav-right {
  display: flex;
  gap: 32px;
}
.nav-right a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-right a:hover { color: var(--fg); }

/* Section base */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-header {
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 40%, rgba(245, 166, 35, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-code-demo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.code-card, .parts-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}
.code-header, .parts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.code-label, .parts-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.code-badge {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 6px;
}
.parts-price {
  font-family: var(--font-display);
  font-size: 16px;
  color: #22c55e;
}
.code-desc, .parts-item {
  font-size: 13px;
  color: var(--fg-muted);
}
.parts-item { margin-top: 4px; }
.code-arrow svg { opacity: 0.6; }

/* Phone mockup */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.phone-mockup {
  position: relative;
  width: 220px;
}
.phone-screen {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 24px;
  background: var(--bg);
  border-radius: 0 0 16px 16px;
  z-index: 1;
}
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
}
.screen-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--fg-muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-dot.connected { background: #22c55e; }
.screen-brand {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.screen-scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
}
.scan-ring {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(245, 166, 35, 0.15);
  animation: scan-pulse 2s infinite;
}
@keyframes scan-pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 0; }
}
.scan-center { position: relative; z-index: 1; }
.scan-text {
  font-size: 10px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.screen-result {
  background: var(--accent-dim);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid rgba(245, 166, 35, 0.2);
}
.result-code {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 2px;
}
.result-label {
  font-size: 10px;
  color: var(--fg-muted);
}
.screen-parts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.parts-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 4px 8px;
  background: var(--bg-card);
  border-radius: 6px;
}
.parts-name { color: var(--fg-muted); }
.parts-cost { color: #22c55e; font-weight: 600; }
.screen-cta { margin-top: 4px; }
.tutorial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #111318;
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  border-radius: 8px;
}
.scanner-dongle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dongle-body {
  width: 48px;
  height: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dongle-label {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}
.dongle-wire {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--fg-muted) 0%, transparent 100%);
  border-radius: 1px;
  opacity: 0.4;
}

/* How it works */
.how-it-works {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.how-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 240px;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}
.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--bg-card);
  -webkit-text-stroke: 1px rgba(240, 237, 232, 0.15);
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
}
.step-content p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}
.step-connector {
  display: flex;
  justify-content: flex-start;
  padding-left: 80px;
}
.connector-line {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--border), transparent);
}
/* Step visuals */
.port-illustration {
  display: flex;
  align-items: center;
  gap: 12px;
}
.port-socket {
  display: grid;
  grid-template-columns: repeat(4, 8px);
  gap: 6px;
  padding: 10px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.socket-pin {
  width: 8px;
  height: 14px;
  background: var(--fg-muted);
  border-radius: 2px;
  opacity: 0.3;
}
.dongle-plug {
  width: 36px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  opacity: 0.8;
}
.code-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.code-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.code-detail {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.severity-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 40px;
  margin-bottom: 8px;
}
.bar {
  flex: 1;
  height: var(--fill, 30%);
  background: rgba(240, 237, 232, 0.15);
  border-radius: 4px;
}
.bar.active { background: var(--accent); }
.severity-label {
  font-size: 11px;
  color: var(--fg-muted);
}
.parts-compare {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.part-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.part-row:last-child { border-bottom: none; }
.retailer { flex: 1; color: var(--fg-muted); }
.price { font-weight: 700; font-size: 14px; }
.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.tag.best { background: rgba(34, 197, 94, 0.15); color: #22c55e; }

/* Features */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-elevated);
  padding: 32px 28px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-card); }
.feature-icon {
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* DIY section */
.diy-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.diy-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.diy-stat-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 72px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.diy-stat {
  flex: 1;
  padding: 40px 36px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.diy-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
}
.diy-cta {
  max-width: 640px;
}
.diy-text h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  margin-bottom: 20px;
}
.diy-text p {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* Pricing */
.pricing-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.pricing-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}
.pricing-card.pro {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #111318;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.card-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.card-price {
  font-family: var(--font-display);
  font-size: 40px;
  margin-bottom: 4px;
}
.card-note {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-features li {
  font-size: 14px;
  color: var(--fg-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.card-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--accent-dim);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23F5A623' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Closing */
.closing {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-inner { max-width: 600px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.closing-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.closing p {
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.cta-label {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.app-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
}
.footer-links {
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-legal {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .step-number { font-size: 36px; }
  .step-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .diy-stat-row { flex-direction: column; }
  .diy-divider { width: 80px; height: 1px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-code-demo { flex-direction: column; }
}
