:root {
  --bg: #f4f8fc;
  --bg-alt: #e8eef5;
  --panel: #ffffff;
  --text: #1a2b3c;
  --muted: #4d6275;
  --blue: #2f5fe0;
  --blue-deep: #1e3fa8;
  --pink: #e889b5;
  --cyan: #3ec6ff;
  --ring: #7dd3fc;
  --line: #c5d4e3;
  --header-h: 4.5rem;
  --radius: 1.25rem;
  --shadow: 0 18px 40px rgba(47, 95, 224, 0.08);
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(62, 198, 255, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 137, 181, 0.16), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 252, 0.88);
  border-bottom: 1px solid rgba(62, 198, 255, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  min-height: 44px;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--panel);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
  border-radius: 1px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(62, 198, 255, 0.16);
  outline: none;
}

.hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2.5rem;
  align-items: center;
}

.kicker,
.panel-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(62, 198, 255, 0.12);
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 95, 224, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-deep);
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--pink);
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 460px);
  object-fit: cover;
  object-position: center 28%;
  border-radius: calc(var(--radius) + 0.4rem);
  border: 1px solid rgba(62, 198, 255, 0.45);
  box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, 0.7);
}

main[id],
section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid rgba(62, 198, 255, 0.2);
}

.section-intro {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.hud-card,
.mission-hud,
.parents-block,
.contact-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hud-card {
  padding: 1.4rem 1.35rem 1.5rem;
}

.hud-card:nth-child(2) {
  border-top-color: var(--blue);
}

.hud-card:nth-child(3) {
  border-top-color: var(--pink);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

.steps li:nth-child(2) .step-num {
  background: var(--cyan);
  color: var(--text);
}

.steps li:nth-child(3) .step-num {
  background: var(--pink);
  color: var(--text);
}

.mission-wrap {
  display: grid;
  justify-items: center;
}

.mission-hud {
  width: min(100%, 640px);
  padding: 1.8rem 1.7rem 1.6rem;
}

.fraction-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.4rem 0 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(62, 198, 255, 0.12), transparent 70%),
    #f4f8fc;
  border: 1px solid rgba(62, 198, 255, 0.35);
}

.fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  min-width: 2.5rem;
}

.fraction span:first-child {
  border-bottom: 3px solid var(--blue);
  padding: 0 0.45rem 0.15rem;
}

.fraction span:last-child {
  padding-top: 0.15rem;
}

.fraction-eq {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--cyan);
}

.mission-note {
  color: var(--muted);
  font-size: 0.98rem;
}

.parents-block,
.contact-block {
  padding: 2rem 1.7rem;
}

.parents-stage {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--pink);
  background: rgba(232, 137, 181, 0.12);
  border-radius: 0 0.8rem 0.8rem 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.contact-block {
  text-align: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
}

.footer-legal {
  font-style: normal;
}

.footer-legal p {
  margin: 0 0 0.35rem;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .site-header:not(.nav-ready) {
    position: relative;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
  }

  .nav-ready .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-ready .site-nav {
    display: none;
    width: auto;
    position: absolute;
    top: calc(var(--header-h) + 0.35rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    padding: 0.5rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .hero {
    padding-top: 1.5rem;
  }

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

  .hero-visual img {
    height: 280px;
    object-position: center 22%;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
