/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 48px 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-inner {
  max-width: 1080px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Floating stars */
.hero-stars { position: absolute; inset: 0; pointer-events: none; }
.hstar {
  position: absolute;
  color: var(--pink);
  animation: float 4s ease-in-out infinite;
  font-size: 1.2rem;
  opacity: 0.5;
}
.s1 { top: 18%; left: 6%; animation-delay: 0s; font-size: 1.6rem; }
.s2 { top: 65%; right: 9%; animation-delay: 1.2s; color: var(--blue); }
.s3 { bottom: 22%; left: 12%; animation-delay: 0.7s; font-size: 0.9rem; }
.s4 { top: 30%; right: 5%; animation-delay: 2s; font-size: 0.8rem; }

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  display: inline-block;
  box-shadow: 0 0 10px var(--pink-glow);
}

/* Heading */
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero-hyphen { color: var(--pink); }
.hero-khi {
  color: var(--pink);
  text-shadow: 0 0 50px var(--pink-glow);
  display: inline-block;
}
.hero-mc {
  font-size: 0.6em;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
  margin-top: 4px;
}

/* Sub */
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 26px;
  line-height: 1.85;
}

/* Badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.badge:hover { border-color: var(--pink); color: var(--pink); }
.badge-imdb {
  background: #f5c518;
  color: #000;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}
.badge-imdb:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(245,197,24,0.4); }

/* Hero socials */
.hero-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover {
  border-color: var(--pink);
  background: var(--pink-pale);
  color: var(--pink);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--pink-glow);
}

/* CTAs */
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Visual side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin-slow 25s linear infinite;
  background: conic-gradient(from 0deg, transparent 55%, rgba(255,99,188,0.25) 75%, transparent 100%);
}
.hero-ring::before {
  content: '✦';
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%);
  color: var(--pink);
  font-size: 1.1rem;
}
.hero-ring-2 {
  width: 320px; height: 320px;
  animation-direction: reverse;
  animation-duration: 18s;
  opacity: 0.5;
}
.hero-ring-2::before { content: '✧'; font-size: 0.8rem; }

.hero-photo-wrap {
  width: 320px; height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 60px var(--pink-glow);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.hero-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-photo-wrap.no-img .hero-photo-fallback { display: flex; }
.hero-photo-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}
.hero-photo-fallback span { font-size: 3rem; }
.hero-photo-fallback small { font-size: 0.72rem; font-family: var(--font-mono); line-height: 1.7; opacity: 0.7; }
.hero-photo-fallback code { color: var(--pink); }

/* Stat bubbles */
.hero-stat {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: float 5s ease-in-out infinite;
}
.hero-stat-1 { bottom: 30px; left: -10px; animation-delay: 0.5s; }
.hero-stat-2 { top: 30px; right: -10px; animation-delay: 1s; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--pink);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  color: var(--text-muted);
}
.scroll-hint span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; }
.scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--pink), transparent); animation: float 2s ease-in-out infinite; }

/* ============================================
   REEL SECTION
   ============================================ */
.reel-section { background: var(--bg-mid); overflow: hidden; }

.reel-wrap { max-width: 820px; margin: 0 auto; }

.reel-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 50px var(--pink-glow);
}
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  pointer-events: none;
}
.reel-placeholder code { color: var(--pink); }
.reel-play-icon {
  width: 72px; height: 72px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  padding-left: 5px;
  box-shadow: 0 0 40px var(--pink-glow);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ============================================
   CREDITS RIBBON
   ============================================ */
.ribbon-section {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg);
}
.ribbon-label {
  text-align: center;
  padding: 18px 20px 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ribbon-track { overflow: hidden; padding-bottom: 18px; }
.ribbon-inner {
  display: flex; align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: scroll-ribbon 32s linear infinite;
}
.ribbon-item {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 22px;
  transition: color 0.2s;
}
.rdot { color: var(--pink); font-size: 0.65rem; }
.ribbon-track:hover .ribbon-inner { animation-play-state: paused; }

/* ============================================
   DEMOS SECTION
   ============================================ */
.demos-section { background: var(--bg); }

.demos-accents {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 44px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.accent-label {
  font-family: var(--font-mono);
  color: var(--pink);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-right: 4px;
}
.dot { color: var(--border); }

.demos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================
   CHARACTER LIBRARY
   ============================================ */
.chars-section { background: var(--bg-mid); overflow: hidden; }

.chars-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.char-card {
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.char-card:hover { transform: translateY(-6px); }

.char-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  transition: var(--transition);
}
.char-card:hover .char-img-wrap,
.char-card.playing .char-img-wrap {
  border-color: var(--pink);
  box-shadow: 0 8px 30px var(--pink-glow);
}
.char-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.char-card:hover img { transform: scale(1.06); }
.char-overlay {
  position: absolute; inset: 0;
  background: rgba(14,14,24,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.char-overlay span {
  width: 48px; height: 48px;
  background: var(--pink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: white;
  padding-left: 4px;
  box-shadow: 0 4px 20px var(--pink-glow);
}
.char-card:hover .char-overlay,
.char-card.playing .char-overlay { opacity: 1; }
.char-card.playing .char-overlay { background: rgba(255,99,188,0.25); }
.char-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  transition: color 0.2s;
}
.char-card:hover .char-name,
.char-card.playing .char-name { color: var(--pink); }

/* ============================================
   STUDIO SECTION
   ============================================ */
.studio-section { background: var(--bg); }

.studio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.studio-text p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
}
.studio-text strong { color: var(--pink); font-weight: 700; }

.gear-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gear-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: var(--transition);
}
.gear-card:hover {
  border-color: var(--pink);
  box-shadow: 0 6px 24px var(--pink-glow);
  transform: translateY(-4px);
}
.gear-icon { font-size: 1.7rem; margin-bottom: 10px; }
.gear-cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 4px;
}
.gear-name { font-weight: 700; font-size: 0.9rem; }

/* ============================================
   CREDITS SECTION
   ============================================ */
.credits-section { background: var(--bg-mid); overflow: hidden; }

.credits-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.ctab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}
.ctab:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-pale); }
.ctab.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 4px 20px var(--pink-glow);
}

.ctab-panel { display: none; animation: fade-up 0.4s var(--ease-out); }
.ctab-panel.active { display: block; }

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ci {
  background: var(--bg-card);
  padding: 14px 20px;
  transition: background 0.15s ease;
}
.ci:hover { background: var(--bg); }
.ci-role { font-weight: 700; color: var(--pink); font-size: 0.9rem; margin-bottom: 1px; }
.ci-project { font-size: 0.85rem; font-style: italic; color: var(--text); font-weight: 600; }
.ci-dir { font-size: 0.72rem; font-family: var(--font-mono); color: var(--text-muted); margin-top: 2px; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testi-section { background: var(--bg); overflow: hidden; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testi-card:hover {
  border-color: var(--pink);
  box-shadow: 0 8px 32px var(--pink-glow);
  transform: translateY(-4px);
}
.testi-stars { color: var(--pink); font-size: 0.9rem; letter-spacing: 0.2em; }
.testi-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-style: italic;
  flex: 1;
}
.testi-card cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--pink);
  letter-spacing: 0.08em;
  font-style: normal;
  font-weight: 700;
}

/* ============================================
   STUDIOS SECTION
   ============================================ */
.studios-section { background: var(--bg-mid); overflow: hidden; }

.studios-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.studios-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,99,188,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.studios-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.studios-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  line-height: 1.1;
}
.studios-card p {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 26px;
  line-height: 1.85;
}
.studios-card strong { color: var(--pink); font-weight: 700; }
.studios-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.studios-pills span {
  background: var(--pink-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink);
}

/* Studios logo panel */
.studios-logo-panel {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 240px;
}

.vs-logo-bar {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.75);
  background: #0a0a12;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-logo-bar span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: #fff;
  white-space: nowrap;
}

.vs-mascot {
  width: 100%;
  max-width: 240px;
  display: block;
  mix-blend-mode: screen;
  opacity: 0.92;
  margin-top: -8px;
  filter: drop-shadow(0 0 20px rgba(255,99,188,0.25));
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.vs-mascot:hover {
  opacity: 1;
  filter: drop-shadow(0 0 32px rgba(255,99,188,0.5));
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .chars-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { order: -1; }
  .hero-photo-wrap { width: 240px; height: 300px; }
  .hero-ring { width: 300px; height: 300px; }
  .hero-ring-2 { width: 220px; height: 220px; }
  .hero-stat-1 { bottom: 10px; left: -5px; }
  .hero-stat-2 { top: 10px; right: -5px; }
  .hero-badges { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-sub { margin: 0 auto 26px; }

  .demos-grid { grid-template-columns: 1fr; }
  .studio-layout { grid-template-columns: 1fr; }

  .studios-card {
    grid-template-columns: 1fr;
    padding: 36px;
    gap: 36px;
    text-align: center;
  }
  .studios-logo-panel { width: 180px; margin: 0 auto; }
  .studios-pills { justify-content: center; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 20px 70px; }
  .chars-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .credits-grid { grid-template-columns: 1fr; }
  .studios-card { padding: 24px; }
}