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

:root {
  --bg: #0a0b0f;
  --bg2: #0f1117;
  --bg3: #161822;
  --border: rgba(255,255,255,0.08);
  --text: #e8eaf0;
  --muted: #8892a4;
  --accent: #4f6ef7;
  --accent2: #7c3aed;
  --accent-glow: rgba(79,110,247,0.25);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
nav.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 5%;
  height: 64px;
  background: rgba(10,11,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand .hex { color: var(--accent); font-size: 1.4rem; }

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

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

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

.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: #3d5ce0;
  box-shadow: 0 0 32px rgba(79,110,247,0.4);
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  position: relative;
  text-align: center;
  padding: 100px 5% 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(79,110,247,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(79,110,247,0.12);
  border: 1px solid rgba(79,110,247,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  color: #7c9fff;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, #4f6ef7 0%, #a78bfa 50%, #4f6ef7 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero p.subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── DASHBOARD PREVIEW ── */
.dashboard-preview {
  max-width: 1000px;
  margin: 60px auto 0;
  position: relative;
  padding-bottom: 60px;
}

.preview-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 200px;
  background: radial-gradient(ellipse at 50% 100%, rgba(79,110,247,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.preview-frame {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.preview-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.preview-dot:nth-child(1) { background: #ef4444; }
.preview-dot:nth-child(2) { background: #eab308; }
.preview-dot:nth-child(3) { background: #22c55e; }

.preview-url {
  flex: 1;
  margin-left: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--muted);
}

.preview-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 380px;
}

.preview-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 20px 0;
}

.preview-sidebar-brand {
  padding: 0 20px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

.preview-nav-item {
  padding: 10px 20px;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-nav-item.active {
  color: var(--text);
  background: rgba(79,110,247,0.1);
  border-left: 2px solid var(--accent);
}

.preview-main {
  padding: 24px;
  overflow: hidden;
}

.preview-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.preview-stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.preview-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.preview-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}
.preview-stat-value.green { color: var(--green); }
.preview-stat-value.yellow { color: var(--yellow); }
.preview-stat-value.accent { color: var(--accent); }

.preview-domain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-domain-row {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
}

.preview-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-ok { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-warn { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.status-bad { background: var(--red); box-shadow: 0 0 6px var(--red); }

.preview-domain-name { flex: 1; font-weight: 500; }
.preview-score { color: var(--muted); font-size: 0.72rem; }
.preview-country-flags { color: var(--muted); font-size: 0.78rem; letter-spacing: 2px; }

/* ── LOGOS STRIP ── */
.logos-strip {
  padding: 48px 5%;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logos-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg2);
}

/* ── SECTIONS ── */
section { padding: 80px 5%; }

.section-label {
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ── PROBLEM ── */
.problem-section {
  background: var(--bg2);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.problem-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius);
}

.problem-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.problem-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.problem-text span {
  font-size: 0.82rem;
  color: var(--muted);
}

.problem-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
}

.check-flag { font-size: 1.4rem; }
.check-domain { font-weight: 500; flex: 1; }
.check-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-blocked { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-ok { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.badge-warn { background: rgba(234,179,8,0.15); color: #fbbf24; border: 1px solid rgba(234,179,8,0.3); }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 56px auto 0;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(79,110,247,0.4);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(79,110,247,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

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

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── HOW IT WORKS ── */
.how-section {
  background: var(--bg2);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 56px auto 0;
  position: relative;
}

.how-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.3;
}

.how-step {
  text-align: center;
  position: relative;
}

.how-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 0 24px var(--accent-glow);
}

.how-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── HEALTH SCORE ── */
.health-section {
  max-width: 1100px;
  margin: 0 auto;
}

.health-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 56px;
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.score-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
}

.score-ring-svg {
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: var(--bg3);
  stroke-width: 14;
}

.score-ring-fill {
  fill: none;
  stroke: url(#scoreGrad);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.5s ease;
}

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.score-components {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.score-comp {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.score-comp-label { flex: 1; }
.score-comp-pts { color: var(--muted); font-size: 0.78rem; }

.score-bar-wrap {
  width: 100px;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
}
.bar-green { background: var(--green); }
.bar-blue { background: var(--accent); }
.bar-purple { background: var(--accent2); }

.health-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.health-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.health-feat-icon {
  width: 40px;
  height: 40px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.health-feat h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.health-feat p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

/* ── PRICING ── */
.pricing-section { text-align: center; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 56px auto 0;
  align-items: start;
}

.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(79,110,247,0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 3px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-price .amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-price .currency {
  font-size: 1.2rem;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 8px;
}

.pricing-price .period {
  font-size: 0.85rem;
  color: var(--muted);
}

.pricing-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
}

.pricing-features li .check {
  color: var(--green);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-features li .cross {
  color: var(--muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-features li span {
  color: var(--text);
  line-height: 1.4;
}

.pricing-features li span.dim { color: var(--muted); }

.pricing-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: all 0.2s;
}

.pricing-btn:hover { border-color: var(--accent); color: var(--accent); }

.pricing-btn.primary-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.pricing-btn.primary-btn:hover {
  background: #3d5ce0;
  box-shadow: 0 0 32px rgba(79,110,247,0.4);
}

/* ── CTA BANNER ── */
.cta-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(79,110,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── FAQ ── */
.faq-section { max-width: 700px; margin: 0 auto; }

.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg2);
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  transition: background 0.2s;
  gap: 16px;
}

.faq-question:hover { background: var(--bg3); }

.faq-arrow {
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 4px 20px 18px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  background: var(--bg2);
}

.faq-item.open .faq-answer { display: block; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .hex { color: var(--accent); }

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

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav.top-nav { padding: 0 4%; }
  .nav-links { display: none; }

  .hero { padding: 60px 4% 48px; }

  .problem-grid,
  .health-layout { grid-template-columns: 1fr; gap: 40px; }

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

  .how-grid::before { display: none; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

  .preview-body { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }

  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .preview-cards { grid-template-columns: 1fr; }
}
