:root {
  --bg: #060913;
  --surface: #0d1424;
  --surface-2: #131d33;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --amber: #f59e0b;
  --amber-bright: #fde047;
  --cyan: #38bdf8;
  --green: #10b981;
  --red: #ef4444;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.14;
  pointer-events: none;
  z-index: -1;
}
.bg-glow-1 { top: -180px; left: -120px; background: var(--cyan); }
.bg-glow-2 { top: 260px; right: -160px; background: var(--amber); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 9, 19, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.brand-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
}
.accent { color: var(--amber); }
.badge-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.lang-btn {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover { border-color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn-lg { padding: 13px 22px; font-size: 0.98rem; }
.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(245, 158, 11, 0.38); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 56px;
}
.wifi-off-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.hero-title {
  margin-top: 20px;
  font-size: clamp(2.2rem, 4.4vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.gradient-text {
  background: linear-gradient(95deg, #fde047, #f59e0b 45%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 560px;
}
.hero-sub strong { color: var(--text); }
.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stats-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
}
.stat-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cyan);
}
.stat-lbl {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Video Phone Frame */
.hero-media { display: flex; justify-content: center; }
.phone-frame {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 26px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(245, 158, 11, 0.1);
}
.phone-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--amber-bright);
  padding: 2px 6px 10px;
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.demo-video {
  width: 100%;
  border-radius: 16px;
  display: block;
  background: #000;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.video-caption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 10px 4px 2px;
  line-height: 1.45;
}

/* Sections */
.section { padding: 72px 24px; }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}
.section-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-weight: 700;
}
.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
}
.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

/* Interactive 1.54" Simulator */
.sim-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 44px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
}
.device-shell {
  width: 296px;
  background: linear-gradient(145deg, #eab308, #ca8a04);
  border-radius: 26px;
  padding: 22px 22px 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 2px 6px rgba(255, 255, 255, 0.35);
}
.tft-screen {
  width: 252px;
  height: 252px;
  background: #090d18;
  border-radius: 10px;
  border: 4px solid #020617;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  user-select: none;
}
.tft-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.76rem;
  font-weight: 800;
}
.tft-offline { color: #f8fafc; }
.tft-chip {
  color: var(--cyan);
  background: #1e293b;
  padding: 1px 6px;
  border-radius: 4px;
}
.tft-hero {
  flex: 1;
  margin: 6px 0;
  border-radius: 10px;
  border: 2px solid #334155;
  background: #111827;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.25s, border-color 0.25s;
}
.tft-hero.lit {
  background: #f59e0b;
  border-color: #fde047;
  color: #1c1917;
}
.tft-hero.teach {
  background: #1d4ed8;
  border-color: #60a5fa;
  color: #fff;
}
.tft-hero.saved {
  background: #059669;
  border-color: #6ee7b7;
  color: #fff;
}
.tft-hero.ignored {
  background: #991b1b;
  border-color: #f87171;
  color: #fff;
}
.tft-hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tft-bulb {
  font-size: 2rem;
  line-height: 1;
  text-align: center;
}
.tft-state-wrap { text-align: center; }
.tft-sub { font-size: 0.78rem; font-weight: 700; opacity: 0.85; }
.tft-main { font-size: 1.75rem; font-weight: 900; line-height: 1.1; letter-spacing: 0.04em; }
.tft-wave {
  height: 24px;
  background: #0a0f1c;
  border-radius: 6px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}
.wave-bar {
  width: 5px;
  border-radius: 2px;
  background: #334155;
  transition: height 0.12s, background 0.12s;
}
.tft-telem {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tft-bar-row {
  display: grid;
  grid-template-columns: 32px 1fr 38px;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
}
.tft-track {
  height: 12px;
  background: #1e293b;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.tft-fill {
  height: 100%;
  background: #64748b;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
}
.tft-fill.hit { background: #34d399; }
.tft-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 79%;
  width: 2px;
  background: #fff;
}
.tft-score { text-align: right; color: var(--muted); }
.device-leds {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 10px;
}
.led {
  width: 18px;
  height: 6px;
  border-radius: 999px;
  filter: blur(1px);
}
.led-green { background: #4ade80; box-shadow: 0 0 12px #4ade80; }
.led-amber { background: #facc15; box-shadow: 0 0 12px #facc15; }

.sim-controls h3 { font-size: 1.2rem; margin-bottom: 16px; }
.sim-btn-grid { display: grid; gap: 12px; }
.sim-btn {
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.sim-btn:hover {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
  transform: translateX(3px);
}
.sim-btn-title { font-weight: 700; font-size: 0.96rem; }
.sim-btn-desc { font-size: 0.82rem; color: var(--muted); }

/* Feature Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.94rem; color: var(--muted); }

/* Pipeline */
.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.pipe-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
}
.pipe-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 8px;
}
.pipe-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pipe-step p { font-size: 0.9rem; color: var(--muted); }
.pipe-arrow { font-size: 1.6rem; color: var(--cyan); font-weight: 700; }

/* Extensible Architecture Grid */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ext-card {
  background: linear-gradient(155deg, rgba(19, 29, 51, 0.72), rgba(13, 20, 36, 0.92));
  border: 1px dashed rgba(56, 189, 248, 0.34);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.ext-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.ext-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ext-icon { font-size: 1.6rem; }
.ext-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--amber-bright);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.32);
}
.ext-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.ext-card p { font-size: 0.92rem; color: var(--muted); }

/* Benchmarks Table */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bench-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}
.bench-table th, .bench-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.bench-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.02);
}
.bench-table tr:last-child td { border-bottom: none; }
.tag-ok {
  display: inline-block;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 5px;
}

/* Waitlist Box */
.cta-box {
  background: linear-gradient(145deg, rgba(19, 29, 51, 0.95), rgba(13, 20, 36, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
}
.cta-box h2 { margin-top: 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-box p { color: var(--muted); max-width: 580px; margin: 12px auto 0; }
.wl-form {
  margin: 28px auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 12px;
}
.wl-form input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.95rem;
}
.wl-form input:focus { outline: none; border-color: var(--cyan); }
.wl-msg {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #34d399;
  min-height: 22px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-right { display: flex; gap: 20px; }
.footer-right a { color: var(--muted); text-decoration: none; }
.footer-right a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-layout { grid-template-columns: 1fr; justify-items: center; padding: 24px; }
  .sim-controls { width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .ext-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); justify-self: center; }
  .wl-form { grid-template-columns: 1fr; }
  .nav-link { display: none; }
}
