/* ==========================================================================
   EXORDIUM // PROMOTIONAL SHOWCASE · DESIGN SYSTEM VANGUARDISTA
   Estilo Cyber-Realista / Sub Rosa Low-Poly Metrópole / Terminal Diegético
   ========================================================================== */

:root {
  --bg-deep: #070a0a;
  --bg-card: #101816;
  --bg-card-hover: #152220;
  --bg-surface: #0f1616;
  --bg-glass: rgba(15, 23, 23, 0.92);
  --bg-elevated: #121a19;

  --text-main: #f1f7f5;
  --text-muted: #8fa5a0;
  --text-bright: #ffffff;
  --text-soft: #cbd5e1;

  --brand-teal: #14b8a6;
  --brand-teal-glow: rgba(20, 184, 166, 0.28);
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-crimson: #ef4444;
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-gold: #fbbf24;
  --accent-orange: #f97316;
  --accent-emerald: #10b981;

  --border-subtle: rgba(45, 212, 191, 0.14);
  --border-active: rgba(45, 212, 191, 0.42);
  --border-alert: rgba(239, 68, 68, 0.45);

  --font-mono: 'IBM Plex Mono', 'Cascadia Code', Consolas, ui-monospace, monospace;
  --font-sans: 'Source Sans 3', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-display: 'Archivo', 'Arial Black', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --shadow-depth: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 18px rgba(20, 184, 166, 0.08);
  --shadow-crimson: 0 0 18px rgba(239, 68, 68, 0.12);

  --rail: 2px;
  --space-section: 40px;
  --motion-fast: 0.18s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Fundo: grade terminal discreta (sem glow radial de template) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 14, 0.35) 0%, transparent 28%);
  pointer-events: none;
  z-index: 0;
}

/* Top Navigation Bar */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 10, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge .logo-symbol {
  width: 38px;
  height: 38px;
  background: #0f5459;
  border: 1px solid var(--brand-teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title .title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-title .subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--brand-teal);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--border-active);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sound-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

.sound-toggle-btn.active {
  background: rgba(20, 184, 166, 0.12);
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

/* Layout Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  position: relative;
  z-index: 1;
}

/* Header & Eyebrows */
.section-header {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
}

.eyebrow--flush { margin: 0; }
.eyebrow--amber { color: var(--accent-amber); }
.eyebrow--gold { color: var(--accent-gold); }
.eyebrow--crimson { color: var(--accent-crimson); }
.eyebrow--cyan { color: var(--accent-cyan); }
.eyebrow--blue { color: #60a5fa; }
.eyebrow--purple { color: #c084fc; }
.eyebrow--orange { color: #fb923c; }
.eyebrow--emerald { color: #34d399; }
.eyebrow--yellow { color: #fde047; }

.text-brand { color: var(--brand-teal); }
.section-block { margin-bottom: var(--space-section); }
.section-block--lg { margin-bottom: 50px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 75ch;
}

/* Badges & Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-teal {
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
  border-color: rgba(20, 184, 166, 0.3);
}

.tag-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.tag-crimson {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.tag-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}

.tag-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
}

.tag-orange {
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.32);
}

.tag-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.32);
}

.tag-gold {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.32);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag--fit { width: fit-content; }
.tag--sm { font-size: 11px; }

/* Cards & Surface */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Fixed 2×2 layout (e.g. The 4 Pillars) — avoids 3+1 orphan row */
.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  --card-accent: var(--border-subtle);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-inline-start: var(--rail) solid var(--card-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--motion-fast), border-color var(--motion-fast);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.card--flush { padding: 0; gap: 0; border-inline-start-width: 1px; border-inline-start-color: var(--border-subtle); }
.card--compact { padding: 16px; gap: 12px; }
.card--stack { margin-bottom: var(--space-section); }
.card--stack:last-child { margin-bottom: 0; }

.card--teal { --card-accent: var(--brand-teal); }
.card--amber { --card-accent: var(--accent-amber); }
.card--gold { --card-accent: var(--accent-gold); }
.card--crimson { --card-accent: var(--accent-crimson); }
.card--cyan { --card-accent: var(--accent-cyan); }
.card--blue { --card-accent: var(--accent-blue); }
.card--purple { --card-accent: var(--accent-purple); }
.card--orange { --card-accent: var(--accent-orange); }
.card--emerald { --card-accent: var(--accent-emerald); }
.card--yellow { --card-accent: #eab308; }
.card--neutral { --card-accent: var(--border-subtle); border-inline-start-width: 1px; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  margin-top: 4px;
  line-height: 1.2;
}

.card-title--lg { font-size: 28px; }

.card-lead {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 8px;
  line-height: 1.55;
}

.card-subhead {
  color: #fff;
  font-size: 19px;
  margin-bottom: 12px;
}

.card-kicker {
  color: #fff;
  font-size: 17px;
  margin-top: 8px;
}

.card-kicker--lg {
  font-size: 18px;
  margin-top: 10px;
}

.card-copy {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

.card-copy--sm {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.card-copy--xs {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.feature-list {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.feature-list--soft {
  color: var(--text-soft);
  font-size: 14.5px;
  gap: 10px;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.feature-grid--sm {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.feature-grid--md {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-img-wrap--tall { aspect-ratio: 16 / 10; }
.card-img-wrap--hero {
  aspect-ratio: 16 / 9;
  max-height: 560px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: block;
}

.panel-stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-stat-card--warn { border-top-color: #eab308; }
.panel-stat-card--alert { border-top-color: var(--accent-orange); }
.panel-stat-card--danger { border-top-color: var(--accent-crimson); }

.panel-stat-card h3 {
  color: #fff;
  font-size: 18px;
  margin-top: 8px;
}

.panel-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel-stat-val {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
}

.stat-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-tile strong,
.stat-tile .stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  line-height: 1.1;
}

.stat-tile span { font-size: 12px; color: var(--text-muted); }

.price-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-tile .price-name {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}

.price-tile .price-value { font-size: 13px; color: #34d399; }
.price-tile .price-value--info { color: #38bdf8; }
.price-tile .price-note { font-size: 12px; color: var(--text-muted); }

.info-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-inline-start: 2px solid var(--border-active);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.info-tile--blue { border-inline-start-color: #60a5fa; }

.info-tile h5 {
  color: #fff;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.note-box {
  margin-top: 20px;
  background: rgba(20, 184, 166, 0.05);
  border: 1px solid var(--border-subtle);
  border-inline-start: 2px solid var(--brand-teal);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.note-box--blue {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.24);
  border-inline-start-color: #60a5fa;
}

.note-box--amber {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.24);
  border-inline-start-color: var(--accent-amber);
}

.note-box--danger {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.24);
  border-inline-start-color: var(--accent-crimson);
}

.note-box h4 {
  font-family: var(--font-display);
  font-size: 15px;
  color: #fff;
}

.note-box p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 4px;
}

.feature-panel {
  margin-top: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.feature-panel--blue {
  border-color: rgba(59, 130, 246, 0.28);
}

.feature-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.feature-panel-head h3 {
  color: #fff;
  font-size: 22px;
  margin-top: 6px;
}

.mono-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.mono-chip--blue {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
}

.map-hero {
  position: relative;
}

.map-hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.map-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 10, 10, 0.92) 92%);
  pointer-events: none;
}

.map-hero-copy {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.map-hero-copy h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  margin-top: 6px;
}

.map-hero-copy p {
  color: var(--text-soft);
  font-size: 14.5px;
  max-width: 65ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.kb-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.kb-head h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  margin-top: 4px;
}

.trailer-meta-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  margin-left: 8px;
}

.trailer-meta-audio {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
}

.tone-ok { color: #34d399; }
.tone-warn { color: #fde047; }
.tone-alert { color: #fb923c; }
.tone-danger { color: #ef4444; }
.tone-soft { color: #fca5a5; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-26 { margin-top: 26px; }

.rules-table {
  width: 100%;
  border-collapse: collapse;
}

.rules-table th,
.rules-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.rules-table th {
  padding: 10px 14px;
  color: var(--brand-teal);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rules-table td { color: var(--text-muted); }
.rules-table td:first-child { color: #fff; }

.table-scroll {
  overflow-x: auto;
  margin-top: 16px;
}

/* Callout Box — painel diegético, sem glow/gradiente genérico */
.callout-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-inline-start: var(--rail) solid var(--brand-teal);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 32px 0;
}

.callout-banner.alert-crimson {
  border-color: rgba(239, 68, 68, 0.28);
  border-inline-start-color: var(--accent-crimson);
}

.callout-banner h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.callout-banner.alert-crimson p { color: #fca5a5; font-size: 13.5px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-teal);
  color: #041210;
}

.btn-primary:hover {
  background: #2dd4bf;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-active);
  background: rgba(20, 184, 166, 0.1);
  color: #ffffff;
}

.btn-crimson {
  background: var(--accent-crimson);
  color: #ffffff;
}

.btn-crimson:hover {
  background: #dc2626;
}

/* Modal Lightbox Expandido em Tamanho Gigante */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 7, 0.94);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(11, 18, 18, 0.98);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  max-width: 98vw;
  max-height: 98vh;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 14px;
  position: relative;
  box-shadow: var(--shadow-depth);
  overflow: hidden;
}

.modal-image-container {
  max-width: 96vw;
  max-height: 86vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: #000;
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.modal-content img#modalImage {
  max-width: 95vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: max-width 0.2s ease, max-height 0.2s ease;
}

/* Modo 100% Original */
.modal-content img#modalImage.is-original-size {
  max-width: none !important;
  max-height: none !important;
  width: auto !important;
  height: auto !important;
  cursor: zoom-out;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-active);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--accent-crimson);
  border-color: var(--accent-crimson);
}

.modal-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 10px;
  gap: 16px;
  font-family: var(--font-mono);
}

.modal-caption {
  font-size: 13.5px;
  color: #2dd4bf;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.modal-action-btn {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid var(--border-active);
  color: #2dd4bf;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-action-btn:hover {
  background: var(--brand-teal);
  color: #041210;
}

.modal-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.card-img-wrap, .dialog-media, .dialog-avatar, .quick-bite-thumb {
  cursor: zoom-in;
}


/* Footer */
footer.site-footer {
  background: #040707;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-quote {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #5eead4;
}

.footer-credit {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.footer-credit a {
  color: #5eead4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.footer-credit a:hover {
  color: #fff;
  border-bottom-color: rgba(94, 234, 212, 0.45);
}

/* Responsividade */
@media (max-width: 900px) {
  .nav-links {
    display: none; /* Mobile menu handled via drawer or wrap */
  }
  .card-grid:not(.card-grid--2),
  .split-2 {
    grid-template-columns: 1fr;
  }

  .card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .card-grid--2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card-grid--2 .card {
    padding: 18px;
  }
}

@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;
  }
}


/* ==========================================================================
   MOBILE NAVIGATION (HAMBURGER, DRAWER & BOTTOM DOCK) & TRAILER
   ========================================================================== */

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 40px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  transition: all 0.2s ease;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #2dd4bf;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 290px;
  height: 100vh;
  height: 100dvh;
  background: #0b1212;
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 28px rgba(0, 0, 0, 0.75);
  z-index: 10000;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: var(--accent-crimson);
  border-color: var(--accent-crimson);
}

.mobile-nav-list {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-list a {
  text-decoration: none;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-list a.active,
.mobile-nav-list a:hover {
  color: #fff;
  background: rgba(20, 184, 166, 0.12);
  border-color: var(--border-active);
}

.mobile-drawer-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Trailer Video Container */
.trailer-container {
  margin-top: 28px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-depth);
  background: #000;
}

.trailer-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.trailer-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.trailer-meta-bar {
  background: rgba(11, 18, 18, 0.95);
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  gap: 10px;
}

/* Mobile Bottom Dock */
.mobile-bottom-dock {
  display: none;
}

/* Responsividade Aprimorada */
@media (max-width: 900px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .card-grid:not(.card-grid--2) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px !important; /* Espaço para o dock inferior */
  }

  .mobile-bottom-dock {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #070c0c;
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.55);
    z-index: 9000;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
  }

  .mobile-bottom-dock .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    padding: 6px 4px;
    flex: 1;
    gap: 3px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
  }

  .mobile-bottom-dock .dock-item .dock-icon {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-bottom-dock .dock-item.active,
  .mobile-bottom-dock .dock-item:hover {
    color: #2dd4bf;
    background: rgba(20, 184, 166, 0.12);
  }

  .mobile-bottom-dock .dock-item.active .dock-icon {
    color: #2dd4bf;
  }

  .top-nav {
    padding: 10px 16px;
  }

  .brand-title .subtitle {
    display: none;
  }

  .section-title {
    font-size: clamp(26px, 6vw, 36px) !important;
  }

  .trailer-meta-bar {
    padding: 10px 14px;
    font-size: 13px;
  }
}


/* Language Switcher Buttons */
.lang-switch-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--brand-teal);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.lang-switch-btn:hover {
  border-color: var(--brand-teal);
  background: rgba(20, 184, 166, 0.12);
  color: #fff;
}

.mobile-drawer-lang {
  padding: 14px 0 6px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 6px;
}

.mobile-drawer-lang a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--brand-teal);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.mobile-drawer-lang a:hover {
  background: var(--brand-teal);
  color: #041210;
}


/* Header logo: the rendered 3D "project EXOR" mark (alpha PNG/WebP) */
.brand-badge .brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}
.brand-badge picture { display: block; line-height: 0; }
@media (max-width: 768px) {
  .brand-badge .brand-logo { height: 34px; }
}

/* Phosphor Icons — sizing aligned to UI chrome */
.ph {
  display: inline-block;
  line-height: 1;
  vertical-align: -0.125em;
  speak: never;
}

.nav-icon,
.dock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  flex-shrink: 0;
}

.nav-icon .ph { font-size: 1.15em; }
.dock-icon .ph { font-size: 1.25em; }

.btn .ph,
.sound-toggle-btn .ph,
.lang-switch-btn .ph,
.modal-action-btn .ph,
.callout-banner h4 .ph,
.note-box h4 .ph,
.cue-pill .ph,
.node-sequence-badge .ph,
.board-icon .ph {
  margin-inline-end: 0.35em;
}

.mobile-drawer-close .ph,
.modal-close-btn .ph {
  margin: 0;
  font-size: 1.1em;
  vertical-align: 0;
}

.mobile-drawer-lang a .ph,
.lang-switch-btn .ph {
  margin-inline-end: 0.3em;
}
