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

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

.video-frame { width: min(1080px, 100%); height: 560px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 70px rgba(83, 100, 245, 0.18); }
.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, rgba(11, 26, 42, 0.92) 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 0 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: 720px; }

/* ---------- 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: 1px;
  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; }
.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;
}

/* Track picker in the hero */
.picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
/* Full-width basis puts the label on its own row: a <br> inside a flex
   container is a zero-size flex item and cannot break the line. */
.picker-label { font-size: 13px; color: var(--grey); flex: 0 0 100%; margin: 0 0 2px; }
.picker .chip.chip-picked { border-color: var(--x-blue); color: var(--white); background: rgba(25, 140, 255, 0.12); }

/* 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: 0;
  border-radius: 2px;
  margin-top: 8px;
  transition: width 0.9s var(--ease-out);
}
.track.lit h3 { color: var(--white); }
.t-blue.lit h3::after { width: 64px; background: var(--spec-blue); }
.t-violet.lit h3::after { width: 64px; background: var(--spec-violet); }
.t-teal.lit h3::after { width: 64px; 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: 10px; }
.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, rgba(11, 26, 42, 0.95), 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: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.artefact-sub { font-size: 11px; color: var(--grey); margin: 0; }

/* Join form */
.join-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.join-form input {
  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 { border-color: var(--x-blue); box-shadow: 0 0 24px rgba(25, 140, 255, 0.3); }
.join-form input::placeholder { color: var(--muted); }
.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); }
.contrast-them { border-top: 3px solid var(--muted); }
.contrast-us { border-top: 3px solid var(--spec-teal); }
.contrast-us strong { color: var(--white); }

/* 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; }

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