/* InnovateX Academy — sections, engagement layer, animation system.
   Loads after core.css. */

/* ---------- video ---------- */

.video-frame { width: min(1080px, 100%); height: auto; aspect-ratio: 16 / 9; overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 70px rgba(83, 100, 245, 0.18); }
.academy-launch-video { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 9px; background: #000; }
.hero-video { aspect-ratio: 16 / 9; overflow: hidden; }
.play-btn {
  position: relative;
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #169BFF 0%, #5364F5 55%, #B53BEA 100%);
  box-shadow: 0 0 40px rgba(83, 100, 245, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
}
.play-btn:hover { transform: scale(1.12); }
.play-btn svg { width: 26px; height: 26px; fill: var(--white); }
.play-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(83, 100, 245, 0.6);
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}
#lesson .fine { margin-top: 16px; }

/* ---------- pricing ---------- */

.plans { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; position: relative; }
.plan {
  width: 420px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(8, 8, 12, 0.7);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(83, 100, 245, 0.25); }
.plan-premium {
  border-color: transparent;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nav-navy) 92%, transparent) 0%, rgba(8, 8, 12, 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 60px rgba(83, 100, 245, 0.18);
}
.plan .eyebrow { font-size: 11px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price-num { font-size: 56px; letter-spacing: -0.04em; line-height: 1; }
.plan-premium .price-num {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-per { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.plan li { font-size: 14px; line-height: 1.5; color: var(--grey); padding: 12px 0; border-top: 1px solid rgba(21, 80, 121, 0.5); }
.plan .pill { align-self: flex-start; margin-top: 8px; }
.biz-line { font-size: 16px; color: var(--grey); margin: 40px auto 0; max-width: var(--measure); }
.team-call {
  width: min(880px, 100%);
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(18, 216, 210, 0.35);
  border-radius: 10px;
  background: rgba(18, 216, 210, 0.06);
  text-align: left;
}
.team-call p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--grey); }
.team-call strong { color: var(--white); }
.team-call .pill { flex-shrink: 0; }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; max-width: 820px; }
.faq { border-top: 1px solid rgba(21, 80, 121, 0.5); }
.faq:last-child { border-bottom: 1px solid rgba(21, 80, 121, 0.5); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  padding: 22px 40px 22px 0;
  position: relative;
  transition: color 0.3s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 22px;
  color: var(--x-blue);
  transition: transform 0.3s var(--ease-out);
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--x-blue); }
.faq p { font-size: 15px; line-height: 1.6; color: var(--grey); margin: 0; padding: 0 0 22px; max-width: var(--measure); }

/* ---------- final CTA + footer ---------- */

.final-cta { padding: 112px 0 128px; }
.final-cta .reveal { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.footer { position: relative; }
.footer::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--spectrum);
  background-size: 250% 100%;
  animation: shimmer 12s ease infinite;
  opacity: 0.6;
}
.footer-logo { height: 40px; width: 115px; flex-shrink: 0; object-fit: contain; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 40px; }
.footer p { max-width: 560px; }

/* Flowing section dividers */
#tracks::before, #pricing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 70%);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #12D8D2 15%, #169BFF 35%, #5364F5 50%, #B53BEA 65%, #F02B9D 85%, transparent);
  background-size: 250% 100%;
  animation: shimmer 10s ease infinite;
  opacity: 0.55;
}
.footer p { font-size: 12px; color: var(--muted); margin: 0; max-width: var(--measure); }
.footer nav { display: flex; gap: 24px; }
.footer a { font-size: 12px; color: var(--grey); }

/* ---------- engagement layer ---------- */

/* Countdown chip in the announce strip */
.countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  background: rgba(10, 10, 10, 0.25);
  border-radius: 100px;
  padding: 3px 12px;
  white-space: nowrap;
}

/* Progressive hero qualifier */
.hero-qualifier {
  width: min(920px, 100%);
  min-height: 190px;
  margin: 0 auto;
  border: 1px solid rgba(21, 80, 121, 0.8);
  border-radius: 12px;
  background: rgba(8, 8, 12, 0.72);
  padding: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}
.qualifier-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qualifier-progress > span:first-child { flex-shrink: 0; font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.qualifier-progress-line { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(179, 189, 194, 0.16); }
.qualifier-progress-line i { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--spectrum); background-size: 250% 100%; transition: width 0.35s var(--ease-out); }
.qualifier-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.qualifier-step[hidden], .qualifier-progress[hidden], .qualifier-team-call[hidden], .qualifier-status[hidden] { display: none; }
.qualifier-step legend { width: 100%; padding: 0; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--white); outline: 0; }
.qualifier-step > p { margin: 5px 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.qualifier-options { display: flex; flex-wrap: wrap; gap: 9px; }
.qualifier-options .chip { min-height: 42px; height: auto; padding: 9px 15px; line-height: 1.35; text-align: left; }
.qualifier-options .chip.chip-picked { border-color: var(--x-blue); color: var(--white); background: rgba(25, 140, 255, 0.12); }
.qualifier-options-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qualifier-options-stack .chip { width: 100%; border-radius: 10px; }
.qualifier-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  padding: 10px 0 0;
  cursor: pointer;
}
.qualifier-back:hover { color: var(--white); }
.qualifier-fields { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 9px 12px; margin-top: 14px; }
.qualifier-fields label { font-size: 12px; color: var(--grey); }
.qualifier-fields input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(4, 4, 7, 0.75);
  color: var(--white);
  font: inherit;
  font-size: 14px;
  padding: 0 14px;
  outline: none;
}
.qualifier-fields input:focus { border-color: var(--x-blue); box-shadow: 0 0 20px rgba(25, 140, 255, 0.2); }
.form-honeypot { position: absolute !important; left: -9999px !important; }
.qualifier-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.qualifier-actions .qualifier-back { padding-top: 0; }
.qualifier-actions .pill { border: 0; padding: 12px 20px; cursor: pointer; }
.qualifier-team-call { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; margin-top: 14px; border-left: 2px solid var(--spec-teal); padding-left: 12px; font-size: 12px; color: var(--grey); }
.qualifier-team-call strong { color: var(--white); }
.qualifier-status { margin: 14px 0 0; font-size: 13px; line-height: 1.5; }
.qualifier-success { color: #00CB54; }
.qualifier-error { color: #FF5151; }

/* Track ignition — rows light as they enter, sequenced */
.track h3 { color: var(--grey); transition: color 0.8s ease, text-shadow 0.8s ease; }
.track h3::after {
  content: "";
  display: block;
  height: 3px;
  width: 64px;
  border-radius: 2px;
  margin-top: 8px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out);
}
.track.lit h3 { color: var(--white); }
.t-blue.lit h3::after { transform: scaleX(1); background: var(--spec-blue); }
.t-violet.lit h3::after { transform: scaleX(1); background: var(--spec-violet); }
.t-teal.lit h3::after { transform: scaleX(1); background: var(--spec-teal); }
.track.picked { background: linear-gradient(90deg, rgba(25, 140, 255, 0.08), transparent 70%); }
.t-violet.picked { background: linear-gradient(90deg, rgba(181, 59, 234, 0.08), transparent 70%); }
.t-teal.picked { background: linear-gradient(90deg, rgba(18, 216, 210, 0.08), transparent 70%); }

/* Taster quiz carousel */
.quiz-carousel { display: flex; align-items: center; gap: 20px; width: min(880px, 100%); }
.quiz-card { flex: 1; min-width: 0; display: block; text-align: left; }
.qc-viewport { overflow: hidden; border-radius: 9px; }
.qc-slides { display: flex; transition: transform 0.55s var(--ease-out); }
.qc-slide { flex: 0 0 100%; min-width: 0; }
.qc-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: rgba(8, 8, 12, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.qc-arrow svg { width: 20px; height: 20px; fill: none; stroke: #FBFCFB; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qc-arrow:hover:not(:disabled) { border-color: var(--x-blue); transform: scale(1.1); }
.qc-arrow:disabled { opacity: 0.3; cursor: default; }
.qc-dots { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.qc-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(179, 189, 194, 0.3);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}
.qc-dot:hover { background: rgba(179, 189, 194, 0.6); }
.qc-dot-active { background: linear-gradient(90deg, #169BFF, #B53BEA); transform: scale(1.35); }
.quiz-inner { padding: 36px 40px; display: flex; flex-direction: column; gap: 20px; }
.quiz-tag { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.quiz-tag .eyebrow { font-size: 11px; }
.quiz-q { font-size: 20px; font-weight: 600; line-height: 1.4; margin: 0; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  font: inherit;
  font-size: 15px;
  text-align: left;
  color: var(--white);
  background: rgba(4, 4, 7, 0.6);
  border: 1px solid rgba(21, 80, 121, 0.8);
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out), background 0.25s ease;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--x-blue); transform: translateX(6px); }
.quiz-opt:disabled { cursor: default; opacity: 0.55; }
.quiz-opt.is-right { border-color: #00CB54; background: rgba(0, 203, 84, 0.10); opacity: 1; }
.quiz-opt.is-wrong { border-color: #FF5151; background: rgba(255, 81, 81, 0.10); opacity: 1; animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.quiz-result p { margin: 0; }
.quiz-result #quizWhy { font-size: 15px; line-height: 1.5; color: var(--grey); }
.quiz-followup { font-size: 14px; color: var(--muted); margin-top: 10px !important; }
.quiz-result { animation: rise 0.7s var(--ease-out); }

/* Course card artefact flip */
.course.has-artefact { perspective: 1000px; background: transparent; border: none; overflow: visible; }
.course-flip {
  position: relative;
  flex: 1;
  display: flex;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out);
}
.course.has-artefact:hover .course-flip { transform: rotateY(180deg); }
.course-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(21, 80, 121, 0.8);
  border-radius: 10px;
  background: rgba(8, 8, 12, 0.92);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.course-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nav-navy) 95%, transparent), rgba(8, 8, 12, 0.97)) padding-box,
    var(--spectrum) border-box;
  border-color: transparent;
}
.artefact-doc {
  width: 74px;
  height: 96px;
  border-radius: 6px;
  background: var(--white);
  padding: 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.artefact-doc i { display: block; height: 4px; border-radius: 2px; background: #B3BDC2; }
.artefact-doc i:first-child { background: var(--spec-blue); width: 60%; }
.artefact-doc i:nth-child(3) { width: 85%; }
.artefact-doc i:nth-child(5) { width: 70%; }
.artefact-name { font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
.artefact-sub { font-size: 12px; color: var(--grey); margin: 0; }

/* Join form */
.join-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
/* display:flex beats the UA [hidden] rule, so the form has to opt out explicitly */
.join-form[hidden] { display: none; }
.join-form input, .join-form select {
  font: inherit;
  font-size: 15px;
  color: var(--white);
  width: 330px;
  max-width: 100%;
  height: 52px;
  border-radius: 100px;
  background: rgba(8, 8, 12, 0.8);
  border: 1px solid var(--panel-border);
  padding: 0 22px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.join-form input:focus, .join-form select:focus { border-color: var(--x-blue); box-shadow: 0 0 24px rgba(25, 140, 255, 0.3); }
.join-form input::placeholder { color: var(--muted); }
/* Team size: same pill as the inputs, with our own caret (native one ignores the dark ground) */
.join-form select {
  width: 210px;
  padding-right: 44px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C93A6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 16px;
}
.join-form select option { background: #08080C; color: var(--white); }
.join-form .pill { border: none; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500; }
#joinDone { color: #00CB54; }
#joinErr { color: #FF5151; }

/* ---------- animation system ---------- */

/* Hero entrance: plays on load */
.enter, .enter-right {
  opacity: 0;
  animation: rise 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
.enter-right { animation-name: rise-right; }
@keyframes rise {
  from { opacity: 0; transform: translateY(56px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes rise-right {
  from { opacity: 0; transform: translateX(72px); filter: blur(6px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

/* Scroll reveals: .in added by IntersectionObserver */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal { transform: translateY(64px); filter: blur(6px); }
.reveal-left { transform: translateX(-72px); filter: blur(6px); }
.reveal-right { transform: translateX(72px); filter: blur(6px); }
.in { opacity: 1; transform: none; filter: none; }


/* Hero: three short lines fit the 560px column (the default display-xl overflows it) */
.hero-h1 { font-size: clamp(36px, 4.4vw, 56px); }

/* Why we exist: the two-column contrast */
.contrast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; }
.contrast-card { background: rgba(8, 8, 12, 0.7); border: 1px solid var(--panel-border); border-radius: 10px; padding: 28px 30px; }
.contrast-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
.contrast-card ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--grey); }
/* The two cards are an argument, so they are not peers. "Them" recedes: thinner
   ground, dimmer border, muted copy. "Us" carries a teal-tinted edge on all four
   sides and a faint wash off the top, so the corner is followed rather than cut
   across by an accent bar. */
.contrast-them { background: rgba(8, 8, 12, 0.45); border-color: rgba(21, 80, 121, 0.45); }
.contrast-them h3 { color: var(--grey); }
.contrast-them ol { color: var(--muted); }
.contrast-us {
  background:
    linear-gradient(180deg, rgba(18, 216, 210, 0.07) 0%, transparent 60%),
    rgba(8, 8, 12, 0.85);
  border-color: rgba(18, 216, 210, 0.45);
}
.contrast-us h3 { color: var(--white); }
.contrast-us strong { color: var(--white); }

/* Audience fit: reuse the established two-card argument, with semantic lists. */
.audience { max-width: 1000px; }
.audience-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; color: var(--grey); font-size: 15px; line-height: 1.55; }
.audience-list li { position: relative; padding-left: 27px; }
.audience-list li::before { position: absolute; left: 0; top: 0; font-family: "Space Mono", monospace; font-weight: 600; }
.audience-list-for li::before { content: "\2713"; color: var(--spec-teal); }
.audience-card-not {
  background: linear-gradient(180deg, rgba(255, 81, 81, 0.10) 0%, transparent 60%), rgba(8, 8, 12, 0.75);
  border-color: rgba(255, 81, 81, 0.55);
}
.audience-card-not h3 { color: #FF5151; }
.audience-list-not li::before { content: "\00D7"; color: #FF5151; }
.contrast-them .audience-list { color: var(--grey); }

/* Pricing: founding offer and the per-plan fine print */
.plan-fine { margin-top: 14px; }
.plan-fine s { opacity: 0.6; }
.founding { margin: 28px auto 0; max-width: 720px; border: 1px dashed rgba(255, 181, 27, 0.6); border-radius: 10px; padding: 18px 22px; font-size: 15px; line-height: 1.55; color: var(--grey); }
.founding strong { color: var(--spec-amber); }

/* Quiz: score slide with inline capture */
.quiz-final .join-form { justify-content: flex-start; }
.quiz-final .quiz-why { font-size: 15px; line-height: 1.5; color: var(--grey); margin: 0; max-width: var(--measure); }

@media (max-width: 720px) {
  .contrast { grid-template-columns: 1fr; }
  .quiz-final .join-form { align-items: stretch; }
}
