:root {
  --blue-900: #0b3d91;
  --blue-700: #1558c0;
  --blue-600: #1f6feb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --white: #ffffff;
  --ink: #0f2540;
  --ink-soft: #4b6285;
  --border: #e2ecfb;
  --success: #16a34a;
  --warn: #f59e0b;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 61, 145, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 61, 145, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 61, 145, 0.18);

  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-grad {
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); filter: brightness(1.03); }

.btn-outline {
  background: var(--white);
  color: var(--blue-700);
  border: 1.5px solid var(--blue-200);
}
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-400); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--blue-50); }

.btn-white {
  background: var(--white);
  color: var(--blue-700);
}
.btn-white:hover { box-shadow: var(--shadow-md); }

.btn-link {
  background: none;
  color: var(--blue-700);
  padding: 11px 8px;
}

.btn-social {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--ink);
  width: 100%;
}
.btn-social:hover { background: var(--blue-50); }
.social-icon { font-size: 15px; }

.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.logo-text { font-size: 17px; font-weight: 500; color: var(--ink); }
.logo-text strong { font-weight: 800; color: var(--blue-700); }

.nav { display: flex; gap: 32px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--blue-700); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
}
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 88px 0 90px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 400px at 85% -10%, var(--blue-100), transparent 60%),
    radial-gradient(600px 400px at 0% 10%, var(--blue-50), transparent 60%),
    var(--white);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-copy h1 {
  font-size: 48px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta { display: flex; align-items: center; gap: 8px; margin-bottom: 44px; flex-wrap: wrap; }

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 560px;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item strong { font-size: 20px; color: var(--blue-700); font-weight: 800; }
.trust-item span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }

/* ===== Hero visual ===== */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }

.score-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 320px;
  z-index: 2;
}
.score-card-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 14px;
}
.score-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.15);
}
.score-number {
  font-size: 46px; font-weight: 800; color: var(--blue-700);
  margin-bottom: 12px;
}
.score-number span { font-size: 20px; color: var(--ink-soft); font-weight: 600; }
.score-bar {
  height: 8px; border-radius: 999px; background: var(--blue-100);
  overflow: hidden; margin-bottom: 20px;
}
.score-bar-fill {
  width: 92%; height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--success));
  border-radius: 999px;
}
.score-list { display: flex; flex-direction: column; gap: 10px; }
.score-list li { font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-warn { background: var(--warn); }
.dot-ok { background: var(--success); }

.float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 2px;
  z-index: 3;
}
.float-label { font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.float-value { font-size: 16px; font-weight: 800; color: var(--blue-700); }
.float-card-1 { top: 10px; left: -10px; }
.float-card-2 { bottom: 30px; right: -20px; }

/* ===== Sources ===== */
.sources { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--blue-50); }
.sources-label { text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .04em; }
.sources-row { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.sources-row span { font-weight: 700; color: var(--blue-600); font-size: 15px; opacity: .85; }

/* ===== Section head ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue-700);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ===== Features ===== */
.features { padding: 100px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-100);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ===== How it works ===== */
.how { padding: 100px 0; background: var(--blue-50); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.how-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
}
.how-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  margin-bottom: 18px;
}
.how-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.how-step p { font-size: 14.5px; color: var(--ink-soft); }

/* ===== Pricing ===== */
.pricing { padding: 100px 0; }

.pricing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 48px;
}
.toggle-label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.toggle-label.active { color: var(--blue-700); }
.toggle-label em { color: var(--success); font-style: normal; font-weight: 700; }

.switch {
  width: 48px; height: 26px;
  background: var(--blue-200);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 3px;
  transition: background .2s;
}
.switch.on { background: var(--blue-600); }
.switch-knob {
  display: block;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}
.switch.on .switch-knob { transform: translateX(22px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.plan-desc { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; min-height: 40px; }

.plan-price { margin-bottom: 24px; }
.plan-price span { font-size: 34px; font-weight: 800; color: var(--ink); }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.hidden { display: none; }

.plan-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex-grow: 1; }
.plan-features li {
  font-size: 14px; color: var(--ink);
  padding-left: 24px;
  position: relative;
}
.plan-features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--blue-600); font-weight: 800;
}

.plan-featured {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
  background: linear-gradient(180deg, var(--blue-50), var(--white) 30%);
}
.plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}

/* ===== FAQ ===== */
.faq { padding: 100px 0; background: var(--blue-50); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px; color: var(--blue-600); font-weight: 400;
  margin-left: 12px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; color: var(--ink-soft); font-size: 14.5px; }

/* ===== CTA final ===== */
.cta-final {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  padding: 80px 0;
}
.cta-final-inner { text-align: center; color: var(--white); }
.cta-final-inner h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-final-inner p { font-size: 16px; opacity: .9; margin-bottom: 28px; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 24px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 280px; color: rgba(255,255,255,.6); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { color: var(--white); font-size: 14px; margin-bottom: 16px; }
.footer-cols a { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,.6); }
.footer-cols a:hover { color: var(--blue-300); }
.footer-bottom { padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 37, 64, 0.55);
  backdrop-filter: blur(3px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-in .18s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--blue-50); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 18px; color: var(--ink-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--blue-100); }

.modal h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
#plan-chosen { color: var(--blue-700); font-weight: 700; }

.social-login { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.divider { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 12.5px; color: var(--ink-soft); }

.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-form label { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.modal-form input {
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.modal-form input:focus { border-color: var(--blue-500); }

.forgot-link { font-size: 13px; color: var(--blue-700); font-weight: 600; text-align: right; margin-top: -8px; }

.modal-switch { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-top: 22px; }
.modal-switch a { color: var(--blue-700); font-weight: 700; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; margin-top: 20px; }
  .feature-grid, .how-steps, .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .plan-featured { transform: none; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .burger { display: flex; }
  .hero-copy h1 { font-size: 34px; }
  .hero-trust { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .section-head h2 { font-size: 26px; }
}
