.landing-page {
  --landing-night: #0b1532;
  --landing-navy: #101e44;
  --landing-light: #eaf1ff;
  --landing-ice: #a6c8ff;
  min-height: 100svh;
  background: #f6f8fd;
  color: var(--ink);
}

.landing-width {
  width: min(100% - clamp(2rem, 9vw, 9rem), 1240px);
  margin-inline: auto;
}

.landing-header {
  position: relative;
  z-index: 1;
  color: white;
  background: var(--landing-night);
  border-bottom: 1px solid rgb(164 192 255 / 18%);
}

.landing-navigation, .landing-footer-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.landing-brand {
  flex: none;
  color: inherit;
  text-decoration: none;
}

.landing-menu {
  display: flex;
  gap: clamp(1rem, 4vw, 3.75rem);
}

.landing-menu a, .landing-header-link, .landing-footer-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .6rem;
  color: var(--landing-light);
  font-size: .93rem;
  font-weight: 650;
  text-decoration: none;
}

.landing-menu a:hover, .landing-footer-link:hover { text-decoration: underline; }

.landing-header-link {
  justify-content: center;
  padding-inline: 1rem;
  border: 1px solid rgb(164 192 255 / 45%);
  border-radius: 10px;
}

.landing-header-link:hover { background: rgb(142 174 255 / 16%); }

.landing-hero {
  position: relative;
  isolation: isolate;
  color: white;
  background:
    radial-gradient(ellipse at 76% 42%, #264c99 0%, transparent 48%),
    linear-gradient(135deg, var(--landing-night), var(--landing-navy));
}

.landing-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(162 195 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(162 195 255 / 7%) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(105deg, transparent 15%, #000 86%);
  content: "";
}

.landing-hero-grid {
  display: grid;
  min-height: 540px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 6rem);
}

.landing-category {
  margin-bottom: 1.2rem;
  color: var(--landing-ice);
  font-size: .88rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.landing-intro h1 {
  max-width: 9.8em;
  font-size: clamp(2.7rem, 5.9vw, 5.65rem);
  font-weight: 820;
  line-height: .99;
  letter-spacing: -.063em;
  text-wrap: balance;
}

.landing-intro h1 em {
  color: var(--landing-ice);
  font-style: normal;
}

.landing-summary {
  max-width: 33rem;
  margin-top: 1.5rem;
  color: #d7e4ff;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.65;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.landing-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .65rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
}

.landing-primary {
  color: #162c61;
  background: #f3f7ff;
  box-shadow: 0 8px 28px rgb(14 26 68 / 35%);
}

.landing-primary:hover { background: #dceaff; }

.landing-secondary {
  color: white;
  border-color: rgb(164 192 255 / 46%);
  background: rgb(11 21 50 / 26%);
}

.landing-secondary:hover { background: rgb(142 174 255 / 16%); }

.landing-figure {
  width: min(100%, 540px);
  min-width: 0;
  margin: 0 auto;
}

.landing-figure figcaption {
  margin-top: .7rem;
  color: #d0dcf3;
  font-size: .78rem;
  text-align: center;
}

.landing-section {
  padding-block: clamp(3.25rem, 6vw, 6rem);
  scroll-margin-top: 1.25rem;
}

.landing-section h2 {
  max-width: 25ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.landing-features, .landing-roles {
  display: grid;
  gap: clamp(.8rem, 2vw, 1.4rem);
}

.landing-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.landing-feature, .landing-role {
  min-width: 0;
  padding: clamp(1.25rem, 2.7vw, 2rem);
  border: 1px solid #dce5f5;
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 30px rgb(23 40 82 / 5%);
}

.landing-feature-icon, .landing-role-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  place-items: center;
  color: #253da1;
  background: #ebf1ff;
  border-radius: 12px;
}

.landing-feature h3, .landing-role h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  letter-spacing: -.025em;
}

.landing-feature h3 { margin-top: 1.1rem; }

.landing-feature p, .landing-role p {
  margin-top: .55rem;
  color: var(--muted);
  line-height: 1.65;
}

.landing-routines { background: #ebf1ff; }
.landing-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.landing-role { display: flex; gap: 1rem; }

.landing-footer {
  color: white;
  background: var(--landing-night);
}

.landing-footer-row { min-height: 100px; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.landing-page) { scroll-behavior: smooth; }

  .landing-intro, .landing-figure {
    animation: landing-appear .55s ease-out both;
  }

  .landing-figure { animation-delay: .12s; }

  .landing-button, .landing-header-link {
    transition: background-color .18s ease, transform .18s ease;
  }

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

@keyframes landing-appear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 840px) {
  .landing-hero-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .landing-intro h1 { font-size: clamp(2.7rem, 9vw, 4.6rem); }
  .landing-figure { width: min(100%, 475px); }
}

@media (max-width: 620px) {
  .landing-menu { display: none; }
  .landing-navigation { min-height: 68px; }
  .landing-hero-grid { padding-block: 2.75rem 2.2rem; }
  .landing-features, .landing-roles { grid-template-columns: minmax(0, 1fr); }
  .landing-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
}
