/* ============================================
   BBOTTL.com - Dopamine Neon Burst Landing
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --void-base: #0a0a1a;
    --deep-layer: #12122b;
    --neon-magenta: #ff2d7b;
    --neon-cyan: #00f0ff;
    --neon-lime: #b8ff00;
    --plasma-yellow: #ffe135;
    --text-primary: #c8c8d4;
    --text-bright: #eeeef6;
    --near-black: #0a0a0f;
    --glow-magenta: rgba(255, 45, 123, 0.15);
    --glow-cyan: rgba(0, 240, 255, 0.12);

    --font-display: 'Anybody', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --cursor-x: 50%;
    --cursor-y: 50%;
}

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

html {
    scroll-behavior: smooth;
    background: var(--void-base);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--void-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Scroll Progress Bar (right edge) --- */
#scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 3px;
    height: 100vh;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.04);
}

#scroll-progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--neon-magenta), var(--neon-cyan), var(--neon-lime));
    transition: height 0.1s linear;
}

/* --- Cursor Glow --- */
#cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-magenta), transparent 70%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

body:hover #cursor-glow {
    opacity: 1;
}

/* --- Particle Field --- */
#particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0.6;
    animation: particleDrift var(--drift-duration, 20s) ease-in-out infinite alternate;
}

@keyframes particleDrift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(var(--drift-x1, 30px), var(--drift-y1, -40px)) scale(1.2);
        opacity: 0.7;
    }
    50% {
        transform: translate(var(--drift-x2, -20px), var(--drift-y2, 50px)) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translate(var(--drift-x3, 40px), var(--drift-y3, 20px)) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--drift-x4, -30px), var(--drift-y4, -30px)) scale(1);
        opacity: 0.4;
    }
}

/* --- Refraction Lines --- */
#refraction-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.refraction-line {
    position: absolute;
    width: 200%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    transform-origin: center center;
}

.refraction-line-1 {
    top: 15%;
    left: -50%;
    transform: rotate(25deg);
}

.refraction-line-2 {
    top: 35%;
    left: -50%;
    transform: rotate(-15deg);
}

.refraction-line-3 {
    top: 55%;
    left: -50%;
    transform: rotate(35deg);
}

.refraction-line-4 {
    top: 72%;
    left: -50%;
    transform: rotate(-20deg);
}

.refraction-line-5 {
    top: 88%;
    left: -50%;
    transform: rotate(10deg);
}

/* --- Section Base --- */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* --- HERO SECTION --- */
#hero {
    background: var(--near-black);
    overflow: hidden;
    flex-direction: column;
}

.hero-bottle-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 550px;
    clip-path: polygon(
        38% 0%, 62% 0%,
        62% 14%, 68% 17%,
        78% 22%, 82% 28%,
        82% 90%, 78% 96%,
        68% 100%, 32% 100%,
        22% 96%, 18% 90%,
        18% 28%, 22% 22%,
        32% 17%, 38% 14%
    );
    overflow: hidden;
    z-index: 11;
}

.hero-liquid-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, var(--neon-magenta), var(--neon-cyan));
    transition: height 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-magenta-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-magenta);
    box-shadow: 0 0 20px var(--neon-magenta), 0 0 60px var(--neon-magenta);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 15;
    text-align: center;
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 12vw;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.05em;
    line-height: 1;
    font-stretch: 100%;
    text-shadow: 0 0 40px rgba(255, 45, 123, 0.4), 0 0 80px rgba(0, 240, 255, 0.2);
}

.hero-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, font-stretch 0.6s ease;
}

.hero-letter.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--neon-cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-top: 1.5rem;
}

.hero-tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bottle watermark */
.bottle-watermark {
    position: absolute;
    right: 8%;
    top: 10%;
    width: 120px;
    height: 400px;
    opacity: 0.05;
    transform: rotate(15deg);
    z-index: 9;
}

/* --- Diagonal Dividers --- */
.diagonal-divider {
    position: relative;
    height: 100px;
    z-index: 10;
    margin: -50px 0;
}

.divider-magenta-cyan {
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan));
    clip-path: polygon(0 0, 100% 30%, 100% 70%, 0 100%);
}

.divider-cyan-lime {
    background: linear-gradient(225deg, var(--neon-cyan), var(--neon-lime));
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 70%);
}

.divider-lime-yellow {
    background: linear-gradient(135deg, var(--neon-lime), var(--plasma-yellow));
    clip-path: polygon(0 0, 100% 30%, 100% 70%, 0 100%);
}

.divider-yellow-magenta {
    background: linear-gradient(225deg, var(--plasma-yellow), var(--neon-magenta));
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 70%);
}

/* --- Content Sections --- */
.content-section {
    padding: 120px 8% 120px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    background: var(--void-base);
}

.content-block {
    flex: 1 1 55%;
    min-width: 300px;
}

.content-block-accent {
    flex: 1 1 30%;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-block-left {
    order: 1;
}

.content-block-right {
    order: 2;
}

/* Alternate layout for even sections */
#section-formula .content-block-left {
    order: 1;
}

#section-formula .content-block-right {
    order: 2;
}

#section-experience .content-block-left {
    order: 1;
}

#section-experience .content-block-right {
    order: 2;
}

/* --- Typography --- */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.body-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    max-width: 540px;
}

.label-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--neon-cyan);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

/* --- Glow Icons --- */
.glow-icon {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--deep-layer);
    box-shadow:
        0 0 20px var(--glow-magenta),
        0 0 80px var(--glow-magenta);
    transition: box-shadow 0.6s ease-out;
}

.glow-icon svg {
    width: 80px;
    height: 80px;
}

.glow-icon svg line,
.glow-icon svg path,
.glow-icon svg circle {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.4s ease;
}

.glow-icon:hover svg line,
.glow-icon:hover svg path {
    stroke-dashoffset: 200;
    animation: iconDraw 0.8s ease forwards;
}

@keyframes iconDraw {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: 0; }
}

/* Alternate glow colors per section */
#section-formula .glow-icon {
    box-shadow:
        0 0 20px var(--glow-cyan),
        0 0 80px var(--glow-cyan);
}

#section-release .glow-icon {
    box-shadow:
        0 0 20px rgba(184, 255, 0, 0.15),
        0 0 80px rgba(184, 255, 0, 0.12);
}

#section-experience .glow-icon {
    box-shadow:
        0 0 20px rgba(255, 225, 53, 0.15),
        0 0 80px rgba(255, 225, 53, 0.12);
}

/* --- Scroll Reveal Animations --- */
.content-block,
.content-block-accent {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.content-block.revealed,
.content-block-accent.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger child elements */
.content-block.revealed .label-tag {
    animation: fadeSlideUp 0.5s ease-out 0.1s both;
}

.content-block.revealed .section-heading {
    animation: fadeSlideUp 0.5s ease-out 0.2s both;
}

.content-block.revealed .body-text {
    animation: fadeSlideUp 0.5s ease-out 0.3s both;
}

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

/* --- Glow-bleed entry animation --- */
.glow-icon {
    opacity: 0;
    transition: opacity 0.6s ease-out, box-shadow 0.6s ease-out;
}

.content-block-accent.revealed .glow-icon {
    opacity: 1;
}

/* --- CTA Section --- */
.section-cta-zone {
    flex-direction: column;
    text-align: center;
    background: var(--void-base);
}

.cta-content {
    position: relative;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.cta-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.cta-heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.cta-text {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.cta-button {
    position: relative;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    background: transparent;
    border: 2px solid var(--neon-magenta);
    padding: 16px 48px;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.2s ease, color 0.15s ease, transform 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 45, 123, 0.3);
}

.cta-button:hover {
    box-shadow: 0 0 30px rgba(255, 45, 123, 0.5), 0 0 60px rgba(255, 45, 123, 0.2);
    color: var(--text-bright);
    transform: scale(1.03);
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 45, 123, 0.4);
    transform: scale(0);
    pointer-events: none;
}

.cta-button-ripple.active {
    animation: rippleExpand 0.5s ease-out forwards;
}

@keyframes rippleExpand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Footer --- */
.footer-zone {
    min-height: 50vh;
    background: linear-gradient(to bottom, var(--void-base), var(--near-black), #000000);
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 15;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-bright);
    display: block;
    opacity: 0.3;
    letter-spacing: 0.1em;
}

.footer-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.4;
    display: block;
    margin-top: 0.5rem;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.footer-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    opacity: 0.5;
    animation: footerDrift linear infinite;
}

@keyframes footerDrift {
    0% {
        transform: translateY(0);
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* --- Pill Navigation --- */
#pill-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1000;
    padding: 8px 12px;
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pill-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, background 0.2s ease, color 0.15s ease, transform 0.2s ease;
}

.pill-btn:hover {
    background: rgba(255, 45, 123, 0.12);
    box-shadow: 0 0 20px rgba(255, 45, 123, 0.3);
    color: var(--text-bright);
}

.pill-btn:active {
    transform: scale(0.95);
}

.pill-btn.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Pill button radial pulse on click */
@keyframes pillPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 45, 123, 0.4);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(255, 45, 123, 0);
    }
}

.pill-btn.pulsed {
    animation: pillPulse 0.5s ease-out;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 16vw;
    }

    .hero-bottle-mask {
        width: 200px;
        height: 400px;
    }

    .content-section {
        padding: 80px 6% 80px;
        gap: 40px;
        flex-direction: column;
    }

    .content-block,
    .content-block-accent {
        flex: 1 1 100%;
        min-width: unset;
    }

    .content-block-left,
    .content-block-right {
        order: unset !important;
    }

    .glow-icon {
        width: 120px;
        height: 120px;
    }

    .glow-icon svg {
        width: 60px;
        height: 60px;
    }

    .section-heading {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    #pill-nav {
        bottom: 12px;
        gap: 4px;
        padding: 6px 8px;
    }

    .pill-btn {
        font-size: 0.6rem;
        padding: 6px 12px;
    }

    .diagonal-divider {
        height: 60px;
        margin: -30px 0;
    }

    .bottle-watermark {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20vw;
    }

    .hero-tagline {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .cta-button {
        padding: 14px 36px;
        font-size: 1rem;
    }
}
