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

:root {
  --bg: #090b10;
  --bg-card: #0f1219;
  --bg-card-hover: #141820;
  --bg-subtle: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.05);
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-dim: rgba(59,130,246,0.12);
  --accent-glow: rgba(59,130,246,0.3);
  --text: #f1f5f9;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  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 48px;
  height: 64px;
  background: rgba(9,11,16,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-center {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-center a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
  transition: color 0.2s;
}

.nav-center a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 40px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 900px;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
}

/* ── ICON STRIP ── */
.icon-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  max-width: 820px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  text-align: center;
}

.icon-item:last-child { border-right: none; }

.icon-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── TRUST STRIP ── */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.trust-item svg { color: var(--accent); flex-shrink: 0; }

.trust-sep {
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 50%;
}

/* ── SECTIONS ── */
.section {
  padding: 100px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.65;
}

.section-divider {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  height: 1px;
  background: var(--border-light);
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  margin-top: 60px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg-card); }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-card code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(59,130,246,0.1);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── HOW IT WORKS ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 60px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--border);
}

.step {
  display: flex;
  gap: 24px;
  padding-bottom: 44px;
}

.step:last-child { padding-bottom: 0; }

.step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.step-content { padding-top: 8px; }

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 500px;
}

.step-content code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(59,130,246,0.1);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── SHORTCUTS ── */
.shortcuts {
  display: flex;
  gap: 0;
  margin-top: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.shortcut-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-right: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.shortcut-item:last-child { border-right: none; }

.shortcut-keys {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-bottom: 2px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 5px;
}

.shortcut-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── DOWNLOAD ── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 60px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, background 0.2s;
}

.download-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.12);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.browser-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.browser-chrome { background: rgba(66,133,244,0.1); }
.browser-firefox { background: rgba(255,98,0,0.08); }

.download-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.download-card .sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.download-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-steps li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
  counter-increment: step;
}

.download-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  top: 1px;
}

.download-steps code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(59,130,246,0.1);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
}

.download-card .btn {
  align-self: flex-start;
  font-size: 14px;
  padding: 10px 20px;
}

.prereq-note {
  margin-top: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.prereq-note strong { color: var(--text-dim); }
.prereq-note a { color: var(--accent); text-decoration: none; }
.prereq-note a:hover { text-decoration: underline; }
.prereq-note code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(59,130,246,0.1);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border-light);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.footer-logo span { color: var(--accent); }

.footer-note { font-size: 13px; color: var(--text-muted); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-center { display: none; }

  .icon-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .icon-item:nth-child(2) { border-right: none; }
  .icon-item:nth-child(3) { border-top: 1px solid var(--border); }
  .icon-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  .shortcuts {
    flex-direction: column;
  }

  .shortcut-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .shortcut-item:last-child { border-bottom: none; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 20px;
  }

  .section { padding: 70px 20px; }
}
