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

:root {
  --bg:          oklch(0.15 0.01 250);
  --bg2:         oklch(0.18 0.01 250);
  --bg3:         oklch(0.21 0.01 250);
  --border:      oklch(0.28 0.01 250);
  --border2:     oklch(0.32 0.01 250);
  --text:        oklch(0.92 0.005 250);
  --text2:       oklch(0.65 0.01 250);
  --text3:       oklch(0.45 0.01 250);
  --accent:      oklch(0.75 0.13 220);
  --accent-dim:  oklch(0.55 0.10 220);
  --accent-glow: oklch(0.75 0.13 220 / 0.15);
  --ok:          oklch(0.75 0.15 145);
  --ok-dim:      oklch(0.75 0.15 145 / 0.15);
  --warn:        oklch(0.75 0.15 80);
  --crit:        oklch(0.65 0.2 25);
  --mono:        'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: oklch(0.13 0.01 250 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: oklch(0.13 0.01 250);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
section { padding: 100px 40px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 17px;
  color: var(--text2);
  max-width: 580px;
  line-height: 1.7;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  position: relative;
}
#hero .container {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid oklch(0.75 0.13 220 / 0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: oklch(0.13 0.01 250);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-secondary {
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.btn-secondary:hover { color: var(--text); }
.hero-meta {
  margin-top: 44px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text3);
  font-family: var(--mono);
}

/* ── RADAR SVG animation ─────────────────────────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar-wrap {
  position: relative;
  width: 380px;
  height: 380px;
}
.radar-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.radar-sweep { animation: radarSweep 3s linear infinite; transform-origin: 50% 50%; }
@keyframes blipPop {
  0%   { opacity: 0; r: 2; }
  20%  { opacity: 1; r: 4; }
  80%  { opacity: 0.7; }
  100% { opacity: 0; }
}
.blip { animation: blipPop 3s ease-out infinite; }
.blip:nth-child(1) { animation-delay: 0.8s; }
.blip:nth-child(2) { animation-delay: 1.6s; }
.blip:nth-child(3) { animation-delay: 2.4s; }

/* Floating device cards around radar */
.device-card {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 20px oklch(0 0 0 / 0.4);
}
.device-card-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dc-ok  { background: var(--ok);  box-shadow: 0 0 6px var(--ok); }
.dc-warn{ background: var(--warn); }
.dc-crit{ background: var(--crit); box-shadow: 0 0 6px var(--crit); }
.device-card:nth-child(1) { top: 12px;  left: -60px; }
.device-card:nth-child(2) { top: 70px;  right: -50px; }
.device-card:nth-child(3) { bottom: 80px; left: -40px; }
.device-card:nth-child(4) { bottom: 20px; right: -30px; }

/* ── LOGOS / SOCIAL PROOF ─────────────────────────────────────────────────── */
#social-proof {
  padding: 40px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#social-proof .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.proof-label {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text3);
  white-space: nowrap;
}
.proof-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.proof-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}

/* ── PROBLEM ─────────────────────────────────────────────────────────────── */
#problem { background: var(--bg); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.problem-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.problem-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.problem-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
}
.problem-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

/* ── FEATURES ────────────────────────────────────────────────────────────── */
#features { background: var(--bg2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--accent-glow);
  border: 1px solid oklch(0.75 0.13 220 / 0.25);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
}

/* ── HOW IT WORKS ────────────────────────────────────────────────────────── */
#how { background: var(--bg); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-dim));
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 28px;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
}

/* ── PROTOCOLS ───────────────────────────────────────────────────────────── */
#protocols { background: var(--bg2); }
.proto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}
.proto-group h3 {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.proto-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}
.proto-item-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  min-width: 100px;
}
.proto-item-desc {
  font-size: 13px;
  color: var(--text2);
}

/* ── COMPARISON ──────────────────────────────────────────────────────────── */
#compare { background: var(--bg); }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 48px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid var(--border);
  color: var(--text2);
}
.compare-table th.highlight {
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 8px 8px 0 0;
}
.compare-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  vertical-align: middle;
}
.compare-table td.highlight {
  background: var(--accent-glow);
  color: var(--text);
  font-weight: 500;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg3); }
.compare-table tr:hover td.highlight { background: oklch(0.75 0.13 220 / 0.2); }
.chk { color: var(--ok); font-size: 16px; }
.cross { color: var(--crit); font-size: 16px; }
.partial { color: var(--warn); font-size: 16px; }

/* ── USE CASES ───────────────────────────────────────────────────────────── */
#usecases { background: var(--bg2); }
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.usecase-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.usecase-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.usecase-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 16px;
}
.usecase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.usecase-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text3);
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */
#cta {
  background: var(--bg);
  text-align: center;
}
#cta h2 { max-width: 600px; margin: 0 auto 18px; }
#cta .section-sub { margin: 0 auto 40px; text-align: center; }
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text3);
  font-family: var(--mono);
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}
.footer-logo span { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text2); }
.footer-copy {
  font-size: 12px;
  color: var(--text3);
  font-family: var(--mono);
}

/* ── HAMBURGER BUTTON ────────────────────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE — TABLET (≤900px) ───────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: oklch(0.13 0.01 250 / 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid oklch(0.22 0.01 250); }
  .nav-links li:first-child { border-top: 1px solid oklch(0.22 0.01 250); }
  .nav-links a { display: block; padding: 16px 24px; font-size: 16px; }
  .nav-links a:hover { background: oklch(0.18 0.01 250); }

  section { padding: 72px 20px; }
  #social-proof { padding: 40px 20px; }
  #hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .proto-layout { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }

  footer .container { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── RESPONSIVE — MOBILE (≤600px) ───────────────────────────────────────── */
@media (max-width: 600px) {
  section { padding: 60px 16px; }
  #social-proof { padding: 32px 16px; }

  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
  .hero-meta { gap: 24px; }

  .problem-grid,
  .features-grid,
  .usecase-grid { grid-template-columns: 1fr; }

  .cta-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { text-align: center; }

  footer { padding: 24px 16px; }
  footer .container { gap: 12px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
