/* ============================================================
   VISIONMAKER — Design System & Styles
   Mobile-First, Futuristic, Premium
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Bitcount+Grid+Double:wght@100..900&family=Luckiest+Guy&family=Slackey&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --brand-lime: #C6DE41;
  --brand-lime-glow: rgba(198, 222, 65, 0.4);
  --brand-lime-soft: rgba(198, 222, 65, 0.15);
  --brand-teal: #2D6E7E;
  --brand-teal-glow: rgba(45, 110, 126, 0.5);
  --brand-dark: #153B44;
  --brand-deep: #071C21;
  --brand-deeper: #040f12;

  --text-primary: #f0f8fa;
  --text-secondary: rgba(240, 248, 250, 0.65);
  --text-muted: rgba(240, 248, 250, 0.35);

  --font-display: 'Luckiest Guy', cursive;
  --font-creative: 'Slackey', cursive;
  --font-tech: 'Bitcount Grid Double', monospace;
  --font-body: 'Inter', sans-serif;

  --ease-premium: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--brand-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   SECTION 1 — LA IDEA EXISTE
   ============================================================ */

#section-1 {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--safe-top) + 2.5rem) 1.5rem 5rem;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #0d3540 0%, var(--brand-deeper) 70%);
}

/* Animated nebula background */
#section-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(45, 110, 126, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(198, 222, 65, 0.07) 0%, transparent 60%);
  animation: nebula-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

#section-1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--brand-deep));
  pointer-events: none;
  z-index: 2;
}

@keyframes nebula-drift {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.05); }
}

/* ── Slot machine headline ── */
.headline-wrap {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
}

.headline-wrap h1 {
  display: block;
  margin: 0;
  padding: 0;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

.headline-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 3vw, 1rem);
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  opacity: 0.7;
}

.headline-static {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(198, 222, 65, 0.2);
  display: block;
  margin-bottom: 0.1rem;
}

.headline-dynamic-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  height: clamp(5rem, 16vw, 7.2rem);
  width: 100%;
  margin-top: -0.3rem;
  margin-bottom: -1.2rem;
  padding-top: 10px;
}

.slot-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 5rem);
  font-weight: 900;
  color: var(--brand-lime);
  /*text-shadow:
    0 0 20px var(--brand-lime-glow),
    0 0 60px rgba(198, 222, 65, 0.3);*/
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  transition: none;
  letter-spacing: 0.03em;
  line-height: 1;
}

.slot-word.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.25s var(--ease-premium), transform 0.25s var(--ease-premium);
}

.slot-word.exiting {
  opacity: 0;
  transform: translateY(-60px) scale(1.05);
  transition: opacity 0.2s ease-in, transform 0.2s ease-in;
}

/* ── 3D Model Container ── */
.model-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 480px;
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.model-float-wrapper {
  position: relative;
  width: min(100%, 380px);
  height: min(100%, 380px);
  aspect-ratio: 1 / 1;
  animation: float 4s ease-in-out infinite;
  /* Needed so canvas absolute positioning is relative to this */
  isolation: isolate;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-14px) rotate(0.8deg); }
  66% { transform: translateY(-6px) rotate(-0.5deg); }
}

model-viewer {
  width: 100%;
  height: 100%;
  min-height: 280px;
  --progress-bar-color: transparent;
  --progress-mask: transparent;
  background: transparent;
  display: block;
}

/* Glow rings behind the model */
.model-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(45, 110, 126, 0.25) 0%,
    rgba(198, 222, 65, 0.08) 40%,
    transparent 70%);
  filter: blur(20px);
  animation: glow-pulse 3s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

@keyframes glow-pulse {
  from { opacity: 0.6; transform: scale(0.9); }
  to   { opacity: 1;   transform: scale(1.1); }
}

/* Rotating scan ring */
.scan-ring {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--brand-lime);
  border-right-color: rgba(198, 222, 65, 0.3);
  animation: spin-ring 6s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.scan-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: var(--brand-teal);
  border-left-color: rgba(45, 110, 126, 0.3);
  animation: spin-ring 8s linear infinite reverse;
}

@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

/* Particle canvas overlay */
#particles-canvas {
  position: absolute;
  inset: -30%;
  width: 160%;
  height: 160%;
  pointer-events: none;
  z-index: 3;
}

/* Scroll nudge */
.scroll-nudge {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.6;
  animation: nudge-fade 2.5s ease-in-out infinite;
}

.scroll-nudge span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-lime);
}

.scroll-nudge-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--brand-lime);
  border-bottom: 2px solid var(--brand-lime);
  transform: rotate(45deg);
  animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes nudge-fade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@keyframes arrow-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* ============================================================
   TRANSITION ZONE 1→2
   ============================================================ */

.transition-zone {
  position: relative;
  height: 40px;
  background: linear-gradient(to bottom, var(--brand-deep), var(--brand-dark));
  overflow: hidden;
}

/* ============================================================
   SECTION 2 — HACER REALIDAD LA IDEA
   ============================================================ */

#section-2 {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(21, 59, 68, 0.8) 0%, transparent 70%),
    linear-gradient(180deg, var(--brand-deep) 0%, #0a2830 50%, var(--brand-dark) 100%);
}

#section-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(198, 222, 65, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 10% 70%, rgba(45, 110, 126, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Grid tech lines background */
#section-2::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 110, 126, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 110, 126, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.section-2-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.section-2-text {
  text-align: center;
}

.section-2-title {
  font-family: var(--font-creative);
  font-size: clamp(1.6rem, 6.5vw, 2.8rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-2-subtitle {
  font-family: var(--font-tech);
  font-size: clamp(0.75rem, 3vw, 1rem);
  color: var(--brand-lime);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  word-break: break-word;
}

/* Print layer reveal animation */
.model-reveal-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  min-height: 280px;
}

.model-clip-mask {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 100% 0 round 0px);
  transition: clip-path 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: clip-path;
}

.model-clip-mask.revealed {
  clip-path: inset(0 0 0 0 round 0px);
}

.model-clip-mask.hiding {
  clip-path: inset(0 0 100% 0 round 0px);
}

/* Scan line effect during reveal */
.print-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-lime), var(--brand-teal), var(--brand-lime), transparent);
  box-shadow: 0 0 20px var(--brand-lime-glow), 0 0 40px rgba(45, 110, 126, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: none;
}

.print-scanline.scanning-down {
  opacity: 1;
  animation: scan-down 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.print-scanline.scanning-up {
  opacity: 1;
  animation: scan-up 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scan-down {
  from { top: 0%; transform: translateY(0); }
  to   { top: 100%; transform: translateY(-3px); }
}

@keyframes scan-up {
  from { top: 100%; transform: translateY(-3px); }
  to   { top: 0%; transform: translateY(0); }
}

/* Print progress bar */
.print-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.print-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-lime));
  border-radius: 2px;
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--brand-lime-glow);
}

.print-label {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--brand-lime);
  opacity: 0.7;
  text-align: right;
  margin-top: 0.3rem;
}

/* Model glow for section 2 (revealed) */
.model-reveal-stage .model-glow-2 {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(198, 222, 65, 0.2) 0%,
    rgba(45, 110, 126, 0.15) 40%,
    transparent 70%);
  filter: blur(25px);
  animation: glow-pulse-2 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 1s ease;
}

.model-reveal-stage.revealed .model-glow-2 {
  opacity: 1;
}

@keyframes glow-pulse-2 {
  from { opacity: 0.7; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.08); }
}

/* model-viewer section 2 */
#model-viewer-2 {
  width: 100%;
  height: 100%;
  background: transparent;
  --progress-bar-color: transparent;
  --progress-mask: transparent;
  animation: float-slow 5s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── Tech badges ── */
.tech-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.tech-badges.visible {
  opacity: 1;
  transform: translateY(0);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(45, 110, 126, 0.2);
  border: 1px solid rgba(45, 110, 126, 0.4);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--brand-lime);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-lime);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ============================================================
   SECTION 3 — UNA CREACIÓN DIGNA DE MOSTRAR
   ============================================================ */

#section-3 {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-dark) 0%, #0d2e38 50%, var(--brand-deep) 100%);
}

#section-3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(198, 222, 65, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.section-3-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.section-3-headline {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-3-headline.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-3-prefix {
  font-family: var(--font-creative);
  font-size: clamp(1.6rem, 6.5vw, 2.5rem);
  color: var(--text-primary);
  display: block;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.section-3-wow {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 6rem);
  color: var(--brand-lime);
  display: block;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 30px var(--brand-lime-glow),
    0 0 80px rgba(198, 222, 65, 0.2);
  animation: wow-shimmer 3s ease-in-out infinite alternate;
}

@keyframes wow-shimmer {
  from { text-shadow: 0 0 20px var(--brand-lime-glow), 0 0 60px rgba(198, 222, 65, 0.15); filter: brightness(1); }
  to   { text-shadow: 0 0 40px var(--brand-lime-glow), 0 0 100px rgba(198, 222, 65, 0.35); filter: brightness(1.15); }
}

/* ── Instagram Mock ── */
.instagram-post {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 60px rgba(198, 222, 65, 0.1);
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s ease 0.3s, transform 0.8s var(--ease-spring) 0.3s;
  position: relative;
}

.instagram-post.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Instagram header */
.ig-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
}

.ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 2px;
  flex-shrink: 0;
}

.ig-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-lime));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-deep);
  font-family: var(--font-body);
}

.ig-user-info {
  flex: 1;
  min-width: 0;
}

.ig-username {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  color: #1a1a1a;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ig-verified {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 0px;
}

.ig-location {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: #6b6b6b;
  line-height: 1.4;
}

.ig-more {
  font-size: 1.1rem;
  color: #1a1a1a;
  cursor: pointer;
  line-height: 1;
}

/* Instagram image */
.ig-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1a3a45, #0a1f28);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.ig-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Image Reveal Animation */
.ig-image-reveal {
  width: 100%;
  height: 100%;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ig-image-reveal.revealed {
  clip-path: inset(0 0 0 0);
}

/* Heart burst on tap */
.ig-heart-burst {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.ig-heart-burst-icon {
  position: absolute;
  transform: translate(-50%, -50%) scale(0);
  font-size: 5rem;
  animation: heart-pop 0.6s var(--ease-spring) forwards;
  pointer-events: none;
}

@keyframes heart-pop {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  50%  { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Floating hearts */
.floating-heart {
  position: absolute;
  animation: heart-float 2.5s ease-in forwards;
  pointer-events: none;
  font-size: 1.4rem;
  z-index: 5;
}

@keyframes heart-float {
  0%   { transform: translateY(0) scale(0.5); opacity: 1; }
  100% { transform: translateY(-200px) scale(1.2); opacity: 0; }
}

/* Instagram actions */
.ig-actions {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem 0.3rem;
  gap: 0.9rem;
  background: #fff;
}

.ig-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}

.ig-action-btn:active {
  transform: scale(0.85);
}

.ig-action-btn svg {
  width: 24px;
  height: 24px;
}

.ig-action-btn.liked svg path,
.ig-action-btn.liked svg {
  fill: #e0245e;
  stroke: #e0245e;
}

.ig-save-btn {
  margin-left: auto;
}

/* Likes */
.ig-likes {
  padding: 0.4rem 0.75rem 0.1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* Caption */
.ig-caption {
  padding: 0.2rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.77rem;
  color: #1a1a1a;
  line-height: 1.4;
}

.ig-caption strong {
  font-weight: 700;
}

.ig-hashtags {
  color: #2d86c7;
  font-size: 0.72rem;
}

/* Comments */
.ig-comments {
  padding: 0 0.75rem 0.25rem;
}

.ig-comment {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 0.15rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ig-comment.visible {
  opacity: 1;
  transform: translateX(0);
}

.ig-comment strong {
  font-weight: 700;
  font-size: 0.72rem;
}

.ig-timestamp {
  padding: 0 0.75rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: #9e9e9e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   SECTION 4 — LLAMADO A LA ACCIÓN
   ============================================================ */

#section-4 {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem calc(3rem + var(--safe-bottom));
  overflow: hidden;
}

/* Pinterest background */
.pinterest-bg {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 8px;
  padding: 0 4px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.pinterest-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: scroll-up var(--scroll-duration, 25s) linear infinite;
}

.pinterest-col:nth-child(even) {
  animation-direction: reverse;
  animation-duration: calc(var(--scroll-duration, 25s) * 1.15);
}

@keyframes scroll-up {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.pinterest-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--brand-dark);
  min-height: 80px;
}

.pinterest-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 15, 18, 0.76);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1;
  /* Ensure overlay covers the full section */
  pointer-events: none;
}

/* CTA Content */
.cta-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 12vw, 5rem);
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-premium);
}

.cta-headline.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-sub {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
  opacity: 0;
  transition: opacity 0.7s ease 0.2s;
}

.cta-sub.visible {
  opacity: 1;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 0.85rem;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.4s, transform 0.7s var(--ease-spring) 0.4s;
}

.cta-buttons.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 0.75rem;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease-spring),
    box-shadow 0.3s ease,
    filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-btn:active {
  transform: scale(0.96);
}

/* Button ripple effect */
.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cta-btn:hover::after {
  opacity: 1;
}

/* WhatsApp button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow:
    0 8px 30px rgba(37, 211, 102, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  flex: 1.3;
}

.btn-whatsapp:hover {
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.55);
  filter: brightness(1.05);
}

/* Instagram button */
.btn-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  box-shadow:
    0 8px 30px rgba(253, 29, 29, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-instagram:hover {
  box-shadow: 0 12px 40px rgba(253, 29, 29, 0.45);
  filter: brightness(1.05);
}

.cta-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Trust note */
.trust-note {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.6s ease 0.7s;
}

.trust-note.visible {
  opacity: 1;
}

/* VisionMaker brand footer */
.brand-footer {
  position: absolute;
  bottom: calc(1rem + var(--safe-bottom));
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 1s ease 1s;
}

.brand-footer.visible {
  opacity: 1;
}

.brand-logo-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--brand-lime);
  opacity: 0.4;
  text-transform: uppercase;
}

/* ============================================================
   GLOBAL UTILITIES
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Section fade-in base */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-premium);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   DESKTOP REFINEMENTS (min-width: 768px)
   ============================================================ */

@media (min-width: 768px) {
  .headline-static {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }

  .slot-word {
    font-size: clamp(4rem, 7vw, 6rem);
  }

  .model-stage {
    max-width: 550px;
  }

  .section-2-content,
  .section-3-content,
  .cta-content {
    max-width: 600px;
  }

  .instagram-post {
    max-width: 400px;
  }

  .cta-buttons {
    max-width: 420px;
  }
}
