:root {
  color-scheme: light;
  --bg: #f6f8ff;
  --bg-soft: #eef3ff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-deep: #f9fbff;
  --text: #0a1850;
  --muted: #596b95;
  --line: rgba(62, 100, 255, 0.14);
  --blue: #2f63f8;
  --blue-soft: #84a8ff;
  --navy: #10235f;
  --red: #ff4d68;
  --red-soft: #ff9aaa;
  --shadow: 0 24px 60px rgba(27, 51, 128, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 77, 104, 0.14), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(47, 99, 248, 0.16), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(94, 137, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  color: var(--text);
  font: 16px/1.58 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

code {
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: rgba(47, 99, 248, 0.08);
  color: var(--navy);
  font-size: 0.92em;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(24, 45, 112, 0.14);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.topnav a {
  color: var(--muted);
  font-weight: 700;
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-card,
.section,
.policy-card,
.stats-strip,
.footer {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.92));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 77, 104, 0.16), transparent 24%),
    radial-gradient(circle at 84% 80%, rgba(47, 99, 248, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.98));
}

.hero-brand {
  width: min(100%, 420px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-meta span,
.pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 99, 248, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.26rem;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.pill-row,
.cta-row,
.level-list,
.feature-grid,
.two-column,
.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.pill-row {
  gap: 10px;
  margin-top: 20px;
}

.cta-row {
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(90deg, var(--red), var(--blue));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(47, 99, 248, 0.18);
}

.button-secondary {
  border: 1px solid rgba(47, 99, 248, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.88);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
}

.stat-card span {
  color: var(--muted);
}

.section,
.policy-card {
  padding: 28px;
  margin-bottom: 24px;
}

.section-heading {
  margin-bottom: 20px;
}

.feature-grid {
  gap: 16px;
}

.feature-card {
  flex: 1 1 280px;
  min-height: 182px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(47, 99, 248, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.94));
}

.feature-card p,
.level-card p,
.info-panel p,
.policy-card p,
.policy-card li {
  color: var(--muted);
}

.feature-blue { box-shadow: inset 0 0 0 1px rgba(47, 99, 248, 0.18); }
.feature-red { box-shadow: inset 0 0 0 1px rgba(255, 77, 104, 0.18); }
.feature-indigo { box-shadow: inset 0 0 0 1px rgba(58, 78, 180, 0.18); }
.feature-rose { box-shadow: inset 0 0 0 1px rgba(255, 128, 146, 0.22); }
.feature-sky { box-shadow: inset 0 0 0 1px rgba(111, 154, 255, 0.22); }
.feature-navy { box-shadow: inset 0 0 0 1px rgba(16, 35, 95, 0.16); }

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

.level-card {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(47, 99, 248, 0.1);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  border-radius: 20px;
  font-size: 2rem;
  font-weight: 900;
  background: #ffffff;
  border: 1px solid rgba(47, 99, 248, 0.14);
}

.level-a1 .level-badge { color: var(--blue); box-shadow: inset 0 0 0 1px rgba(255, 77, 104, 0.2); }
.level-a2 .level-badge { color: var(--navy); box-shadow: inset 0 0 0 1px rgba(255, 77, 104, 0.2); }
.level-b1 .level-badge { color: var(--navy); box-shadow: inset 0 0 0 1px rgba(47, 99, 248, 0.2); }
.level-b2 .level-badge { color: var(--navy); box-shadow: inset 0 0 0 1px rgba(255, 77, 104, 0.2); }
.level-c1 .level-badge { color: var(--red); box-shadow: inset 0 0 0 1px rgba(47, 99, 248, 0.2); }

.highlight-section {
  background:
    radial-gradient(circle at 14% 16%, rgba(47, 99, 248, 0.12), transparent 24%),
    radial-gradient(circle at 88% 24%, rgba(255, 77, 104, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.96));
}

.two-column {
  gap: 16px;
}

.info-panel {
  flex: 1 1 320px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(47, 99, 248, 0.1);
}

.policy-page {
  display: grid;
  gap: 20px;
}

.policy-hero {
  padding: 14px 4px 4px;
}

.policy-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.policy-card li + li {
  margin-top: 8px;
}

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

.footer span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.footer-links {
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--blue);
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max));
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    gap: 8px 14px;
  }

  .hero-copy,
  .hero-card,
  .section,
  .policy-card {
    padding: 22px;
  }

  .level-card {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    justify-content: flex-start;
  }
}
