/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg: #0F0F11;
  --surface: #18181B;
  --surface-2: #222226;
  --accent: #F5A623;
  --accent-dim: #C47A0A;
  --blue: #3B82F6;
  --green: #22C55E;
  --red: #EF4444;
  --amber: #F59E0B;
  --text: #F4F4F5;
  --text-2: #A1A1AA;
  --text-3: #52525B;
  --border: #27272A;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  color: #0F0F11;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--text);
}
.nav-tagline {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 80px 48px 100px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}
.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 480px;
}
.code-label {
  background: var(--surface-2);
  padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.code-prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.code-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: #27272A;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.code-response { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.resp-line {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-2);
}
.resp-icon { color: var(--accent); font-weight: 600; }
.resp-step { color: var(--text-2); }
.resp-safety { color: var(--red); font-weight: 600; }
.resp-part { color: var(--text-3); font-size: 12px; }

/* ── Phone Mockup ─────────────────────────────────────── */
.hero-visual { display: flex; justify-content: center; }
.phone-frame {
  width: 260px;
  background: #111113;
  border-radius: 36px;
  padding: 14px;
  border: 2px solid #2A2A2E;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.phone-screen {
  background: var(--bg);
  border-radius: 26px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.screen-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.screen-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--green);
}
.status-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
}
.alarm-input { }
.input-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.alarm-code-display {
  background: var(--accent);
  color: #0F0F11;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
}
.diagnosis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.diag-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.diag-icon { font-size: 12px; }
.diag-text { font-size: 11px; color: var(--text-2); line-height: 1.5; }
.workflow-card {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.workflow-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  width: 18px;
  text-align: center;
}
.safety-active { color: var(--red); }
.safety-active .step-num { color: var(--red); }
.screen-footer {
  font-size: 9px;
  color: var(--text-3);
  text-align: center;
  margin-top: 4px;
}

/* ── Features ─────────────────────────────────────────── */
.features {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}
.features-header {
  text-align: center;
  margin-bottom: 56px;
}
.features-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.5vw, 52px);
  color: var(--text);
  margin-bottom: 16px;
}
.features-header p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: var(--surface);
  padding: 32px 28px;
  border: 1px solid var(--border);
}
.feature-card:first-child { border-radius: 8px 0 0 0; }
.feature-card:nth-child(3) { border-radius: 0 8px 0 0; }
.feature-card:nth-child(4) { border-radius: 0 0 0 8px; }
.feature-card:last-child { border-radius: 0 0 8px 0; }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── Brands ────────────────────────────────────────────── */
.brands {
  padding: 40px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.brands-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.brands-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 20px;
  font-weight: 600;
}
.brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.brand-pill {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  background: var(--surface-2);
}

/* ── Closing ───────────────────────────────────────────── */
.closing {
  padding: 100px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.closing-inner { max-width: 720px; margin: 0 auto; }
.closing-inner h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}
.closing-inner p {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 56px;
}
.closing-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-2); }
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  padding: 48px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-tagline { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar { padding: 16px 24px; }
  .nav-tagline { display: none; }
  .hero { padding: 60px 24px 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-headline { font-size: 52px; }
  .features { padding: 60px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card:first-child { border-radius: 8px 8px 0 0; }
  .feature-card:last-child { border-radius: 0 0 8px 8px; }
  .brands { padding: 32px 24px; }
  .closing { padding: 60px 24px; }
  .closing-stat-row { flex-direction: column; gap: 24px; }
  .stat-divider { display: none; }
}
@media (max-width: 480px) {
  .phone-frame { display: none; }
  .hero-headline { font-size: 44px; }
  .features-grid { gap: 0; }
  .feature-card { border-radius: 0 !important; border-left: none; border-right: none; }
}