* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2563eb;
  --secondary: #7c3aed;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --light: #f8fafc;
  --muted: #64748b;
  --border: #e2e8f0;
  --card-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body {
  font-family:
    "Roboto",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

html.page-index,
body.page-index {
  background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 100%);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

body.page-index .hero.section {
  padding-bottom: 0;
}

:where(
  .hero,
  .problem-section,
  .solution-section,
  .pricing-section,
  .social-proof,
  .faq-section,
  .final-cta,
  .threat-section,
  .ecommerce-solution,
  .integration-section,
  .case-study,
  .attack-types,
  .protection-features,
  .compliance-section,
  .dashboard-preview,
  .analytics-benefits,
  .audit-cta
) {
  padding: 5rem 0;
}

:where(
    .hero,
    .problem-section,
    .solution-section,
    .pricing-section,
    .social-proof,
    .faq-section,
    .final-cta,
    .threat-section,
    .ecommerce-solution,
    .integration-section,
    .case-study,
    .attack-types,
    .protection-features,
    .compliance-section,
    .dashboard-preview,
    .analytics-benefits,
    .audit-cta
  )
  > * {
  width: min(1100px, 92%);
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

.subhead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero {
  text-align: center;
  background: radial-gradient(circle at top, #e0f2fe 0%, #ffffff 60%);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--dark);
}

.nav-link {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-link:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero-header h1 {
  text-align: left;
  margin-bottom: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.hero .subhead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.ecommerce-hero {
  background: radial-gradient(circle at top, #ffedd5 0%, #fff7ed 60%);
}

.security-hero {
  background: radial-gradient(circle at top, #cffafe 0%, #f0f9ff 60%);
}

.analytics-hero {
  background: radial-gradient(circle at top, #ede9fe 0%, #f8fafc 60%);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 0.95rem 2.2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid rgba(37, 99, 235, 0.25);
  padding: 0.95rem 2.2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.badge {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
  display: inline-flex;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.problem-grid,
.features-grid,
.pricing-cards,
.testimonials,
.stats,
.faq-grid,
.threat-cards,
.solution-features,
.attack-grid,
.features-timeline,
.benefit-cards,
.dashboard-widgets,
.threat-metrics {
  display: grid;
  gap: 1.5rem;
}

.problem-grid,
.threat-cards,
.solution-features,
.attack-grid,
.benefit-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-cards,
.testimonials,
.faq-grid,
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: center;
}

.problem-card,
.feature,
.pricing-card,
.testimonial,
.faq-item,
.threat-card,
.attack-card,
.benefit-card,
.widget,
.case-quote,
.timeline-step {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.problem-card .icon,
.threat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.solution-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.step {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  text-align: center;
  width: 240px;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.arrow {
  font-size: 2rem;
  color: var(--muted);
}

.pricing-section {
  background: #eef2ff;
}

.pricing-card {
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}

.price {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0.75rem 0 1rem;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
}

.features-list {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.features-list li {
  margin-bottom: 0.6rem;
}

.popular-badge,
.recommended-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.quote {
  font-style: italic;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.author img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.stat .number,
.case-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat .label,
.case-stat .label {
  color: var(--muted);
}

.final-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 100%);
  color: #ffffff;
  text-align: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.final-cta > * {
  width: min(1100px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.final-cta .subhead {
  color: #dbeafe;
}

.guarantee {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.15);
}

.integration-section {
  background: #ffffff;
}

.platform-logos {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.platform-logos img {
  height: 36px;
  opacity: 0.75;
  filter: grayscale(1);
}

.case-study {
  background: #0f172a;
  color: #e2e8f0;
}

.case-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.case-quote {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.stats-bar .stat {
  background: #ffffff;
  color: var(--dark);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.features-timeline {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.timeline-step {
  display: flex;
  gap: 1rem;
}

.timeline-step .step-number {
  flex-shrink: 0;
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.compliance-text {
  color: var(--muted);
}

.dashboard-mockup {
  background: #0f172a;
  color: #ffffff;
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
}

.dashboard-widgets {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.widget {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.widget-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.traffic-chart {
  display: grid;
  gap: 0.75rem;
}

.traffic-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(0, 2.2fr);
  gap: 0.75rem;
  align-items: center;
}

.traffic-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.traffic-bar {
  position: relative;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 0.7rem;
}

.traffic-fill {
  position: absolute;
  inset: 0;
  width: var(--value, 0%);
  border-radius: 999px;
}

.traffic-value {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}

.traffic-fill.human {
  background: #22c55e;
}

.traffic-fill.good-bot {
  background: #38bdf8;
}

.traffic-fill.bad-bot {
  background: #ef4444;
}

@media (max-width: 560px) {
  .traffic-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .traffic-bar {
    height: 32px;
  }
}

.threat-metrics {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.metric .value {
  font-size: 1.25rem;
  font-weight: 700;
}

.analytics-benefits {
  background: #ffffff;
}

.audit-cta {
  background: #f1f5f9;
}

.audit-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.audit-form input {
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: #ffffff;
}

.form-note {
  color: var(--muted);
}

.social-proof-timer {
  margin: 2rem auto 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  max-width: 380px;
  box-shadow: var(--card-shadow);
}

.social-proof-timer .timer-text {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.trust-seals {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.trust-seals img {
  height: 40px;
  width: auto;
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--primary);
  color: #ffffff;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: auto !important;
  max-width: 180px;
  left: auto !important;
}

.exit-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.exit-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.exit-popup-content {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--card-shadow);
  position: relative;
}

.exit-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.1rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .solution-steps {
    flex-direction: column;
  }

  .nav-inner {
    justify-content: center;
  }

  .chat-widget {
    right: 16px;
    bottom: 16px;
  }
}

html, body {
    overflow-x: hidden;
}