/*
 * convite.css — Celebrity landing page styles
 * Stars generated via JS (convite.js) inside .stars-canvas
 */

/* ================================================================
   FOUNDATIONS
   ================================================================ */
.convite-app {
    position: fixed;
    inset: 0;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background: var(--mud-palette-primary);
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.convite-app::-webkit-scrollbar { display: none; }

.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ================================================================
   SECTION 0 — VIDEO HERO
   ================================================================ */
.video-section {
    background: radial-gradient(ellipse at 50% 50%, #141420 0%, #0a0a14 70%);
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.bg-ambient { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.25; animation: orb-float 8s ease-in-out infinite; }
.orb-1 { width: 400px; height: 400px; background: var(--mud-palette-tertiary); top: -100px; right: -100px; }
.orb-2 { width: 300px; height: 300px; background: #6B5B95; bottom: -80px; left: -80px; animation-delay: -3s; }
.orb-3 { width: 200px; height: 200px; background: #4FC3F7; top: 40%; left: 50%; animation-delay: -6s; }

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(20px, -30px) scale(1.05); }
    66%      { transform: translate(-15px, 20px) scale(0.95); }
}

.top-badge { position: relative; z-index: 2; }
.top-logo { height: 48px; filter: drop-shadow(0 0 16px rgba(94,132,118,0.4)); }

/* Phone frame */
.phone-wrapper { position: relative; z-index: 1; }
.phone-frame {
    width: 280px; height: 560px; max-width: 85vw; max-height: 65dvh;
    background: #000; border-radius: 32px; border: 3px solid #333;
    position: relative; overflow: hidden;
    box-shadow: 0 0 0 6px #1a1a1a, 0 0 60px rgba(94,132,118,0.25), 0 20px 60px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
@media (min-width: 768px) { .phone-frame { width: 300px; height: 600px; max-height: 72dvh; } }
.phone-frame:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 0 0 6px #1a1a1a, 0 0 80px rgba(94,132,118,0.35), 0 30px 80px rgba(0,0,0,0.7);
}
.phone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 28px; background: #000; border-radius: 0 0 18px 18px; z-index: 10;
}
.phone-screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.convite-video { width: 100%; height: 100%; object-fit: cover; display: block; }

.phone-black-screen {
    position: absolute; inset: 0;
    background: #000;
    z-index: 5;
}
.play-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
    cursor: pointer;
}
.play-overlay:hover { background: rgba(0,0,0,0.55); }
.play-ring {
    width: 90px; height: 90px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center;
    animation: play-pulse 2s ease-in-out infinite;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.play-overlay:hover .play-ring { border-color: var(--mud-palette-tertiary); transform: scale(1.08); }
.play-label { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; text-align: center; max-width: 200px; letter-spacing: 0.02em; }
@keyframes play-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    50%      { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
}
.phone-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 340px; height: 640px; max-width: 95vw; max-height: 75dvh;
    background: radial-gradient(ellipse, rgba(94,132,118,0.18) 0%, transparent 70%);
    border-radius: 32px; pointer-events: none; z-index: 0;
}
.video-subtitle { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.subtitle-text { color: rgba(255,255,255,0.65) !important; text-align: center; }
.scroll-hint {
    display: flex; flex-direction: column; align-items: center; gap: 0;
    cursor: pointer; opacity: 0.5; transition: opacity 0.3s ease; color: var(--mud-palette-tertiary);
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ================================================================
   SHOOTING STARS (pure CSS — span dots + gradient trails)
   ================================================================ */
.stars-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.stars-burst span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    box-shadow:
        0 0 3px 2px rgba(255,255,255,0.25),
        0 0 8px 3px rgba(255,255,255,0.08);
    animation: starShoot linear infinite;
    animation-fill-mode: backwards;
    opacity: 0;
}
.stars-burst span::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.15), transparent);
}
@keyframes starShoot {
    0%   { transform: rotate(var(--angle, 315deg)) translateX(0); opacity: 0; }
    8%   { opacity: 0.6; }
    25%  { opacity: 0.35; }
    100% { transform: rotate(var(--angle, 315deg)) translateX(-1600px); opacity: 0; }
}

/* Per-span — slower, more spaced out, calmer */
.stars-burst span:nth-child(1)  { --angle:305deg; top:4%;  right:8%;  left:auto; animation-delay:0s;    animation-duration:7s; }
.stars-burst span:nth-child(2)  { --angle:335deg; top:6%;  right:22%; left:auto; animation-delay:2.5s;  animation-duration:9s; }
.stars-burst span:nth-child(3)  { --angle:285deg; top:10%; right:46%; left:auto; animation-delay:5s;    animation-duration:8s; }
.stars-burst span:nth-child(4)  { --angle:315deg; top:2%;  right:68%; left:auto; animation-delay:1.2s;  animation-duration:11s; }
.stars-burst span:nth-child(5)  { --angle:270deg; top:16%; right:12%; left:auto; animation-delay:3.8s;  animation-duration:7.5s; }
.stars-burst span:nth-child(6)  { --angle:345deg; top:20%; right:38%; left:auto; animation-delay:6.5s;  animation-duration:10s; }
.stars-burst span:nth-child(7)  { --angle:295deg; top:26%; right:58%; left:auto; animation-delay:0.8s;  animation-duration:8.5s; }
.stars-burst span:nth-child(8)  { --angle:310deg; top:14%; right:82%; left:auto; animation-delay:4.2s;  animation-duration:9.5s; }
.stars-burst span:nth-child(9)  { --angle:260deg; top:33%; right:18%; left:auto; animation-delay:7.2s;  animation-duration:7.8s; }
.stars-burst span:nth-child(10) { --angle:330deg; top:38%; right:52%; left:auto; animation-delay:3s;    animation-duration:8.2s; }

.section-bg-accent {
    position: absolute; width: 500px; height: 500px; border-radius: 50%;
    filter: blur(120px); opacity: 0.12; background: var(--mud-palette-tertiary);
    top: 10%; left: -200px; pointer-events: none;
    animation: bg-accent-drift 10s ease-in-out infinite alternate;
}
.section-bg-accent.right { left: auto; right: -200px; animation-direction: alternate-reverse; }
@keyframes bg-accent-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.1); }
}

.section-content {
    position: relative; z-index: 2;
    width: 100%; max-width: 720px;
    padding: 3rem 1.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 0;
}

.section-number {
    font-size: 5rem; font-weight: 800; font-family: 'Montserrat', sans-serif;
    color: var(--mud-palette-tertiary); opacity: 0.08; line-height: 1;
    margin-bottom: -1.8rem; pointer-events: none; user-select: none;
    position: relative; z-index: 0;
}

.animate-card-in {
    opacity: 0; transform: scale(0.92) translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.animate-card-in.revealed { opacity: 1; transform: scale(1) translateY(0); }

.icon-morph { transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease; }
.animate-card-in.revealed .icon-morph {
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(94,132,118,0.4));
}

.info-card {
    background: rgba(20,20,40,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 1.2rem;
    box-shadow: 0 12px 48px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative; z-index: 1;
}
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    border-color: rgba(94,132,118,0.25);
}

.card-icon { margin-bottom: 0.25rem; }
.card-title { color: rgba(255,255,255,0.95) !important; margin-bottom: 0 !important; }
.card-body { color: rgba(255,255,255,0.72) !important; max-width: 580px; line-height: 1.75 !important; }
.card-body strong { color: rgba(255,255,255,0.9); }
.card-cta {
    margin-top: 0.5rem; text-transform: none !important;
    border-radius: 12px !important; padding: 0.6rem 1.8rem !important;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
    background: radial-gradient(ellipse at 50% 30%, #141420 0%, #080810 100%);
    justify-content: center; min-height: 100dvh;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.18; }
.cta-orb-a { width: 500px; height: 500px; background: var(--mud-palette-tertiary); top: 20%; left: -100px; animation: cta-orb-float 10s ease-in-out infinite; }
.cta-orb-b { width: 350px; height: 350px; background: #6B5B95; bottom: 10%; right: -80px; animation: cta-orb-float 8s ease-in-out infinite reverse; }
@keyframes cta-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -40px) scale(1.08); }
}

.cta-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 1.5rem; padding: 2rem; max-width: 560px;
}
.cta-logo.logo-green {
    height: 110px;
    filter: brightness(0) saturate(100%) invert(53%) sepia(20%) saturate(616%) hue-rotate(103deg) brightness(92%) contrast(88%)
            drop-shadow(0 0 30px rgba(94,132,118,0.6));
    margin-bottom: 0.5rem;
    transition: filter 0.4s ease, transform 0.4s ease;
}
.cta-logo.logo-green:hover {
    transform: scale(1.06);
    filter: brightness(0) saturate(100%) invert(53%) sepia(20%) saturate(616%) hue-rotate(103deg) brightness(92%) contrast(88%)
            drop-shadow(0 0 45px rgba(94,132,118,0.8));
}
.cta-title { color: rgba(255,255,255,0.95) !important; }
.cta-subtitle { color: rgba(255,255,255,0.65) !important; line-height: 1.8 !important; }
.cta-button {
    border-radius: 14px !important; padding: 0.9rem 2.5rem !important;
    font-size: 1.05rem !important; text-transform: none !important;
    box-shadow: 0 8px 30px rgba(94,132,118,0.35) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(94,132,118,0.5) !important; }
.cta-footer-text { color: rgba(255,255,255,0.3) !important; margin-top: 1rem; }

/* ================================================================
   FLOATING DOTS NAV
   ================================================================ */
.section-dots {
    position: fixed; right: 1.2rem; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 0.8rem; z-index: 100;
}
.dot {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    background: transparent; cursor: pointer; padding: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); outline: none;
}
.dot:hover { border-color: var(--mud-palette-tertiary); transform: scale(1.3); }
.dot.active { background: var(--mud-palette-tertiary); border-color: var(--mud-palette-tertiary); box-shadow: 0 0 12px rgba(94,132,118,0.6); transform: scale(1.25); }

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.animate-fade-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.animate-fade-up.revealed { opacity: 1; transform: translateY(0); }
.animate-fade-in { animation: fade-in 1s ease-out both; }
.animate-fade-in-delayed { opacity: 0; animation: fade-in 1s ease-out 0.6s both; }
.animate-scale-in { animation: scale-in 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both; }
@keyframes fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
    .section-number { font-size: 3.5rem; margin-bottom: -1.2rem; }
    .info-card { padding: 2rem 1.25rem; }
    .section-dots { right: 0.6rem; gap: 0.6rem; }
    .dot { width: 10px; height: 10px; }
    .card-title { font-size: 1.75rem !important; }
    .cta-logo.logo-green { height: 85px; }
}