:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2b5bff;
  --primary-dark: #1c3faa;
  --accent: #22c55e;
  --card: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

body.theme-dark {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-alt: #10182d;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #6b8cff;
  --primary-dark: #4054c9;
  --accent: #34d399;
  --card: rgba(15, 23, 42, 0.85);
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -1;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(43, 91, 255, 0.25);
  top: -120px;
  right: -120px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: rgba(34, 197, 94, 0.2);
  bottom: -160px;
  left: -120px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--border);
}

body.theme-dark .site-header {
  background: rgba(10, 15, 30, 0.75);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: var(--muted);
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.gradient {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.button {
  background: var(--primary);
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 30px rgba(43, 91, 255, 0.25);
}

.button:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.button.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

.button.small {
  padding: 8px 14px;
  font-size: 12px;
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  background: var(--bg-alt);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.panel-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.panel-card.light {
  background: var(--bg-alt);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.badge {
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.pulse {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.pulse-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: rgba(15, 23, 42, 0.04);
  padding: 10px 14px;
  border-radius: 12px;
}

body.theme-dark .pulse-row {
  background: rgba(148, 163, 184, 0.08);
}

.risk {
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.risk.low {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent);
}

.risk.medium {
  background: rgba(251, 191, 36, 0.2);
  color: #f59e0b;
}

.risk.high {
  background: rgba(248, 113, 113, 0.2);
  color: #ef4444;
}

.delta {
  font-weight: 600;
  font-size: 12px;
}

.delta.positive {
  color: var(--accent);
}

.delta.negative {
  color: #ef4444;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.progress {
  margin-top: 8px;
}

.progress-track {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  height: 100%;
  width: 0;
  border-radius: 999px;
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
}

.logos {
  padding: 30px 0 60px;
}

.logos p {
  color: var(--muted);
  text-align: center;
  margin-bottom: 16px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-weight: 600;
  color: var(--muted);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.solutions {
  padding: 60px 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.solution {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.insights {
  padding: 60px 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.slider-group {
  margin-bottom: 18px;
}

.slider-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

input[type="range"] {
  width: 100%;
}

.score-card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.score {
  font-size: 3.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.score-meta {
  color: var(--muted);
  margin-bottom: 18px;
}

.score-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.pricing {
  padding: 60px 0;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  transition: 0.2s;
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 999px;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background-color: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(26px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.price-card {
  background: var(--bg-alt);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.price-card.highlight {
  border: 2px solid var(--primary);
}

.price-card h3 {
  margin-bottom: 8px;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 12px 0;
}

.price small {
  font-size: 0.9rem;
  color: var(--muted);
}

.price-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
}

.contact {
  padding: 70px 0 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.contact-form {
  background: var(--bg-alt);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  padding: 40px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.footer-grid h4 {
  margin-bottom: 10px;
}

.footer-grid a {
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg-alt);
  padding: 30px;
  border-radius: var(--radius);
  width: min(520px, 92vw);
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.modal-video {
  margin: 20px 0;
}

.video-placeholder {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .insights-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu.show {
    display: flex;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 50px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pricing-toggle {
    flex-direction: column;
  }
}
