:root {
    --bubblegum: #FF6B9D;
    --lilac: #C471F5;
    --fizz-cyan: #4ECDC4;
    --lemon-pop: #FFE66D;
    --tangerine: #FF8A5C;
    --milk-glass: #F8F5FF;
    --cloud-white: #FFFFFF;
    --deep-grape: #2D1B4E;
    --haze-plum: #6B5B8D;
}

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

body {
    background: var(--milk-glass);
    color: var(--deep-grape);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.65;
    letter-spacing: 0.005em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Micro-bubble particles */
.micro-bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.micro {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: var(--lilac);
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% { bottom: -10px; transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-3px); }
    75% { transform: translateX(4px); }
    100% { bottom: 100vh; transform: translateX(0); }
}

/* Blob Nav */
.blob-nav {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-pill {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--fizz-cyan);
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 200ms ease, transform 200ms ease;
}

.nav-pill:hover {
    opacity: 0.8;
    transform: scale(1.3);
}

.nav-pill.active {
    opacity: 1;
    background: var(--bubblegum);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.city-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
}

.city-reflect {
    position: absolute;
    bottom: 200px;
    left: 0;
    width: 100%;
    height: 100px;
    transform: scaleY(-1);
    opacity: 0.5;
}

.hero-blob {
    width: clamp(300px, 80vw, 700px);
    height: clamp(300px, 80vw, 700px);
    max-height: 80vh;
    background: linear-gradient(135deg, var(--bubblegum), var(--lilac), var(--fizz-cyan));
    background-size: 200% 200%;
    animation: blobMorph 12s ease-in-out infinite, gradient-shift 8s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    position: relative;
    z-index: 2;
}

@keyframes blobMorph {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25%  { border-radius: 58% 42% 56% 44% / 34% 66% 34% 66%; }
    50%  { border-radius: 40% 60% 30% 70% / 50% 50% 60% 40%; }
    75%  { border-radius: 67% 33% 47% 53% / 42% 58% 38% 62%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 14vw, 12rem);
    color: var(--cloud-white);
    letter-spacing: -0.03em;
    line-height: 0.95;
    text-transform: lowercase;
}

.hero-sub {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 30ch;
    margin-top: 1rem;
}

/* Foam Section */
.foam-section {
    padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 4vw, 4rem);
    position: relative;
    z-index: 1;
}

.bubble-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Content Bubbles */
.content-bubble {
    background: var(--cloud-white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
    position: relative;
    box-shadow:
        inset 0 -4px 8px rgba(0, 0, 0, 0.03),
        0 8px 32px rgba(45, 27, 78, 0.08);
    margin: -15px;
}

.bubble-large { width: 480px; height: 480px; }
.bubble-medium { width: 320px; height: 320px; }
.bubble-small { width: 220px; height: 220px; }

/* Frosted glass sphere highlight */
.content-bubble::before {
    content: '';
    position: absolute;
    top: 12%;
    left: 18%;
    width: 35%;
    height: 25%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), transparent 70%);
    pointer-events: none;
}

.bubble-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--deep-grape);
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: lowercase;
    margin-bottom: 0.75rem;
}

.bubble-body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--deep-grape);
    max-width: 24ch;
}

.bubble-small .bubble-body {
    max-width: 16ch;
    font-size: 0.85rem;
}

.bubble-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--haze-plum);
    margin-top: 0.75rem;
}

/* Bubble Enter Animation */
.bubble-enter {
    opacity: 0;
    transform: scale(0);
}

.bubble-enter.visible {
    animation: bubbleEnter 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--index, 0) * 80ms);
}

@keyframes bubbleEnter {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    80%  { transform: scale(0.96); }
    100% { transform: scale(1); opacity: 1; }
}

/* Deep Section */
.deep-section {
    padding: clamp(6rem, 15vh, 12rem) clamp(2rem, 6vw, 6rem);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.deep-section .content-bubble {
    border-radius: 32px;
    width: 100%;
    max-width: 600px;
    height: auto;
    padding: clamp(2.5rem, 5vw, 4rem);
}

.deep-section .content-bubble::before { display: none; }

.deep-section .bubble-body {
    max-width: 45ch;
}

/* Dissolve Footer */
.dissolve-section {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
}

.dissolve-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--deep-grape);
    opacity: 0.15;
    text-transform: lowercase;
}

.dissolve-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--haze-plum);
    opacity: 0.4;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .bubble-cluster {
        flex-direction: column;
        align-items: center;
    }

    .content-bubble {
        width: 100% !important;
        max-width: 360px;
        height: auto !important;
        border-radius: 32px;
        margin: 0.5rem 0;
        padding: 2rem;
    }

    .content-bubble::before { display: none; }

    .hero-blob {
        width: 90vw;
        height: 90vw;
    }

    .city-skyline, .city-reflect { display: none; }
    .blob-nav { display: none; }
    .micro-bubbles .micro:nth-child(n+8) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-blob {
        animation: none;
        border-radius: 50%;
    }
    .micro { animation: none; display: none; }
    .bubble-enter {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .nav-pill { transition: none; }
}
