/* ═══════════════════════════════════════════════════════════════
   DUBLOP — Landing cinematográfica
   Paleta premium: noite profunda + esmeralda + dourado da trilha
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-0: #05080f;
  --bg-1: #0a1020;
  --ink: #e9eef7;
  --ink-dim: #93a0b8;
  --accent: #35e0a1;      /* esmeralda — a trilha */
  --accent-2: #4cc3ff;    /* céu — o horizonte */
  --gold: #f5c76a;        /* dourado — o caminho ótimo */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--bg-1) 0%, var(--bg-0) 60%),
    var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg-0); }

/* ── Cenário 3D fixo ─────────────────────────────────────────── */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(3, 6, 12, 0.55) 100%);
}

/* Flash da travessia do node (opacidade dirigida pelo JS) */
.flash {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 55%,
    rgba(255, 252, 245, 1) 0%,
    rgba(255, 224, 178, 0.94) 30%,
    rgba(246, 168, 90, 0.55) 58%,
    rgba(246, 168, 90, 0) 82%);
}

/* ── Preloader ───────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.pre-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: 0.35em;
  margin-right: -0.35em; /* compensa o tracking da última letra */
  display: flex;
}

.pre-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  background: linear-gradient(120deg, var(--ink) 30%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pre-bar {
  width: min(240px, 50vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.pre-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
}

.pre-hint {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
}

/* ── Navegação ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  opacity: 0; /* revelado pelo JS após o preloader */
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo .dot { color: var(--accent); }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(10, 16, 32, 0.35);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(53, 224, 161, 0.08);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
}

.scroll-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
}

/* ── Seções ──────────────────────────────────────────────────── */
main { position: relative; z-index: 10; }

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18vh clamp(20px, 6vw, 72px);
  position: relative;
}

.content {
  max-width: 880px;
  text-align: center;
}

.content.narrow { max-width: 760px; }
.content.wide { max-width: 1080px; }

/* ── Tipografia ──────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}

/* Legibilidade sobre o cenário 3D (árvore colorida atrás do texto) */
.display, .display-2, .lead, .eyebrow, .beat-num {
  text-shadow: 0 2px 28px rgba(4, 7, 14, 0.85), 0 1px 6px rgba(4, 7, 14, 0.6);
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
}

.display em, .display-2 em {
  font-style: normal;
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* text-shadow vazaria por trás do preenchimento transparente do
     gradiente (texto turvo); drop-shadow segue o glifo renderizado */
  text-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(4, 7, 14, 0.7));
}

.display-2 s {
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
}

.lead {
  font-size: clamp(1.02rem, 1.9vw, 1.28rem);
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 640px;
  margin: 0 auto;
}

.lead strong { color: var(--ink); font-weight: 600; }

.chip {
  display: inline-block;
  margin: 10px 6px 4px;
  padding: 8px 16px;
  font-size: 0.88em;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid rgba(245, 199, 106, 0.35);
  background: rgba(245, 199, 106, 0.07);
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Atos numerados ──────────────────────────────────────────── */
.beat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  margin-bottom: 18px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero { justify-content: center; }

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ink-dim);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.wheel {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0%   { transform: translateY(0);   opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* ── Cards de features ───────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 54px;
  text-align: left;
}

.card {
  padding: 30px 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(20, 30, 52, 0.55), rgba(8, 13, 26, 0.55));
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(53, 224, 161, 0.45);
}

.card-icon { font-size: 1.9rem; margin-bottom: 16px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-dim);
}

.card p em { color: var(--gold); font-style: normal; }

/* ── CTA final ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  margin-top: 38px;
  padding: 18px 44px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bg-0);
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 40px rgba(53, 224, 161, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 60px rgba(53, 224, 161, 0.5);
  animation: none;
}

@keyframes btn-breathe {
  0%, 100% { box-shadow: 0 8px 40px rgba(53, 224, 161, 0.35); }
  50%      { box-shadow: 0 10px 64px rgba(53, 224, 161, 0.6); }
}

.btn-primary { animation: btn-breathe 2.6s ease-in-out infinite; }

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

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 34px 20px 42px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

/* ── Estados de revelação (controlados pelo GSAP) ────────────── */
.reveal { opacity: 0; }

/* Sem JS (ou com JS falho), nada fica invisível para sempre */
.no-js .reveal { opacity: 1; }

/* ── Movimento reduzido ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .wheel { animation: none; }
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 14vh 22px; }
  .chip { white-space: normal; }
  .nav-cta { display: none; }
}
