/* ============================================
   LocaPop — Brand palette with interactive magic
   #6B5CE7 → #4A90DA → #2DD4BF
   ============================================ */

:root {
    --purple: #6B5CE7;
    --blue: #4A90DA;
    --cyan: #2DD4BF;
    --purple-light: #8B7AEF;

    --bg: #060B18;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.055);

    --text: #EEF1F6;
    --text-sub: rgba(238, 241, 246, 0.72);
    --text-muted: rgba(238, 241, 246, 0.28);

    --border: rgba(255, 255, 255, 0.06);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient glow */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 15%, rgba(107, 92, 231, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 80%, rgba(45, 212, 191, 0.07) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
    animation: ambientShift 25s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

h1, h2, h3 {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    line-height: 1.15;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple), var(--blue), var(--cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

/* ============================================
   FLOATING BUBBLES
   ============================================ */
.bubbles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02) 50%,
        transparent 70%
    );
    border: 1px solid rgba(255, 255, 255, 0.04);
    animation: floatBubble var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    will-change: transform;
}

.floating-bubble::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 18%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    transform: rotate(-30deg);
    filter: blur(1px);
}

.floating-bubble.tint-purple {
    box-shadow: inset 0 0 20px rgba(107, 92, 231, 0.08), 0 0 30px rgba(107, 92, 231, 0.04);
}
.floating-bubble.tint-blue {
    box-shadow: inset 0 0 20px rgba(74, 144, 218, 0.08), 0 0 30px rgba(74, 144, 218, 0.04);
}
.floating-bubble.tint-cyan {
    box-shadow: inset 0 0 20px rgba(45, 212, 191, 0.08), 0 0 30px rgba(45, 212, 191, 0.04);
}

@keyframes floatBubble {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(8px, -18px) scale(1.02); }
    50%  { transform: translate(-4px, -30px) scale(0.98); }
    75%  { transform: translate(12px, -12px) scale(1.01); }
}

/* ============================================
   LAYOUT
   ============================================ */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section { position: relative; z-index: 1; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    margin-bottom: 14px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-sub);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    min-width: 200px;
    border-radius: 100px;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: #fff;
    box-shadow: 0 4px 24px rgba(107, 92, 231, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(107, 92, 231, 0.45);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-sub);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 13px 28px;
}

.btn-ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

/* ============================================
   HERO BRAND (logo + name)
   ============================================ */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.hero-brand-name {
    font-family: 'Satoshi', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.logo-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--purple), var(--blue), var(--cyan));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    flex-shrink: 0;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px 120px;
    overflow: hidden;
}

/* Hero background image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    opacity: 0.42;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(6, 11, 24, 0.1) 0%,
            rgba(6, 11, 24, 0.2) 35%,
            rgba(6, 11, 24, 0.55) 65%,
            rgba(6, 11, 24, 0.85) 80%,
            var(--bg) 95%,
            var(--bg) 100%
        );
}

/* Content above background */
.hero-title,
.hero-subtitle,
.hero-actions {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    margin-bottom: 24px;
    line-height: 1.08;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-sub);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero divider */
.hero-divider {
    width: 50%;
    max-width: 500px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--purple), var(--blue), var(--cyan), transparent);
    position: relative;
    z-index: 1;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 80px 0;
}

.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
}

.step {
    flex: 1;
    max-width: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.step-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.step.flipped .step-inner {
    transform: rotateY(180deg);
}

.step-front,
.step-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 36px 26px;
    text-align: center;
}

.step-front {
    display: flex;
    flex-direction: column;
    position: relative;
}

.step-visual {
    margin-top: auto;
}

.step-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step:not(.flipped):hover .step-front {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.10);
}

.step:not(.flipped):hover .step-front::before { opacity: 1; }

.step-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--bg-card);
    overflow: hidden;
}

.step-back img {
    width: 85%;
    flex: 1;
    min-height: 0;
    border-radius: 12px;
    object-fit: cover;
    object-position: top center;
}

.step-back-caption {
    font-size: 0.78rem;
    color: var(--text-sub);
    padding: 0 16px 4px;
    text-align: center;
    line-height: 1.4;
    flex-shrink: 0;
}

/* Step Icons */
.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.step-icon-purple {
    background: rgba(107, 92, 231, 0.1);
    color: var(--purple-light);
    box-shadow: 0 0 28px rgba(107, 92, 231, 0.12);
}

.step-icon-blue {
    background: rgba(74, 144, 218, 0.1);
    color: var(--blue);
    box-shadow: 0 0 28px rgba(74, 144, 218, 0.12);
}

.step-icon-cyan {
    background: rgba(45, 212, 191, 0.1);
    color: var(--cyan);
    box-shadow: 0 0 28px rgba(45, 212, 191, 0.12);
}

.step-number {
    font-family: 'Satoshi', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.step-title { font-size: 1.4rem; margin-bottom: 10px; }

.step-desc {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.65;
    margin-bottom: 24px;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 120px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ---- Step Mini Visuals ---- */

/* Bubble demo */
.mini-bubble-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mini-bubble {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(107, 92, 231, 0.5), rgba(74, 144, 218, 0.15));
    position: relative;
}

.mini-bubble-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid var(--purple);
    opacity: 0.3;
    animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.18); opacity: 0.08; }
}

.mini-bubble-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mini-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    border-radius: 2px;
    animation: progressGrow 3s ease-in-out infinite alternate;
}

@keyframes progressGrow {
    0% { width: 20%; }
    100% { width: 70%; }
}

.mini-progress-text {
    font-size: 0.66rem;
    color: var(--text-muted);
}

/* Burst demo */
.burst-demo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.burst-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    animation: burstSlideIn 2.5s ease-in-out infinite;
}

.burst-card.delayed { animation-delay: 1.2s; }

@keyframes burstSlideIn {
    0%, 100% { opacity: 0.35; transform: translateY(4px); }
    50% { opacity: 1; transform: translateY(0); }
}

.burst-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    flex-shrink: 0;
}

.burst-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.burst-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

.burst-line.short { width: 60%; }

.burst-img {
    height: 38px;
    background: linear-gradient(135deg, rgba(107, 92, 231, 0.08), rgba(45, 212, 191, 0.06));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Pop demo */
.pop-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pop-bubble {
    width: 54px;
    height: 54px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pop-center {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.5);
    animation: popPulse 2s ease-in-out infinite;
}

@keyframes popPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}

.pop-burst-line {
    position: absolute;
    width: 2px;
    height: 14px;
    background: linear-gradient(to top, transparent, var(--cyan));
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(var(--angle));
    animation: burstOut 2s ease-in-out infinite;
    border-radius: 1px;
}

@keyframes burstOut {
    0%, 100% { height: 10px; opacity: 0.25; }
    50% { height: 22px; opacity: 0.8; }
}

.pop-label {
    font-size: 0.7rem;
    color: var(--cyan);
    font-weight: 600;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 30px 26px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Mouse-follow glow */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(107, 92, 231, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.10);
    transform: translateY(-3px);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.fi-purple {
    background: rgba(107, 92, 231, 0.1);
    color: var(--purple-light);
}

.fi-blue {
    background: rgba(74, 144, 218, 0.1);
    color: var(--blue);
}

.fi-cyan {
    background: rgba(45, 212, 191, 0.1);
    color: var(--cyan);
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.6;
}

/* ============================================
   STATS
   ============================================ */
.social-proof {
    padding: 60px 0;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-number {
    font-family: 'Satoshi', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* ============================================
   WAITLIST
   ============================================ */
.waitlist {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.waitlist-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.waitlist-desc {
    font-size: 1.05rem;
    color: var(--text-sub);
    max-width: 400px;
    margin: 14px auto 36px;
}

.waitlist-form {
    max-width: 460px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input-group input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 11, 24, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text);
    font-family: 'Satoshi', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder { color: var(--text-muted); }

.input-group input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(107, 92, 231, 0.15);
}

.form-note {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.waitlist-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.waitlist-success.visible {
    display: flex;
    animation: fadeInUp 0.5s ease;
}

.waitlist-success svg { color: var(--cyan); }
.waitlist-success h3 { font-size: 1.25rem; }
.waitlist-success p { color: var(--text-sub); font-size: 0.92rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 44px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Satoshi', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.74rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.25s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step { max-width: 380px; width: 100%; }

    .step-arrow {
        padding-top: 0;
    }

    .step-arrow svg {
        transform: rotate(90deg);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero { padding: 60px 20px 80px; }
    .hero-title { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1rem; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .features-grid { grid-template-columns: 1fr; }

    .stats-row {
        flex-direction: column;
        gap: 28px;
        padding: 36px 24px;
    }

    .stat-divider { width: 48px; height: 1px; }

    .input-group { flex-direction: column; }
    .input-group .btn { justify-content: center; }

    .waitlist { padding: 60px 0; }
    .section-container { padding: 0 16px; }
}
