:root {
  --accent: #098db6;
  --accent-hover: #077a9e;
  --accent-light: #098db60a;
  --accent-border: #098db620;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-code: #1a1d23;
  --text: #1a1a1a;
  --text-secondary: #5c5f66;
  --text-tertiary: #8b8e94;
  --border: #e2e4e8;
  --border-light: #eceef1;
  --radius: 3px;
  --font: 'DM Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-logo span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nav-logo em { font-style: normal; color: var(--accent); }
.nav a.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.nav a.nav-link:hover { color: var(--text); }
.nav .nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.nav .nav-cta:hover { background: var(--accent-hover); }

/* ── HERO ── */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--accent); }
.hero .subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 1.25rem;
  max-width: 460px;
}
.hero .cta-row {
  margin-top: 2rem;
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text); }

/* terminal */
.terminal {
  background: var(--bg-code);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
}
.terminal-bar {
  background: #14161b;
  padding: 9px 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }
.terminal-bar span {
  margin-left: auto;
  font-size: 11px;
  color: #636a76;
}
.terminal pre {
  padding: 16px 18px;
  color: #c9d1d9;
  white-space: pre;
  overflow-x: auto;
}
.kw { color: #7eb6ff; }
.fn { color: #f0b95e; }
.str { color: #a5d6a7; }
.cm { color: #636a76; }
.num { color: #f78c6c; }

/* device tags */
.hero-tags {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hero-tags .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}
.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius);
}

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.section-alt { background: var(--bg-alt); }
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
.how-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.how-step {
  text-align: center;
  padding: 0 1rem;
}
.how-step .step-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.how-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.how-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.how-arrow {
  display: flex;
  align-items: center;
  padding-top: 18px;
  color: var(--border);
  font-size: 20px;
}
.how-note {
  margin-top: 2rem;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}
.how-note strong {
  color: var(--text);
}

/* ── FEATURES ── */
.features-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 1.75rem;
}
.feature-card .feature-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── DRIVERS ── */
.driver-tiers {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.driver-tier {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg);
}
.driver-tier .tier-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.tier-js .tier-badge { background: #e8f5e9; color: #2e7d32; }
.tier-scpi .tier-badge { background: #fff3e0; color: #e65100; }
.tier-dll .tier-badge { background: #e3f2fd; color: #1565c0; }
.tier-scpi {
  opacity: 0.7;
  border-style: dashed;
}
.driver-tier h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.driver-tier p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.driver-tier code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

/* code showcase */
.driver-code {
  margin-top: 2rem;
}
.driver-code .terminal {
  max-width: 640px;
}

/* ── AI ── */
.ai-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.ai-features { display: flex; flex-direction: column; gap: 1.25rem; }
.ai-feat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ai-feat .ai-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.ai-feat h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.ai-feat p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ai chat mockup */
.ai-chat {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.ai-chat-bar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-chat-bar .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.ai-chat-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg {
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: var(--radius);
  max-width: 85%;
}
.chat-user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
}
.chat-ai {
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text);
}
.chat-ai code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-alt);
  padding: 1px 4px;
  border-radius: 2px;
}

/* ── USE CASES ── */
.usecases-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.usecase {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.usecase:hover { border-color: var(--accent-border); }
.usecase .uc-number {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.usecase h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.usecase p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── WAITLIST ── */
.waitlist {
  text-align: center;
  padding: 5rem 2rem;
}
.waitlist .section-subtitle {
  margin: 0 auto 2rem;
}
.email-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}
.email-form input {
  flex: 1;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.email-form input:focus { border-color: var(--accent); }
.email-form button {
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.email-form button:hover { background: var(--accent-hover); }
.waitlist .fine-print {
  margin-top: 0.75rem;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 2rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-left svg { width: 22px; height: 22px; }
.footer-left span { font-size: 13px; color: var(--text-tertiary); }
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 1.5rem 2rem; }
  .hero h1 { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .driver-tiers { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .how-arrow { display: none; }
  .nav-inner .nav-link { display: none; }
}
