/* ============================================================
   ATOS marketing site
   Dark, tech-forward, physical-AI aesthetic.
   Accessibility is first-class: this is a site about disability.
   ============================================================ */

:root {
  /* palette */
  --bg: #06070A;
  --bg-2: #0A0C12;
  --bg-3: #0E1118;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  --text: #EAEEF6;
  --muted: #9AA3B5;
  --faint: #7E879A;

  --cyan: #5EE7FF;
  --violet: #8B6FFF;
  --amber: #FF7A59;

  --grad: linear-gradient(100deg, #5EE7FF 0%, #7C5CFF 52%, #FF7A59 100%);
  --grad-soft: linear-gradient(100deg, rgba(94,231,255,.16), rgba(124,92,255,.16) 52%, rgba(255,122,89,.16));
  /* gradient for clipped TEXT: bright on dark, darkened in light for AA contrast */
  --grad-ink: var(--grad);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* themed surfaces (overridden by the light theme below) */
  --nav-bg: rgba(8, 9, 13, 0.72);
  --nav-bg-solid: rgba(8, 9, 13, 0.96);
  --grid-line: rgba(255, 255, 255, 0.05);

  color-scheme: dark;
}

/* ============ LIGHT THEME ============
   Dark is the default. The light palette below activates when
   data-theme="light" is set on <html> (by the no-FOUC head script
   and the nav toggle). Accent tokens are darkened for legible
   contrast on light backgrounds; --grad and the neon glows keep
   their literal bright values so buttons and auroras stay vivid. */
:root[data-theme="light"] {
  --bg: #F6F8FC;
  --bg-2: #FFFFFF;
  --bg-3: #EAEEF6;
  --surface: rgba(12, 16, 28, 0.03);
  --surface-2: rgba(12, 16, 28, 0.06);
  --line: rgba(12, 16, 28, 0.10);
  --line-2: rgba(12, 16, 28, 0.18);

  --text: #0B0E16;
  --muted: #46506A;
  --faint: #5A6276;

  --cyan: #0B6E8A;
  --violet: #6638E0;
  --amber: #B8431F;

  /* darkened gradient so clipped text stays >= AA on light backgrounds */
  --grad-ink: linear-gradient(100deg, #0B6E8A 0%, #6638E0 52%, #B8431F 100%);

  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-bg-solid: rgba(255, 255, 255, 0.96);
  --grid-line: rgba(12, 16, 28, 0.06);

  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}

/* ambient page texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(124,92,255,.10), transparent 60%),
    radial-gradient(800px 600px at 98% 8%, rgba(94,231,255,.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(124,92,255,.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* screen-reader-only text (e.g. "opens in new tab") */
.visually-hidden {
  position: absolute !important;
  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: -999px;
  top: 12px;
  z-index: 200;
  background: var(--violet);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--solid {
  background: var(--grad);
  color: #06070A;
  box-shadow: 0 6px 26px -8px rgba(124,92,255,.7);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -10px rgba(124,92,255,.85); }
.btn--ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--cyan); transform: translateY(-2px); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__word { font-weight: 800; letter-spacing: 0.14em; font-size: 1.05rem; }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--grad);
  transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; gap: 10px; align-items: center; }

/* theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.theme-toggle__icon { width: 18px; height: 18px; }
.theme-toggle__icon--moon { display: none; }
:root[data-theme="light"] .theme-toggle__icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle__icon--moon { display: block; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero__aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(40% 50% at 22% 30%, rgba(94,231,255,.30), transparent 70%),
    radial-gradient(45% 55% at 78% 28%, rgba(124,92,255,.34), transparent 70%),
    radial-gradient(40% 45% at 55% 75%, rgba(255,122,89,.20), transparent 70%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -3%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.04); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(110% 90% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(110% 90% at 50% 0%, #000 35%, transparent 78%);
  z-index: 0;
}
.hero__spotlight {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.18), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.hero__content { max-width: 920px; text-align: center; margin: 0 auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 30px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.pill:hover { border-color: var(--cyan); color: var(--text); }
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(94,231,255,.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94,231,255,.6); }
  70% { box-shadow: 0 0 0 9px rgba(94,231,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,231,255,0); }
}

.hero__title {
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.grad-text {
  display: block;
  background: var(--grad-ink);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--muted);
  max-width: 680px;
  margin: 26px auto 0;
}
.hero__sub strong { color: var(--text); }
.hero__actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__tagline {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--faint);
  min-height: 1.5em;
}
.type { border-right: 2px solid var(--cyan); padding-right: 3px; }

.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--line-2);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 1;
}
.hero__scroll span {
  width: 4px; height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============ STRIP ============ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  background: var(--bg-2);
}
.strip__label {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.strip__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 38px;
}
.strip__logos span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--faint);
  letter-spacing: 0.01em;
  transition: color .25s var(--ease);
}
.strip__logos span:hover { color: var(--text); }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section__lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.section__lead em { color: var(--text); font-style: italic; }

/* ============ CARDS ============ */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--feature { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--cyan);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card--feature .card__icon { color: var(--violet); }
.card--wide { padding: 34px; }
.card--wide h3 { font-size: 1.35rem; }
.card--wide p { font-size: 1.02rem; }
.card--wide em { color: var(--text); font-style: normal; font-weight: 600; }

/* ============ PULLQUOTE ============ */
.pullquote {
  margin: 64px auto 0;
  max-width: 820px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  padding-left: 26px;
  border-left: 3px solid;
  border-image: var(--grad) 1;
}
.pullquote--center {
  text-align: center;
  border-left: none;
  border-image: none;
  padding-left: 0;
}
.pullquote cite {
  display: block;
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: normal;
  color: var(--muted);
}

/* ============ STATS ============ */
.stats { padding: 80px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { text-align: center; padding: 0 8px; }
.stat__num {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-ink);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}
.stat__unit { font-size: 0.55em; }
.stat__label { margin-top: 14px; color: var(--muted); font-size: 0.92rem; }

/* ============ ARCHITECTURE / LAYERS ============ */
.layers { display: flex; flex-direction: column; gap: 16px; max-width: 920px; margin: 0 auto; }
.layer {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.layer:hover { transform: translateX(6px); border-color: var(--line-2); }
.layer__rail {
  width: 70px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}
.layer__num { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--faint); }
.layer__body { padding: 24px 28px; }
.layer__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.layer__top h3 { font-size: 1.25rem; font-weight: 700; }
.layer__body p { color: var(--muted); font-size: 0.96rem; }
.layer--safety { border-color: rgba(255,122,89,.35); }
.layer--safety .layer__num { color: var(--amber); }

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.tag--cyan { color: var(--cyan); border-color: rgba(94,231,255,.4); }
.tag--violet { color: var(--violet); border-color: rgba(124,92,255,.5); }
.tag--amber { color: var(--amber); border-color: rgba(255,122,89,.5); }

.arch__note {
  max-width: 760px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--faint);
  font-size: 0.92rem;
}
.arch__note code, .card code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--cyan);
}

/* ============ AUTONOMY SLIDER ============ */
.autonomy {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
}
.autonomy__poles {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.autonomy__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--amber));
  cursor: pointer;
  margin-bottom: 28px;
}
.autonomy__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--violet);
  box-shadow: 0 4px 16px -2px rgba(124,92,255,.8);
  cursor: grab;
  transition: transform .15s var(--ease);
}
.autonomy__slider::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.autonomy__slider::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--violet);
  box-shadow: 0 4px 16px -2px rgba(124,92,255,.8);
  cursor: grab;
}
.autonomy__track { display: none; }
.autonomy__readout { text-align: center; }
.autonomy__level {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--grad-ink);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.autonomy__desc { color: var(--muted); min-height: 3em; }

/* ============ SPLIT (simulation) ============ */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split__text .section__title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.split__text .eyebrow { margin-bottom: 14px; }
.split__kicker { margin-top: 22px; color: var(--faint); font-size: 0.96rem; }
.ticks { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--cyan);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 6px; top: 10px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

.sim {
  /* the simulation panel is a "device screen": always dark, in both
     themes, so the neon HUD / scanline aesthetic holds. Pinning the
     tokens locally keeps every descendant on the dark palette. */
  --bg-3: #0E1118;
  --text: #EAEEF6;
  --muted: #9AA3B5;
  --line: rgba(255, 255, 255, 0.09);
  --cyan: #5EE7FF;
  --amber: #FF7A59;
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(124,92,255,.18), transparent 60%),
    linear-gradient(180deg, var(--bg-3), #07080d);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(124,92,255,.6);
}
.sim__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94,231,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,231,255,.10) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(500px) rotateX(56deg) translateY(28%) scale(1.6);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%);
          mask-image: linear-gradient(180deg, transparent, #000 50%);
}
.sim__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(94,231,255,.5), transparent);
  height: 40%;
  animation: scan 4s linear infinite;
}
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(300%); } }
.sim__hud {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sim__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}
.sim__rows {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.sim__row {
  display: flex;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(8,9,13,.65);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.sim__row span { color: var(--muted); }
.sim__row b { font-weight: 600; }
.sim__row b.ok { color: var(--cyan); }
.sim__row b.warn { color: var(--amber); }
.sim__bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.sim__bar i { display: block; height: 100%; width: var(--w); background: var(--grad); animation: bar 3s ease-in-out infinite alternate; }
@keyframes bar { from { width: 35%; } to { width: 88%; } }

/* ============ MORNING ============ */
.morning { max-width: 720px; margin: 0 auto; }
.morning__switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 0 auto 28px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.morning__tab {
  border: none;
  background: none;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.morning__tab.is-active { color: #06070A; background: var(--grad); }

.morning__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.morning__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.morning__row:last-child { border-bottom: none; }
.morning__row span { color: var(--muted); }
.morning__time {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.morning.is-future .morning__time { color: var(--cyan); }
.morning__caption {
  margin-top: 22px;
  color: var(--faint);
  font-size: 0.96rem;
  font-style: italic;
}

/* ============ PROGRAM ============ */
.program { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.program__lead {
  display: flex;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.program__avatar {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #06070A;
  background: var(--grad);
}
.program__lead h3 { font-size: 1.3rem; font-weight: 700; }
.program__role { font-size: 0.86rem; color: var(--cyan); margin: 4px 0 12px; font-family: var(--mono); }
.program__lead p { color: var(--muted); font-size: 0.96rem; }
.program__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.fact:hover { border-color: var(--line-2); transform: translateY(-3px); }
.fact__k { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.fact__v {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 6px 0 8px;
  background: var(--grad-ink);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.fact__d { color: var(--muted); font-size: 0.88rem; }

/* inline institution / partner links */
.section__lead a, .fact__d a, .program__role a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-2);
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.section__lead a:hover, .fact__d a:hover, .program__role a:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

/* ============ CTA ============ */
.section--cta { padding: 120px 0; }
.cta {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 70px 40px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  overflow: hidden;
}
.cta__aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 20% 0%, rgba(94,231,255,.22), transparent 60%),
    radial-gradient(40% 60% at 80% 10%, rgba(124,92,255,.26), transparent 60%),
    radial-gradient(50% 60% at 50% 110%, rgba(255,122,89,.16), transparent 60%);
  animation: drift 16s ease-in-out infinite alternate;
}
.cta > * { position: relative; }
.cta__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 8px;
}
.cta__lead { color: var(--muted); max-width: 600px; margin: 20px auto 0; font-size: 1.05rem; }
.cta__actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__license { margin-top: 30px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.badge {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text);
  background: var(--surface);
}
.cta__note { color: var(--faint); font-size: 0.85rem; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; }
.footer__tag { margin-top: 18px; color: var(--faint); font-size: 0.92rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__cols h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-family: var(--mono); }
.footer__cols a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color .2s var(--ease); }
.footer__cols a:hover { color: var(--cyan); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color .2s var(--ease); }
.footer__bar a:hover { color: var(--cyan); }
.footer__legal { font-family: var(--mono); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children inside grids */
.cards .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4) { transition-delay: .08s; }
.cards .reveal:nth-child(5) { transition-delay: .16s; }
.cards .reveal:nth-child(6) { transition-delay: .24s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .cards--3, .cards--feature { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .program { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--nav-bg-solid);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 18px;
  }
  .nav.is-open .nav__cta {
    display: flex;
    position: absolute;
    top: calc(100% + 168px); left: 0; right: 0;
    background: var(--nav-bg-solid);
    padding: 0 24px 24px;
    flex-direction: column;
  }
  .nav.is-open .nav__cta .btn { width: 100%; justify-content: center; }
  .section { padding: 80px 0; }
  .cards--3, .cards--feature, .cards--2 { grid-template-columns: 1fr; }
  .program__facts { grid-template-columns: 1fr 1fr; }
  .program__lead { flex-direction: column; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  .pullquote { font-size: 1.4rem; }
}

@media (max-width: 460px) {
  .stats__grid, .program__facts { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; justify-content: center; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__aurora, .cta__aurora, .sim__scan, .sim__bar i { animation: none; }
}
