:root {
  --bg: #09070d;
  --surface: rgba(20, 16, 28, 0.72);
  --surface-strong: #15101d;
  --text: #f5f1ff;
  --muted: #b8aacd;
  --primary: #e3242b;
  --primary-soft: rgba(227, 36, 43, 0.16);
  --secondary: #7f5cff;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(127, 92, 255, 0.15), transparent 35%),
    linear-gradient(180deg, #09070d 0%, #100913 40%, #07060a 100%);
  overflow-x: hidden;
}

body.portal-open {
  background:
    radial-gradient(circle at top, rgba(227, 36, 43, 0.2), transparent 30%),
    linear-gradient(180deg, #060508 0%, #14080a 40%, #040405 100%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(#fff 0.5px, transparent 0.5px);
  background-size: 12px 12px;
  mix-blend-mode: soft-light;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  min-height: 100vh;
  border-bottom: 1px solid var(--border);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 7, 13, 0.3), rgba(9, 7, 13, 0.9)),
    url('https://dnm.nflximg.net/api/v6/2DuQlx0fM4wd1nzqm5BFBi6ILa8/AAAAQUvukJ_hL4TdILYql5HfevdhWLMUkK8A7EYQWukf1G-fM18R4Nde3r6bSugqCLZwhZWHS1yw3QRsLgpmhJ9bQlvNGLjbNDrmcmr7CuClPPo6jFyoObHj_liPFmRPa76-p-Ezv1pMnPt00vcfmvriSVEl.jpg?r=6d8') center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; position: relative; z-index: 3;
}
.logo {
  font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.14em;
}
.logo span { color: var(--primary); }
.nav-menu {
  display: flex; gap: 24px; list-style: none; margin: 0; padding: 0;
}
.nav-menu a { color: var(--muted); transition: color .2s ease; }
.nav-menu a:hover { color: var(--text); }
.nav-toggle {
  display: none; background: transparent; border: 0; padding: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: white; margin: 5px 0;
}

.section { padding: 90px 0; position: relative; }
.dark-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px;
  align-items: center; padding: 80px 0 110px;
}
.eyebrow {
  color: #ff8e93; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; margin-bottom: 10px;
}

h1, h2, h3 { margin: 0 0 14px; line-height: 1.05; }
h1 {
  font-family: 'Cinzel', serif; font-size: clamp(2.8rem, 6vw, 5.3rem);
  text-shadow: 0 0 24px rgba(227,36,43,.28);
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
p { line-height: 1.65; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.hero-actions, .section-heading.between { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px;
}
.hero-stats div {
  min-width: 120px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px;
  background: rgba(255,255,255,0.03);
}
.hero-stats span { display: block; font-size: 1.45rem; font-weight: 700; margin-bottom: 4px; }
.hero-stats small { color: var(--muted); }

.hero-card, .feature-card, .character-card, .timeline-item, .gallery-item, .subscribe-form, .faq-list details, .modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.hero-card {
  position: relative; padding: 28px; border-radius: 28px; overflow: hidden;
}
.hero-card-glow {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,92,255,0.28), transparent 70%);
  top: -50px; right: -30px;
}
.floating { animation: float 4.6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.btn {
  border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer; font-weight: 700;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.01); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff5a5f);
  color: white; box-shadow: 0 12px 28px rgba(227, 36, 43, 0.28);
}
.btn-secondary {
  background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border);
}
.btn-danger {
  background: linear-gradient(135deg, #2e0d12, var(--primary)); color: white;
}

.section-heading { margin-bottom: 26px; }
.feature-grid, .cards-grid {
  display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr);
}
.cards-grid { grid-template-columns: repeat(4, 1fr); }
.feature-card, .character-card {
  padding: 24px; border-radius: 24px; transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover, .character-card:hover { transform: translateY(-6px); border-color: rgba(227,36,43,.4); }
.icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px;
  background: var(--primary-soft); font-size: 1.5rem; margin-bottom: 16px;
}

.character-image-wrap {
  position: relative;
  margin: -24px -24px 18px;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border-radius: 24px 24px 18px 18px;
}
.character-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.48));
}
.character-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.character-card:hover .character-image { transform: scale(1.06); }
.character-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: white; background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.chip {
  margin-top: 10px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--text);
}

.timeline {
  display: grid; gap: 18px; border-left: 2px solid rgba(227,36,43,.35); padding-left: 24px; margin-left: 10px;
}
.timeline-item {
  position: relative; padding: 20px 22px; border-radius: 22px;
}
.timeline-item::before {
  content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); left: -33px; top: 24px; box-shadow: 0 0 20px rgba(227,36,43,0.5);
}
.timeline-year {
  display: inline-block; margin-bottom: 10px; color: #ff9da0; font-weight: 700;
}

.gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
}
.gallery-item {
  border-radius: 24px; padding: 18px; position: relative; overflow: hidden;
  display: flex; align-items: end;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform .28s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item.large { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item span {
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 8px 18px rgba(0,0,0,0.8);
}
.media-note {
  color: var(--muted);
  margin-top: 16px;
}

.newsletter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
}
.subscribe-form {
  padding: 24px; border-radius: 24px; display: grid; gap: 12px;
}
.subscribe-form input {
  width: 100%; padding: 15px 16px; border-radius: 16px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--text);
}
.subscribe-form input:focus {
  outline: none; border-color: rgba(127,92,255,0.7); box-shadow: 0 0 0 4px rgba(127,92,255,0.15);
}
.form-message { min-height: 24px; color: #ffb0b3; }
.form-message.success { color: #9cffc0; }

.faq-list { display: grid; gap: 14px; }
.faq-list details { padding: 18px 20px; border-radius: 20px; }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--border); padding: 26px 0 38px;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--muted);
}
.back-to-top { color: var(--text); }

.modal {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,0.68); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease; z-index: 40;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-content {
  width: min(560px, calc(100% - 32px)); padding: 28px; border-radius: 28px; position: relative;
}
.modal-close {
  position: absolute; right: 14px; top: 10px; border: 0; background: transparent; color: var(--text);
  font-size: 2rem; cursor: pointer;
}

.reveal {
  opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

.portal-open .hero-card,
.portal-open .feature-card,
.portal-open .character-card,
.portal-open .timeline-item,
.portal-open .gallery-item,
.portal-open .subscribe-form,
.portal-open .faq-list details {
  box-shadow: 0 18px 50px rgba(227, 36, 43, 0.18);
  border-color: rgba(227, 36, 43, 0.22);
}

@media (max-width: 980px) {
  .hero, .newsletter, .feature-grid, .cards-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 32px));
    flex-direction: column; padding: 16px; border-radius: 18px; background: rgba(15, 10, 22, 0.96);
    border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; pointer-events: none;
    transform: translateY(-10px); transition: .24s ease;
  }
  .nav-menu.open {
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
  .hero, .newsletter, .feature-grid, .cards-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.large, .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .footer-inner {
    flex-direction: column; align-items: flex-start;
  }
}
