
/* ==========================================================================
   RESET & ROOT DESIGN SYSTEM (FONT: PLUS JAKARTA SANS)
   ========================================================================== */
:root {
  --bg-page: #e7e8eb;
  --panel-bg: #f4f4f6;
  --panel-border: #141416;
  --text-primary: #111111;
  --text-muted: #88888e;
  --text-subtle: #5f5f64;
  --accent-black: #111111;
  --accent-white: #ffffff;
  --pill-bg: #111111;
  --pill-text: #ffffff;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --panel-radius: 38px;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);

  /* Cores Seção 2 */
  --portal-bg: #000000;
  --portal-text-primary: #ffffff;
  --portal-text-muted: #71717a;
  --portal-accent-pink: #f43f5e;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--portal-bg);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* ==========================================================================
   SCROLL TRACK (CRIA A EXTENSÃO DE ROLAGEM) & PALCO FIXO
   ========================================================================== */
.scroll-curtain-track {
  position: relative;
  width: 100%;
  height: 250vh;
}

.scroll-curtain-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--portal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* ==========================================================================
   SEÇÃO 1: HERO CONTAINER & PAINÉIS LATERAIS (CORTINA)
   ========================================================================== */
.hero-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 20px;
  z-index: 10;
  pointer-events: auto;
  box-sizing: border-box;
}

.hero-panel {
  background-color: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: var(--panel-radius);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 48px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
  will-change: transform, opacity;
  transition: transform 0.03s linear, opacity 0.05s linear;
}

.panel-left {
  border-top-right-radius: var(--panel-radius);
  border-bottom-right-radius: var(--panel-radius);
  transform-origin: left center;
}

.panel-right {
  margin-left: -2px;
  border-top-left-radius: var(--panel-radius);
  border-bottom-left-radius: var(--panel-radius);
  transform-origin: right center;
}

/* Conteúdo Painel Esquerdo */
.panel-left-top {
  display: flex;
  align-items: center;
  gap: 48px;
  z-index: 3;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--accent-black);
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.06);
}

.logo-icon {
  width: 30px;
  height: 30px;
  display: block;
}

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

.nav-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.panel-left-bottom {
  margin-top: auto;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.hero-heading {
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 440px;
}

.hero-heading .muted-span {
  color: var(--text-muted);
}

/* CTA Pill Button */
.cta-pill-group {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background-color: var(--pill-bg);
  border: 2px solid var(--accent-black);
  border-radius: 999px;
  padding: 4px 5px 4px 28px;
  gap: 18px;
  transition: var(--transition-smooth);
  cursor: pointer;
  user-select: none;
}

.cta-pill-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--pill-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cta-pill-circle {
  width: 44px;
  height: 44px;
  background-color: var(--accent-white);
  border: 2px solid var(--accent-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-black);
  transition: var(--transition-smooth);
}

.cta-pill-circle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-pill-group:hover {
  background-color: #202024;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.cta-pill-group:hover .cta-pill-circle svg {
  transform: translateX(3px);
}

/* Conteúdo Painel Direito */
.panel-right-bottom {
  margin-top: auto;
  align-self: flex-end;
  max-width: 440px;
  z-index: 3;
  text-align: left;
}

.copy-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.copy-description {
  font-size: clamp(14px, 1.22vw, 16px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.mobile-hero-subheadline {
  display: none;
}

/* ==========================================================================
   IMAGEM CENTRAL HERO (SOBREPOSTA, TAMANHO EXATO DA REF 1)
   ========================================================================== */
.hero-center-container {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(430px, 75vh, 670px);
  width: auto;
  will-change: transform, filter;
}

.hero-center-img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.22));
  will-change: transform;
}

.hero-glow-backdrop {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 150px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.32) 0%, rgba(244, 63, 94, 0) 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* ==========================================================================
   SEÇÃO 2: MODO NOTURNO (TÍTULO SUPERIOR & BLOCO ESTRATÉGICO)
   ========================================================================== */
.section-portal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--portal-bg);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform, opacity;
  transform-origin: center center;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.portal-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.08);
  filter: blur(110px);
  pointer-events: none;
}

/* Container do Portal com distribuição equilibrada */
.portal-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1500px;
  height: 100%;
  max-height: 100vh;
  padding: 30px 48px 24px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 12;
}

/* Título Centralizado na Parte Superior */
.portal-header-center {
  --header-reveal-opacity: 0;
  --header-reveal-y: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  z-index: 30;
  margin-top: clamp(72px, 12vh, 118px);
  opacity: var(--header-reveal-opacity);
  transform: translate3d(0, var(--header-reveal-y), 0);
  will-change: transform, opacity;
}

.portal-main-title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
  max-width: 800px;
}

.portal-main-title .muted-span {
  color: var(--portal-text-muted);
}

.portal-lead-text {
  font-size: clamp(13px, 1.05vw, 15px);
  color: #9ca3af;
  font-weight: 500;
  max-width: 620px;
  line-height: 1.45;
  margin-top: 2px;
}

/* Grid Estratégico Distribuído ao Redor do Personagem */
.portal-strategic-grid {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr minmax(300px, 360px);
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: auto 0;
  z-index: 30;
}

/* Cards Estratégicos (Esquerda e Direita) */
.strategic-card {
  --card-reveal-opacity: 0;
  --card-reveal-y: 42px;
  --card-reveal-scale: 0.96;
  --card-reveal-blur: 16px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.035) 42%, rgba(10, 12, 18, 0.12) 100%),
    rgba(12, 14, 20, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  min-height: 190px;
  padding: 34px 30px;
  backdrop-filter: blur(36px) saturate(145%);
  -webkit-backdrop-filter: blur(36px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045),
    inset 16px 0 32px rgba(255, 255, 255, 0.025),
    0 24px 70px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(116, 149, 204, 0.06);
  transition: var(--transition-smooth);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: var(--card-reveal-opacity);
  transform: translate3d(0, var(--card-reveal-y), 0) scale(var(--card-reveal-scale));
  filter: blur(var(--card-reveal-blur));
  will-change: transform, opacity, filter;
}

/* Reflexos difusos criam o aspecto de vidro espesso da referência. */
.strategic-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 10% 0%, rgba(190, 211, 243, 0.22), transparent 34%),
    radial-gradient(circle at 92% 20%, rgba(126, 154, 202, 0.16), transparent 38%),
    linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.06) 50%, transparent 64%);
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.strategic-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: 27px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 18px 34px rgba(255, 255, 255, 0.025),
    inset 0 -28px 44px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.strategic-card > * {
  position: relative;
  z-index: 1;
}

.strategic-card:hover {
  border-color: rgba(255, 255, 255, 0.34);
  transform: translate3d(0, calc(var(--card-reveal-y) - 5px), 0) scale(var(--card-reveal-scale));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.045) 46%, rgba(10, 12, 18, 0.14) 100%),
    rgba(12, 14, 20, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 30px 80px rgba(0, 0, 0, 0.56),
    0 0 54px rgba(116, 149, 204, 0.1);
}

.strategic-card:hover::before {
  opacity: 1;
  transform: scale(1.04) translate3d(1%, -1%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .portal-header-center {
    --header-reveal-opacity: 1 !important;
    --header-reveal-y: 0px !important;
  }

  .strategic-card {
    --card-reveal-opacity: 1 !important;
    --card-reveal-y: 0px !important;
    --card-reveal-scale: 1 !important;
    --card-reveal-blur: 0px !important;
  }
}

.strategic-card-title {
  font-size: clamp(21px, 1.7vw, 26px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.strategic-card-desc {
  max-width: 30ch;
  font-size: 13px;
  font-weight: 400;
  color: #a4a8b1;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Espaço central reservado para a Imagem */
.portal-center-spacer {
  min-height: 240px;
  pointer-events: none;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 1120px) {
  .portal-strategic-grid {
    grid-template-columns: minmax(220px, 320px) 1fr minmax(220px, 320px);
    gap: 14px;
  }

  .strategic-card {
    min-width: 0;
  }

  .hero-center-container {
    height: clamp(340px, 58vh, 490px);
    bottom: 18px;
    opacity: 0.95;
  }
}

@media (max-width: 720px) {
  .scroll-curtain-track {
    height: 280vh;
    height: 280svh;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
    gap: 1px;
    padding: 8px;
  }

  .hero-panel {
    min-width: 0;
    min-height: 0;
    padding: 18px 16px;
    border-width: 1.5px;
  }

  .panel-left {
    z-index: 2;
    overflow: visible;
    border-radius: 24px 0 0 24px;
    border-right: 0;
  }

  .panel-right {
    z-index: 1;
    margin-left: 0;
    overflow: hidden;
    border-radius: 0 24px 24px 0;
    border-left: 0;
  }

  .panel-left-top {
    position: relative;
    z-index: 30;
    width: calc(200% - 16px);
    gap: 14px;
  }

  .hero-nav {
    display: none;
  }

  .logo-icon {
    width: 26px;
    height: 26px;
  }

  .panel-left-bottom {
    position: relative;
    z-index: 30;
    width: calc(200% + 14px);
    margin-top: clamp(70px, 11dvh, 105px);
    margin-bottom: auto;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .hero-heading {
    max-width: 340px;
    font-size: clamp(25px, 8vw, 32px);
    line-height: 1.02;
  }

  .cta-pill-group {
    order: 3;
    margin-top: 4px;
    padding: 3px 4px 3px 20px;
    gap: 12px;
  }

  .cta-pill-text {
    font-size: 11px;
  }

  .cta-pill-circle {
    width: 38px;
    height: 38px;
  }

  .panel-right-bottom {
    display: none;
  }

  .mobile-hero-subheadline {
    display: block;
    order: 2;
    max-width: 330px;
    margin-top: 4px;
    text-align: center;
  }

  .mobile-hero-subheadline .copy-eyebrow {
    margin-bottom: 6px;
    font-size: 8px;
  }

  .mobile-hero-subheadline .copy-description {
    font-size: clamp(11.5px, 3.2vw, 13px);
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-primary);
  }

  .portal-main-title {
    max-width: 340px;
    font-size: clamp(21px, 6.4vw, 27px);
    line-height: 1.1;
  }

  .portal-header-center {
    width: 100%;
    gap: 8px;
    margin-top: clamp(38px, 7dvh, 62px);
    padding: 0 4px;
  }

  .portal-lead-text {
    max-width: 360px;
    font-size: clamp(11px, 3.25vw, 13px);
    line-height: 1.5;
  }

  .portal-content-wrapper {
    max-height: 100dvh;
    padding: 14px 12px 12px;
  }

  .portal-strategic-grid {
    position: absolute;
    top: clamp(220px, 34dvh, 300px);
    left: 12px;
    right: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: auto;
    margin: 0;
    z-index: 50;
  }

  .portal-center-spacer {
    display: none;
  }

  .strategic-card {
    width: 100%;
    min-height: 154px;
    padding: 16px 12px;
    border-radius: 20px;
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
  }

  .strategic-card::after {
    border-radius: 19px;
  }

  .strategic-card-title {
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .strategic-card-desc {
    max-width: none;
    font-size: clamp(9.5px, 2.6vw, 10.5px);
    line-height: 1.4;
  }

  .hero-center-container {
    height: clamp(230px, 40dvh, 310px);
    bottom: 10px;
    opacity: 1;
    z-index: 40;
  }

  .hero-glow-backdrop {
    width: 150px;
    height: 110px;
    filter: blur(24px);
  }
}

@media (max-width: 420px) {
  .strategic-card {
    min-height: 150px;
    padding: 15px 11px;
  }

  .strategic-card-title {
    font-size: clamp(14.5px, 4.2vw, 17px);
  }

  .strategic-card-desc {
    font-size: clamp(9px, 2.55vw, 10px);
    line-height: 1.4;
  }
}

@media (max-width: 720px) and (max-height: 700px) {
  .portal-header-center {
    margin-top: 26px;
  }

  .portal-main-title {
    font-size: clamp(19px, 5.8vw, 24px);
  }

  .portal-lead-text {
    font-size: 10.5px;
  }

  .strategic-card {
    min-height: 142px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero-center-container {
    height: clamp(205px, 36dvh, 250px);
  }
}
