:root {
  --bg: #f4f7fb;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --surface: #ffffff;
  --surface-strong: #fff;
  --text: #0f172a;
  --muted: #5b6574;
  --border: rgba(146, 162, 183, 0.24);
  --border-strong: rgba(18, 34, 64, 0.12);
  --blue: #255ff7;
  --blue-dark: #071b4d;
  --blue-deep: #0b1233;
  --accent: #7cb7ff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  --radius: 18px;
  --radius-sm: 14px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(37, 95, 247, 0.05), transparent 34%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

main { display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(146, 162, 183, 0.18);
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0.18rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(146, 162, 183, 0.22);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  flex: none;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: -0.03em; }
.brand-copy span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.site-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 0.2rem;
  padding: 0.3rem;
  border: 1px solid rgba(146, 162, 183, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.nav-link,
.nav-dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.8rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #243144;
  white-space: nowrap;
}

.nav-link:hover,
.nav-dropdown > summary:hover,
.nav-link.is-active {
  background: rgba(37, 95, 247, 0.06);
  color: var(--blue-dark);
}

.nav-dropdown {
  position: relative;
  list-style: none;
}
.nav-dropdown > summary {
  cursor: pointer;
  list-style: none;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after {
  content: "▾";
  font-size: 0.8em;
  opacity: 0.75;
}
.nav-dropdown[open] > summary {
  background: rgba(37, 95, 247, 0.08);
  color: var(--blue-dark);
}
.nav-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  width: min(720px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(146, 162, 183, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  z-index: 50;
}
.nav-panel a {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(245, 248, 252, 0.9);
}
.nav-panel a:hover {
  border-color: rgba(37, 95, 247, 0.18);
  background: rgba(37, 95, 247, 0.05);
}
.nav-panel strong { font-size: 0.98rem; letter-spacing: -0.02em; }
.nav-panel span { font-size: 0.88rem; color: var(--muted); }

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.header-cta {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: white;
  box-shadow: 0 12px 26px rgba(11, 18, 51, 0.18);
}
.header-cta:hover { color: white; filter: brightness(1.02); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid rgba(146, 162, 183, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle-lines {
  width: 18px;
  display: grid;
  gap: 3px;
}
.menu-toggle-lines i {
  display: block;
  height: 2px;
  border-radius: 12px;
  background: currentColor;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero,
.page-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 1rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 1.5rem;
  align-items: stretch;
}
.hero-copy h1,
.page-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.9rem, 5.7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--blue-dark);
}
.lead {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--muted);
  margin: 1.25rem 0 0;
}
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}
.eyebrow-light { color: #b7c7ff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.button-primary {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: white;
  box-shadow: 0 18px 42px rgba(11, 18, 51, 0.22);
}
.button-primary:hover { color: white; }
.button-secondary {
  color: var(--blue-dark);
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(146, 162, 183, 0.24);
}

.hero-panel,
.card,
.cta-banner {
  background: var(--bg-elevated);
  border: 1px solid rgba(146, 162, 183, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.hero-panel {
  padding: 1.4rem;
  background: linear-gradient(180deg, #0b1233 0%, #101d48 100%);
  color: white;
}
.panel-kicker {
  margin: 0 0 0.75rem;
  color: #9eb4ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}
.panel-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.85rem;
  color: rgba(255,255,255,0.92);
}

.section { padding: 1.5rem 0 0; }
.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.section-heading h2,
.feature-grid h2,
.cta-banner h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--blue-dark);
}
.section-dark {
  margin-top: 2rem;
  padding: 3rem 0;
  color: white;
  background: linear-gradient(135deg, var(--blue-deep), #0d1a43 55%, #09112e);
}
.section-dark h2 { color: white; }

.cards {
  display: grid;
  gap: 1rem;
}
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  padding: 1.35rem;
  border-radius: var(--radius);
}
.card-link {
  display: grid;
  align-content: start;
  min-height: 100%;
}
.card-link:hover { transform: translateY(-1px); transition: transform 180ms ease; }
.card h2,
.card h3 {
  margin: 0 0 0.55rem;
  color: var(--blue-dark);
  letter-spacing: -0.03em;
}
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.story-card { display: grid; gap: 0.8rem; }
.story-card p { line-height: 1.7; }
.story-meta { color: var(--blue-dark); }
.check-hero {
  padding: 2.35rem 0 0.75rem;
}
.check-hero-grid,
.check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 1rem;
  align-items: start;
}
.check-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(146, 162, 183, 0.22);
  background: rgba(245, 248, 252, 0.94);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lang-switch:hover {
  background: rgba(37, 95, 247, 0.06);
  color: var(--blue-dark);
}
.lang-switch.is-active {
  border-color: rgba(37, 95, 247, 0.18);
  background: rgba(37, 95, 247, 0.1);
  color: var(--blue-dark);
}
.check-stack {
  display: grid;
  gap: 1rem;
}
.question-list {
  display: grid;
  gap: 1rem;
}
.question-card {
  display: grid;
  gap: 0.85rem;
}
.question-meta {
  color: var(--muted);
  font-size: 0.94rem;
}
.answer-grid {
  display: grid;
  gap: 0.6rem;
}
.answer-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  min-height: auto;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(146, 162, 183, 0.22);
  border-radius: 12px;
  background: rgba(245, 248, 252, 0.94);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.answer-button:hover {
  border-color: rgba(37, 95, 247, 0.24);
  background: rgba(37, 95, 247, 0.06);
}
.answer-button.is-selected {
  border-color: rgba(37, 95, 247, 0.36);
  background: rgba(37, 95, 247, 0.12);
  box-shadow: 0 10px 22px rgba(37, 95, 247, 0.08);
}
.result-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.9rem;
}
.result-score {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 95, 247, 0.08);
  color: var(--blue-dark);
  font-weight: 700;
}
.result-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: rgba(11, 18, 51, 0.06);
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 700;
}
.check-fineprint {
  font-size: 0.92rem;
  color: var(--muted);
}
.card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  font-size: 0.82rem;
  font-weight: 800;
}

.feature-grid,
.cta-banner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.feature-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.feature-list {
  display: grid;
  gap: 1rem;
}
.feature-list article {
  padding: 1rem 0;
  border-top: 1px solid rgba(183, 199, 255, 0.18);
}
.feature-list h3 {
  margin: 0 0 0.3rem;
  color: white;
  font-size: 1.08rem;
}
.feature-list p { margin: 0; color: rgba(255,255,255,0.78); }

.cta-banner {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1.5rem;
  background: rgba(255,255,255,0.92);
}

.narrow { max-width: 72ch; }

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(146, 162, 183, 0.18);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
}
.footer-inner p { max-width: 52ch; color: var(--muted); margin: 0.45rem 0 0; }
.footer-meta { margin-top: 0.2rem; font-size: 0.95rem; color: var(--text); font-weight: 600; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.45rem 1.25rem;
  justify-content: end;
  align-content: start;
  color: var(--muted);
}
.footer-nav a { white-space: nowrap; }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .site-nav { justify-self: end; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-hero-grid,
  .check-layout { grid-template-columns: 1fr; }
  .result-panel { position: static; }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand menu"
      "nav nav"
      "cta cta";
    row-gap: 0.85rem;
    padding: 0.8rem 0;
  }
  .brand { grid-area: brand; }
  .menu-toggle { grid-area: menu; justify-self: end; display: inline-flex; }
  .header-cta { grid-area: cta; justify-self: stretch; }
  .site-nav {
    grid-area: nav;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    padding: 0.5rem;
    border-radius: 12px;
  }
  .site-header.is-open .site-nav { display: flex; }
  .nav-link,
  .nav-dropdown > summary {
    width: 100%;
    justify-content: space-between;
  }
  .nav-panel {
    position: static;
    width: 100%;
    margin-top: 0.45rem;
    grid-template-columns: 1fr;
  }
  .hero-grid,
  .feature-grid,
  .cta-banner,
  .check-hero-grid,
  .check-layout {
    grid-template-columns: 1fr;
  }
  .hero-copy h1,
  .page-hero h1 { max-width: none; }
  .cards-2,
  .cards-4 { grid-template-columns: 1fr; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-nav {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.1rem, var(--container)); }
  .brand-copy span { font-size: 0.72rem; }
  .hero,
  .page-hero { padding-top: 2.5rem; }
  .hero-copy h1,
  .page-hero h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .card,
  .hero-panel,
  .cta-banner,
  .question-card,
  .result-panel { border-radius: 20px; }
  .cta-banner { padding: 1.2rem; }
}
