:root {
  color-scheme: light;
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-soft: #eaf1ff;
  --surface-blue: #f0f6ff;
  --text: #0b1736;
  --muted: #4a5874;
  --line: #d5e2f7;
  --primary: #1f5eff;
  --primary-dark: #123db7;
  --primary-soft: #8bb9ff;
  --navy: #071733;
  --sky: #38bdf8;
  --accent: #0ea5e9;
  --ink-blue: #071d49;
  --shadow: 0 32px 90px rgba(7, 23, 51, 0.14);
  --shadow-soft: 0 16px 48px rgba(11, 23, 54, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 10%, #bde8ff 0, transparent 25rem),
    radial-gradient(circle at 82% 8%, #b8caff 0, transparent 28rem),
    radial-gradient(circle at 50% 48%, #d4f1ff 0, transparent 32rem),
    radial-gradient(circle at 12% 88%, #c6dcff 0, transparent 26rem),
    linear-gradient(135deg, rgba(31, 94, 255, 0.055) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(135deg, transparent 75%, rgba(14, 165, 233, 0.06) 75%) 0 0 / 28px 28px,
    repeating-linear-gradient(0deg, transparent 0 31px, #d4e4fb 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, #d4e4fb 31px 32px),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 34%, #dfeeff 72%, #edf7ff 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::selection {
  background: rgba(31, 94, 255, 0.18);
}

body::before,
body::after {
  border-radius: 999px;
  content: "";
  filter: blur(8px);
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(circle at 32% 28%, #38bdf8 0, transparent 36%),
    repeating-linear-gradient(135deg, #8ebcff 0 8px, #cfe3ff 8px 16px);
  height: 24rem;
  left: -9rem;
  opacity: 0.42;
  top: 24rem;
  width: 24rem;
}

body::after {
  background:
    radial-gradient(circle at 65% 35%, #60a5fa 0, transparent 38%),
    repeating-linear-gradient(45deg, #a9ddff 0 10px, #d8ecff 10px 20px);
  bottom: 6rem;
  height: 32rem;
  opacity: 0.38;
  right: -13rem;
  width: 32rem;
}

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

code {
  background: #e8ecf7;
  border-radius: 0.45rem;
  padding: 0.12rem 0.35rem;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(20px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-bottom: 1px solid #d5e2f7;
  box-shadow: 0 10px 34px rgba(31, 94, 255, 0.07);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 0.85rem clamp(1rem, 5vw, 4rem);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.nav,
.hero-actions,
.site-footer {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 0.7rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  align-items: center;
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--sky) 100%);
  border-radius: 0.95rem;
  box-shadow: 0 12px 28px rgba(31, 94, 255, 0.25);
  color: #ffffff;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.nav {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.5rem;
}

.nav a {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav a:hover {
  background: rgba(31, 94, 255, 0.08);
  color: var(--primary);
}

.nav-cta {
  background: linear-gradient(135deg, var(--ink-blue), var(--primary-dark));
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(18, 61, 183, 0.2);
  color: #ffffff !important;
  padding: 0.65rem 1rem;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
}

.section {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 76vh;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(31, 94, 255, 0.16), transparent),
    repeating-linear-gradient(90deg, rgba(31, 94, 255, 0.09) 0 1px, transparent 1px 44px);
  border-radius: 999px;
  content: "";
  height: 0.5rem;
  left: clamp(1rem, 4vw, 2rem);
  max-width: 26rem;
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  width: 38vw;
}

.page-hero {
  min-height: auto;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-copy {
  position: relative;
}

.hero-copy::after {
  background: linear-gradient(180deg, rgba(31, 94, 255, 0.28), transparent);
  content: "";
  height: 72%;
  left: -2rem;
  position: absolute;
  top: 18%;
  width: 1px;
}

.eyebrow {
  align-items: center;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.55rem;
  letter-spacing: 0.14em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.eyebrow::before {
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border-radius: 999px;
  content: "";
  height: 0.55rem;
  width: 0.55rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  background: linear-gradient(135deg, var(--ink-blue) 0%, var(--primary-dark) 55%, var(--accent) 100%);
  background-clip: text;
  color: transparent;
  font-size: clamp(3rem, 7vw, 5.6rem);
  letter-spacing: -0.075em;
  line-height: 0.92;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.hero-text,
.section-heading p,
.split-section p,
.cta-section p,
.video-panel > div > p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 680px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.metric-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
  max-width: 720px;
}

.metric-strip span {
  background:
    linear-gradient(180deg, #ffffff 0%, #e4f3ff 100%);
  border: 1px solid #bfd3f5;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(7, 23, 51, 0.06);
  color: var(--muted);
  display: grid;
  font-size: 0.86rem;
  gap: 0.1rem;
  padding: 0.85rem 1rem;
}

.metric-strip strong {
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.35rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
  box-shadow: 0 18px 40px rgba(31, 94, 255, 0.28);
  color: #ffffff;
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.button.secondary {
  background: #ffffff;
  border-color: rgba(31, 94, 255, 0.18);
  color: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(11, 23, 54, 0.06);
}

.button.secondary:hover {
  border-color: rgba(31, 94, 255, 0.36);
  box-shadow: 0 14px 32px rgba(31, 94, 255, 0.12);
}

.hero-card,
.video-panel,
.cta-section {
  background:
    radial-gradient(circle at top right, #d7efff 0, transparent 16rem),
    linear-gradient(145deg, #ffffff 0%, #eaf5ff 100%);
  border: 1px solid #a8c1ee;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  position: relative;
}

.hero-card::after {
  background:
    linear-gradient(135deg, rgba(7, 23, 51, 0.96), rgba(18, 61, 183, 0.92));
  border-radius: 1.2rem;
  bottom: 1rem;
  content: "";
  height: 5rem;
  opacity: 0.06;
  position: absolute;
  right: 1rem;
  width: 45%;
}

.hero-card::before {
  background:
    radial-gradient(circle at center, #b7d1ff 0 2px, transparent 2px 100%);
  background-size: 20px 20px;
  content: "";
  height: 9rem;
  opacity: 0.9;
  position: absolute;
  right: -1.8rem;
  top: -1.5rem;
  width: 12rem;
}

.hero-card > * {
  position: relative;
}

.hero-card h2 {
  color: var(--navy);
  max-width: 12ch;
}

.hero-card p {
  color: var(--muted);
}

.status-pill {
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(31, 94, 255, 0.1);
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.75rem;
  text-transform: uppercase;
}

.hero-card ul {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid #d5e2f7;
  border-radius: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0 1rem 1rem;
}

.hero-card li {
  align-items: start;
  border-top: 1px solid rgba(213, 226, 247, 0.9);
  color: var(--muted);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: auto 1fr;
  padding-top: 0.85rem;
}

.hero-card li::before {
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border-radius: 999px;
  content: "";
  height: 0.55rem;
  margin-top: 0.5rem;
  width: 0.55rem;
}

.section-heading {
  margin-bottom: 2.4rem;
  max-width: 760px;
}

.section-heading h2 {
  color: var(--navy);
}

.portal-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-card,
.detail-card {
  background:
    radial-gradient(circle at top right, #e0f2fe 0, transparent 12rem),
    repeating-linear-gradient(135deg, transparent 0 10px, #e5f1ff 10px 11px),
    linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
  border: 1px solid rgba(213, 226, 247, 0.95);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 36px rgba(11, 23, 54, 0.06);
  padding: 1.35rem;
  position: relative;
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.portal-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 2rem;
  padding-top: 2.4rem;
}

.portal-card::before,
.detail-card::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 255, 255, 0.35) 10px 11px),
    linear-gradient(90deg, var(--primary), var(--sky));
  content: "";
  height: 0.3rem;
  left: 1.35rem;
  position: absolute;
  right: 1.35rem;
  top: 0;
}

.portal-card:hover,
.detail-card:hover {
  border-color: rgba(31, 94, 255, 0.28);
  box-shadow: 0 24px 58px rgba(31, 94, 255, 0.13);
  transform: translateY(-4px);
}

.portal-card p,
.detail-card p {
  color: var(--muted);
}

.portal-card h3,
.detail-card h3,
.video-grid strong,
.timeline strong {
  color: var(--navy);
}

.portal-card h3 {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  letter-spacing: -0.055em;
  line-height: 1;
  margin-bottom: 1rem;
  max-width: 9ch;
  padding-bottom: 1.1rem;
  position: relative;
}

.portal-card h3::after {
  background: linear-gradient(90deg, var(--primary), var(--sky));
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 0.28rem;
  left: 0;
  position: absolute;
  width: 4.5rem;
}

.portal-card p {
  margin-bottom: 1.25rem;
}

.detail-card p {
  margin-bottom: 0;
}

.card-number {
  align-items: center;
  background: #eef5ff;
  border: 1px solid rgba(31, 94, 255, 0.12);
  border-radius: 999px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  padding: 0.22rem 0.55rem;
  width: fit-content;
}

.text-link {
  align-items: center;
  color: var(--primary);
  display: inline-flex;
  font-weight: 800;
  gap: 0.35rem;
  margin-top: auto;
}

.text-link::after {
  content: "->";
  transition: transform 160ms ease;
}

.text-link:hover {
  color: var(--primary-dark);
}

.text-link:hover::after {
  transform: translateX(3px);
}

.detail-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card {
  padding: 1.55rem;
}

.detail-card.is-watched {
  background:
    radial-gradient(circle at top right, #bfdbfe 0, transparent 12rem),
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(219, 234, 254, 0.85) 10px 11px),
    linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
}

.detail-card h3 {
  padding-right: 3.4rem;
  padding-top: 0.4rem;
}

.detail-card-play {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(31, 94, 255, 0.22);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.detail-card-play span {
  border-bottom: 0.33rem solid transparent;
  border-left: 0.5rem solid #ffffff;
  border-top: 0.33rem solid transparent;
  display: inline-block;
  height: 0;
  width: 0;
}

.detail-card-play:hover {
  box-shadow: 0 16px 32px rgba(31, 94, 255, 0.28);
  transform: translateY(-1px);
}

.detail-video-modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 100;
}

.detail-video-modal.is-open {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.detail-video-backdrop {
  background: rgba(7, 23, 51, 0.5);
  backdrop-filter: blur(10px);
  inset: 0;
  position: absolute;
}

.detail-video-popout {
  background:
    radial-gradient(circle at top right, #dff7ff 0, transparent 18rem),
    linear-gradient(145deg, #ffffff 0%, #eaf5ff 100%);
  border: 1px solid #a8c1ee;
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 90px rgba(7, 23, 51, 0.34);
  display: grid;
  gap: 1rem;
  max-width: 760px;
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 2rem);
  position: relative;
  width: min(100%, 760px);
}

.detail-video-close {
  background: #ffffff;
  border: 1px solid #c8daf8;
  border-radius: 999px;
  color: var(--primary-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
}

.mini-video-stage {
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(255, 255, 255, 0.12) 25px 26px),
    repeating-linear-gradient(90deg, transparent 0 25px, rgba(255, 255, 255, 0.12) 25px 26px),
    linear-gradient(135deg, #0b2f77, #1f5eff 54%, #38bdf8);
  border-radius: 1.4rem;
  display: grid;
  grid-template-columns: minmax(13rem, 0.85fr) minmax(18rem, 1.35fr);
  min-height: 22rem;
  overflow: hidden;
  position: relative;
}

.stage-burst {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 2px, transparent 2px 100%),
    conic-gradient(from 120deg, rgba(255, 255, 255, 0.18), transparent, rgba(255, 255, 255, 0.22), transparent);
  background-size:
    26px 26px,
    100% 100%;
  inset: 0;
  opacity: 0.65;
  pointer-events: none;
  position: absolute;
}

.detail-sparky-video {
  align-self: end;
  border-radius: 1.2rem;
  box-shadow: 0 22px 46px rgba(7, 23, 51, 0.26);
  grid-column: 1;
  height: min(80%, 19rem);
  justify-self: center;
  margin-bottom: 1rem;
  object-fit: cover;
  object-position: center;
  width: min(86%, 14rem);
  z-index: 8;
}

.topic-props {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 6;
}

.topic-prop-main {
  align-items: center;
  animation: mainPropReveal 15s ease-in-out infinite;
  background: linear-gradient(135deg, #ffffff, #cffafe);
  border: 1px solid #b6d4fb;
  border-radius: 1.2rem;
  box-shadow: 0 18px 36px rgba(7, 23, 51, 0.18);
  color: var(--primary-dark);
  display: inline-flex;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 900;
  justify-content: center;
  min-height: 4.2rem;
  min-width: 4.2rem;
  padding: 0.55rem 0.8rem;
  position: absolute;
  right: 3rem;
  top: 1.5rem;
}

.topic-chip {
  animation: topicChipFloat 15s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #bcd5fb;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(7, 23, 51, 0.13);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.45rem 0.65rem;
  position: absolute;
}

.topic-chip-one {
  right: 17rem;
  top: 2.1rem;
}

.topic-chip-two {
  right: 12rem;
  top: 5.3rem;
}

.topic-chip-three {
  right: 3.2rem;
  top: 6.5rem;
}

.mini-video-card {
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  border: 1px solid #c9dcfa;
  border-radius: 1.1rem;
  box-shadow: 0 18px 42px rgba(7, 23, 51, 0.22);
  display: grid;
  gap: 0.5rem;
  left: auto;
  right: 1.4rem;
  padding: 1.3rem;
  position: absolute;
  top: 50%;
  width: min(56%, 27rem);
}

.mini-video-card::after {
  animation: cardRevealShine 15s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(31, 94, 255, 0.12), transparent);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: translateX(-100%);
}

.mini-video-card span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-video-card strong {
  color: var(--navy);
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.mini-video-card-one {
  animation: detailVideoOne 15s ease-in-out infinite;
}

.mini-video-card-two {
  animation: detailVideoTwo 15s ease-in-out infinite;
}

.mini-video-card-three {
  animation: detailVideoThree 15s ease-in-out infinite;
}

.detail-video-caption {
  background: #ffffff;
  border: 1px solid #d5e2f7;
  border-left: 0.35rem solid var(--primary);
  border-radius: 1rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0;
  padding: 1rem 1.1rem;
}

.detail-video-scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.detail-video-scenes span {
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  border: 1px solid #b6d4fb;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
}

.detail-video-progress {
  background: #dbeafe;
  border-radius: 999px;
  height: 0.5rem;
  overflow: hidden;
}

.detail-video-progress span {
  animation: detailVideoProgress 15s linear infinite;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  display: block;
  height: 100%;
}

@keyframes detailVideoOne {
  0%,
  28% {
    opacity: 1;
    transform: translateY(-53%) rotate(-2deg);
    z-index: 3;
  }
  40%,
  100% {
    opacity: 0.24;
    transform: translate(-7rem, -56%) rotate(-10deg) rotateY(-62deg);
    z-index: 1;
  }
}

@keyframes detailVideoTwo {
  0%,
  30% {
    opacity: 0;
    transform: translate(3rem, -48%) rotate(6deg) scale(0.94);
    z-index: 1;
  }
  42%,
  62% {
    opacity: 1;
    transform: translateY(-52%) rotate(1deg) scale(1);
    z-index: 4;
  }
  74%,
  100% {
    opacity: 0.24;
    transform: translate(-7rem, -54%) rotate(-8deg) rotateY(-58deg);
    z-index: 2;
  }
}

@keyframes detailVideoThree {
  0%,
  62% {
    opacity: 0;
    transform: translate(3rem, -48%) rotate(7deg) scale(0.94);
    z-index: 1;
  }
  76%,
  100% {
    opacity: 1;
    transform: translateY(-52%) rotate(2deg) scale(1);
    z-index: 5;
  }
}

@keyframes detailVideoProgress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes cardRevealShine {
  0%,
  20% {
    opacity: 0;
    transform: translateX(-100%);
  }
  34%,
  38% {
    opacity: 1;
  }
  52%,
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes mainPropReveal {
  0%,
  18% {
    opacity: 0;
    transform: translateY(-0.7rem) rotate(-8deg) scale(0.75);
  }
  28%,
  84% {
    opacity: 1;
    transform: translateY(0) rotate(4deg) scale(1);
  }
  100% {
    opacity: 0.8;
    transform: translateY(0) rotate(4deg) scale(1);
  }
}

@keyframes topicChipFloat {
  0%,
  24% {
    opacity: 0;
    transform: translateY(0.6rem) scale(0.88);
  }
  34%,
  88% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.75;
    transform: translateY(-0.2rem) scale(1);
  }
}

.split-section {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.8fr 1fr;
  position: relative;
}

.split-section::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(31, 94, 255, 0.08), rgba(255, 255, 255, 0));
  content: "";
  height: 85%;
  left: 42%;
  position: absolute;
  top: 8%;
  width: 1px;
}

.timeline {
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, #e5f1ff 12px 13px),
    linear-gradient(180deg, #ffffff, #edf7ff);
  border: 1px solid rgba(213, 226, 247, 0.95);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(11, 23, 54, 0.055);
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.2rem 1.1rem 4rem;
  position: relative;
}

.timeline li::before {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(31, 94, 255, 0.22);
  color: #ffffff;
  content: counter(step);
  counter-increment: step;
  display: inline-flex;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  left: 1.1rem;
  position: absolute;
  top: 1.1rem;
  width: 2rem;
}

.timeline span {
  color: var(--muted);
}

.video-section {
  max-width: min(1380px, 100%);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.video-panel {
  align-items: center;
  display: flex;
  gap: 1.4rem;
  justify-content: space-between;
  padding: clamp(1.6rem, 4vw, 3rem);
  position: relative;
}

.video-panel::before,
.cta-section::before {
  background: linear-gradient(90deg, var(--primary), var(--sky), var(--primary-soft));
  border-radius: 999px;
  content: "";
  height: 0.35rem;
  left: clamp(1.2rem, 4vw, 2rem);
  position: absolute;
  right: clamp(1.2rem, 4vw, 2rem);
  top: 0;
}

.video-panel.stacked {
  align-items: stretch;
  display: grid;
}

.storyboard-panel {
  align-items: stretch;
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  grid-template-columns: minmax(260px, 0.58fr) minmax(420px, 1.42fr);
}

.storyboard-copy {
  align-content: center;
  display: grid;
  gap: 1rem;
}

.storyboard-copy h2,
.storyboard-copy h3 {
  color: var(--navy);
  margin-bottom: 0;
}

.runtime-pill {
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  border: 1px solid #b6d4fb;
  border-radius: 999px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  text-transform: uppercase;
  width: fit-content;
}

.storyboard-stage {
  align-items: center;
  display: grid;
  gap: 1rem;
  min-height: clamp(26rem, 38vw, 34rem);
  position: relative;
}

.deck-frame {
  background:
    linear-gradient(135deg, #0b2f77, #1f5eff 54%, #38bdf8);
  border: 1px solid #9fc5ff;
  border-radius: 1.6rem;
  box-shadow: 0 26px 64px rgba(7, 23, 51, 0.2);
  min-height: clamp(22rem, 34vw, 30rem);
  overflow: hidden;
  perspective: 1200px;
  position: relative;
}

.deck-frame::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(255, 255, 255, 0.12) 25px 26px),
    repeating-linear-gradient(90deg, transparent 0 25px, rgba(255, 255, 255, 0.12) 25px 26px);
  content: "";
  inset: 0;
  position: absolute;
}

.storyboard-sparky-rotator {
  border-radius: 1.1rem;
  bottom: 1.3rem;
  box-shadow: 0 22px 46px rgba(7, 23, 51, 0.24);
  height: min(72%, 20rem);
  left: 1.2rem;
  overflow: hidden;
  position: absolute;
  width: min(34%, 15rem);
  z-index: 3;
}

.storyboard-sparky-video {
  border-radius: inherit;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  opacity: 0;
  transition: opacity 700ms ease;
  width: 100%;
}

.storyboard-sparky-video.is-active {
  opacity: 1;
}

.deck-slide {
  background:
    radial-gradient(circle at top right, #e0f2fe 0, transparent 9rem),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  border: 1px solid #c9dcfa;
  border-radius: 1.2rem;
  box-shadow: 0 18px 42px rgba(7, 23, 51, 0.22);
  display: grid;
  gap: 0.55rem;
  left: 58%;
  min-height: 12.5rem;
  padding: 1.3rem;
  position: absolute;
  top: 50%;
  transform-origin: left center;
  width: min(70%, 25rem);
}

.deck-slide span {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deck-slide strong {
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  letter-spacing: -0.055em;
  line-height: 1;
  max-width: 11ch;
}

.deck-slide p {
  color: var(--muted);
  margin-bottom: 0;
}

.slide-one {
  animation: pageOne 9s ease-in-out infinite;
}

.slide-two {
  animation: pageTwo 9s ease-in-out infinite;
}

.slide-three {
  animation: pageThree 9s ease-in-out infinite;
}

.storyboard-panel.is-audio-synced .deck-slide,
.storyboard-panel.is-audio-synced .note-stack span {
  animation: none;
}

.storyboard-panel.is-audio-synced .deck-slide {
  opacity: 0;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.storyboard-panel.is-audio-synced .deck-slide.is-active {
  opacity: 1;
  transform: translate(-50%, -52%) rotate(1deg) scale(1);
  z-index: 5;
}

.storyboard-panel.is-audio-synced .deck-slide.is-previous {
  opacity: 0.28;
  transform: translate(-78%, -55%) rotate(-11deg) rotateY(-64deg);
  z-index: 2;
}

.storyboard-panel.is-audio-synced .deck-slide.is-next {
  opacity: 0.32;
  transform: translate(-30%, -47%) rotate(7deg) scale(0.92);
  z-index: 1;
}

.note-stack {
  bottom: 1rem;
  display: grid;
  gap: 0.55rem;
  position: absolute;
  right: 1rem;
  width: min(58%, 18rem);
  z-index: 5;
}

.note-stack span {
  background: #ffffff;
  border: 1px solid #bcd5fb;
  border-left: 0.35rem solid var(--primary);
  border-radius: 0.9rem;
  box-shadow: 0 12px 28px rgba(7, 23, 51, 0.14);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.65rem 0.75rem;
}

.note-stack span:nth-child(1) {
  animation: noteIn 9s ease-in-out infinite;
}

.note-stack span:nth-child(2) {
  animation: noteIn 9s ease-in-out 0.6s infinite;
}

.note-stack span:nth-child(3) {
  animation: noteIn 9s ease-in-out 1.2s infinite;
}

.storyboard-panel.is-audio-synced .note-stack span {
  opacity: 0.55;
  transform: translateX(0);
  transition:
    background 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.storyboard-panel.is-audio-synced .note-stack span.is-active {
  background: #eaf5ff;
  opacity: 1;
  transform: translateX(-0.35rem);
}

@keyframes pageOne {
  0%,
  24% {
    opacity: 1;
    transform: translate(-56%, -55%) rotate(-3deg) rotateY(0deg);
    z-index: 3;
  }
  32%,
  100% {
    opacity: 0.25;
    transform: translate(-78%, -55%) rotate(-11deg) rotateY(-68deg);
    z-index: 1;
  }
}

@keyframes pageTwo {
  0%,
  28% {
    opacity: 0;
    transform: translate(-42%, -49%) rotate(5deg) scale(0.94);
    z-index: 1;
  }
  36%,
  58% {
    opacity: 1;
    transform: translate(-50%, -52%) rotate(1deg) scale(1);
    z-index: 4;
  }
  68%,
  100% {
    opacity: 0.3;
    transform: translate(-72%, -53%) rotate(-9deg) rotateY(-62deg);
    z-index: 2;
  }
}

@keyframes pageThree {
  0%,
  60% {
    opacity: 0;
    transform: translate(-40%, -48%) rotate(6deg) scale(0.94);
    z-index: 1;
  }
  72%,
  100% {
    opacity: 1;
    transform: translate(-48%, -51%) rotate(2deg) scale(1);
    z-index: 5;
  }
}

@keyframes noteIn {
  0%,
  18% {
    opacity: 0;
    transform: translateX(1rem);
  }
  28%,
  82% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0.65;
    transform: translateX(0);
  }
}

.video-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid article {
  background:
    radial-gradient(circle at top right, #dff7ff 0, transparent 9rem),
    repeating-linear-gradient(135deg, transparent 0 12px, #d9ecff 12px 13px),
    linear-gradient(180deg, #ffffff, #e8f5ff);
  border: 1px solid rgba(213, 226, 247, 0.95);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 26px rgba(11, 23, 54, 0.05);
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem;
}

.video-grid span,
.video-subtitle {
  color: var(--muted);
}

.video-subtitle {
  background:
    linear-gradient(180deg, #ffffff 0%, #eaf5ff 100%);
  border: 1px solid #d5e2f7;
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
}

.video-subtitle {
  border-left: 0.35rem solid var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

.voiceover-player {
  background: #ffffff;
  border: 1px solid #c8daf8;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(7, 23, 51, 0.08);
  padding: 0.45rem;
  width: 100%;
}

.timeline.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline.compact li {
  padding: 4rem 1.2rem 1.2rem;
}

.timeline.compact li::before {
  left: 1.2rem;
}

.cta-section {
  margin-bottom: 3rem;
  overflow: hidden;
  padding-left: clamp(1.5rem, 6vw, 5rem);
  padding-right: clamp(1.5rem, 6vw, 5rem);
  position: relative;
  text-align: center;
}

.cta-section::after {
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 58%);
  bottom: -9rem;
  content: "";
  height: 18rem;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 42rem;
  z-index: -1;
}

.cta-section p {
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  color: var(--muted);
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 3rem;
}

.site-footer a {
  color: var(--primary);
  font-weight: 700;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.support-chat {
  bottom: 1.25rem;
  position: fixed;
  right: 1.25rem;
  z-index: 90;
}

.support-chat-toggle {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(31, 94, 255, 0.32);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  gap: 0.5rem;
  padding: 0.95rem 1.15rem;
}

.support-chat-toggle::before {
  background: #ffffff;
  border-radius: 999px;
  content: "";
  height: 0.72rem;
  width: 0.72rem;
}

.support-chat-panel {
  background:
    radial-gradient(circle at top right, #dff7ff 0, transparent 14rem),
    linear-gradient(145deg, #ffffff 0%, #eef6ff 100%);
  border: 1px solid #a8c1ee;
  border-radius: 1.35rem;
  bottom: 4.4rem;
  box-shadow: 0 28px 70px rgba(7, 23, 51, 0.24);
  display: none;
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(24rem, calc(100vw - 2rem));
}

.support-chat.is-open .support-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(14rem, 19rem) auto;
}

.support-chat-header {
  align-items: center;
  background: linear-gradient(135deg, var(--ink-blue), var(--primary-dark));
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.support-chat-header div {
  display: grid;
  gap: 0.1rem;
}

.support-chat-header span {
  color: #dbeafe;
  font-size: 0.82rem;
}

.support-chat-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  height: 2rem;
  line-height: 1;
  width: 2rem;
}

.support-chat-messages {
  display: grid;
  gap: 0.7rem;
  overflow-y: auto;
  padding: 1rem;
}

.support-chat-message {
  border-radius: 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 88%;
  padding: 0.75rem 0.85rem;
}

.support-chat-message.is-assistant {
  background: #ffffff;
  border: 1px solid #d5e2f7;
  color: var(--text);
  justify-self: start;
}

.support-chat-message.is-user {
  background: linear-gradient(135deg, var(--primary), var(--sky));
  color: #ffffff;
  justify-self: end;
}

.support-chat-message.is-loading {
  color: var(--muted);
}

.support-chat-form {
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid #d5e2f7;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr auto;
  padding: 0.8rem;
}

.support-chat-form input {
  background: #ffffff;
  border: 1px solid #c8daf8;
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  min-width: 0;
  padding: 0.75rem 0.9rem;
}

.support-chat-form button {
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.75rem 0.95rem;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-copy::after,
  .split-section::before {
    display: none;
  }

  .portal-grid,
  .video-grid,
  .timeline.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .storyboard-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .portal-grid,
  .detail-grid,
  .video-grid,
  .timeline.compact {
    grid-template-columns: 1fr;
  }

  .video-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .storyboard-stage {
    min-height: 29rem;
  }

  .mini-video-stage {
    grid-template-columns: 1fr;
    min-height: 22rem;
  }

  .detail-sparky-video {
    align-self: start;
    height: 12rem;
    margin: 1rem 0 0 1rem;
    width: 10rem;
  }

  .topic-prop-main {
    right: 1rem;
    top: 1rem;
  }

  .topic-chip-one,
  .topic-chip-two,
  .topic-chip-three {
    display: none;
  }

  .mini-video-card {
    bottom: 1rem;
    right: 1rem;
    top: auto;
    width: calc(100% - 2rem);
  }

  .detail-card-play {
    padding: 0.45rem;
  }

  .detail-card-play::after {
    content: "";
  }

  .note-stack {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deck-slide,
  .note-stack span,
  .mini-video-card,
  .mini-video-card::after,
  .detail-video-progress span,
  .topic-prop-main,
  .topic-chip {
    animation: none;
  }

  .slide-one {
    opacity: 1;
    transform: translate(-56%, -55%) rotate(-3deg);
    z-index: 3;
  }

  .slide-two {
    opacity: 0.95;
    transform: translate(-50%, -50%) rotate(1deg);
    z-index: 4;
  }

  .slide-three {
    opacity: 0.95;
    transform: translate(-44%, -45%) rotate(4deg);
    z-index: 5;
  }

  .mini-video-card-one {
    opacity: 1;
    transform: translateY(0) rotate(-3deg);
    z-index: 3;
  }

  .mini-video-card-two {
    opacity: 0.95;
    transform: translateY(0) rotate(1deg);
    z-index: 4;
  }

  .mini-video-card-three {
    opacity: 0.95;
    transform: translateY(0) rotate(4deg);
    z-index: 5;
  }

  .detail-video-progress span {
    width: 100%;
  }
}
