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

:root {
  --bg: #1a0a14;
  --bg-elev: #24101c;
  --fg: #fdf2f8;
  --fg-dim: #d4a9c2;
  --accent: #ec4899;
  --accent-warm: #f43f5e;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: clip; }

/* ───────── NAV ───────── */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 14px;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--fg);
  color: var(--bg) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
}

/* ───────── HERO ───────── */
.hero {
  position: relative;
  width: 100vw;
  height: 300vh;           /* zona de scrub */
  background: radial-gradient(ellipse at center, #0a0a0a 0%, #000 100%);
}

.hero-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #3a0f24 0%, #1a0a14 70%);
}

/* Poster aparece antes dos frames carregarem */
#hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.3s;
  z-index: 1;
}

/* Canvas renderiza o scrub da animação (image sequence) */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 60%, #3a0f24 0%, #1a0a14 75%);
}
.frames-ready #hero-poster { opacity: 0; }

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 48px 48px;
  pointer-events: none;
  z-index: 10;
}

.hero-kicker {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 500;
}

.kicker-series {
  color: var(--accent);
  font-weight: 700;
}

.kicker-dot {
  opacity: 0.5;
}

.hero-title {
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 900px;
}

.title-line {
  display: block;
  font-size: clamp(56px, 10vw, 140px);
  background: linear-gradient(180deg, #fff 0%, #a8a8a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-sub {
  display: block;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 200;
  color: var(--fg-dim);
  margin-top: 16px;
  letter-spacing: -0.02em;
}

.scroll-hint {
  align-self: center;
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: bob 2.4s ease-in-out infinite;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--fg-dim));
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ───────── STAGES ───────── */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px;
  background: var(--bg);
}

/* content-visibility só em stages LONGE do fold — evita jitter no scroll inicial */
#design, #how, #specs {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.stage.dark { background: #060606; }

.stage-inner {
  max-width: 900px;
  width: 100%;
}

.stage-inner.wide { max-width: 1200px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 700;
}

.eyebrow.center { text-align: center; }
.stage h2.center, .stage p.center { text-align: center; }
.stage h2.center { margin-left: auto; margin-right: auto; }
.stage-inner.wide h2.center { margin-bottom: 64px; }

.stage h2 {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 32px;
}

.stage h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg-dim);
  font-weight: 300;
  max-width: 720px;
}

/* ───────── FEATURES ───────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  padding: 48px 32px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: all 0.6s var(--ease-smooth);
}

.feature:hover {
  border-color: rgba(255,149,0,0.3);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255,149,0,0.05), transparent);
}

.feature h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.feature p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ───────── SPECS ───────── */
.specs-table {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 16px;
}

.spec-row span:first-child {
  color: var(--fg-dim);
  font-weight: 500;
}

.spec-row span:last-child {
  color: var(--fg);
  text-align: right;
}

/* ───────── SUSTAINABILITY ───────── */
.sustainability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.sustain-card {
  padding: 40px 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.sustain-num {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.sustain-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.sustain-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-dim);
}

/* ───────── PRICE BLOCK ───────── */
.price-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.price-now {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.price-was {
  font-size: 24px;
  color: var(--fg-dim);
  text-decoration: line-through;
}

.price-off {
  font-size: 12px;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ───────── CTA ───────── */
.cta {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #1a0a00 0%, #000 70%);
  padding: 120px 48px;
  content-visibility: auto;
  contain-intrinsic-size: 80vh;
}

.cta-inner { max-width: 800px; }

.cta h2 {
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 48px;
}

.cta h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  padding: 20px 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(255,149,0,0.3);
}

.cta-note {
  margin-top: 24px;
  color: var(--fg-dim);
  font-size: 14px;
}

footer {
  padding: 48px;
  text-align: center;
  color: var(--fg-dim);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

footer code {
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
}

/* ───────── REVEAL ───────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  /* PERFORMANCE: esconde camada blurred no mobile (1 decode só) */
  #hero-video-bg { display: none !important; }
  #hero-video { background: radial-gradient(ellipse at 50% 60%, #3a0f24 0%, #1a0a14 75%); }

  /* NAV */
  .topnav { padding: 12px 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: 12px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }

  /* HERO — layout vertical: título no topo (branco), vídeo abaixo */
  .hero { height: 200vh; }  /* encurta zona de scrub no mobile */

  .hero-overlay {
    position: absolute;
    top: 0;
    bottom: auto;
    height: auto;
    padding: 90px 20px 16px;
    justify-content: flex-start;
    pointer-events: none;
    z-index: 5;
  }

  .hero-kicker {
    font-size: 10px;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .hero-title { text-align: center; }

  .title-line {
    font-size: clamp(36px, 10vw, 52px);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #ffffff;            /* nome do produto em branco no mobile */
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  }

  .title-sub {
    font-size: 14px;
    margin-top: 10px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  }

  .scroll-hint { display: none; }

  /* Reposiciona o frasco num pouco mais abaixo pro título caber em cima sem sobrepor */
  .hero-stage { background: radial-gradient(ellipse at 50% 60%, #3a0f24 0%, #1a0a14 75%); }

  /* STAGES */
  .stage { padding: 64px 20px; min-height: auto; }
  .stage h2 { font-size: clamp(32px, 8vw, 48px); }
  .lead { font-size: 17px; }

  .stage-inner.wide h2.center { margin-bottom: 40px; }

  /* FEATURES & SUSTAINABILITY em 1 coluna */
  .feature-grid, .sustainability-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 32px 24px; }
  .feature h3 { font-size: 26px; }
  .sustain-card { padding: 28px 22px; }
  .sustain-num { font-size: 44px; }

  /* SPECS */
  .spec-row { font-size: 14px; padding: 18px 0; gap: 12px; }
  .spec-row span:last-child { max-width: 60%; }

  /* CTA */
  .cta { padding: 72px 20px; min-height: auto; }
  .cta h2 { font-size: clamp(42px, 11vw, 64px); }
  .price-block { flex-wrap: wrap; gap: 10px; }
  .price-now { font-size: 38px; }
  .price-was { font-size: 18px; }
  .btn-primary { font-size: 16px; padding: 16px 32px; }

  footer { padding: 32px 20px; font-size: 11px; }
}

@media (max-width: 420px) {
  .hero-overlay { padding: 80px 16px 12px; }
  .title-line { font-size: clamp(30px, 9vw, 42px); }
}
