:root {
  --color-navy: #0c2b4d;
  --color-blue: #1868a8;
  --color-teal: #2db6ad;
  --color-lime: #9be564;
  --color-sand: #f6f0e6;
  --color-cream: #fffaf3;
  --color-sky: #7bd6ff;
  --color-white: #ffffff;
  --color-text: #14314f;
  --shadow-soft: 0 24px 60px rgba(12, 43, 77, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

.hero {
  position: relative;
  background: url('/assets/img/m16background.png') center/cover no-repeat;
  color: var(--color-white);
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  background: radial-gradient(circle at center, rgba(123, 214, 255, 0.75), transparent 70%);
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
}

.hero::after {
  width: 520px;
  height: 520px;
  bottom: -260px;
  left: -140px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 3vw, 3rem);
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.brand strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.brand-emblem {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-lime), var(--color-teal));
  color: var(--color-navy);
  font-weight: 700;
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-selector select {
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.45rem 1.4rem;
  font-size: 0.95rem;
  appearance: none;
  outline: none;
}

.language-selector {
  position: relative;
}

.language-selector::after {
  content: '▾';
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.6);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  background: linear-gradient(140deg, var(--color-lime), var(--color-teal));
  color: var(--color-navy);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.28);
}

.button.ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.button.light {
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: 0 10px 20px rgba(12, 43, 77, 0.22);
}

.button.outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

.button.outline:hover,
.button.outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding: 2rem 0 0;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero-eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0.8rem;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 36ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--color-sand);
  border-radius: 24px;
  padding: 1.75rem;
  width: min(320px, 90vw);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.card-top {
  background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
  border-radius: 18px;
  padding: 1.25rem;
  color: var(--color-white);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
}

.city-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  position: relative;
  background: var(--color-white);
  box-shadow: 0 18px 34px rgba(12, 43, 77, 0.14);
}

.pin::after {
  content: '';
  position: absolute;
  bottom: -14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(6px);
}

.pin.park {
  background: linear-gradient(135deg, #9be564, #3bc785);
}

.pin.park::after {
  background: rgba(59, 199, 133, 0.55);
}

.pin.lab {
  background: linear-gradient(135deg, #7bd6ff, #2e9bea);
}

.pin.lab::after {
  background: rgba(46, 155, 234, 0.45);
}

.pin.school {
  background: linear-gradient(135deg, #ffc36e, #ff7d4d);
}

.pin.school::after {
  background: rgba(255, 125, 77, 0.4);
}

.pin.hub {
  background: linear-gradient(135deg, #fba6d1, #e8518f);
}

.pin.hub::after {
  background: rgba(232, 81, 143, 0.45);
}

.pin.house {
  background: linear-gradient(135deg, #b3b2ff, #6463ff);
}

.pin.house::after {
  background: rgba(100, 99, 255, 0.42);
}

.pin.library {
  background: linear-gradient(135deg, #ffe27d, #ffd447);
}

.pin.library::after {
  background: rgba(255, 212, 71, 0.42);
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section.alt {
  background: var(--color-white);
}

.section.highlight {
  background: linear-gradient(145deg, var(--color-blue), var(--color-teal));
  color: var(--color-white);
}

.section h2 {
  font-size: clamp(2rem, 2vw + 1.4rem, 2.6rem);
  margin-bottom: 1rem;
}

.section p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.pillars article {
  background: var(--color-white);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 22px 40px rgba(12, 43, 77, 0.12);
}

.section.alt .pillars article {
  background: var(--color-cream);
}

.section-header {
  max-width: 620px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step {
  background: var(--color-cream);
  border-radius: 18px;
  padding: 1.8rem;
  border: 2px solid rgba(12, 43, 77, 0.08);
  position: relative;
  overflow: hidden;
}

.step-number {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(12, 43, 77, 0.08);
}

.highlight .cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer {
  background: #081c31;
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

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

.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;
}

@media (max-width: 720px) {
  .top-nav {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    padding-bottom: 4rem;
  }

  .hero-card {
    margin-top: 1rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
