/* ════════════════════════════════════════════════════════════
   AIGHTER — Tunnel Ciné Hero
   ════════════════════════════════════════════════════════════ */

/* ─── Stage ─── */
.stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 66px; /* fixed nav height */
}

/* Cursor spotlight — updated by JS */
.stage__spot {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle 480px at var(--mx, 50%) var(--my, 40%),
                              rgba(230,57,70,0.28), transparent 60%);
  transition: background 0.18s ease;
}
/* Vignette */
.stage__vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 100%);
}
/* Film grain */
.stage__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.08; z-index: 1;
  background-image:
    repeating-radial-gradient(circle at 17% 23%, #fff 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 83% 71%, #fff 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
/* Scanlines */
.stage__scan {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4; z-index: 1;
  background: repeating-linear-gradient(0deg,
    rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
}
/* Red halo behind iPhone */
.stage__halo {
  position: absolute; left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  width: 480px; height: 760px; border-radius: 240px;
  background: radial-gradient(ellipse, rgba(230,57,70,0.28) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none; z-index: 1;
}

/* ─── Hero grid ─── */
.hero {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 60px;
  padding: 30px 60px 80px;
  min-height: calc(100vh - 66px);
}

/* ─── Left column ─── */
.hero__left { text-align: right; align-self: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
  border: 1px solid rgba(230,57,70,0.35);
  padding: 4px 10px; margin-bottom: 18px;
}
.eyebrow__dot {
  width: 5px; height: 5px; border-radius: 99px; background: var(--red);
}

.h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(44px, 6vw, 92px);
  letter-spacing: -0.02em; line-height: 0.88;
  text-transform: uppercase; color: var(--text);
}
.h1--em { color: var(--red); font-style: italic; }
.h1--ghost {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}

.hero__sub {
  font-size: 14px; line-height: 1.6; color: var(--text2);
  max-width: 360px; margin-left: auto; margin-top: 22px;
}

/* ─── Center — phone mock ─── */
.phone-wrap { position: relative; align-self: center; }

.phone-bracket {
  position: absolute; width: 24px; height: 24px;
  border-color: var(--red); border-style: solid; border-width: 0;
}
.phone-bracket--tl { top: -16px; left: -16px; border-top-width: 2px; border-left-width: 2px; }
.phone-bracket--tr { top: -16px; right: -16px; border-top-width: 2px; border-right-width: 2px; }
.phone-bracket--bl { bottom: -16px; left: -16px; border-bottom-width: 2px; border-left-width: 2px; }
.phone-bracket--br { bottom: -16px; right: -16px; border-bottom-width: 2px; border-right-width: 2px; }

.phone {
  position: relative;
  width: 300px; height: 620px;
  background: #0a0a0a;
  border-radius: 50px;
  padding: 7px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 30px 60px rgba(0,0,0,0.5),
    0 0 60px rgba(230,57,70,0.28);
}
.phone__screen {
  width: 100%; height: 100%;
  background: #F0EDE6;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  color: #0A0A09;
}
.phone__notch {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 32px;
  background: #0a0a0a; border-radius: 99px;
  z-index: 5;
}

/* App content */
.app {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  font-family: var(--font-body);
}
.app__header {
  padding: 56px 18px 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.app__label {
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(17,17,17,0.5); font-weight: 600;
}
.app__day {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; letter-spacing: 3px; text-transform: uppercase; color: #111;
}
.app__xp {
  display: flex; align-items: center; gap: 6px;
  background: #0A0A09; color: #F0EDE6;
  padding: 4px 9px 4px 5px; border-radius: 99px;
}
.app__avatar {
  width: 20px; height: 20px; border-radius: 99px;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.app__xp-num {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
}
.app__body {
  padding: 6px 14px;
  flex: 1; display: flex; flex-direction: column; gap: 10px;
}

/* Verdict card */
.verdict {
  background: #0A0A09; color: #F0EDE6;
  border-radius: 16px; padding: 14px 14px 12px;
  position: relative; overflow: hidden;
}
.verdict::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(230,57,70,0.18), transparent 70%);
}
.verdict__tag {
  position: relative;
  display: inline-block; margin-bottom: 8px;
  font-size: 8px; letter-spacing: 2.5px; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 2px 6px;
  border-radius: 3px; font-weight: 700;
}
.verdict__title {
  position: relative;
  font-family: var(--font-display); font-weight: 900;
  font-size: 22px; line-height: 0.96; letter-spacing: -0.4px;
  text-transform: uppercase;
}
.verdict__title em { font-style: normal; color: var(--red); }
.verdict__copy {
  position: relative;
  font-size: 11px; color: rgba(240,237,230,0.6);
  line-height: 1.45; margin-top: 8px;
}
.verdict__copy strong { color: #F0EDE6; }
.verdict__bars {
  position: relative;
  display: flex; gap: 4px; height: 3px; margin-top: 10px;
}
.verdict__bar { flex: 1; border-radius: 2px; background: rgba(240,237,230,0.12); }
.verdict__bar--on { background: var(--red); }

/* Missions list */
.missions {
  background: #fff; border-radius: 16px;
  border: 1px solid rgba(17,17,17,0.06); overflow: hidden;
}
.missions__head {
  padding: 10px 14px 6px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(17,17,17,0.05);
}
.missions__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 16px; letter-spacing: -0.2px;
  text-transform: uppercase; line-height: 1; color: #111;
}
.missions__progress {
  font-family: var(--font-display); font-weight: 800;
  font-size: 12px; color: var(--red);
}
.mission {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(17,17,17,0.05);
}
.mission:last-child { border-bottom: none; }
.mission__check {
  width: 18px; height: 18px; border-radius: 99px;
  border: 2px solid rgba(17,17,17,0.18); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mission__check--on { background: var(--red); border-color: var(--red); }
.mission__check svg { width: 9px; height: 9px; }
.mission__icon { font-size: 13px; }
.mission__text { flex: 1; min-width: 0; }
.mission__title {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.3px; text-transform: uppercase; color: #111;
}
.mission__title--done { text-decoration: line-through; opacity: 0.4; }
.mission__detail { font-size: 9.5px; color: rgba(17,17,17,0.5); }
.mission__hard {
  font-size: 7.5px; letter-spacing: 1.2px; font-weight: 700;
  padding: 1.5px 4px; border-radius: 3px;
  border: 1px solid rgba(17,17,17,0.15); color: rgba(17,17,17,0.5);
}
.mission__hard--hard { color: var(--red); border-color: var(--red); }

/* ─── Right column ─── */
.hero__right {
  align-self: center;
  display: flex; flex-direction: column; gap: 18px;
  max-width: 380px;
}

.quotes { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.quote {
  font-style: italic; font-size: 13px; color: var(--text2);
  padding-left: 14px; border-left: 2px solid var(--red);
  opacity: 0; animation: aFadeIn 0.6s ease forwards;
}
.quote:nth-child(1) { animation-delay: 0.4s; }
.quote:nth-child(2) { animation-delay: 0.6s; }
.quote:nth-child(3) { animation-delay: 0.8s; }

@keyframes aFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.cta-block { margin-top: 16px; }
.cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 32px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 800;
  font-size: 15px; letter-spacing: 3px; text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(230,57,70,0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none; border: none;
}
.cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 12px 0 var(--bg), 0 18px 40px rgba(230,57,70,0.28);
}
.cta__arrow { font-size: 20px; }
.cta-note {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px;
  color: var(--text3); margin-top: 10px;
}

/* ─── Bottom marquee ─── */
.marquee {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  padding: 10px 0; border-top: 1px solid rgba(240,237,230,0.08);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: inline-flex; white-space: nowrap; gap: 28px; align-items: center;
  animation: aMarquee 50s linear infinite;
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--text3);
  padding-left: 28px;
}
.marquee__sep { color: var(--red); font-size: 8px; }

@keyframes aMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.33%); }
}

/* ─── Light theme ─── */
[data-theme="light"] .stage__vignette,
[data-theme="light"] .stage__grain,
[data-theme="light"] .stage__scan { display: none; }
[data-theme="light"] .stage__halo { opacity: 0.15; }
[data-theme="light"] .stage__spot {
  background: radial-gradient(circle 480px at var(--mx, 50%) var(--my, 40%),
                              rgba(230,57,70,0.12), transparent 60%);
}
[data-theme="light"] .marquee { background: rgba(240,237,230,0.85); }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .stage__spot { background: radial-gradient(circle 480px at 50% 40%, rgba(230,57,70,0.28), transparent 60%); }
  .marquee__track { animation: none; }
  .quote { opacity: 1; animation: none; }
}
