/*
 * Ultimate Game Landing Page Scaffold
 * Mobile-first responsive design
 * WCAG 2.1 AA compliant
 *
 * Breakpoints:
 * - Mobile S: 320px (base)
 * - Mobile M: 375px
 * - Mobile L: 425px
 * - Tablet: 768px
 * - Desktop: 1024px
 * - Desktop L: 1440px
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Color System - Brand color derived */
  --color-primary: #227cba;
  --color-primary-rgb: 34, 124, 186;
  --color-primary-hover: #1b6299;
  --color-primary-active: #154a78;
  --color-secondary: #3a9fd4;

  /* Backgrounds derived from brand color */
  --color-background: color-mix(in oklch, var(--color-primary) 15%, #000 85%);
  --color-background-card: color-mix(in oklch, var(--color-primary) 18%, #1a1a1a 82%);

  /* Glass effect */
  --glass-tint: color-mix(in srgb, var(--color-primary) 8%, transparent 92%);
  --glass-border: color-mix(in srgb, var(--color-primary) 20%, rgba(255,255,255,0.1) 80%);
  --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Text colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;

  /* Status colors */
  --color-warning: #f59e0b;

  /* Typography - These are overridden by inline styles from font picker */
  --font-header: "Bebas Neue", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Font sizes */
  --font-size-h1: clamp(1.75rem, 5vw + 1rem, 4rem);
  --font-size-h2: clamp(1.5rem, 4vw + 0.5rem, 3rem);
  --font-size-h3: clamp(1.25rem, 2vw + 0.5rem, 2rem);
  --font-size-body: clamp(1rem, 1vw + 0.5rem, 1.25rem);
  --font-size-small: 0.875rem;

  /* Font weights */
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Spacing (8px base) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  --space-section: 5rem;

  /* Border radius */
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Shadows */
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);

  /* Container widths */
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(var(--color-primary-rgb), 0.5);
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

/* ============================================
   ACCESSIBILITY UTILITIES
   ============================================ */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  z-index: 100;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus states for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Glass morphism effect - apply to elements needing frosted glass look */
/* Note: .testimonial and .character-card use blur(16px) for stronger effect */
/* Note: .carousel__arrow uses custom background with blur(8px) */
.glass,
.email-bar,
.feature__media,
.faq__item {
  background: var(--glass-tint);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.testimonial,
.character-card {
  background: var(--glass-tint);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

/* Section padding */
.section {
  padding: var(--space-section) var(--space-lg);
}

/* Full-bleed background container */
.bg-cover {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.bg-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-background);
  opacity: 0.75;
}

/* Force white text in sections with background images (dark overlay) */
section:has(> .bg-cover),
.footer:has(> .bg-cover) {
  --color-text-primary: #ffffff;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;
  --glass-tint: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 26, 0.7);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--container-md);
  width: 100%;
  gap: var(--space-md);
  z-index: 1;
}

.hero__logo {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.hero__headline {
  font-family: var(--font-header);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-black);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__subheadline {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  max-width: 500px;
}

/* Email Bar */
.hero__email-bar {
  width: 100%;
  max-width: 520px;
}

.email-bar {
  --email-bar-padding: 6px;
  --email-bar-inner-radius: calc(var(--radius-lg) - var(--email-bar-padding));
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
  border-radius: var(--radius-lg);
  padding: var(--email-bar-padding);
}

.email-bar__input {
  flex: 1;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-radius: var(--email-bar-inner-radius);
  color: var(--color-text-primary);
  font-size: 1rem;
  outline: none;
  transition: background var(--transition-fast);
}

.email-bar__input::placeholder {
  color: var(--color-text-muted);
}

.email-bar__input:focus {
  background: rgba(255, 255, 255, 0.05);
}

.email-bar__btn {
  padding: 14px 28px;
  background: var(--color-primary);
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--email-bar-inner-radius);
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.3);
}

.email-bar__btn:hover {
  background: var(--color-primary-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.4);
}

.email-bar__btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(var(--color-primary-rgb), 0.3);
}

.email-bar__hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* CTA Group - Container for button + email signup */
.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  max-width: 540px;
}

/* Branded CTA Button */
.hero__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-text-primary);
  background: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.3);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.hero__cta-button:hover {
  background: var(--color-primary-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.4);
}

.hero__cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(var(--color-primary-rgb), 0.3);
}

.hero__cta-button svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hero__cta-button:hover svg {
  transform: scale(1.1);
}

/* Icon-only variant */
.hero__cta-button--icon-only {
  padding: 1rem;
  border-radius: var(--radius-full);
  aspect-ratio: 1;
}

.hero__cta-button--icon-only svg {
  width: 1.5em;
  height: 1.5em;
}

/* Download Buttons */
.hero__downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.download-btn {
  display: block;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.9;
}

.download-btn:hover {
  transform: scale(1.05) translateY(-2px);
  opacity: 1;
}

.download-btn:active {
  transform: scale(0.98);
}

.download-btn img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  position: relative;
  padding: var(--space-section) var(--space-lg);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: var(--container-xl);
  margin: 0 auto var(--space-xxl);
}

.feature:last-child {
  margin-bottom: 0;
}

.feature__media {
  width: 100%;
  border-radius: var(--radius-xl);
  padding: 8px;
}

.feature__media--no-glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.feature__media-content {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Pause animated content for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feature__media-content[autoplay] {
    /* Video will show first frame but not animate */
  }

  /* Animated GIFs: show static by pausing animation-play-state isn't supported for GIFs,
     but we can reduce visual complexity with a filter */
  img.feature__media-content {
    /* GIFs still animate, but reduced motion users typically expect this.
       If needed, JS can be added to swap GIFs for static images. */
  }
}

.feature__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature__title {
  font-family: var(--font-header);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.01em;
  color: var(--color-text-primary);
}

.feature__description {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  position: relative;
  font-family: var(--font-header);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: var(--space-xl);
  z-index: 1;
}

/* ============================================
   VIDEO SECTION (Optional)
   ============================================ */
.video-section {
  position: relative;
  overflow: hidden;
}

.video-container {
  position: relative;
  max-width: var(--container-lg);
  margin: 0 auto;
  z-index: 1;
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.video-wrapper--no-glass {
  box-shadow: none;
  border-radius: 0;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================
   TESTIMONIALS SECTION (Optional)
   ============================================ */
.testimonials {
  position: relative;
  padding: var(--space-section) var(--space-lg);
}

.testimonials__grid {
  display: grid;
  gap: var(--space-lg);
  max-width: var(--container-xl);
  margin: 0 auto;
}

.testimonial {
  position: relative;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(var(--color-primary-rgb), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Star rating */
.testimonial__stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.testimonial__star {
  width: 18px;
  height: 18px;
  fill: #f59e0b;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.testimonial__quote {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-text-primary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  opacity: 0.95;
}

.testimonial__footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Avatar placeholder */
.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  color: var(--color-text-primary);
  flex-shrink: 0;
}

.testimonial__author {
  color: var(--color-text-primary);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  font-style: normal;
}

/* ============================================
   CHARACTERS SECTION (Optional)
   ============================================ */
.characters {
  position: relative;
  overflow: hidden;
}

.carousel {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  user-select: none;
}

/* Main Display Area */
.carousel__stage {
  position: relative;
  margin-bottom: var(--space-sm);
}

/* Arrow Buttons */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__arrow--prev {
  left: var(--space-xs);
}

.carousel__arrow--next {
  right: var(--space-xs);
}

.carousel__arrow:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.carousel__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Slide Container */
.carousel__slides {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.carousel__track {
  display: flex;
  transition: transform 0.4s ease;
}

/* Individual Slide */
.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.character-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Portrait */
.character-card__portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.2), rgba(0, 0, 0, 0.3));
}

.character-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info */
.character-card__info {
  padding: var(--space-md);
  text-align: center;
}

.character-card__name {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xs);
}

.character-card__bio {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.875rem;
}

/* Thumbnail Strip */
.carousel__thumbnails {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.carousel__thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all var(--transition-normal);
  background: var(--glass-tint);
  padding: 0;
}

.carousel__thumb:hover {
  opacity: 0.8;
}

.carousel__thumb--active {
  border-color: var(--color-primary);
  opacity: 1;
  box-shadow: 0 0 16px rgba(var(--color-primary-rgb), 0.4);
}

.carousel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Single character: hide nav */
.carousel--single .carousel__arrow,
.carousel--single .carousel__thumbnails {
  display: none;
}

/* ============================================
   FAQ SECTION (Optional)
   ============================================ */
.faq {
  position: relative;
  padding: var(--space-section) var(--space-lg);
}

.faq__list {
  max-width: var(--container-md);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq__item {
  border-radius: var(--radius-xl);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.faq__item:hover {
  border-color: color-mix(in srgb, var(--color-primary) 40%, rgba(255,255,255,0.15) 60%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(var(--color-primary-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.faq__item[open] {
  border-color: color-mix(in srgb, var(--color-primary) 50%, rgba(255,255,255,0.2) 50%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 32px rgba(var(--color-primary-rgb), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition-fast);
  min-height: 64px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question-text {
  flex: 1;
}

/* Plus icon that rotates to X */
.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: var(--font-weight-normal);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__question:hover {
  background: rgba(var(--color-primary-rgb), 0.1);
}

/* Answer panel */
.faq__answer {
  padding: 0 var(--space-lg);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.faq__answer-inner {
  padding-bottom: var(--space-lg);
}

/* ============================================
   TEXT SECTION
   ============================================ */
.text-section {
  position: relative;
  padding: var(--space-section) var(--space-lg);
}

.text-section__container {
  max-width: var(--container-md);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.text-section__headline {
  font-family: var(--font-header);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
}

.text-section__body {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
}

.text-section__image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  margin: var(--space-lg) auto;
  box-shadow: var(--shadow-lg);
}

.text-section__image--no-shadow {
  box-shadow: none;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: var(--space-section) var(--space-lg);
  text-align: center;
  overflow: hidden;
}

.cta-section--has-bg {
  background: transparent;
}

.cta-section__content {
  position: relative;
  max-width: var(--container-md);
  margin: 0 auto;
  z-index: 1;
}

.cta-section__headline {
  font-family: var(--font-header);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}

.cta-section__subheadline {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  margin: var(--space-lg) auto;
  box-shadow: var(--shadow-lg);
}

.cta-section__image--no-shadow {
  box-shadow: none;
}

.cta-section__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 540px;
  margin: 0 auto;
}

/* CTA Button styling (mirrors hero button) */
.cta-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-text-primary);
  background: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.3);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.cta-section__button:hover {
  background: var(--color-primary-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.4);
}

.cta-section__button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(var(--color-primary-rgb), 0.3);
}

.cta-section__button svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cta-section__button:hover svg {
  transform: scale(1.1);
}

.cta-section__button--icon-only {
  padding: 1rem;
  border-radius: var(--radius-full);
  aspect-ratio: 1;
}

.cta-section__button--icon-only svg {
  width: 1.5em;
  height: 1.5em;
}

.cta-section__email-bar {
  width: 100%;
  max-width: 480px;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.footer {
  position: relative;
  padding: var(--space-section) var(--space-lg) var(--space-lg);
  text-align: center;
  overflow: hidden;
}


.footer__cta-section {
  position: relative;
  margin-bottom: var(--space-xl);
  z-index: 1;
}

.footer__headline {
  font-family: var(--font-header);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}

.footer__subheadline {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.footer__email-bar {
  width: 100%;
  max-width: 480px;
  margin: 0 auto var(--space-lg);
}

.footer__downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.download-btn--small img {
  height: 40px;
}

/* Social Links */
.footer__social {
  position: relative;
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  z-index: 1;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-background-card);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Legal Links */
.footer__legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  z-index: 1;
}

.footer__link {
  color: var(--color-text-primary);
  font-size: var(--font-size-small);
  transition: opacity var(--transition-fast);
}

.footer__link:hover {
  opacity: 0.7;
}

.footer__copyright {
  position: relative;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  z-index: 1;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Base mobile refinements (< 375px) */
@media (max-width: 374px) {
  /* FAQ: Smaller padding on very small screens */
  .faq__question {
    padding: var(--space-sm) var(--space-md);
  }

  .faq__answer {
    padding: 0 var(--space-md);
  }

  /* Testimonials: Compact on small screens */
  .testimonial {
    padding: var(--space-md);
  }

  .testimonial__avatar {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
}

/* Mobile M (375px) */
@media (min-width: 375px) {
  .hero__logo {
    max-width: 200px;
  }
}

/* Mobile L (425px) */
@media (min-width: 425px) {
  .email-bar {
    flex-direction: row;
    gap: var(--space-xs);
  }
}

/* Tablet (768px) */
@media (min-width: 768px) {
  :root {
    --space-section: 6rem;
  }

  .hero__logo {
    max-width: 240px;
  }

  .hero__subheadline {
    font-size: 1.125rem;
  }

  .hero__email-bar {
    max-width: 480px;
  }

  .download-btn img {
    height: 48px;
  }

  /* Features - Side by side */
  .feature {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }

  .feature__media,
  .feature__content {
    flex: 1;
  }

  .feature--image-right {
    flex-direction: row-reverse;
  }

  /* Testimonials grid */
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial__quote {
    font-size: 1rem;
  }

  .feature__description {
    font-size: 1rem;
  }

  /* Characters carousel */
  .carousel {
    max-width: 700px;
  }

  .carousel__stage {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }

  .carousel__arrow {
    position: static;
    transform: none;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    background: var(--glass-tint);
    flex-shrink: 0;
  }

  .carousel__slides {
    flex: 1;
  }

  .carousel__thumb {
    width: 56px;
    height: 56px;
  }

  .character-card__info {
    padding: var(--space-lg);
  }

  .character-card__name {
    font-size: 1.75rem;
  }

  .character-card__bio {
    font-size: 1rem;
  }

}

/* Desktop (1024px) */
@media (min-width: 1024px) {
  :root {
    --space-section: 7rem;
  }

  .hero__logo {
    max-width: 280px;
  }

  .hero__headline {
    letter-spacing: -0.02em;
  }

  .hero__subheadline {
    max-width: 600px;
  }

  .hero__email-bar {
    max-width: 540px;
  }

  .email-bar__input {
    padding: 16px 20px;
  }

  .email-bar__btn {
    padding: 16px 32px;
  }

  /* CTA Button - larger on desktop */
  .hero__cta-button {
    padding: 1.125rem 3rem;
    font-size: 1.25rem;
  }

  .download-btn img {
    height: 52px;
  }

  /* Testimonials 3-column */
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Characters carousel */
  .carousel {
    max-width: 800px;
  }

  .carousel__thumb {
    width: 64px;
    height: 64px;
  }
}

/* Desktop L (1440px) */
@media (min-width: 1440px) {
  :root {
    --space-section: 8rem;
  }

  .feature {
    gap: var(--space-xxl);
  }

  .feature__content {
    padding: var(--space-lg);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .hero__background,
  .video-section,
  .footer__social {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
  }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #3a9fd4;
    --color-text-secondary: #d4d4d8;
    --color-text-muted: #a1a1aa;
  }

  .email-bar__btn {
    border: 2px solid var(--color-text-primary);
  }

  .hero__overlay {
    background: rgba(0, 0, 0, 0.8);
  }
}
