/* RRIPPL.com - Cascading Influence */
/* Palette: #1e1b4b, #c4b5fd, #8b5cf6, #f472b6, #06b6d4, #ede9fe, #f5f3ff */

:root {
    --indigo: #1e1b4b;
    --lavender: #c4b5fd;
    --purple: #8b5cf6;
    --pink: #f472b6;
    --teal: #06b6d4;
    --mist: #ede9fe;
    --lightest: #f5f3ff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--lightest);
    color: var(--indigo);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* =============================================
   DECORATIVE DROPLETS
   ============================================= */
.droplet {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.droplet.visible {
    opacity: 0.6;
}

.droplet-1 { background: var(--purple); top: 12%; left: 8%; }
.droplet-2 { background: var(--teal); top: 18%; right: 12%; }
.droplet-3 { background: var(--pink); top: 35%; left: 5%; }
.droplet-4 { background: var(--purple); top: 42%; right: 7%; }
.droplet-5 { background: var(--teal); top: 55%; left: 10%; }
.droplet-6 { background: var(--pink); top: 62%; right: 9%; }
.droplet-7 { background: var(--purple); top: 75%; left: 6%; }
.droplet-8 { background: var(--teal); top: 82%; right: 11%; }
.droplet-9 { background: var(--pink); top: 92%; left: 12%; }

/* =============================================
   WAVE CONNECTOR LINE
   ============================================= */
.wave-connector {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.wave-path {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    transition: stroke-dashoffset 0.05s linear;
}

/* =============================================
   SECTIONS (shared)
   ============================================= */
.ripple-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

/* =============================================
   SECTION 1: DROP (HERO)
   ============================================= */
#drop {
    background: var(--lightest);
    overflow: hidden;
}

.concentric-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: 800px;
    height: 800px;
}

.ring {
    position: absolute;
    border: 1px solid var(--lavender);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: ringExpand 5s ease-out infinite;
}

.ring-1 { animation-delay: 0s; }
.ring-2 { animation-delay: 1s; }
.ring-3 { animation-delay: 2s; }
.ring-4 { animation-delay: 3s; }
.ring-5 { animation-delay: 4s; }

@keyframes ringExpand {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.7;
        border-width: 2px;
    }
    50% {
        opacity: 0.4;
        border-width: 1px;
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
        border-width: 0.5px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.brand-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 12vw, 7rem);
    color: var(--indigo);
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--purple);
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 1.2s ease 0.5s forwards;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@keyframes fadeUp {
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: fadeUp 1.2s ease 1.5s forwards;
}

.scroll-dot {
    width: 4px;
    height: 4px;
    background: var(--lavender);
    border-radius: 50%;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-dot:nth-child(2) { animation-delay: 0.3s; }
.scroll-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* =============================================
   SECTION 2: SPREAD (BLOB SECTIONS)
   ============================================= */
#spread {
    padding: 6rem 2rem;
    min-height: 160vh;
    background: var(--lightest);
}

.spread-inner {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blob-card {
    width: 100%;
    padding: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.blob-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Overlapping by 30px per design spec */
.blob-card + .blob-card {
    margin-top: -30px;
}

.purple-blob {
    background: rgba(139, 92, 246, 0.08);
    border-radius: 30% 70% 60% 40% / 50% 60% 40% 50%;
    z-index: 3;
}

.teal-blob {
    background: rgba(6, 182, 212, 0.08);
    border-radius: 60% 40% 50% 50% / 40% 60% 50% 50%;
    margin-left: 4rem;
    z-index: 2;
}

.pink-blob {
    background: rgba(244, 114, 182, 0.08);
    border-radius: 50% 50% 40% 60% / 55% 45% 60% 40%;
    margin-left: -3rem;
    z-index: 1;
}

.blob-accent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    top: 24px;
    left: 32px;
}

.purple-dot { background: var(--purple); }
.teal-dot { background: var(--teal); }
.pink-dot { background: var(--pink); }

.blob-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--indigo);
    margin-bottom: 1rem;
}

.blob-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(30, 27, 75, 0.6);
}

.blob-metric {
    display: inline-block;
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--purple);
    margin-top: 1.2rem;
    opacity: 0.5;
}

.teal-blob .blob-metric { color: var(--teal); }
.pink-blob .blob-metric { color: var(--pink); }

/* =============================================
   SECTION 3: CASCADE
   ============================================= */
#cascade {
    background: var(--mist);
    overflow: hidden;
    position: relative;
}

.cascade-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--indigo);
    margin-bottom: 2rem;
    text-align: center;
}

.cascade-impact {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cascade-impact.visible {
    opacity: 1;
    transform: translateY(0);
}

.impact-number {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--indigo);
}

.impact-arrow {
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    color: var(--lavender);
}

.cascade-strip {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.cascade-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cascade-circle.visible {
    opacity: 1;
    transform: scale(1);
}

.c1 { width: 24px; height: 24px; background: var(--purple); font-size: 0.5rem; }
.c2 { width: 40px; height: 40px; background: var(--purple); font-size: 0.6rem; }
.c3 { width: 60px; height: 60px; background: var(--teal); font-size: 0.7rem; }
.c4 { width: 80px; height: 80px; background: var(--teal); font-size: 0.8rem; }
.c5 { width: 105px; height: 105px; background: var(--pink); font-size: 0.85rem; }
.c6 { width: 130px; height: 130px; background: var(--pink); font-size: 0.9rem; }

.cascade-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: rgba(30, 27, 75, 0.4);
    margin-top: 2.5rem;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Background rings in cascade section */
.cascade-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cascade-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--lavender);
    border-radius: 50%;
    opacity: 0.15;
}

.cr1 { width: 200px; height: 200px; }
.cr2 { width: 400px; height: 400px; }
.cr3 { width: 600px; height: 600px; }

/* =============================================
   SECTION 4: STILL (RESOLUTION)
   ============================================= */
.still-section {
    background: var(--lightest);
    min-height: 80vh;
}

.still-content {
    text-align: center;
    position: relative;
}

.still-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.still-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--lavender);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1.5s ease, width 1.5s ease, height 1.5s ease;
}

.still-ring.converge {
    opacity: 0.25;
}

.sr1 { width: 300px; height: 300px; }
.sr2 { width: 200px; height: 200px; }
.sr3 { width: 100px; height: 100px; }

.still-ring.converge.sr1 { width: 60px; height: 60px; opacity: 0.1; }
.still-ring.converge.sr2 { width: 35px; height: 35px; opacity: 0.15; }
.still-ring.converge.sr3 { width: 15px; height: 15px; opacity: 0.2; }

.final-dot {
    width: 8px;
    height: 8px;
    background: var(--purple);
    border-radius: 50%;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: scale(0);
    transition: opacity 1s ease 0.5s, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

.final-dot.visible {
    opacity: 1;
    transform: scale(1);
}

.still-text {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--indigo);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1.2s ease 0.8s, transform 1.2s ease 0.8s;
    position: relative;
    z-index: 2;
}

.still-text.visible {
    opacity: 0.5;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .teal-blob,
    .pink-blob {
        margin-left: 0;
    }

    .cascade-impact {
        gap: 0.4rem;
    }

    .impact-number {
        font-size: 1.2rem;
    }

    .cascade-strip {
        gap: 0.8rem;
    }

    .c6 {
        width: 100px;
        height: 100px;
    }

    .wave-connector {
        display: none;
    }

    .droplet {
        display: none;
    }
}

@media (max-width: 480px) {
    .blob-card {
        padding: 28px 24px;
    }

    .brand-name {
        font-size: 3rem;
    }

    .cascade-circle.c5,
    .cascade-circle.c6 {
        width: 70px;
        height: 70px;
        font-size: 0.65rem;
    }
}
