/**
 * Anime Phoenix — Sections Stylesheet
 * Signature Red & Obsidian Black Aesthetic (Aligned with Official Streaming Platform)
 */

/* ==========================================================================
   1. HERO SECTION (DEEP BLACK & RADIANT CRIMSON RED)
   ========================================================================== */
.hero-section {
  /* dvh keeps the composition intact when mobile browser chrome collapses. */
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--space-24) + var(--space-8));
  padding-bottom: var(--space-20);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 32%, rgba(182, 9, 45, 0.16) 0%, rgba(94, 4, 23, 0.05) 45%, #0a0a0c 75%);
}

.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-depth-container {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Phoenix Core Center Motif in Hero */
.hero-core-wrapper {
  position: relative;
  width: 200px;
  height: 220px;
  margin-bottom: var(--space-6);
  cursor: pointer;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-core-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(182, 9, 45, 0.45) 0%, rgba(182, 9, 45, 0.12) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(22px);
  z-index: 1;
  pointer-events: none;
  animation: core-breathe 4s ease-in-out infinite alternate;
}

.hero-core-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(182, 9, 45, 0.85)) drop-shadow(0 8px 25px rgba(0, 0, 0, 0.9));
  animation: emblem-float 5s ease-in-out infinite alternate;
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.hero-core-wrapper:hover .hero-core-img {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 0 50px rgba(211, 18, 59, 0.95)) drop-shadow(0 12px 30px rgba(0, 0, 0, 0.95));
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(182, 9, 45, 0.12);
  border: 1px solid rgba(182, 9, 45, 0.35);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.hero-tag-badge span {
  color: var(--color-primary-hover);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw + 1rem, var(--text-7xl));
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.hero-title-ar {
  font-family: var(--font-arabic);
  font-size: clamp(var(--text-xl), 2.5vw + 0.5rem, var(--text-3xl));
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.hero-tagline {
  font-size: clamp(var(--text-base), 1.2vw + 0.5rem, var(--text-xl));
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.hero-actions-matrix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-status-strip {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.hero-status-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.hero-status-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary-text);
}

/* ==========================================================================
   2. BRAND STORY & INTERACTIVE ORIGIN TIMELINE (OBSIDIAN & RED)
   ========================================================================== */
.story-section {
  background: radial-gradient(ellipse at 80% 20%, rgba(182, 9, 45, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(94, 4, 23, 0.1) 0%, transparent 50%),
              linear-gradient(180deg, #0a0a0c 0%, #0d0d12 50%, #0a0a0c 100%);
  position: relative;
}

/* Interactive Anime Quotes Showcase Widget */
.anime-quote-container {
  margin: var(--space-12) 0 var(--space-16) 0;
}

.anime-quote-card {
  background: linear-gradient(135deg, rgba(22, 12, 16, 0.8) 0%, rgba(14, 14, 18, 0.9) 100%);
  border: 1px solid rgba(182, 9, 45, 0.35);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-10);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), var(--glow-red-sm);
  transition: all var(--transition-normal);
}

.anime-quote-card::before {
  content: '“';
  position: absolute;
  top: -10px;
  right: 24px;
  font-size: 140px;
  font-family: var(--font-display);
  color: rgba(182, 9, 45, 0.08);
  line-height: 1;
  pointer-events: none;
}

.anime-quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.quote-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(182, 9, 45, 0.15);
  border: 1px solid rgba(182, 9, 45, 0.4);
  color: var(--color-primary-text);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.anime-quote-body {
  font-size: clamp(var(--text-lg), 1.5vw + 0.5rem, var(--text-2xl));
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  min-height: 70px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quote-animating .anime-quote-body {
  opacity: 0;
  transform: translateY(6px);
}

.anime-quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.anime-quote-author {
  display: flex;
  flex-direction: column;
}

.anime-quote-character {
  font-weight: 800;
  color: #ffffff;
  font-size: var(--text-base);
}

.anime-quote-source {
  font-size: var(--text-xs);
  color: var(--color-primary-text);
}

.quote-actions {
  display: flex;
  gap: var(--space-3);
}

.story-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-16);
}

.story-lead-quote {
  border-right: 3px solid var(--color-primary);
  padding-right: var(--space-6);
  font-size: clamp(var(--text-lg), 1.5vw + 0.5rem, var(--text-2xl));
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.story-lead-text {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.8;
}

.story-badge-highlight {
  display: inline-block;
  color: var(--color-primary-text);
  font-weight: 700;
}

/* Timeline Ecosystem */
.origin-timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-8) 0;
}

/* Central Continuous Red Line */
.origin-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 2px;
  background: linear-gradient(180deg, rgba(182, 9, 45, 0.2) 0%, #b6092d 40%, #d3123b 80%, rgba(182, 9, 45, 0.4) 100%);
  box-shadow: 0 0 12px rgba(182, 9, 45, 0.5);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-12);
  display: flex;
  align-items: center;
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item-left {
  justify-content: flex-start;
}

.timeline-item-right {
  justify-content: flex-end;
}

.timeline-content {
  width: 44%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.timeline-content:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--glow-red-sm);
}

.timeline-marker {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 16px rgba(182, 9, 45, 0.6);
  font-size: var(--text-xs);
  font-weight: 800;
  color: #ffffff;
}

.timeline-date {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--color-primary-text);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.timeline-heading {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==========================================================================
   3. WHY ANIME PHOENIX / QUALITY PIPELINE (RED & BLACK)
   ========================================================================== */
.quality-section {
  background: radial-gradient(ellipse at 50% 20%, rgba(182, 9, 45, 0.1) 0%, #0a0a0c 60%);
  position: relative;
}

.pipeline-flow-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-16);
  position: relative;
}

.pipeline-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(182, 9, 45, 0.12);
  border: 1px solid rgba(182, 9, 45, 0.3);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
}

.pipeline-icon svg {
  width: 22px;
  height: 22px;
}

.pipeline-step:hover .pipeline-icon {
  background: var(--color-primary);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(182, 9, 45, 0.6);
}

.philosophy-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(182, 9, 45, 0.12);
  border: 1px solid rgba(182, 9, 45, 0.3);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.philosophy-icon-bubble svg {
  width: 22px;
  height: 22px;
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(182, 9, 45, 0.12);
  border: 1px solid rgba(182, 9, 45, 0.25);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.pillar-icon svg {
  width: 20px;
  height: 20px;
}

.pipeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.pipeline-step:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--glow-red-md);
}

.pipeline-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--color-primary-text);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.pipeline-step-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.pipeline-step-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Blu-ray & x265 Technical Split Showcase */
.tech-split-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: stretch;
}

.tech-feature-card {
  background: linear-gradient(135deg, rgba(28, 12, 16, 0.75) 0%, rgba(14, 14, 18, 0.85) 100%);
  border: 1px solid rgba(182, 9, 45, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
}

.tech-feature-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(182, 9, 45, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.tech-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.tech-spec-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.tech-spec-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.tech-spec-value {
  font-size: var(--text-base);
  color: var(--text-primary);
  font-weight: 700;
}

/* Encode card: the x265 counterpart to the Blu-ray card. */
.tech-encode-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.encode-chip {
  background: rgba(182, 9, 45, 0.15);
  color: var(--color-primary-text);
  border: 1px solid rgba(182, 9, 45, 0.3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 900;
  font-family: var(--font-display);
  white-space: nowrap;
}

/* ==========================================================================
   4. VIEWING EXPERIENCE & FEATURES (RED ACCENTS)
   ========================================================================== */
.experience-section {
  background: var(--bg-primary);
  position: relative;
}

.features-dynamic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--glow-red-sm);
}

.feature-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(182, 9, 45, 0.12);
  border: 1px solid rgba(182, 9, 45, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  transition: all var(--transition-fast);
}

.feature-icon-bubble svg {
  width: 26px;
  height: 26px;
}

.feature-box:hover .feature-icon-bubble {
  transform: scale(1.1);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(182, 9, 45, 0.6);
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==========================================================================
   5. PHOENIX LIBRARY ECOSYSTEM (RED BORDERS & HOVERS)
   ========================================================================== */
.library-section {
  background: radial-gradient(circle at 50% 10%, rgba(182, 9, 45, 0.15) 0%, transparent 60%),
              linear-gradient(180deg, #0a0a0c 0%, #0d0d12 50%, #0a0a0c 100%);
  position: relative;
}

/* Interactive Genre Filter Chips */
.genre-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.genre-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.genre-chip:hover {
  border-color: rgba(182, 9, 45, 0.5);
  color: #ffffff;
  background: rgba(182, 9, 45, 0.1);
  transform: translateY(-2px);
}

.genre-chip.active {
  background: var(--grad-red-primary);
  border-color: var(--color-primary-hover);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(182, 9, 45, 0.6);
}

/* Dynamic Genre Spotlight Banner */
.genre-spotlight-box {
  background: linear-gradient(135deg, rgba(28, 12, 16, 0.7) 0%, rgba(14, 14, 18, 0.8) 100%);
  border: 1px solid rgba(182, 9, 45, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-8);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.genre-spotlight-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.genre-spotlight-title {
  font-size: var(--text-base);
  font-weight: 800;
  color: #ffffff;
}

.genre-spotlight-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.library-node-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--color-primary-text);
  background: rgba(182, 9, 45, 0.12);
  border: 1px solid rgba(182, 9, 45, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* Full-series entry point under the ecosystem grid. */
.library-show-all {
  margin-top: var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.library-show-all-hint {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.library-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.library-node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.library-node-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-red-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.library-node-card:hover::before {
  transform: scaleX(1);
}

.library-node-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated), var(--glow-red-md);
}

.library-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.library-node-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.library-node-icon svg {
  width: 22px;
  height: 22px;
}

.library-node-arrow {
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.library-node-card:hover .library-node-arrow {
  color: var(--color-primary-text);
  transform: translateX(-4px); /* RTL forward */
}

.library-node-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.library-node-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Blu-ray node: the one featured destination in the grid. */
.library-node-featured {
  border-color: rgba(182, 9, 45, 0.45);
  background: linear-gradient(135deg, rgba(22, 12, 16, 0.75) 0%, rgba(14, 14, 18, 0.85) 100%);
}

.library-node-icon-featured {
  color: var(--color-primary-text);
  background: rgba(182, 9, 45, 0.15);
}

.library-node-tag-featured {
  background: var(--grad-red-primary);
  color: #ffffff;
  border-color: var(--color-primary-hover);
}

.library-node-title-featured {
  color: var(--color-primary-text);
}

/* ==========================================================================
   6. PREMIUM MEMBERSHIP (CRIMSON RED PROGRESSION)
   ========================================================================== */
.premium-section {
  background: radial-gradient(circle at 50% 30%, rgba(182, 9, 45, 0.14) 0%, rgba(94, 4, 23, 0.05) 50%, #0a0a0c 80%);
  position: relative;
}

.pricing-progression-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.pricing-tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-tier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

/* Tier 1: Ember */
.pricing-tier-ember {
  border-color: rgba(182, 9, 45, 0.25);
}
.pricing-tier-ember:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-elevated), var(--glow-red-sm);
}

/* Tier 2: Flame */
.pricing-tier-flame {
  border-color: rgba(182, 9, 45, 0.4);
}
.pricing-tier-flame:hover {
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-elevated), var(--glow-red-md);
}

/* Tier 3: Soaring */
.pricing-tier-soaring {
  border-color: rgba(182, 9, 45, 0.55);
}
.pricing-tier-soaring:hover {
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-elevated), var(--glow-red-lg);
}

/* Tier 4: Sunfire (Best Value / Sovereign Crimson) */
.pricing-tier-sunfire {
  background: linear-gradient(180deg, rgba(38, 12, 16, 0.9) 0%, rgba(18, 10, 14, 0.95) 100%);
  border: 2px solid var(--color-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), var(--glow-red-md);
}

.pricing-tier-sunfire:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(182, 9, 45, 0.7);
}

.pricing-tier-header {
  margin-bottom: var(--space-6);
}

.pricing-tier-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  min-height: 24px;
}

.pricing-tier-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.pricing-tier-tagline {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.pricing-price-box {
  margin: var(--space-6) 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.pricing-currency {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-text);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--text-primary);
}

.pricing-duration {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-right: var(--space-2);
}

.pricing-features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.pricing-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary-text);
  flex-shrink: 0;
}

/* Sunfire tier: deep crimson accents - the royal tier stays in the Phoenix
   palette, differentiated by its elevated card treatment, not a second hue. */
.pricing-currency-gold {
  color: var(--color-primary-text);
}

.pricing-feature-gold svg {
  color: var(--color-primary-text);
}

.pricing-feature-gold strong,
.pricing-feature-gold span {
  color: var(--text-primary);
}

/* Payment/activation disclosure under the tier grid. */
.pricing-footnote {
  margin-top: var(--space-8);
  margin-bottom: 0;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.pricing-footnote a {
  color: var(--color-primary-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-footnote a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   7. MOBILE APPS & FUTURE (RED ACCENTS)
   ========================================================================== */
.apps-section {
  background: var(--bg-secondary);
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.apps-showcase-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.apps-platforms-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.app-platform-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 240px;
}

.app-platform-icon {
  width: 42px;
  height: 42px;
  color: var(--text-muted);
}

.app-platform-info {
  text-align: right;
}

.app-platform-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
}

.app-platform-status {
  font-size: var(--text-xs);
  color: var(--color-primary-text);
  font-weight: 600;
}

/* ==========================================================================
   8. PHOENIX COMMUNITY NETWORK & SOCIAL (RED THEME)
   ========================================================================== */
.community-section {
  background: radial-gradient(ellipse at 50% 40%, rgba(182, 9, 45, 0.14) 0%, #0a0a0c 70%);
  position: relative;
}

.community-slogan-banner {
  background: rgba(182, 9, 45, 0.1);
  border: 1px solid rgba(182, 9, 45, 0.35);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-8);
  text-align: center;
  color: var(--color-primary-text);
  font-size: var(--text-lg);
  font-weight: 700;
  max-width: 760px;
  margin: 0 auto var(--space-12) auto;
  box-shadow: 0 4px 20px rgba(182, 9, 45, 0.15);
}

.community-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.social-node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-node-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--glow-red-md);
}

.social-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.social-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.social-node-card:hover .social-icon-wrapper {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(182, 9, 45, 0.6);
}

.social-node-info {
  flex-grow: 1;
}

.social-platform-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.social-platform-handle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  direction: ltr;
  text-align: right;
}

.community-interactive-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ==========================================================================
   9. PERMANENT IDENTITY SECTION
   ========================================================================== */
.permanent-identity-section {
  background: var(--bg-primary);
  position: relative;
}

.identity-hub-box {
  background: linear-gradient(135deg, rgba(24, 14, 18, 0.75) 0%, rgba(12, 12, 16, 0.85) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-10);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-10);
  align-items: center;
}

.identity-hub-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.identity-hub-text {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.identity-pillars-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.identity-pillar-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.identity-pillar-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary-text);
  margin-bottom: var(--space-1);
}

.identity-pillar-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   10. FINAL ASCENSION CTA SCENE
   ========================================================================== */
.ascension-section {
  background: radial-gradient(circle at 50% 50%, rgba(182, 9, 45, 0.22) 0%, rgba(94, 4, 23, 0.08) 45%, #0a0a0c 85%);
  padding: var(--space-24) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ascension-content-box {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.ascension-core-mini {
  width: 110px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto var(--space-6) auto;
  filter: drop-shadow(0 0 35px rgba(182, 9, 45, 0.9)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.8));
  animation: emblem-float 4s ease-in-out infinite alternate;
}

.ascension-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw + 0.5rem, var(--text-6xl));
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.ascension-subtitle {
  font-size: clamp(var(--text-lg), 1.5vw + 0.5rem, var(--text-2xl));
  color: var(--color-primary-text);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.ascension-desc {
  color: var(--text-secondary);
  font-size: var(--text-base);
  max-width: 600px;
  margin: 0 auto var(--space-10) auto;
  line-height: 1.8;
}

.ascension-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ==========================================================================
   10.5. FAQ & TRUST ACCORDION (SMART INTERACTIVE ADDITION)
   ========================================================================== */
.faq-section {
  background: linear-gradient(180deg, #0a0a0c 0%, #0e0e13 50%, #0a0a0c 100%);
  position: relative;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item[open] {
  border-color: var(--border-active);
  box-shadow: var(--shadow-card), var(--glow-red-sm);
  background: var(--bg-card-hover);
}

.faq-summary {
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-primary-text);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 var(--space-6) var(--space-6) var(--space-6);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-4);
}

/* ==========================================================================
   11. FOOTER
   Structure and proportions mirror the main platform footer
   (anime-phoenix.com) so the two properties read as one brand. Icons are
   inline SVG rather than the Unicons webfont the main site loads: matching
   the look without a 60 KB third-party font on the critical path, and
   without re-adding an external origin to the Content-Security-Policy.
   ========================================================================== */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-footer);
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

/* Crimson bloom bleeding up from the seam. */
.site-footer::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 100%);
  height: 400px;
  background: radial-gradient(ellipse, rgba(182, 9, 45, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Oversized emblem watermark, barely perceptible. */
.site-footer::after {
  content: '';
  position: absolute;
  right: -4%;
  bottom: -14%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.022) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.footer-top-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-top: var(--space-20);
  padding-bottom: var(--space-16);
}

/* Brand column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer-logo-img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(182, 9, 45, 0.3));
  transition: transform var(--transition-normal);
}

.footer-logo-link:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-brand-desc {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: 46ch;
}

/* Social row */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-1);
}

.footer-social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  transition: background var(--transition-normal), border-color var(--transition-normal),
              transform var(--transition-normal), box-shadow var(--transition-normal);
}

.footer-social-link svg {
  width: 19px;
  height: 19px;
}

.footer-social-link:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-5px) rotate(8deg);
  box-shadow: 0 8px 20px rgba(182, 9, 45, 0.4), 0 0 15px rgba(182, 9, 45, 0.6);
}

.footer-signature-motif {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary-text);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.footer-signature-motif svg {
  flex-shrink: 0;
}

/* Link columns */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.footer-col-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  position: relative;
  padding-bottom: var(--space-3);
}

/* Short crimson rule under each column heading. */
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(182, 9, 45, 0.6);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  width: fit-content;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-link svg {
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-sm);
  box-sizing: content-box;
  flex-shrink: 0;
  transition: color var(--transition-normal), background var(--transition-normal),
              transform var(--transition-normal), box-shadow var(--transition-normal);
}

.footer-link:hover {
  color: var(--text-primary);
  transform: translateX(-6px); /* RTL forward */
}

.footer-link:hover svg {
  color: var(--color-primary-text);
  background: rgba(182, 9, 45, 0.1);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(182, 9, 45, 0.2);
}

/* Bottom bar */
.footer-bottom {
  position: relative;
  z-index: 2;
  background: var(--bg-footer-bottom);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: var(--space-6) 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-copy {
  font-weight: 600;
}

.footer-copy a {
  color: var(--color-primary-text);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.footer-copy a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(182, 9, 45, 0.6);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* Ambient Floating Background Orbs for dynamic atmosphere */
.ambient-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.ambient-orb-red-1 {
  top: 10%;
  right: -5%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(182, 9, 45, 0.22) 0%, rgba(94, 4, 23, 0.05) 60%, transparent 80%);
  animation: ambient-drift 12s ease-in-out infinite alternate;
}

.ambient-orb-red-2 {
  bottom: 5%;
  left: -5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(182, 9, 45, 0.18) 0%, rgba(211, 18, 59, 0.04) 60%, transparent 80%);
  animation: ambient-drift 16s ease-in-out infinite alternate-reverse;
}

/* ==========================================================================
   SECTION EMBLEM WATERMARKS
   The homepage hero's Phoenix core, ghosted into the background of the
   interior sections. Radial mask fade + ultra-slow drift; no glow, no hard
   edges. Decorative only.
   ========================================================================== */
.section-emblem {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 4%;
  transform: translate(0, -50%);
  width: clamp(340px, 38vw, 580px);
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 80%);
  mask-image: radial-gradient(circle, #000 45%, transparent 80%);
  animation: phoenix-emblem-drift 26s ease-in-out infinite alternate;
}

.section-emblem img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.12;
}

.section > .section-emblem ~ .container {
  position: relative;
  z-index: 1;
}

@keyframes phoenix-emblem-drift {
  from { transform: translate(0, -50%); }
  to   { transform: translate(18px, calc(-50% - 16px)); }
}

@media (prefers-reduced-motion: reduce) {
  .section-emblem {
    animation: none;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   Ladder: 1200 / 1100 / 992 / 900 / 768 / 650 / 480 / 380
   Footer steps mirror the main platform (1100 / 992 / 650).
   ========================================================================== */
@media (max-width: 1200px) {
  .pricing-progression-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-flow-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .library-ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer collapses to two columns; brand spans and centres. */
@media (max-width: 1100px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    padding-top: var(--space-16);
  }

  .footer-brand-col {
    grid-column: span 2;
    align-items: center;
    text-align: center;
  }

  .footer-brand-desc {
    max-width: 600px;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-col-title::after {
    right: 50%;
    transform: translateX(50%);
  }

  .footer-link:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 992px) {
  .footer-bottom-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .identity-hub-box {
    padding: var(--space-10) var(--space-6);
  }
}

@media (max-width: 900px) {
  .story-editorial-grid,
  .tech-split-showcase,
  .identity-hub-box {
    grid-template-columns: 1fr;
  }

  .features-dynamic-grid,
  .community-social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .anime-quote-card {
    padding: var(--space-6);
  }

  /* Timeline switches from centre spine to a single right-hand rail. */
  .origin-timeline::before {
    right: 20px;
    transform: none;
  }

  .timeline-item {
    justify-content: flex-start !important;
    padding-right: 52px;
  }

  .timeline-marker {
    right: 3px;
    transform: none;
  }

  .timeline-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pipeline-flow-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-core-wrapper {
    width: 160px;
    height: 178px;
  }

  .hero-core-wrapper::before {
    width: 190px;
    height: 190px;
  }

  .hero-status-strip {
    gap: var(--space-4);
  }

  .genre-spotlight-box {
    padding: var(--space-5);
  }
}

/* Footer to a single column, with links in a two-up grid. */
@media (max-width: 650px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand-col {
    grid-column: span 1;
  }

  .footer-links-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4) var(--space-3);
    width: 100%;
  }

  .footer-link {
    width: 100%;
    justify-content: flex-start;
    font-size: var(--text-xs);
  }
}

@media (max-width: 640px) {
  .pipeline-flow-container,
  .features-dynamic-grid,
  .library-ecosystem-grid,
  .pricing-progression-grid,
  .community-social-grid,
  .identity-pillars-list,
  .tech-spec-grid {
    grid-template-columns: 1fr;
  }

  .apps-showcase-box {
    padding: var(--space-8) var(--space-5);
  }

  .app-platform-card {
    min-width: 0;
    width: 100%;
    padding: var(--space-5);
  }

  .tech-feature-card {
    padding: var(--space-6);
  }

  .story-lead-quote {
    padding-right: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: calc(var(--space-20) + var(--space-6));
  }

  .anime-quote-card {
    padding: var(--space-5);
  }

  .anime-quote-card::before {
    font-size: 100px;
    right: 12px;
  }

  .anime-quote-footer,
  .anime-quote-header {
    gap: var(--space-3);
  }

  .quote-actions {
    width: 100%;
  }

  .quote-actions .btn {
    flex: 1 1 0%;
  }

  .genre-filter-bar {
    gap: var(--space-2);
  }

  .genre-chip {
    font-size: 11px;
    padding: var(--space-2) var(--space-3);
  }

  .genre-spotlight-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .genre-spotlight-box .btn {
    width: 100%;
  }

  .social-node-card {
    padding: var(--space-5);
    gap: var(--space-4);
  }

  .pricing-tier-card,
  .phoenix-card {
    padding: var(--space-6);
  }

  .community-interactive-actions .btn,
  .hero-actions-matrix .btn,
  .ascension-actions .btn {
    width: 100%;
  }

  .footer-social-row {
    justify-content: center;
  }
}

/* Narrowest supported viewport (360px class devices). */
@media (max-width: 380px) {
  .footer-links-list {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding-right: 44px;
  }

  .hero-status-strip {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
}

/* Ultrawide: keep the composition from stretching thin. */
@media (min-width: 1800px) {
  .footer-top-grid,
  .footer-bottom-row {
    max-width: var(--max-width-wide);
    margin-inline: auto;
  }
}
