:root {
  --bg: #0b0d0e;
  --bg-card: #111416;
  --bg-card-alt: #161a1d;
  --fg: #e8e4df;
  --fg-muted: #7a7870;
  --accent: #c9f970;
  --accent-dim: rgba(201,249,112,0.12);
  --border: rgba(232,228,223,0.08);
  --terminal-bg: #0e1210;
  --terminal-border: rgba(201,249,112,0.25);
  --terminal-fg: #a8b8a0;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--fg);
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* HERO */
.hero {
  padding: 80px 48px 96px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(201,249,112,0.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.hero-cta {
  margin-bottom: 48px;
}
#app-install-btn {
  display: inline-block;
  background: var(--accent);
  color: #111;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.15s;
}
#app-install-btn:hover { opacity: 0.85; }
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--fg);
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  max-width: 540px;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* Terminal */
.hero-terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 560px;
  margin-bottom: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,249,112,0.05);
}
.terminal-bar {
  background: rgba(201,249,112,0.05);
  border-bottom: 1px solid var(--terminal-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title { font-family: var(--font-mono); font-size: 11px; color: rgba(168,184,160,0.5); margin-left: 8px; }
.terminal-body { padding: 20px 20px 24px; }
.line { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.8; color: var(--terminal-fg); }
.line.muted { color: rgba(168,184,160,0.5); }
.line.success { color: var(--accent); }
.prompt { color: rgba(168,184,160,0.4); margin-right: 10px; }
.cmd { color: #d4e8c2; }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); opacity: 0.8; vertical-align: middle; animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:.8} 50%{opacity:0} }

/* Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 0;
}
.metric { display: flex; flex-direction: column; padding-right: 32px; }
.metric-val { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--fg); }
.metric-label { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.metric-div { width: 1px; height: 36px; background: var(--border); margin-right: 32px; }

/* DIFFERENTIATOR */
.diff { padding: 80px 48px; background: var(--bg-card); border-top: 1px solid var(--border); }
.diff-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.diff-title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); font-weight: 400; line-height: 1.15; margin-bottom: 16px; max-width: 540px; }
.diff-body { color: var(--fg-muted); font-size: 16px; line-height: 1.65; max-width: 540px; margin-bottom: 56px; }
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.diff-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  padding: 32px;
}
.diff-icon { margin-bottom: 16px; color: var(--accent); }
.diff-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.diff-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* FEATURES */
.features {
  padding: 96px 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.feat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.feat-title { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 44px); font-weight: 400; line-height: 1.2; margin-bottom: 48px; }
.feat-step { display: flex; gap: 20px; margin-bottom: 36px; }
.feat-step:last-child { margin-bottom: 0; }
.step-num { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.05em; padding-top: 3px; min-width: 28px; }
.feat-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feat-step p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* Scan card */
.scan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-top: 40px;
}
.scan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.scan-id { font-family: var(--font-mono); font-size: 20px; font-weight: 500; }
.scan-status { font-size: 12px; font-family: var(--font-mono); padding: 3px 10px; border-radius: 20px; }
.scan-status.success { background: var(--accent-dim); color: var(--accent); }
.scan-detail { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.scan-detail:last-of-type { border-bottom: none; }
.scan-detail span:first-child { color: var(--fg-muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.scan-barcode { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar-lines { display: flex; align-items: flex-end; gap: 3px; height: 48px; }
.bl { width: 3px; background: var(--fg); border-radius: 1px; }
.bl.tall { height: 100%; }
.bl.mid { height: 70%; }
.bl.short { height: 45%; }
.scan-barcode > span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.1em; }

/* ROLES */
.roles { padding: 80px 48px; background: var(--bg-card); border-top: 1px solid var(--border); }
.roles-header { margin-bottom: 48px; }
.roles-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.roles-title { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 44px); font-weight: 400; line-height: 1.2; }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.role-card {
  background: var(--bg-card-alt);
  padding: 36px 32px;
}
.role-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.role-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.role-card ul { list-style: none; }
.role-card li { font-size: 13.5px; color: var(--fg-muted); line-height: 1.5; padding: 5px 0; padding-left: 16px; position: relative; }
.role-card li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); font-size: 11px; top: 7px; }

/* PRICING */
.pricing { padding: 96px 48px; max-width: 1200px; margin: 0 auto; }
.pricing-header { text-align: center; margin-bottom: 56px; }
.pricing-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pricing-title { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 44px); font-weight: 400; margin-bottom: 12px; }
.pricing-sub { color: var(--fg-muted); font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.plan { background: var(--bg-card); padding: 36px 32px; position: relative; }
.plan-featured { background: var(--bg-card-alt); }
.plan-badge { position: absolute; top: -1px; left: 32px; background: var(--accent); color: #0b0d0e; font-size: 10px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 0 0 6px 6px; }
.plan-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 12px; }
.plan-price { font-family: var(--font-display); font-size: 48px; font-weight: 400; margin-bottom: 8px; }
.plan-price span { font-size: 18px; font-family: var(--font-mono); color: var(--fg-muted); }
.plan-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.5; margin-bottom: 24px; }
.plan-features { list-style: none; }
.plan-features li { font-size: 13.5px; color: var(--fg); padding: 5px 0; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: none; }
.pricing-note { text-align: center; font-size: 12px; color: var(--fg-muted); font-family: var(--font-mono); margin-top: 32px; }

/* CLOSING */
.closing { padding: 96px 48px; text-align: center; border-top: 1px solid var(--border); }
.closing-title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 64px); font-weight: 400; font-style: italic; line-height: 1.15; margin-bottom: 20px; color: var(--fg); }
.closing-body { font-size: 16px; color: var(--fg-muted); max-width: 480px; margin: 0 auto; line-height: 1.65; }

/* FOOTER */
.footer { padding: 28px 48px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
.footer-tag { color: rgba(122,120,112,0.5); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 48px 24px 64px; }
  .diff { padding: 48px 24px; }
  .diff-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 48px; padding: 48px 24px; }
  .roles { padding: 48px 24px; }
  .roles-grid { grid-template-columns: 1fr; }
  .pricing { padding: 48px 24px; }
  .plans { grid-template-columns: 1fr; }
  .closing { padding: 64px 24px; }
  .footer { padding: 24px; flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero-metrics { flex-wrap: wrap; gap: 16px; }
  .metric-div { display: none; }
  .metric { padding-right: 0; }
}

@media (max-width: 500px) {
  .hero-title { font-size: 44px; }
  .plan-price { font-size: 36px; }
}