@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Metamorphous&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* WandaVision Dark Theme */
  --bg: #0d0614;
  --surface: #1a1025;
  --surface-alt: #241632;
  --text: #f5edf7;
  --text-body: #d4c8db;
  --muted: #a392b0;
  --line: #3f2a56;
  
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --gold-accent: #d97706;
  --burgundy: #e20404;
  --burgundy-light: #ff3d3d;
  
  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Metamorphous', 'Cinzel Decorative', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  
  --max: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

/* WandaVision Dark Background */
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 50% 50%, #150821 0%, #0d0614 100%);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

h1, h2, h3 {
  letter-spacing: 0.01em;
  color: var(--text);
}

h1 {
  font-family: var(--font-display);
}

h2, h3 {
  font-family: var(--font-heading);
}

/* Header - Fixed Plain White Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 40px;
  background: rgba(13, 6, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--gold-accent);
  text-decoration: none;
  background: rgba(217, 119, 6, 0.08);
  border-radius: 10px;
  transition: all 0.15s ease;
}

.brand:hover {
  background: rgba(217, 119, 6, 0.16);
  transform: scale(1.05);
}

.brand-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav a:hover,
.nav a:focus {
  background: rgba(226, 4, 4, 0.15);
  color: var(--burgundy-light);
}

/* Hero Section (Fits within viewport height) */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  box-sizing: border-box;
}

.hero-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 28px;
  align-items: center;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-copy {
  font-size: 18.5px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

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

.button.primary {
  background: var(--burgundy);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--burgundy-light);
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.button.secondary:hover {
  background: var(--surface-alt);
  border-color: var(--muted);
}

/* HERO PORTRAIT PERFECTLY FITTING VIEWPORT (GIGANTIC MODE) */
.hero-portrait-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-portrait-wrapper::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(226, 4, 4, 0.35) 0%, rgba(245, 158, 11, 0.2) 45%, transparent 70%);
  filter: blur(45px);
  z-index: 0;
  pointer-events: none;
  animation: auraPulse 6s ease-in-out infinite alternate;
}

@keyframes auraPulse {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

.portrait-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: calc(96vh - 64px);
  cursor: pointer;
  z-index: 1;
}

.portrait-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: calc(96vh - 64px);
  filter: none;
}

.portrait-frame-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  pointer-events: none;
  filter: none !important;
}

#frame-0 {
  opacity: 1 !important;
  z-index: 1;
}

#frame-1 {
  z-index: 2;
}

#frame-2 {
  z-index: 3;
}

.portrait-frame-img.active {
  opacity: 1;
}

/* Continuous Snap Sections */
.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  box-sizing: border-box;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.section-lead {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-subtext {
  font-size: 19px;
  color: var(--muted);
  margin-top: 8px;
}

.section-lead h2, .section h2 {
  font-size: clamp(32px, 4vw, 44px);
  color: var(--text);
  margin-bottom: 16px;
}

/* Fluid Paragraph Text Blocks */
.text-content-block p {
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 20px;
}

.text-content-block p:last-child {
  margin-bottom: 0;
}

.inclusion-card {
  background: linear-gradient(145deg, rgba(126, 34, 206, 0.18), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.inclusion-badge {
  display: inline-block;
  margin-bottom: 14px;
  color: #fcd34d;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inclusion-card h3 {
  color: var(--text);
  font-size: 26px;
  margin-bottom: 18px;
}

.inclusion-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.inclusion-list li {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.55;
  padding-left: 24px;
  position: relative;
}

.inclusion-list li::before {
  color: #fcd34d;
  content: "✦";
  left: 0;
  position: absolute;
}

/* Side Feature Visual Elements */
.side-feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.diverse-audience-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  transform: scale(1.15);
  filter: drop-shadow(0 0 15px rgba(226,4,4,0.15));
}

/* Quote Callout */
blockquote.notebook-quote {
  position: relative;
  margin: 0;
  padding: 28px 32px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Magic Codex Card Feature */
.magic-codex-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.codex-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.codex-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: rgba(226, 4, 4, 0.15);
  color: #ff8585;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.codex-header h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text);
  margin: 4px 0 0 0;
}

.codex-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
}

.stat-val {
  font-family: var(--font-heading);
  color: var(--gold);
  font-weight: 700;
}

.stat-bar {
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 4px;
}

.stat-fill.gold {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.stat-fill.burgundy {
  background: linear-gradient(90deg, var(--burgundy), var(--burgundy-light));
}

.stat-fill.muted {
  background: var(--muted);
}

.codex-footer {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

/* Safety Shield Card */
.safety-shield-card {
  background: rgba(226, 4, 4, 0.05);
  border: 1px solid rgba(226, 4, 4, 0.2);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.safety-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.safety-alert-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: rgba(226, 4, 4, 0.15);
  color: #ff8585;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.safety-header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #ff8585;
  margin: 4px 0 0 0;
}

.banned-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banned-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid rgba(226, 4, 4, 0.25);
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.banned-item:hover {
  transform: translateX(4px);
}

.banned-icon {
  font-size: 18px;
}

.banned-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.banned-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ff8585;
  background: rgba(226, 4, 4, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(226, 4, 4, 0.3);
}

.safety-footer-banner {
  padding-top: 12px;
  border-top: 1px dashed rgba(226, 4, 4, 0.3);
  font-size: 13px;
  font-weight: 700;
  color: #ff8585;
  text-align: center;
}

/* Pill Tags Feature */
.pill-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--burgundy-light);
}

/* Step Timeline */
.step-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-timeline li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: var(--muted);
}

.step-timeline span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(226, 4, 4, 0.15);
  color: #ff8585;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}

.step-timeline strong {
  color: var(--text);
  font-family: var(--font-heading);
}

/* Awards Badge Grid (Zig-Zag Layout) */
.award-map {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: fit-content;
  max-width: 85%;
}

.award-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.award-badge:nth-child(odd) {
  align-self: flex-start;
  margin-left: clamp(16px, 12%, 60px);
}

.award-badge:nth-child(even) {
  align-self: flex-end;
  margin-right: clamp(16px, 12%, 60px);
}

/* Filters & DARK CARDS FOR PROMPTS */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 36px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-button:hover,
.filter-button.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #ffffff;
}

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

/* Dark Cards for Prompts */
.prompt-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.prompt-card[hidden] {
  display: none !important;
}

.prompt-category-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.prompt-card h3 {
  font-size: 21px;
  color: var(--text);
  margin-bottom: 14px;
}

.prompt-detail {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.prompt-detail strong {
  color: var(--text);
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 60px 24px;
  background: transparent;
  border: none;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--muted);
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
  .hero-grid, .section-grid { grid-template-columns: 1fr; gap: 32px; }
  .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .award-badge:nth-child(odd), .award-badge:nth-child(even) { margin-left: 0; margin-right: 0; }
}

@media (max-width: 768px) {
  .site-header {
    height: 56px;
    padding: 0 16px;
    gap: 12px;
  }
  
  .brand {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  
  .brand-icon {
    width: 18px;
    height: 18px;
  }

  .nav {
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .nav a {
    font-size: 13px;
    padding: 4px 8px;
  }

  html, body {
    scroll-snap-type: none;
    height: auto;
    overflow-x: hidden;
  }

  .hero,
  .section {
    min-height: auto;
    height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    padding: 80px 20px 40px;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
  }

  h1 {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 12px;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero-portrait-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: center;
    justify-self: center;
  }

  .portrait-container, .portrait-stack {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    max-height: none !important;
  }

  .diverse-audience-img {
    transform: none !important;
    object-fit: contain !important;
    width: 100% !important;
    max-width: 400px;
    height: auto !important;
    aspect-ratio: auto !important;
    margin: 24px auto 0;
    display: block;
    justify-self: center;
  }

  .section-lead h2, .section h2 {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 10px;
  }

  .text-content-block p {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 10px;
  }

  blockquote.notebook-quote {
    padding: 16px 18px;
    font-size: 16px;
  }

  .magic-codex-card,
  .safety-shield-card {
    padding: 16px 18px;
    gap: 12px;
  }

  .award-badge:nth-child(odd),
  .award-badge:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
    align-self: center;
    width: 100%;
    justify-content: center;
  }

  .prompt-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .button {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 14px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-play-state: paused !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
