:root {
  --ink: #f4f8ff;
  --ink-soft: rgba(232, 240, 255, 0.78);
  --navy: #07111f;
  --navy-mid: #0d1b2e;
  --blue: #1f8cff;
  --blue-deep: #0c5fbf;
  --line: rgba(255, 255, 255, 0.14);
  --foam: rgba(255, 255, 255, 0.06);
  --display: "DM Sans", "Segoe UI", sans-serif;
  --display-tight: "Syne", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--navy);
  font-family: var(--display);
  overflow-x: hidden;
}

a { color: inherit; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 18% 12%, rgba(31, 140, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 45% at 86% 18%, rgba(12, 95, 191, 0.22), transparent 55%),
    linear-gradient(165deg, #050b14 0%, #0a1628 46%, #07111f 100%);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

.orbit {
  position: absolute;
  inset: 8% 10% auto;
  height: 42vh;
  border: 1px solid rgba(31, 140, 255, 0.22);
  border-radius: 50%;
  animation: spin 48s linear infinite;
}
.orbit-inner {
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: spin 36s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(31, 140, 255, 0)); }
  50% { filter: drop-shadow(0 0 28px rgba(31, 140, 255, 0.35)); }
}

.mast,
main,
.site-foot { position: relative; z-index: 1; }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 0;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}
.brand-lockup .brand-icon,
.brand-lockup .brand-wordmark {
  display: block;
  height: auto;
}
.brand-lockup--mast .brand-icon {
  width: clamp(42px, 7vw, 54px);
}
.brand-lockup--mast .brand-wordmark {
  width: clamp(118px, 20vw, 168px);
}
.brand-lockup--foot {
  margin-bottom: 14px;
}
.brand-lockup--foot .brand-icon {
  width: 48px;
}
.brand-lockup--foot .brand-wordmark {
  width: 150px;
}
.brand-lockup--auth {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.brand-lockup--auth .brand-icon {
  width: 72px;
}
.brand-lockup--auth .brand-wordmark {
  width: min(220px, 70vw);
}
.mast-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-btn {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: var(--foam);
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav-btn:hover {
  background: rgba(31, 140, 255, 0.18);
  border-color: rgba(31, 140, 255, 0.55);
  transform: translateY(-1px);
}
.nav-btn.solid {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.nav-btn.solid:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 92px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: clamp(22px, 4vh, 34px);
  padding: clamp(36px, 8vh, 72px) 0 clamp(40px, 8vh, 70px);
  animation: rise 0.9s ease both;
}
.hero-logo {
  display: block;
  width: min(560px, 88vw);
  height: auto;
  object-fit: contain;
  object-position: center;
  animation: glow 5.5s ease-in-out infinite;
}
.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--display-tight);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.8vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.hero-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  line-height: 1.45;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 16px 26px;
  min-height: 52px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--blue);
  color: #fff;
}
.btn.primary:hover { background: var(--blue-deep); }
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost:hover {
  border-color: rgba(31, 140, 255, 0.6);
  background: rgba(31, 140, 255, 0.12);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 clamp(56px, 10vh, 96px);
}
.section-head {
  max-width: 40rem;
  margin: 0 0 22px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display-tight);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.5;
}

.family-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.family-link {
  display: block;
  text-decoration: none;
  padding: 22px 20px;
  border-top: 2px solid rgba(31, 140, 255, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  transition: background 0.2s ease, transform 0.2s ease;
}
.family-link:hover {
  background: rgba(31, 140, 255, 0.1);
  transform: translateY(-2px);
}
.family-link strong {
  display: block;
  font-family: var(--display-tight);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.family-link span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.35;
}

.page-hero {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 8vh, 72px) 0 28px;
  animation: rise 0.8s ease both;
}
.page-hero .eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
}
.page-hero h1 {
  margin: 0;
  font-family: var(--display-tight);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.page-hero .lead {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  line-height: 1.45;
}

.prose {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 64px;
}
.prose p {
  margin: 0 0 1.15rem;
  color: rgba(232, 240, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.65;
}
.prose p:last-child { margin-bottom: 0; }

.site-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}
.site-foot-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
.foot-legal {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}
.foot-heading {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.site-foot-contacts p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}
.foot-note {
  font-size: 0.9rem !important;
  opacity: 0.85;
}
.funding-bar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
}
.funding-bar a {
  display: block;
  text-decoration: none;
}
.funding-bar img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.95;
}

@media (max-width: 800px) {
  .family-links { grid-template-columns: 1fr; }
  .site-foot-inner { grid-template-columns: 1fr; }
  .mast {
    flex-direction: column;
    align-items: flex-start;
  }
}

body {
  line-height: 1.55;
}
.hero h1,
.page-hero h1,
.section-head h2,
.family-link strong {
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.hero-lead,
.section-head p,
.family-link span,
.page-hero .lead,
.prose p,
.foot-legal,
.site-foot-contacts p {
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .orbit,
  .orbit-inner,
  .hero-logo,
  .hero,
  .page-hero { animation: none !important; }
}
