/* ============================================================
   VOLARE LANDING PAGE — DESIGN REFINADO
   ============================================================ */

/* -----------------------------------------------------------
   Tokens & Reset
   ----------------------------------------------------------- */
:root {
  --color-black: #090a09;
  --color-cream: #f6f4ef;
  --color-cream-dark: #ebe7dd;
  --color-green-dark: #2f3b2c;
  --color-green-mid: #4a5d45;
  --color-green-light: #8fa886;
  --color-gold: #c4b49a;
  --color-gold-muted: #a89b84;
  --color-text: #2c2c2c;
  --color-text-light: #6e6e6e;
  --radius: 4px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.12);
  --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

/* -----------------------------------------------------------
   INTRO SECTION
   ----------------------------------------------------------- */
.intro-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: var(--color-black);
  position: relative;
  z-index: 30;
  overflow: hidden;
}

/* Orbs gradiente sutil — blur reduzido para evitar GPU overload */
.intro-section::before,
.intro-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
  pointer-events: none;
  will-change: transform;
}

.intro-section::before {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, var(--color-green-light), transparent 70%);
  top: -10%;
  left: -10%;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.intro-section::after {
  width: 30vw;
  height: 30vw;
  max-width: 400px;
  max-height: 400px;
  background: radial-gradient(circle, var(--color-gold), transparent 70%);
  bottom: -10%;
  right: -10%;
  animation: orbFloat 16s ease-in-out infinite alternate-reverse;
}

/* Grain texture overlay — versão leve com PNG em vez de SVG filter */
.intro-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYHCw8d8uR5nQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAQ0lEQVQ4y2NgYGD4z0ABYBw1gGE0DIBhNAyAYTQMgGE0DIBhNAyAYTQMgGE0DIBhNAyAYTQMgGE0DIBhNAyAYTQMgGE0DAAAm4cD/6K0w/AAAAAASUVORK5CYII=");
  background-repeat: repeat;
  z-index: 1;
}

.intro-section h1 {
  font-size: clamp(5rem, 14vw, 12rem);
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 0.9;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s var(--transition) both;
}

.intro-section .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  max-width: 620px;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s var(--transition) 0.25s both;
}

.intro-section .subtitle {
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s var(--transition) 0.45s both;
}

.intro-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25), transparent);
  margin: 2rem 0;
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s var(--transition) 0.65s both;
}

.intro-scroll {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  animation: fadeUp 1.2s var(--transition) 0.85s both;
}

.intro-scroll span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.4);
}

.intro-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

/* -----------------------------------------------------------
   CINEMA SECTION (Construção — Luxo)
   ----------------------------------------------------------- */
.sequence-hero.land {
  position: relative;
  background: var(--color-black);
  z-index: 1;
  isolation: isolate;
}

/* Transição suave do topo */
.sequence-hero.land::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--color-black), transparent);
  z-index: 5;
  pointer-events: none;
}

.cinema-header {
  text-align: center;
  padding: 3rem 0 2rem;
  z-index: 10;
  pointer-events: none;
  background: #090a09;
  position: relative;
  width: 100%;
}

.cinema-label {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
  display: inline-block;
  position: relative;
}

.cinema-accent {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  margin: 0.8rem auto 0;
  opacity: 0.8;
}

.sequence-hero.land .sequence-sticky {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-black);
  transform: translateZ(0);
  contain: paint layout;
}

/* Tela cinema com moldura luxuosa — sombras simplificadas */
.cinema-screen {
  position: relative;
  width: min(92vw, 1400px);
  aspect-ratio: 1904 / 1088;
  max-height: 82vh;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  contain: paint layout;
}

/* Borda ouro sutil na moldura */
.cinema-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(196,180,154,0.12);
  pointer-events: none;
  z-index: 3;
}

.cinema-screen canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cinema-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Loader de frames */
.frame-loader {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  z-index: 20;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.frame-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), #fff);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Cantos decorativos dourados */
.screen-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 4;
  pointer-events: none;
  border-color: var(--color-gold);
  opacity: 0.5;
}

.screen-corner.tl {
  top: 12px;
  left: 12px;
  border-top: 1.5px solid var(--color-gold);
  border-left: 1.5px solid var(--color-gold);
}

.screen-corner.tr {
  top: 12px;
  right: 12px;
  border-top: 1.5px solid var(--color-gold);
  border-right: 1.5px solid var(--color-gold);
}

.screen-corner.bl {
  bottom: 12px;
  left: 12px;
  border-bottom: 1.5px solid var(--color-gold);
  border-left: 1.5px solid var(--color-gold);
}

.screen-corner.br {
  bottom: 12px;
  right: 12px;
  border-bottom: 1.5px solid var(--color-gold);
  border-right: 1.5px solid var(--color-gold);
}

/* Spacer — altura definida via JS, base aqui só como fallback */
.sequence-hero.land .sequence-spacer {
  height: 400vh;
  pointer-events: none;
  width: 100%;
}

/* Textos sincronizados no scroll — overlay na tela */
.cinema-sync-texts {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 8vh 5vw;
  gap: 2rem;
}

.c-sync-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s var(--transition);
  will-change: opacity, transform;
}

.c-sync-text.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.c-sync-text:nth-child(1) { justify-content: flex-start; align-items: flex-start; padding-top: 6vh; }
.c-sync-text:nth-child(2) { justify-content: flex-start; align-items: flex-end; padding-top: 6vh; }
.c-sync-text:nth-child(3) { justify-content: flex-end; align-items: flex-start; padding-bottom: 6vh; }
.c-sync-text:nth-child(4) { justify-content: flex-end; align-items: flex-end; padding-bottom: 6vh; }

.c-sync-text .c-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold-muted);
  margin-bottom: 0.4rem;
  display: block;
}

.c-sync-text .c-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.7), 0 0 60px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
  background: rgba(0,0,0,0.45);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  line-height: 1.15;
  display: block;
}

/* Footer do cinema */
.cinema-footer {
  text-align: center;
  padding: 2rem 2rem 3rem;
  z-index: 10;
  pointer-events: none;
  background: var(--color-black);
}

.cinema-footer p {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.cinema-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cinema-hint span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.35);
}

.cinema-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

/* -----------------------------------------------------------
   FULLSCREEN SEQUENCE (Implantação)
   ----------------------------------------------------------- */
.sequence-hero {
  position: relative;
  background: var(--color-black);
  z-index: 1;
  isolation: isolate;
}

.sequence-hero:nth-of-type(2) {
  z-index: 2;
}

/* Transição da construção para implantação */
.sequence-hero.implantacao::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, var(--color-cream), transparent);
  z-index: 5;
  pointer-events: none;
}

.sequence-hero .sequence-sticky {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-black);
  transform: translateZ(0);
  contain: paint layout;
}

.sequence-hero .sequence-sticky canvas {
  width: 100%;
  height: 100%;
  display: block;
  min-width: 100vw;
  min-height: 100vh;
}

.sequence-hero .sequence-sticky video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sequence-hero .sequence-spacer {
  height: 500vh;
  pointer-events: none;
}

/* -----------------------------------------------------------
   HERO OVERLAY (Implantação)
   ----------------------------------------------------------- */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 4rem;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.4s ease;
  will-change: opacity;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
}

.hero-overlay.hidden {
  opacity: 0;
}

.hero-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.hero-overlay h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  max-width: 600px;
}

.hero-overlay .tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  max-width: 520px;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-overlay .scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-overlay .scroll-hint span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.55);
}

.hero-overlay .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

/* Implantação — fundo creme */
.sequence-hero.implantacao {
  background: var(--color-cream);
}

.sequence-hero.implantacao .sequence-sticky {
  background: var(--color-cream);
}

.sequence-hero.implantacao .hero-overlay {
  background: linear-gradient(to top, rgba(246,244,239,0.88) 0%, rgba(246,244,239,0.25) 45%, transparent 100%);
  justify-content: flex-end;
  align-items: flex-start;
  padding: 4rem;
}

.sequence-hero.implantacao .hero-overlay h2 {
  color: var(--color-green-dark);
  text-shadow: none;
}

.sequence-hero.implantacao .hero-overlay .tagline {
  color: var(--color-green-mid);
  text-shadow: none;
}

.sequence-hero.implantacao .hero-overlay .scroll-hint span {
  color: var(--color-gold-muted);
}

.sequence-hero.implantacao .hero-overlay .scroll-line {
  background: linear-gradient(to bottom, var(--color-gold-muted), transparent);
}

/* -----------------------------------------------------------
   INFO SECTION
   ----------------------------------------------------------- */
.info-section {
  padding: 10rem 2rem;
  background: var(--color-cream-dark);
  position: relative;
  z-index: 20;
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

/* Transição suave do topo */
.info-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--color-cream), transparent);
  pointer-events: none;
}

.info-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.info-text h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: var(--color-green-dark);
  line-height: 1.12;
  margin-bottom: 1.8rem;
}

.info-text p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 480px;
  font-weight: 300;
  line-height: 1.75;
}

.info-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  padding: 2.2rem;
  border-radius: var(--radius);
  transition: transform 0.5s var(--transition), box-shadow 0.5s var(--transition);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.03);
}

/* Faixa decorativa no topo do card */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-green-light), var(--color-gold));
  opacity: 0;
  transition: opacity 0.5s var(--transition);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-gold-muted);
  margin-bottom: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--color-green-dark);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 300;
  line-height: 1.6;
}

/* -----------------------------------------------------------
   CTA SECTION
   ----------------------------------------------------------- */
.cta-section {
  padding: 10rem 2rem;
  background: var(--color-green-dark);
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 20;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 1.15rem;
  opacity: 0.65;
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 1.15rem 3.2rem;
  background: var(--color-cream);
  color: var(--color-green-dark);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.4s var(--transition), transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s var(--transition);
}

.cta-button:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.cta-button:hover::after {
  left: 100%;
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
footer {
  padding: 3rem;
  text-align: center;
  background: #1e261c;
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 20;
  content-visibility: auto;
  contain-intrinsic-size: 0 80px;
}

/* -----------------------------------------------------------
   Keyframes
   ----------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%      { opacity: 1; transform: scaleY(1.25); }
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(20px, -20px) scale(1.05); }
  100% { transform: translate(-10px, 15px) scale(0.95); }
}

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .info-features { grid-template-columns: 1fr; }
  .cinema-screen { width: 96vw; max-height: 52vh; border-radius: 12px; }
  .cinema-header { padding: 2rem 0 1rem; }
  .hero-overlay { padding: 2rem; }
  .hero-overlay h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .intro-section h1 { font-size: clamp(3.5rem, 16vw, 7rem); }
  .info-section { padding: 6rem 1.5rem; }
  .cta-section { padding: 7rem 1.5rem; }
  .cinema-sync-texts { padding: 6vh 4vw; }
  .c-sync-text .c-title { font-size: clamp(1.4rem, 5vw, 2rem); padding: 0.5rem 1rem; }
}
