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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #111827;
  background: #fff;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }

.btn-primary { background: #2563EB; color: #fff; }
.nav-inner a.btn-nav { padding: 8px 20px; background: #2563EB; color: #fff; border-radius: 8px; font-size: 14px; }
.btn-ghost { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #E2E8F0; }
.btn-white { background: #fff; color: #111827; }

/* ── Nav ─────────────────────────────────────────────── */

nav {
  background: #0B0F1A;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: #94A3B8;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #94A3B8;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ────────────────────────────────────────────── */

#hero {
  background: linear-gradient(180deg, #0B0F1A 0%, #111827 100%);
  padding: 80px 48px 0;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-copy { flex: 1; }

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #60A5FA;
  margin-bottom: 20px;
}

#hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 17px;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-mini-stats {
  display: flex;
  gap: 40px;
}

.mini-stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.mini-stat-label {
  font-size: 13px;
  color: #64748B;
  margin-top: 2px;
}

.hero-popup {
  flex: none;
  width: 340px;
  position: relative;
}

.hero-fade {
  height: 80px;
  background: linear-gradient(180deg, transparent, #F9FAFB);
}

/* ── Extension popup mockup ──────────────────────────── */

.popup-frame {
  background: #1E293B;
  border-radius: 16px;
  padding: 3px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}

.popup-inner {
  background: #18181B;
  border-radius: 14px;
  overflow: hidden;
}

.popup-header {
  display: flex;
  align-items: center;
  padding: 14px 18px 10px;
  gap: 8px;
}

.popup-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #F4F4F5;
}

.toggle-pill {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #3F3F46;
  position: relative;
}
.toggle-pill.on { background: #16A34A; }

.toggle-thumb {
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle-pill.on .toggle-thumb { left: auto; right: 2.5px; }

.popup-status {
  display: flex;
  align-items: center;
  padding: 0 18px 12px;
  gap: 6px;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #16A34A; }
.status-active { font-size: 12px; color: #16A34A; font-weight: 600; }
.status-sep { font-size: 12px; color: #52525B; }
.status-site { font-size: 12px; color: #A1A1AA; }

.popup-divider { height: 1px; background: #27272A; margin: 0 18px; }

.popup-level { padding: 14px 18px; }
.popup-level-label {
  font-size: 10px;
  font-weight: 700;
  color: #71717A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.popup-seg {
  display: flex;
  background: #27272A;
  border-radius: 8px;
  padding: 2px;
  gap: 1px;
}
.seg {
  flex: 1;
  padding: 6px 2px;
  text-align: center;
  font-size: 11px;
  border-radius: 6px;
  font-weight: 500;
}
.seg-low { color: #16A34A; }
.seg-mod { color: #3B82F6; }
.seg-high { color: #DC2626; }
.seg-high.active { background: #D97706; color: #fff; font-weight: 600; }
.seg-ext { color: #DC2626; }

.popup-ct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 0;
}
.popup-ct-label { font-size: 13px; font-weight: 600; color: #F4F4F5; }
.popup-ct-desc { font-size: 11px; color: #71717A; padding: 3px 18px 12px; }

.popup-stats {
  display: flex;
  padding: 14px 18px;
  text-align: center;
}
.popup-stat { flex: 1; }
.popup-stat-num { display: block; font-size: 20px; font-weight: 700; color: #F4F4F5; }
.popup-stat-label { font-size: 11px; color: #71717A; margin-top: 2px; }
.popup-stat-sep { width: 1px; background: #27272A; }

.popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 10px;
  border-top: 1px solid #27272A;
}
.popup-pause { font-size: 12px; color: #71717A; font-weight: 500; }
.popup-settings { font-size: 12px; color: #3B82F6; font-weight: 500; }

.popup-live-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  background: #16A34A;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Stats bar ───────────────────────────────────────── */

#stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  padding: 40px 48px;
  background: #F9FAFB;
  border-bottom: 1px solid #F3F4F6;
}

.stat { text-align: center; }
.stat-number { display: block; font-size: 32px; font-weight: 800; color: #111827; }
.stat-label { font-size: 13px; color: #6B7280; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: #E5E7EB; }

/* ── Sections ────────────────────────────────────────── */

.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.narrow { max-width: 800px; }
.section-inner.narrow-md { max-width: 900px; }
.section-inner.narrow-sm { max-width: 640px; }

.section-header { text-align: center; margin-bottom: 48px; }

h2 {
  font-size: 36px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-sub {
  font-size: 17px;
  color: #6B7280;
  margin-top: 10px;
}

/* ── Features ────────────────────────────────────────── */

#features {
  padding: 80px 48px;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border: 1px solid #F3F4F6;
  border-radius: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon.blue { background: #EFF6FF; }
.feature-icon.red { background: #FEF2F2; }
.feature-icon.green { background: #F0FDF4; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

/* ── How it works ────────────────────────────────────── */

#how-it-works {
  padding: 80px 48px;
  background: #F9FAFB;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.step-number.blue { background: #2563EB; }
.step-number.red { background: #DC2626; }

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.6;
}

/* ── Comparison ──────────────────────────────────────── */

#why-different {
  padding: 80px 48px;
  background: #fff;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comparison-col {
  padding: 32px;
  border-radius: 12px;
}

.comparison-col.other {
  border: 1px solid #F3F4F6;
}

.comparison-col.ours {
  background: #EFF6FF;
  border: 2px solid #BFDBFE;
}

.comparison-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.comparison-col.other .comparison-label { color: #9CA3AF; }
.comparison-col.ours .comparison-label { color: #2563EB; }

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comparison-item svg { flex-shrink: 0; margin-top: 2px; }

.comparison-col.other .comparison-item span {
  font-size: 14px;
  color: #6B7280;
}

.comparison-col.ours .comparison-item span {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

/* ── Open source ─────────────────────────────────────── */

#open-source {
  padding: 80px 48px;
  background: #0B0F1A;
  text-align: center;
}

#open-source h2 {
  color: #fff;
  margin-bottom: 14px;
}

#open-source .section-sub {
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 32px;
}

.os-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ── Install ─────────────────────────────────────────── */

#install {
  padding: 80px 48px;
  background: #fff;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.install-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.15s;
}
.install-card:hover { border-color: #2563EB; }

.install-emoji { font-size: 28px; margin-bottom: 4px; }
.install-browser { font-size: 15px; font-weight: 700; color: #111827; }
.install-action { font-size: 13px; color: #2563EB; font-weight: 500; }

.install-note {
  font-size: 13px;
  color: #9CA3AF;
  text-align: center;
}

/* ── Footer ──────────────────────────────────────────── */

footer {
  padding: 32px 48px;
  background: #F9FAFB;
  border-top: 1px solid #F3F4F6;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

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

.footer-links a {
  font-size: 13px;
  color: #6B7280;
  transition: color 0.15s;
}
.footer-links a:hover { color: #111827; }

.footer-copy {
  font-size: 12px;
  color: #9CA3AF;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 900px) {
  nav { padding: 16px 24px; }

  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0B0F1A;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }

  #hero { padding: 48px 24px 0; }
  .hero-inner { flex-direction: column; gap: 48px; }
  .hero-popup { width: 100%; max-width: 340px; }

  #hero h1 { font-size: 36px; }
  #hero h1 br { display: none; }

  #stats { flex-direction: column; gap: 24px; padding: 32px 24px; }
  .stat-divider { width: 60px; height: 1px; }

  #features,
  #how-it-works,
  #why-different,
  #open-source,
  #install { padding: 56px 24px; }

  .features-grid { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr 1fr; }

  h2 { font-size: 28px; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-mini-stats { flex-direction: column; gap: 16px; }
  .install-grid { grid-template-columns: 1fr; }
  .os-cta { flex-direction: column; align-items: center; }
}
