/* InnovateX Academy — projection-room landing
   Palette: house ink/navy grounds, X blue #198CFF accent,
   Academy spectrum gradient for impact. */

:root {
  --ink: #0A0A0A;
  --dark-azure: #041A2B;
  --deep-navy: #0E2841;
  --panel-border: #155079;
  --x-blue: #198CFF;
  --spec-teal: #12D8D2;
  --spec-blue: #169BFF;
  --spec-indigo: #5364F5;
  --spec-violet: #B53BEA;
  --spec-magenta: #F02B9D;
  --spec-amber: #FFB51B;
  --white: #FBFCFB;
  --grey: #B3BDC2;
  --muted: #6E7F8A;
  --spectrum: linear-gradient(90deg, #12D8D2 0%, #169BFF 25%, #5364F5 48%, #B53BEA 68%, #F02B9D 84%, #FFB51B 100%);
  --cta-grad: linear-gradient(90deg, #169BFF 0%, #5364F5 55%, #B53BEA 100%);
  --wrap: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 50% -200px, rgba(22, 155, 255, 0.14), transparent 60%),
    linear-gradient(195deg, #0A0A0A 0%, #041A2B 45%, #0A0A0A 100%);
  background-color: var(--ink);
  color: var(--white);
  font-family: Inter, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0.16px;
  overflow-x: hidden;
}

a { color: var(--x-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ---------- type ---------- */

.display {
  font-weight: 700;
  color: var(--white);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}
.display-xl { font-size: clamp(40px, 6vw, 76px); line-height: 1.0; letter-spacing: -0.035em; }

.eyebrow {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--x-blue);
}
.eb-blue { color: var(--spec-blue); }
.eb-violet { color: var(--spec-violet); }
.eb-teal { color: var(--spec-teal); }
.eb-grey { color: var(--grey); }

.sub { font-size: 18px; line-height: 1.5; color: var(--grey); max-width: 560px; margin: 0; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.side-note { font-size: 14px; line-height: 1.5; color: var(--grey); max-width: 380px; margin: 0; }

/* ---------- gradient machinery ---------- */

.grad-text {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--spec-blue);
}
.grad-shimmer {
  background-size: 200% 100%;
  animation: shimmer 8s ease infinite;
}
.grad-sweep {
  background: var(--spectrum);
  background-size: 200% 100%;
  animation: shimmer 10s ease infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Cursor-following gradient light */
.cursor-light {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(22, 155, 255, 0.16) 0%,
    rgba(83, 100, 245, 0.10) 30%,
    rgba(181, 59, 234, 0.05) 55%,
    transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
.cursor-light.on { opacity: 1; }

/* Aurora ribbons — slow full-page colour drift */
.aurora {
  position: fixed;
  left: -30%;
  width: 160%;
  height: 340px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  filter: blur(60px);
  opacity: 0.5;
}
.aurora-1 {
  top: 18%;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent 0%, rgba(18,216,210,0.10) 20%, rgba(22,155,255,0.12) 45%, rgba(83,100,245,0.10) 70%, transparent 100%);
  animation: aurora-drift 38s ease-in-out infinite;
}
.aurora-2 {
  top: 62%;
  transform: rotate(6deg);
  background: linear-gradient(90deg, transparent 0%, rgba(181,59,234,0.10) 25%, rgba(240,43,157,0.09) 55%, rgba(255,181,27,0.06) 80%, transparent 100%);
  animation: aurora-drift 46s ease-in-out infinite reverse;
}
.aurora-3 {
  top: 38%;
  height: 260px;
  transform: rotate(-14deg);
  background: linear-gradient(90deg, transparent 0%, rgba(255,181,27,0.06) 20%, rgba(240,43,157,0.08) 45%, rgba(83,100,245,0.09) 75%, transparent 100%);
  animation: aurora-drift 30s ease-in-out infinite;
  animation-delay: -12s;
}
@keyframes aurora-drift {
  0%, 100% { translate: -10% 0; opacity: 0.45; }
  50% { translate: 10% -60px; opacity: 0.75; }
}

/* Drifting light pools — the big ambient motion */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  animation: drift-glow 26s ease-in-out infinite;
}
.glow-hero { width: 1100px; height: 800px; right: -300px; top: -260px; background: radial-gradient(ellipse, rgba(22,155,255,0.20) 0%, transparent 60%); }
.glow-violet { width: 900px; height: 900px; right: -350px; top: -100px; background: radial-gradient(circle, rgba(181,59,234,0.14) 0%, transparent 60%); animation-delay: -8s; }
.glow-teal { width: 900px; height: 900px; left: -350px; top: 100px; background: radial-gradient(circle, rgba(18,216,210,0.12) 0%, transparent 60%); animation-delay: -14s; }
.glow-blue { width: 1000px; height: 800px; left: 50%; margin-left: -500px; top: -100px; background: radial-gradient(ellipse, rgba(83,100,245,0.13) 0%, transparent 60%); animation-delay: -5s; }
.glow-final { width: 1300px; height: 700px; left: 50%; margin-left: -650px; bottom: -350px; background: radial-gradient(ellipse, rgba(22,155,255,0.18) 0%, transparent 60%); animation-delay: -18s; }
@keyframes drift-glow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  33% { transform: translate3d(-110px, 70px, 0) scale(1.18); opacity: 1; }
  66% { transform: translate3d(90px, -60px, 0) scale(0.9); opacity: 0.7; }
}

/* Headings breathe on idle — a slow vertical float on every display heading,
   staggered so sections never move in lockstep. The gradient words already
   shimmer; this keeps the white part alive too. */
.display {
  animation: heading-idle 9s ease-in-out infinite;
}
.section:nth-of-type(odd) .display { animation-delay: -3s; }
.section:nth-of-type(even) .display { animation-delay: -6s; }
@keyframes heading-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.pill:hover { text-decoration: none; transform: translateY(-2px) scale(1.03); }
/* Pills are usually links; on a <button> the UA supplies its own face, border
   and system font. :where() keeps this at element specificity so pill-solid
   and pill-ghost still win on background and border. */
button:where(.pill) {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  color: var(--white);
  font: inherit;
  cursor: pointer;
}
.pill-solid {
  background: var(--cta-grad);
  background-size: 200% 100%;
  color: var(--white);
  animation: shimmer 9s ease infinite;
}
.pill-solid:hover { box-shadow: 0 8px 32px rgba(83, 100, 245, 0.45); }
.pill-ghost { border: 1px solid var(--white); color: var(--white); }
.pill-ghost:hover { box-shadow: 0 8px 24px rgba(251, 252, 251, 0.15); }
.pill-sm { padding: 10px 20px; font-size: 13px; }
.cta-final { padding: 16px 40px; font-size: 16px; margin-top: 8px; }

/* ---------- announcement + nav ---------- */

.announce {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 16px;
  text-align: center;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 4, 7, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(21, 80, 121, 0.5);
  transition: background 0.4s ease;
}
.nav.scrolled { background: rgba(4, 4, 7, 0.85); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-img { height: 54px; width: 156px; display: block; flex-shrink: 0; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--white); }
.nav-signin { color: var(--grey) !important; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero-inner { display: flex; align-items: center; gap: 64px; padding-top: 96px; padding-bottom: 88px; position: relative; }
.hero-copy { width: 560px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-copy .display-xl span { display: block; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-shot { flex: 1; align-self: center; aspect-ratio: 1600 / 1000; min-height: 0; }

/* ---------- sections ---------- */

.section { position: relative; overflow: hidden; padding: 88px 0; }
.section-center .wrap { position: relative; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; position: relative; }
.section-head-split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-head-split > div { display: flex; flex-direction: column; gap: 10px; }
.section-head-center { align-items: center; text-align: center; }
.section-head .sub { margin-top: 6px; }

/* ---------- screenshot / video frames ---------- */

.shot-frame {
  position: relative;
  border: 1px solid transparent;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(11, 26, 42, 0.92) 0%, rgba(10, 10, 10, 0.95) 100%) padding-box,
    var(--spectrum) border-box;
  background-size: 100% 100%, 250% 100%;
  animation: border-flow 7s ease-in-out infinite;
  box-shadow: 0 0 70px rgba(83, 100, 245, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
@keyframes border-flow {
  0%, 100% { background-position: 0% 0%, 0% 50%; }
  50% { background-position: 0% 0%, 150% 50%; }
}
.shot-inner { position: absolute; inset: 12px; border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: 6px; pointer-events: none; }
.shot-photo { overflow: hidden; padding: 0; position: relative; }
.shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 9px; display: block; }
.shot-icon { width: 30px; height: 30px; fill: none; stroke: var(--x-blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.shot-label { font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.shot-note { font-size: 12px; color: var(--muted); max-width: 340px; text-align: center; }

/* ---------- value ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 18px; font-weight: 600; margin: 0; }
.feature p { font-size: 14px; line-height: 1.5; color: var(--grey); margin: 0; }
.feature-icon { width: 24px; height: 24px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-teal { stroke: var(--spec-teal); }
.icon-blue { stroke: var(--spec-blue); }
.icon-violet { stroke: var(--spec-violet); }
.icon-magenta { stroke: var(--spec-magenta); }

/* ---------- structure ---------- */

.structure { display: flex; gap: 64px; align-items: center; }
.track-list { width: 520px; flex-shrink: 0; display: flex; flex-direction: column; }
.track { padding: 24px 0; border-top: 1px solid rgba(21, 80, 121, 0.5); display: flex; flex-direction: column; gap: 6px; }
.track:last-child { border-bottom: 1px solid rgba(21, 80, 121, 0.5); }
.track-eyebrow { font-size: 11px; }
.track h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.track p { font-size: 14px; line-height: 1.5; color: var(--grey); margin: 0; }
.structure-shot { flex: 1; align-self: center; aspect-ratio: 1600 / 1000; min-height: 0; }

/* ---------- catalogue ---------- */

.catalogue { display: block; padding: 24px; }
.cat-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-search {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  border-radius: 100px;
  background: rgba(4, 4, 7, 0.7);
  border: 1px solid rgba(21, 80, 121, 0.7);
  padding: 0 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cat-search:focus-within { border-color: var(--x-blue); box-shadow: 0 0 24px rgba(25, 140, 255, 0.25); }
.cat-search svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.cat-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: var(--white);
}
.cat-search input::placeholder { color: var(--muted); }
.cat-count { font-size: 12px; color: var(--muted); margin: 14px 4px 0; }
.cat-empty { font-size: 14px; color: var(--grey); text-align: center; padding: 40px 20px; margin: 0; }
.chip {
  font: inherit;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 100px;
  border: 1px solid rgba(21, 80, 121, 0.8);
  font-size: 13px;
  color: var(--grey);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.chip:hover { border-color: var(--x-blue); color: var(--white); transform: translateY(-2px); }
.chip-active { background: linear-gradient(90deg, #169BFF 0%, #5364F5 100%); border: none; color: var(--white); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-blue { background: var(--spec-blue); }
.dot-violet { background: var(--spec-violet); }
.dot-teal { background: var(--spec-teal); }

.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.course.pop { animation: card-pop 0.55s var(--ease-out) backwards; animation-delay: var(--d, 0s); }
@keyframes card-pop {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.course {
  border: 1px solid rgba(21, 80, 121, 0.8);
  border-radius: 10px;
  background: rgba(8, 8, 12, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
}
.course:hover { transform: translateY(-6px) scale(1.01); border-color: var(--panel-border); box-shadow: 0 16px 48px rgba(83, 100, 245, 0.25); }
.course-strip { height: 5px; transition: filter 0.3s ease; }
.course:hover .course-strip { filter: brightness(1.3) saturate(1.2); }
.strip-blue { background: linear-gradient(90deg, #169BFF, #5364F5); background-size: 200% 100%; animation: shimmer 6s ease infinite; }
.strip-teal { background: linear-gradient(90deg, #12D8D2, #169BFF); background-size: 200% 100%; animation: shimmer 6s ease infinite; animation-delay: -2s; }
.strip-violet { background: linear-gradient(90deg, #B53BEA, #F02B9D); background-size: 200% 100%; animation: shimmer 6s ease infinite; animation-delay: -4s; }
.course-body { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-top { display: flex; align-items: center; justify-content: space-between; }
.course-top .eyebrow { font-size: 9px; }
.badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--grey);
  border: 1px solid rgba(179, 189, 194, 0.4);
  border-radius: 100px;
  padding: 3px 10px;
}
.badge-live { color: var(--spec-teal); border-color: rgba(18, 216, 210, 0.5); }
.course h3 { font-size: 17px; font-weight: 600; line-height: 1.25; margin: 0; }
.course-meta { font-size: 12px; color: var(--muted); margin: 0; }
.course-keep { font-size: 12px; color: var(--grey); border-top: 1px solid rgba(21, 80, 121, 0.5); padding-top: 10px; margin: auto 0 0; }
.course-soon { opacity: 0.82; }
.course-more {
  border: 1px dashed rgba(179, 189, 194, 0.35);
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}
.course-more:hover { box-shadow: none; border-color: var(--x-blue); }
.more-count { font-size: 34px; font-weight: 700; letter-spacing: -1px; }
.course-more p { font-size: 12px; color: var(--muted); max-width: 240px; margin: 0; }

