/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:          #0e1118;
  --surface:     #161b27;
  --surface-2:   #1c2236;
  --border:      #222840;
  --text:        #e2e5f0;
  --muted:       #6b7194;
  --accent:      #f59e0b;
  --accent-glow: rgba(245,158,11,.18);
  --accent-dim:  rgba(245,158,11,.08);
  --cyan:        #22d3ee;
  --ok:          #34d399;
  --danger:      #f87171;
  --radius:      10px;
  --radius-lg:   18px;
  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --max-w:       1160px;
  --nav-h:       64px;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--muted); line-height: 1.75; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 14px;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 40px;
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14,17,24,.92);
  border-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { width: 30px; height: 30px; }
.logo-admin {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.4px;
}
.logo-stb {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.4px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.lang-switch a {
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.lang-switch a:hover, .lang-switch a.active { color: var(--text); text-decoration: none; }
.lang-switch a.active { background: var(--surface-2); color: var(--text); }
.lang-switch .sep { color: var(--border); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: opacity .15s, transform .15s;
  text-decoration: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
}
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #0e1118;
  font-size: 15px;
  padding: 12px 24px;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  font-size: 15px;
  padding: 11px 23px;
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm {
  font-size: 13px;
  padding: 8px 18px;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { max-width: 560px; }
.hero-text h1 { margin-bottom: 20px; }
.hero-text p  { font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

/* Dashboard mock */
.hero-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(245,158,11,.08), 0 24px 64px rgba(0,0,0,.5);
}
.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.mock-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
}
.mock-counts { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 11px; }
.mock-on  { color: var(--ok); }
.mock-off { color: var(--muted); }

.mock-filter {
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
}
.mock-pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: default;
}
.mock-pill.active { background: var(--accent-dim); color: var(--accent); }
.mock-pill.inactive { background: var(--surface-2); color: var(--muted); }

.mock-table { font-size: 12px; }
.mock-row {
  display: grid;
  grid-template-columns: 18px 1fr 70px 44px 56px;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.mock-row:last-child { border-bottom: none; }
.mock-row:hover { background: rgba(255,255,255,.02); }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-on  { background: var(--ok);  box-shadow: 0 0 6px var(--ok); }
.dot-off { background: var(--muted); }

.mock-name { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .03em;
  text-align: center;
}
.mock-badge.wifi { background: rgba(34,211,238,.12); color: var(--cyan); }
.mock-badge.eth  { background: rgba(52,211,153,.12); color: var(--ok); }
.mock-badge.disc { background: rgba(107,113,148,.12); color: var(--muted); }
.mock-bat { font-family: var(--font-mono); color: var(--text); }
.mock-time { font-family: var(--font-mono); color: var(--muted); font-size: 11px; }

.mock-footer {
  padding: 10px 18px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

/* ─── Stats strip ────────────────────────────────────────────── */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0;
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--muted); }

/* ─── Problem section ────────────────────────────────────────── */
.problem { background: var(--surface); }
.problem .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.problem-text h2 { margin-bottom: 20px; }
.problem-text p  { margin-bottom: 16px; }
.problem-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.threat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.threat-line:last-child { border-bottom: none; }
.threat-line .threat-name { color: var(--text); }
.threat-line .threat-status { font-size: 11px; }
.threat-status.killed  { color: var(--ok); }
.threat-status.running { color: var(--danger); }
.threat-status.monitor { color: var(--accent); }
.threat-header {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

/* ─── Features ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  margin-top: 56px;
}
.feature-card {
  background: var(--surface);
  padding: 32px 28px;
  transition: background .15s;
}
.feature-card:hover { background: var(--surface-2); }
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.feature-card h3 { margin-bottom: 10px; color: var(--text); }
.feature-card p  { font-size: 14px; }

/* ─── Pulse divider (signature element) ──────────────────────── */
.pulse-divider {
  display: block;
  width: 100%;
  height: 48px;
  opacity: .35;
}

/* ─── Spotlight ──────────────────────────────────────────────── */
.spotlight .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.spotlight-text h2 { margin-bottom: 20px; }
.spotlight-text p  { margin-bottom: 20px; }
.spotlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.spotlight-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}
.spotlight-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.screenshot-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.screenshot-placeholder-text {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}

/* ─── Use Cases ──────────────────────────────────────────────── */
.use-cases .section-header { text-align: center; margin-bottom: 56px; }
.use-cases .section-header h2 { margin-bottom: 14px; }
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.use-case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color .2s, transform .2s;
}
.use-case-card:hover {
  border-color: rgba(245,158,11,.3);
  transform: translateY(-3px);
}
.uc-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  display: block;
}
.use-case-card h3 { margin-bottom: 12px; }
.use-case-card p { font-size: 14px; }

/* ─── Pricing teaser ─────────────────────────────────────────── */
.pricing-teaser {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.pricing-teaser h2 { margin-bottom: 12px; }
.pricing-teaser p  { margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.tier-preview {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tier-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tier-chip strong { color: var(--text); }

/* ─── Final CTA ──────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--accent-glow), transparent);
}
.final-cta h2 { margin-bottom: 16px; }
.final-cta p  { margin-bottom: 36px; max-width: 440px; margin-left: auto; margin-right: auto; }
.final-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; margin-top: 14px; }
.footer-parent { font-size: 13px; color: var(--muted); margin-top: 8px; }
.footer-parent a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; transition: color .15s; }
.footer-parent a:hover { color: var(--text); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ─── Section header utility ─────────────────────────────────── */
.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p  { font-size: 1.05rem; max-width: 540px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mock { display: none; }
  .problem .container { grid-template-columns: 1fr; }
  .spotlight .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
