:root {
  --bg: #0a46cf;
  --bg-deep: #08308f;
  --panel: rgba(7, 21, 64, 0.4);
  --panel-strong: rgba(7, 21, 64, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f6f7fb;
  --muted: rgba(246, 247, 251, 0.86);
  --yellow: #f6cf52;
  --yellow-deep: #d6af33;
  --zoom-cyan: #2bc2ff;
  --blue-soft: rgba(139, 180, 255, 0.22);
  --shadow: 0 28px 80px rgba(2, 8, 32, 0.32);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(43, 194, 255, 0.1), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #11264f;
  background: var(--yellow);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 52%, transparent 88%);
}

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.48;
}

.glow-left {
  top: -120px;
  left: -80px;
  background: rgba(246, 207, 82, 0.18);
}

.glow-right {
  right: -140px;
  top: 20%;
  background: rgba(90, 148, 255, 0.2);
}

.site-header,
main,
.site-footer {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 20, 59, 0.62);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(5, 10, 30, 0.22);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(6, 16, 48, 0.82);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(2, 6, 24, 0.42);
}

.brand,
.site-nav a,
.button,
.footer-links a,
.link-stack a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding-left: 10px;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.04em;
}

.brand-copy small {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover,
.link-stack a:hover {
  color: var(--yellow);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a:active {
  transform: translateY(1px) scale(0.98);
}

.site-header a:focus-visible,
.button:focus-visible,
.footer-links a:focus-visible,
.link-stack a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 10px;
}

section {
  padding: 84px 0;
  scroll-margin-top: 110px;
}

.hero {
  min-height: auto;
  display: grid;
  align-content: start;
  gap: 20px;
  padding-top: 38px;
}

.eyebrow,
.credit-kicker,
.feature-topline p {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.05em;
}

h2 {
  margin: 0;
  max-width: 12ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.35rem, 4.4vw, 4.1rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h3 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-text,
.section-heading p:last-child,
.feature-card p,
.credit-card p,
.cta-card p,
.site-footer p,
.demo-frame figcaption,
.product-loop strong {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 1rem;
}

.hero-stage {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.hero-wordmark-wrap {
  position: relative;
  z-index: 3;
  width: min(100%, 860px);
  text-align: center;
}

.hero-eyebrow {
  justify-content: center;
  margin-bottom: 26px;
}

.hero-eyebrow::before {
  display: none;
}

.hero-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.92;
  font-size: clamp(4.2rem, 12vw, 9.8rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
  filter: drop-shadow(0 30px 50px rgba(1, 7, 30, 0.32));
}

.word-zoom,
.word-momentum {
  display: block;
}

.word-momentum-row {
  display: inline-flex;
  align-items: flex-end;
  gap: clamp(8px, 1vw, 14px);
  margin-top: -0.4rem;
}

.word-momentum {
  color: rgba(246, 247, 251, 0.95);
}

.hero-flower {
  display: inline-flex;
  width: clamp(28px, 3vw, 42px);
  height: clamp(80px, 9vw, 124px);
  transform: translateY(-0.15em);
}

.hero-flower svg {
  width: 100%;
  height: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-primary {
  background: var(--yellow);
  color: #1f2b5e;
  box-shadow: 0 18px 34px rgba(246, 207, 82, 0.22);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: transparent;
}

.feature-card,
.credit-card,
.app-window,
.demo-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.app-window {
  position: absolute;
  width: min(100%, 326px);
  overflow: hidden;
  transition: transform 260ms ease;
}

.hero-window-host {
  top: 6%;
  left: clamp(-80px, -5vw, -30px);
  transform: rotate(-5deg);
  opacity: 0.42;
  width: min(100%, 320px);
}

.hero-window-student {
  right: clamp(-80px, -5vw, -30px);
  bottom: 6%;
  transform: rotate(4deg);
  opacity: 0.46;
  width: min(100%, 320px);
  background: rgba(11, 31, 96, 0.82);
}

.hero-window-host:hover {
  transform: rotate(-5deg) translateY(-4px);
  opacity: 0.78;
}

.hero-window-student:hover {
  transform: rotate(4deg) translateY(-4px);
  opacity: 0.82;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.window-bar p {
  margin: 0 0 0 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(246, 247, 251, 0.78);
}

.window-body {
  padding: 22px;
}

.chip-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
}

.chip.active {
  background: rgba(246, 207, 82, 0.14);
  border-color: rgba(246, 207, 82, 0.34);
  color: var(--yellow);
}

.feature-shell,
.poll-card,
.topic-rail,
.note-stack article {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.feature-shell {
  padding: 18px;
}

.feature-shell-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.feature-shell-header p,
.feature-shell-header span,
.topic-copy p,
.note-stack p,
.note-stack span {
  margin: 0;
}

.feature-shell-header p,
.topic-copy strong {
  font-weight: 700;
}

.feature-shell-header span,
.topic-copy p,
.note-stack p,
.note-stack span {
  color: var(--muted);
  font-size: 0.92rem;
}

.poll-card {
  padding: 16px;
}

.poll-question {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.poll-options {
  display: grid;
  gap: 10px;
}

.poll-options span,
.note-stack article {
  padding: 12px 14px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stats-band div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.stats-band strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.stats-band span {
  color: var(--muted);
  font-size: 0.88rem;
}

.topic-rail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.topic-node {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.topic-node.current {
  background: var(--yellow);
  box-shadow: 0 0 0 7px rgba(246, 207, 82, 0.16);
}

.note-stack {
  display: grid;
  gap: 12px;
}

.hero-copy {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  padding: 18px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(5, 16, 52, 0.44);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-copy .hero-actions {
  justify-content: center;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.demo-section .section-heading h2,
#features .section-heading h2,
.fellowship-credit-section .section-heading h2 {
  max-width: 15ch;
}

.demo-frame {
  margin: 0;
  padding: clamp(14px, 2.2vw, 24px);
  background:
    radial-gradient(circle at 26% 18%, rgba(246, 207, 82, 0.13), transparent 28%),
    var(--panel);
}

.demo-video {
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(4, 16, 52, 0.58);
}

.demo-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.demo-frame figcaption {
  max-width: 76ch;
  margin-top: 18px;
}

.features-grid,
.credit-grid {
  display: grid;
  gap: 22px;
}

.feature-card,
.credit-card {
  padding: 26px;
}

.fellowship-credit-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.features-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.feature-card:nth-child(1),
.feature-card:nth-child(4) {
  transform: translateY(22px);
}

.feature-card:nth-child(2) {
  border-radius: 42px 24px 32px;
}

.feature-card:nth-child(3) {
  border-radius: 24px 42px 30px;
}

.feature-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.feature-topline p {
  margin: 0;
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(246, 207, 82, 0.36);
  color: var(--yellow);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
}

.status-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(246, 207, 82, 0.24);
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(246, 207, 82, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(246, 207, 82, 0.18);
}

.status-pill-built {
  color: #6cf09a;
  border-color: rgba(108, 240, 154, 0.3);
  background: rgba(108, 240, 154, 0.1);
}

.status-pill-built::before {
  box-shadow: 0 0 0 3px rgba(108, 240, 154, 0.2);
}

.status-pill-dev {
  color: var(--zoom-cyan);
  border-color: rgba(43, 194, 255, 0.3);
  background: rgba(43, 194, 255, 0.1);
}

.status-pill-dev::before {
  box-shadow: 0 0 0 3px rgba(43, 194, 255, 0.2);
}

.status-pill-concept {
  color: var(--yellow);
  border-color: rgba(246, 207, 82, 0.3);
  background: rgba(246, 207, 82, 0.1);
}

.product-loop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.025);
}

.product-loop div {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: transparent;
}

.product-loop div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.product-loop span {
  color: var(--yellow);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-loop strong {
  color: rgba(246, 247, 251, 0.92);
  font-weight: 600;
}

.credit-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.credit-card-main {
  background:
    radial-gradient(circle at top right, rgba(246, 207, 82, 0.08), transparent 36%),
    var(--panel);
}

.fellowship-credit-section .credit-card,
.cta-card {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 70px rgba(1, 7, 30, 0.18);
}

.profile-row + .profile-row {
  margin-top: 20px;
}

.profile-row span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-row strong {
  font-size: 1.15rem;
}

.link-stack {
  display: grid;
  gap: 12px;
}

.link-stack a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--text);
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.link-stack a::after {
  content: "↗";
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--yellow);
  transition: transform 180ms ease;
}

.link-stack a:hover {
  color: var(--yellow);
}

.link-stack a:hover::after {
  transform: translate(2px, -2px);
}


.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js.reveal-active .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js.reveal-active .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .features-grid,
  .credit-grid,
  .demo-section .section-heading,
  .product-loop,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .product-loop div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .hero-stage {
    min-height: 660px;
  }

  .hero-window-host {
    left: -26px;
  }

  .hero-window-student {
    right: -26px;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    margin-top: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand,
  .site-nav {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-stage {
    min-height: auto;
    gap: 18px;
    place-items: stretch;
  }

  .app-window {
    position: relative;
    width: 100%;
  }

  .hero-window-host,
  .hero-window-student {
    inset: auto;
    transform: none;
    opacity: 0.86;
  }

  .hero-window-student {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.7rem, 10.8vw, 3.75rem);
    line-height: 0.95;
  }

  .hero-wordmark-wrap,
  .hero-copy {
    max-width: 100%;
  }

  .hero-text,
  .hero-copy {
    overflow-wrap: anywhere;
  }

  .word-momentum-row {
    flex-direction: column;
    gap: 6px;
    margin-top: 0.2rem;
  }

  .hero-flower {
    display: none;
  }

  section {
    padding: 50px 0;
    scroll-margin-top: 24px;
  }

  .site-nav {
    gap: 12px 16px;
    font-size: 0.92rem;
  }

  .eyebrow,
  .credit-kicker,
  .feature-topline p {
    letter-spacing: 0.08em;
    text-wrap: balance;
  }

  .hero-copy {
    padding: 16px;
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(4) {
    transform: none;
  }
}

@media (max-width: 480px) {
  .site-header,
  main,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand,
  .site-nav {
    padding-left: 6px;
    padding-right: 6px;
  }

  .site-nav {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    font-size: 0.78rem;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 7px 6px;
    white-space: nowrap;
  }

  .feature-card,
  .credit-card {
    padding: 22px;
  }

  .brand-copy small {
    display: none;
  }

  .demo-video {
    min-height: 220px;
  }

  .demo-video iframe {
    min-height: 220px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .js.reveal-active .reveal,
  .js.reveal-active .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .button:hover,
  .hero-window-host:hover,
  .hero-window-student:hover {
    transform: none;
  }
}
