@font-face {
  font-family: "Quantum";
  src: url("assets/fonts/quantum.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f8fbff;
  --muted: #b7c5cf;
  --soft: #dbe8ef;
  --line: rgba(248, 251, 255, 0.15);
  --panel: rgba(7, 14, 19, 0.7);
  --aqua: #72f1ff;
  --mint: #9fffc1;
  --gold: #ffd166;
  --coral: #ff7a90;
  --violet: #b69cff;
  --bg: #060a0d;
  --font-display: 'Quantum', sans-serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(114, 241, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 84% 10%, rgba(255, 209, 102, 0.1), transparent 26rem),
    radial-gradient(circle at 70% 82%, rgba(182, 156, 255, 0.12), transparent 30rem),
    linear-gradient(135deg, #060a0d 0%, #0a1518 48%, #120f19 100%);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(248, 251, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 251, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 56px);
  color: var(--ink);
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(6, 10, 13, 0.86), rgba(6, 10, 13, 0.08));
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--aqua);
  border-radius: 50%;
  box-shadow:
    0 0 18px rgba(114, 241, 255, 0.7),
    inset 0 0 12px rgba(159, 255, 193, 0.45);
}

.site-header nav {
  gap: clamp(14px, 2.8vw, 32px);
}

.site-header nav a {
  color: var(--muted);
  font-family: 'Quantum', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color 0.25s ease;
}

.site-header nav a:hover {
  color: var(--ink);
}

.panel {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: clamp(110px, 14vh, 160px) clamp(20px, 6vw, 104px);
}

.hero {
  min-height: 108vh;
  align-content: center;
}

.hero-inner {
  max-width: 1040px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--mint);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

.hero-title,
h2 {
  max-width: 1100px;
  margin: 0 0 16px;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 1.06;
  letter-spacing: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

h3 {
  font-family: var(--font-display);
  margin: 12px 0 14px;
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
  line-height: 1.2;
}

.hero-motto {
  font-family: var(--font-display);
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--soft);
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero-copy,
.section-grid p,
.learning-layout p,
.model-copy p,
.final-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.72;
}

.hero-copy {
  margin-top: 22px;
}

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

.button {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--ink), #c9fff2);
  color: #071013;
  border-color: transparent;
}

.button.ghost {
  background: rgba(248, 251, 255, 0.08);
}

.motto-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.motto-strip span {
  font-family: var(--font-display);
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(7, 14, 19, 0.48);
  font-weight: 800;
  text-transform: lowercase;
}

.section-grid,
.learning-layout,
.model-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: center;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.ticker {
  width: 100vw;
  margin: clamp(62px, 9vw, 108px) 0 0 calc(clamp(20px, 6vw, 104px) * -1);
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker span {
  font-family: var(--font-display);
  padding: 22px 34px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(248, 251, 255, 0.42);
  font-size: clamp(2.35rem, 7.2vw, 6.6rem);
  font-weight: 900;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(38px, 6vw, 64px);
}

.feature-card,
.stats,
.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(248, 251, 255, 0.09), rgba(248, 251, 255, 0.025)),
    var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.feature-card {
  min-height: 260px;
  padding: 28px;
}

.card-number {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.feature-card p,
.step span {
  color: var(--muted);
  line-height: 1.65;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.step strong {
  font-family: var(--font-display);
  color: var(--aqua);
  font-size: 1.2rem;
}

.stats {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.stats div {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: rgba(248, 251, 255, 0.045);
}

.stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  line-height: 0.95;
}

.stats span {
  font-family: var(--font-display);
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.finale {
  justify-items: start;
}

.final-copy {
  margin-top: 24px;
}

.word {
  display: inline-block;
  white-space: nowrap;
}

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.74em) rotateX(76deg) scale(0.98);
  transform-origin: 50% 100%;
  will-change: opacity, transform;
  transition:
    opacity 0.62s ease,
    transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--i) * 15ms);
}

.is-visible .char {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  will-change: opacity, transform, clip-path;
  transition:
    opacity 0.78s ease,
    transform 1s cubic-bezier(0.19, 1, 0.22, 1),
    clip-path 1s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.slide-left {
  transform: translateX(58px);
}

.slide-right {
  transform: translateX(-58px);
}

.pop {
  transform: translateY(48px) scale(0.94);
}

.pop.is-visible {
  transform: translateY(0) scale(1);
}

.rise {
  transform: translateY(52px);
}

.mask-line {
  clip-path: inset(0 100% 0 0);
}

.mask-line.is-visible {
  clip-path: inset(0 0 0 0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 220ms;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================
   Hamburger Menu Toggle
   ============================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  z-index: 12;
  transition: border-color 0.3s ease;
}

.menu-toggle:hover {
  border-color: var(--aqua);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Tablet Breakpoint (max-width: 900px)
   ============================================ */
@media (max-width: 900px) {
  .section-grid,
  .learning-layout,
  .model-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .feature-card {
    min-height: 200px;
    padding: 22px;
  }

  .panel {
    padding: clamp(100px, 12vh, 140px) clamp(20px, 5vw, 60px);
  }

  .hero-inner {
    max-width: 100%;
  }

  .hero-title,
  h2 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
  }

  h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  }

  .founders-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Mobile Breakpoint (max-width: 760px)
   ============================================ */
@media (max-width: 760px) {
  /* Header & Mobile Nav */
  .site-header {
    padding: 14px 16px;
    gap: 12px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 28px 40px;
    background: rgba(6, 10, 13, 0.97);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--line);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 11;
    overflow-y: auto;
  }

  .site-header nav.active {
    right: 0;
  }

  .site-header nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .site-header nav a:last-child {
    border-bottom: none;
  }

  .site-header nav a.button.primary {
    margin-left: 0;
    margin-top: 18px;
    text-align: center;
    padding: 12px 24px;
    border-radius: 8px;
    width: 100%;
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand img {
    height: 28px !important;
  }

  /* Panels & Layout */
  .panel {
    min-height: auto;
    padding: 100px 18px 60px;
  }

  .hero {
    min-height: 100vh;
    padding-top: 120px;
  }

  /* Typography */
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 3rem);
    line-height: 1.02;
  }

  h3 {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    margin: 10px 0 12px;
  }

  .hero-motto {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
    margin-top: 18px;
  }

  .hero-copy,
  .section-grid p,
  .learning-layout p,
  .model-copy p,
  .final-copy {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
  }

  /* Grids */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .feature-card {
    min-height: auto;
    padding: 20px;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  /* Buttons */
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    font-size: 0.88rem;
    justify-content: center;
  }

  /* Motto Strip */
  .motto-strip {
    margin-top: 24px;
    gap: 8px;
  }

  .motto-strip span {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  /* Stats */
  .stats strong {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }

  .stats div {
    padding: 18px;
  }

  /* Steps */
  .step {
    padding: 18px;
  }

  .step strong {
    font-size: 1rem;
  }

  /* Ticker */
  .ticker {
    width: 100vw;
    margin-left: -18px;
  }

  .ticker span {
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    padding: 16px 18px;
  }

  /* Animations */
  .slide-left,
  .slide-right {
    transform: translateY(32px);
  }

  .pop {
    transform: translateY(32px) scale(0.96);
  }

  /* Section Grid */
  .copy-stack {
    gap: 14px;
  }

  /* Join Form */
  .join-form {
    padding: 1.5rem;
    max-width: 100%;
  }

  .join-form input,
  .join-form select,
  .join-form textarea {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .join-form label {
    font-size: 0.88rem;
  }
}

/* ============================================
   Small Mobile Breakpoint (max-width: 400px)
   ============================================ */
@media (max-width: 400px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    font-size: 0.82rem;
  }

  .brand img {
    height: 24px !important;
  }

  .panel {
    padding: 90px 14px 50px;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  h3 {
    font-size: 1rem;
  }

  .hero-motto {
    font-size: 1rem;
  }

  .hero-copy,
  .final-copy {
    font-size: 0.88rem;
  }

  .feature-card {
    padding: 16px;
  }

  .feature-card p {
    font-size: 0.85rem;
  }

  .button {
    min-height: 44px;
    font-size: 0.82rem;
  }

  .motto-strip span {
    font-size: 0.72rem;
    min-height: 34px;
    padding: 0 12px;
  }

  .join-form {
    padding: 1.2rem;
  }
}

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

/* ============================================
   Site Footer
   ============================================ */
.site-footer {
  font-family: 'Inter', sans-serif;
  background: rgba(0, 0, 0, 0.8);
  color: #aaa;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-brand .logo-img {
  height: 40px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 2.5rem 18px;
  }

  .footer-brand .logo {
    font-size: 1rem;
  }

  .footer-links h4 {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
}

/* ============================================
   Founders Grid
   ============================================ */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

@media (max-width: 768px) {
  .founders-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Mobile Nav Overlay (blocks clicks behind)
   ============================================ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.nav-overlay.active {
  display: block;
}

/* ============================================
   Global Media & Utility Classes
   ============================================ */
img {
  max-width: 100%;
  height: auto;
}

.header-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.header-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  margin-left: 0.5rem;
}

.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.social-icon {
  color: #0a66c2;
  transition: filter 0.2s;
}

.founder-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.founder-info h3 {
  margin: 0;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-tagline-text {
  margin-top: 1rem;
  color: #fff;
}

.footer-sub-text {
  margin-top: 0.5rem;
}

.footer-bottom-text {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}
