/* ==========================================================================
   LANDING PAGE (HUB) DESIGN SYSTEM - NETFLIX RED & WEBGL SHADER PARALLAX
   ========================================================================== */

/* Custom Extenda Fonts */
@font-face {
  font-family: 'Extenda';
  src: url('Extenda-80-Peta-trial.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Extenda-Hecto';
  src: url('Extenda-40-Hecto-trial.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color Palette - Matching /portfolio exact scheme */
  --bg-primary: #141414;
  --bg-secondary: #181818;
  --bg-card: #1f1f1f;
  --bg-card-hover: #262626;
  --bg-modal: #181818;

  --netflix-red: #E50914;
  --netflix-red-hover: #F40612;
  --netflix-red-glow: rgba(229, 9, 20, 0.4);

  --text-primary: #FFFFFF;
  --text-secondary: #E5E5E5;
  --text-muted: #d1d5db;
  --text-dim: #9ca3af;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(229, 9, 20, 0.5);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
}

/* Ambient Red Glow Backdrops */
.background-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(0);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  -webkit-filter: blur(80px);
  opacity: 0.18;
  transform: translateZ(0);
}

.glow-orb-red1 {
  top: -10%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--netflix-red) 0%, transparent 70%);
}

.glow-orb-red2 {
  bottom: 10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--netflix-red) 0%, transparent 70%);
  opacity: 0.12;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
}

/* Header Navigation */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.75rem 3rem;
  padding-top: max(1.75rem, env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

/* ==========================================================================
   OSMO PARALLAX ENGINE - DEPTH LAYERING ARCHITECTURE
   ========================================================================== */

.parallax {
  position: relative;
  width: 100%;
  z-index: auto;
  background: transparent;
  overflow: visible;
}

.parallax__header {
  position: relative;
  width: 100%;
  height: 115vh;
  min-height: 720px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ROOT LEVEL 1: Visuals Container (WebGL Shader Canvas strictly clipped) */
.parallax__visuals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.parallax__shader-canvas {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 150%;
  object-fit: cover;
  pointer-events: none;
  will-change: transform;
  filter: blur(12px);
  transform: scale(1.15);
}

.parallax__layers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* ROOT LEVEL 5: Giant Title Typography Container */
.parallax__layer-title {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 100%;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
}

.parallax__title {
  font-family: 'Extenda-Hecto', 'Bebas Neue', sans-serif;
  font-size: clamp(6.5rem, 20vw, 19.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.82;
  white-space: nowrap;
  color: #FFFFFF;
  background: none;
  -webkit-text-fill-color: initial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.95));
}

.parallax__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.25rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

/* Indicador de Scroll Animado Discreto */
.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-indicator__mouse {
  width: 20px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-indicator__wheel {
  width: 3px;
  height: 6px;
  background-color: var(--netflix-red);
  border-radius: 2px;
  margin-top: 6px;
  animation: scrollWheelAnim 1.8s infinite ease-in-out;
}

.scroll-indicator__text {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

@keyframes scrollWheelAnim {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   DECISION HUB SECTION (ROOT LEVEL 20) - HIGHLIGHTED FLOOR STAGE (#181818)
   ========================================================================== */

.page-container {
  position: relative;
  z-index: 20;
  width: 100%;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -25px 60px rgba(0, 0, 0, 0.95);
  max-width: 100%;
  margin-top: -48vh;
  padding: 0 2rem 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.parallax__person-picture {
  display: contents;
}

.parallax__person-img {
  position: absolute;
  top: -650px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 980px;
  max-height: 980px;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  will-change: transform;
  filter: none;
  z-index: 50;

  /* Fade suave na base da foto para remover corte seco */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 96%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 96%);
}

/* Faixa de Autoridade / Prova Social */
.authority-bar {
  width: 100%;
  max-width: 1200px;
  margin-top: 22rem;
  margin-bottom: 2rem;
  background: rgba(24, 24, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.authority-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.25rem 0;
}

.authority-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.authority-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(229, 9, 20, 0.12);
  color: var(--netflix-red);
}

.authority-icon--star {
  background: rgba(255, 184, 28, 0.12);
  color: #ffb81c;
}

.authority-info {
  display: flex;
  flex-direction: column;
}

.authority-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.authority-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Introductory Text */
.hub-intro {
  text-align: center;
  max-width: 720px;
  margin-top: 1.5rem;
  margin-bottom: 2.75rem;
}

.hub-intro p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* The 2 Primary Decision Cards */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.25rem;
  width: 100%;
  max-width: 1200px;
  align-items: stretch;
}

.decision-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease, 
              box-shadow 0.35s ease, 
              background 0.35s ease;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .decision-card:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 9, 20, 0.65);
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 20px 45px -10px rgba(229, 9, 20, 0.3), 
                0 0 25px rgba(229, 9, 20, 0.12);
  }
}

.decision-card:active {
  transform: scale(0.99);
}

.decision-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.card-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.feature-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.2);
  color: var(--netflix-red);
  font-weight: bold;
  font-size: 0.85rem;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-netflix {
  background: var(--netflix-red);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--netflix-red-glow);
}

@media (hover: hover) and (pointer: fine) {
  .btn-netflix:hover {
    background: var(--netflix-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
  }
}

.btn-netflix:active {
  transform: scale(0.97);
  background: var(--netflix-red-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
  }
}

.btn-outline:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.97);
}

/* ==========================================================================
   MODAL POPUP STYLING (FIXED OVERLAY - NEVER INLINE)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  padding-top: max(1.5rem, env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1;
}

.modal-box {
  background: var(--bg-modal);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  margin: auto;
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  touch-action: manipulation;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #fff;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 16px; /* Previne auto-zoom incontrolável no iOS Safari */
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--netflix-red);
}

/* Footer */
.main-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2.5rem 2rem;
  padding-bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom)));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: var(--bg-primary);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive Media Queries */
/* Notebooks & Laptops (1024px - 1440px / telas com altura reduzida) */
@media (min-width: 769px) and (max-width: 1440px), (min-width: 769px) and (max-height: 850px) {
  .parallax__header {
    height: 96vh;
    min-height: 560px;
  }

  .parallax__layer-title {
    top: 20%;
  }

  .parallax__title {
    font-size: clamp(4.2rem, 12vw, 8.5rem);
  }

  .page-container {
    margin-top: -38vh;
    padding: 0 1.5rem 5rem 1.5rem;
  }

  .parallax__person-img {
    height: clamp(520px, 72vh, 720px);
    max-height: 720px;
    top: clamp(-490px, -48vh, -380px);
  }

  .authority-bar {
    margin-top: 14rem;
    padding: 1rem 1.5rem;
  }

  .options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .decision-card {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 768px) {
  .glow-orb {
    filter: blur(50px);
    -webkit-filter: blur(50px);
    opacity: 0.15;
  }

  .glow-orb-red1 {
    width: 320px;
    height: 320px;
  }

  .glow-orb-red2 {
    width: 280px;
    height: 280px;
  }

  .parallax__shader-canvas {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    transform: scale(1.05);
  }

  .main-header {
    padding: 1rem 1.5rem;
  }

  .parallax__header {
    height: 60vh;
    height: 60dvh;
    min-height: 400px;
    max-height: 520px;
  }

  .parallax__layer-title {
    top: 20%;
  }

  .parallax__title {
    font-size: clamp(3.6rem, 15vw, 6.5rem);
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 0.88;
  }

  .parallax__subtitle {
    font-size: 0.88rem;
    margin-top: 0.85rem;
  }

  .parallax__chair-floor {
    width: 440px;
    height: 60px;
  }

  .parallax__person-img {
    height: 480px;
    max-height: 480px;
    top: -300px;
  }

  .page-container {
    margin-top: -28vh;
    margin-top: -28dvh;
    padding: 0 1.25rem 4rem 1.25rem;
  }

  .authority-bar {
    margin-top: 8rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .authority-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    min-width: max-content;
  }

  .authority-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 1.25rem;
  }

  .hub-intro {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .hub-intro p {
    font-size: 1.1rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .decision-card {
    padding: 2rem 1.5rem;
  }

  .card-title {
    font-size: 1.75rem;
  }

  .card-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .feature-item {
    font-size: 0.98rem;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .parallax__header {
    height: 52vh;
    height: 52dvh;
    min-height: 350px;
    max-height: 430px;
  }

  .parallax__layer-title {
    top: 18%;
  }

  .parallax__title {
    font-size: clamp(2.8rem, 13.5vw, 4.6rem);
    letter-spacing: 0.01em;
    line-height: 0.88;
  }

  .parallax__subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }

  .parallax__person-img {
    height: 390px;
    max-height: 390px;
    top: -245px;
  }

  .page-container {
    margin-top: -26vh;
    margin-top: -26dvh;
    padding: 0 1rem 3rem 1rem;
  }

  .authority-bar {
    margin-top: 7rem;
    padding: 0.85rem 1rem;
  }

  .decision-card {
    padding: 1.6rem 1.35rem;
    border-radius: var(--radius-md);
  }

  .card-title {
    font-size: 1.6rem;
  }

  .card-desc {
    font-size: 0.96rem;
  }

  .feature-item {
    font-size: 0.92rem;
  }

  .btn {
    padding: 13px 18px;
    font-size: 0.98rem;
  }
}