@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --black: #090909;
  --paper: #f1ede4;
  --red: #ff3b22;
  --gold: #ffbd38;
  --muted: #aaa39a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--black);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }
a { color: inherit; }
.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.topbar {
  position: fixed;
  z-index: 15;
  inset: 0 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(9,9,9,.74);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand, .mini-cta { text-decoration: none; font-size: .74rem; font-weight: 800; letter-spacing: .12em; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 12px; height: 12px; background: var(--red); border-radius: 3px; transform: rotate(18deg); box-shadow: 0 0 22px var(--red); }
.mini-cta { padding: 10px 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 110px 20px 70px;
  isolation: isolate;
}
.hero-art, .hero-shade { position: absolute; inset: 0; z-index: -2; }
.hero-art {
  background: url('assets/cubo-barato-vs-premium-v1.png') center / cover no-repeat;
  animation: hero-breathe 12s ease-in-out infinite alternate;
}
.hero-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.2) 44%, rgba(0,0,0,.82)), radial-gradient(circle at 50% 40%, transparent 0 20%, rgba(0,0,0,.25) 68%);
}
.hero-copy { width: min(980px, 94vw); text-align: center; text-shadow: 0 3px 30px rgba(0,0,0,.8); }
.eyebrow { color: var(--gold); letter-spacing: .18em; font-size: .76rem; font-weight: 800; }
h1, h2 { font-family: 'Archivo Black', Impact, sans-serif; text-transform: uppercase; line-height: .96; margin: .25em 0; }
h1 { font-size: clamp(3rem, 8vw, 7.8rem); letter-spacing: -.055em; }
h1 em { color: var(--red); font-style: normal; }
.hero-lead { font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.55; max-width: 720px; margin: 25px auto 34px; }
.primary, .buy, .secondary {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--red);
  color: #fff;
  padding: 18px 26px;
  border-radius: 4px;
  font: 800 .86rem/1 Inter, sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(255,59,34,.28);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.primary:hover, .buy:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 18px 46px rgba(255,59,34,.4); }
.scroll-hint { position: absolute; bottom: 20px; font-size: .65rem; letter-spacing: .22em; opacity: .7; animation: bob 1.5s ease-in-out infinite; }

.section { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: clamp(80px, 12vw, 160px) 0; }
.section-label { color: var(--red); font-weight: 800; letter-spacing: .2em; margin-bottom: 50px; }
.enigma-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(30px, 7vw, 100px); align-items: center; }
.enigma-grid.reverse { grid-template-columns: .7fr 1.3fr; }
.enigma-copy h2, .truth-copy h2, .manifesto h2, .final-riddle h2 { font-size: clamp(2.4rem, 5.4vw, 5.7rem); letter-spacing: -.045em; }
.enigma-copy p, .truth-copy p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.7; max-width: 650px; }
.price-card { min-height: 290px; display: flex; flex-direction: column; justify-content: center; padding: 35px; border: 1px solid rgba(255,255,255,.15); position: relative; overflow: hidden; }
.price-card::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; filter: blur(60px); opacity: .4; right: -30px; bottom: -30px; }
.price-card span, .price-card small { letter-spacing: .12em; font-weight: 800; font-size: .72rem; }
.price-card strong { font-family: 'Archivo Black'; font-size: clamp(3.5rem, 8vw, 7rem); letter-spacing: -.08em; }
.price-card.cheap { background: #151515; color: #888; transform: rotate(-2deg); }
.price-card.cheap::after { background: #888; }
.price-card.premium { color: #160c00; background: linear-gradient(145deg, #ffe47a, var(--gold)); transform: rotate(2deg); box-shadow: 0 30px 80px rgba(255,189,56,.18); }
.price-card.premium::after { background: white; }
.connector { display: flex; align-items: center; gap: 22px; margin: 80px 0; color: var(--gold); font-size: .72rem; letter-spacing: .2em; }
.connector span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.marquee { overflow: hidden; background: var(--red); color: white; transform: rotate(-1.4deg) scale(1.02); padding: 19px 0; }
.marquee div { display: flex; gap: 28px; width: max-content; animation: marquee 20s linear infinite; }
.marquee span { font-family: 'Archivo Black'; font-size: clamp(1.3rem, 3vw, 2.6rem); white-space: nowrap; }
.marquee i { font-style: normal; }

.truth { min-height: 780px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.truth-orbit { position: relative; min-height: 470px; display: grid; place-items: center; perspective: 800px; }
.cube, .offer-cube { display: grid; place-items: center; background: linear-gradient(135deg, #ff563e, #b41100); box-shadow: inset -18px -18px 35px rgba(0,0,0,.2), 0 30px 100px rgba(255,59,34,.35); }
.cube { width: 150px; height: 150px; animation: float-cube 4s ease-in-out infinite; }
.orbit { position: absolute; border: 1px solid rgba(255,189,56,.4); border-radius: 50%; animation: spin 9s linear infinite; }
.orbit-one { width: 390px; height: 180px; transform: rotate(18deg); }
.orbit-two { width: 250px; height: 430px; transform: rotate(-28deg); animation-direction: reverse; animation-duration: 12s; }

.manifesto { text-align: center; }
.manifesto-lines { margin-top: 70px; }
.manifesto-lines p { font-family: 'Archivo Black'; font-size: clamp(1.8rem, 4.5vw, 4.5rem); color: #504d48; margin: .25em; text-transform: uppercase; }
.manifesto-lines .accent { color: var(--gold); }

.offer { width: min(1280px, calc(100% - 24px)); }
.offer-card { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--paper); color: var(--black); position: relative; border-radius: 12px; overflow: hidden; }
.edition { position: absolute; left: 20px; top: 20px; z-index: 2; color: white; background: var(--red); padding: 9px 12px; font-weight: 800; font-size: .68rem; letter-spacing: .14em; }
.offer-visual { min-height: 720px; display: grid; place-items: center; background: radial-gradient(circle, #423005, #0e0b05 65%); overflow: hidden; }
.offer-cube { width: clamp(190px, 26vw, 340px); aspect-ratio: 1; color: rgba(255,255,255,.8); font: 800 2rem Inter; transform: rotate(-10deg); animation: offer-cube 5s ease-in-out infinite; }
.offer-copy { padding: clamp(35px, 7vw, 90px); align-self: center; }
.offer-copy h2 { color: var(--red); font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -.07em; }
.offer-copy > p { line-height: 1.65; color: #4d4942; }
.offer-copy ul { list-style: none; padding: 0; margin: 30px 0; }
.offer-copy li { padding: 12px 0; border-bottom: 1px solid #d4cec1; font-weight: 700; }
.offer-copy li::before { content: '◆'; color: var(--red); margin-right: 12px; }
.offer-price { margin: 35px 0 24px; display: grid; }
.offer-price small { letter-spacing: .15em; font-weight: 800; }
.offer-price strong { font-family: 'Archivo Black'; font-size: clamp(3.5rem, 7vw, 6rem); letter-spacing: -.07em; }
.offer-price span { color: #686157; }
.buy { width: 100%; min-height: 64px; }
.honesty { font-size: .72rem; text-align: center; opacity: .72; margin-top: 16px; }

.final-cinematic {
  position: relative;
  min-height: 115svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(255,189,56,.25);
}
.final-background {
  position: absolute;
  inset: 0;
  z-index: -4;
  background: url('assets/final-cubo-dramatico-v1.png') center 32% / cover no-repeat;
  transform: scale(1.025);
  animation: final-zoom 16s ease-in-out infinite alternate;
}
.final-cinematic::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.12) 36%, rgba(0,0,0,.92) 82%, #090909 100%),
    radial-gradient(circle at 50% 35%, transparent 0 20%, rgba(0,0,0,.62) 78%);
}
.final-cinematic::after {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  box-shadow: inset 0 0 180px 55px #000;
  pointer-events: none;
}
.final-flash {
  position: absolute;
  z-index: -1;
  width: 46vw;
  aspect-ratio: 1;
  left: 50%;
  top: 14%;
  translate: -50% 0;
  border-radius: 50%;
  background: rgba(255,32,18,.18);
  filter: blur(85px);
  animation: final-pulse 3.2s ease-in-out infinite;
}
.final-content {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58svh 0 clamp(70px, 9vw, 130px);
  text-align: center;
}
.final-content h2 {
  font-size: clamp(3.2rem, 8.3vw, 8.7rem);
  letter-spacing: -.065em;
  text-shadow: 0 6px 45px #000;
  margin: .2em auto .35em;
}
.final-content h2 em { color: var(--red); font-style: normal; text-shadow: 0 0 34px rgba(255,59,34,.5); }
.final-answer { display: grid; gap: 7px; color: #c5beb3; font-size: clamp(1rem, 1.6vw, 1.35rem); }
.final-answer strong { color: var(--gold); font-size: 1.15em; }
.final-question { margin: 46px 0 24px; }
.final-question small { letter-spacing: .22em; color: var(--red); font-weight: 800; }
.final-question p { margin: 8px 0; font: clamp(1.7rem, 4vw, 3.7rem)/1 'Archivo Black'; text-transform: uppercase; }
.final-buy { min-width: min(500px, 100%); min-height: 66px; animation: cta-heartbeat 2.2s ease-in-out infinite; }
.back-offer { display: block; width: max-content; max-width: 100%; margin: 30px auto 0; color: #958c80; font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.embers i { position: absolute; bottom: -20px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--red); animation: ember-rise 8s linear infinite; opacity: 0; }
.embers i:nth-child(1) { left: 9%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 21%; animation-delay: 2s; }
.embers i:nth-child(3) { left: 37%; animation-delay: 5s; }
.embers i:nth-child(4) { left: 48%; animation-delay: 1s; }
.embers i:nth-child(5) { left: 62%; animation-delay: 6s; }
.embers i:nth-child(6) { left: 73%; animation-delay: 3s; }
.embers i:nth-child(7) { left: 84%; animation-delay: 4.5s; }
.embers i:nth-child(8) { left: 94%; animation-delay: 1.5s; }
footer { border-top: 1px solid rgba(255,255,255,.12); padding: 30px clamp(18px, 4vw, 64px); display: flex; justify-content: space-between; gap: 20px; color: #777; font-size: .65rem; letter-spacing: .12em; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.modal-card { width: min(520px, 100%); position: relative; background: var(--paper); color: var(--black); padding: 45px; border-radius: 10px; box-shadow: 0 40px 120px #000; }
.modal-card h2 { font-size: 2.4rem; }
.modal-close { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 2rem; cursor: pointer; }
.secondary { margin-top: 15px; background: var(--black); }

@keyframes hero-breathe { to { transform: scale(1.045); } }
@keyframes bob { 50% { transform: translateY(7px); opacity: .35; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes float-cube { 50% { transform: translateY(-22px) rotate(8deg); } }
@keyframes offer-cube { 50% { transform: translateY(-18px) rotate(-4deg) scale(1.03); } }
@keyframes final-zoom { to { transform: scale(1.095); } }
@keyframes final-pulse { 50% { opacity: .35; transform: scale(1.18); } }
@keyframes cta-heartbeat { 0%, 68%, 100% { transform: scale(1); } 74% { transform: scale(1.035); } 81% { transform: scale(1); } 88% { transform: scale(1.02); } }
@keyframes ember-rise { 0% { translate: 0 0; opacity: 0; } 12% { opacity: .8; } 100% { translate: 30px -95svh; opacity: 0; } }

@media (max-width: 760px) {
  .topbar { min-height: 58px; }
  .brand { font-size: .62rem; }
  .mini-cta { font-size: .58rem; padding: 9px 10px; }
  .hero { min-height: 880px; align-items: end; padding-bottom: 110px; }
  .hero-art { background-position: 58% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.5) 42%, rgba(0,0,0,.95) 80%); }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .enigma-grid, .enigma-grid.reverse, .truth, .offer-card { grid-template-columns: 1fr; }
  .enigma-grid.reverse .price-card { order: 2; }
  .price-card { min-height: 240px; }
  .truth { gap: 20px; }
  .truth-orbit { min-height: 400px; }
  .offer-visual { min-height: 480px; }
  .offer-copy { padding: 38px 24px 44px; }
  .final-cinematic { min-height: 125svh; }
  .final-background { background-position: 50% 24%; }
  .final-content { width: min(100% - 28px, 680px); padding-top: 63svh; }
  .final-content h2 { font-size: clamp(3.1rem, 15vw, 5.4rem); }
  .final-cinematic::after { box-shadow: inset 0 0 90px 18px #000; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
