/* ===== concurrent.day — candy-bright playground ===== */

:root {
    --pink: #FF6B9D;
    --lilac: #C084FC;
    --tangerine: #FF9F43;
    --mint: #4ECDC4;
    --lemon: #FFE66D;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --cocoa: #2D1B2E;
    --plum: #6B5B7B;
    --pale-lilac: #F0E6FF;
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--cocoa);
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, var(--cream) 0%, var(--pale-lilac) 100%);
    overflow: hidden;
    padding: 40px 20px 80px;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.float-shape { position: absolute; }

.star { width: 48px; height: 48px; animation: spin-soft 8s var(--bouncy) infinite; }
.star-a { top: 12%; left: 8%; width: 36px; height: 36px; animation-duration: 7s; }
.star-b { top: 18%; right: 12%; width: 52px; height: 52px; animation-duration: 9s; animation-delay: -2s; }
.star-c { bottom: 22%; left: 18%; width: 28px; height: 28px; animation-duration: 6.5s; }

.tri { width: 60px; height: 60px; }
.tri-a { top: 28%; right: 8%; animation: drift-y 4.4s ease-in-out infinite; }
.tri-b { bottom: 30%; right: 22%; width: 42px; height: 42px; animation: drift-y 5.2s ease-in-out infinite; animation-delay: -1.5s; }

.circ { width: 90px; height: 90px; animation: pulse-soft 3.4s ease-in-out infinite; }
.circ-a { top: 20%; left: 22%; animation-duration: 3.2s; }
.circ-b { bottom: 18%; right: 10%; width: 120px; height: 120px; animation-duration: 4s; animation-delay: -1s; }
.circ-c { top: 60%; left: 6%; width: 70px; height: 70px; animation-duration: 3.7s; animation-delay: -0.5s; }

.dash {
    position: absolute;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    opacity: 0.85;
    animation: dash-float 6s ease-in-out infinite;
}
.dash-1 { top: 14%; left: 40%; background: var(--pink); transform: rotate(22deg); animation-delay: -0.2s; }
.dash-2 { top: 22%; left: 70%; background: var(--mint); transform: rotate(-18deg); animation-delay: -1s; }
.dash-3 { top: 36%; left: 30%; background: var(--lemon); transform: rotate(45deg); animation-delay: -2s; }
.dash-4 { top: 60%; left: 78%; background: var(--lilac); transform: rotate(-30deg); animation-delay: -2.6s; }
.dash-5 { top: 70%; left: 50%; background: var(--tangerine); transform: rotate(12deg); animation-delay: -3.2s; }
.dash-6 { top: 80%; left: 28%; background: var(--pink); transform: rotate(-50deg); animation-delay: -1.4s; }
.dash-7 { top: 32%; left: 88%; background: var(--lemon); transform: rotate(60deg); animation-delay: -0.8s; }
.dash-8 { top: 48%; left: 16%; background: var(--mint); transform: rotate(-12deg); animation-delay: -3.6s; }
.dash-9 { top: 8%; left: 56%; background: var(--lilac); transform: rotate(34deg); animation-delay: -2.2s; }
.dash-10 { top: 88%; left: 64%; background: var(--tangerine); transform: rotate(-22deg); animation-delay: -4s; }

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
}

.hero-kicker {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'CASL' 1, 'MONO' 1;
    font-size: 0.95rem;
    color: var(--plum);
    letter-spacing: 0.06em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fade-up 800ms var(--spring) 1.4s forwards;
}

.hero-title {
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
    word-break: break-word;
}

.hero-title .ltr {
    display: inline-block;
    transform: scale(0) rotate(-15deg);
    opacity: 0;
    animation: letter-pop 800ms var(--bouncy) forwards;
}

.hero-title .ltr:nth-child(5n+1) { color: var(--pink); }
.hero-title .ltr:nth-child(5n+2) { color: var(--lilac); }
.hero-title .ltr:nth-child(5n+3) { color: var(--mint); }
.hero-title .ltr:nth-child(5n+4) { color: var(--tangerine); }
.hero-title .ltr:nth-child(5n+5) { color: var(--pink); }
.hero-title .ltr.dot { color: var(--cocoa); }

.hero-sub {
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    color: var(--plum);
    font-weight: 600;
    opacity: 0;
    animation: fade-up 800ms var(--spring) 1.6s forwards;
}

.hero-peek {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 80px;
    z-index: 1;
}

/* ===== Wave divider ===== */
.wave-divider {
    display: block;
    width: 100%;
    height: 60px;
    margin-top: -1px;
    animation: wave-drift 8s linear infinite;
}

/* ===== Panels ===== */
main {
    position: relative;
    padding: 40px 0 80px;
    max-width: 100vw;
    overflow: hidden;
}

.panel-row {
    position: relative;
    width: 100%;
    padding: 36px 24px;
    display: flex;
    align-items: center;
}

.offset-left { justify-content: flex-start; padding-left: 60px; }
.offset-right { justify-content: flex-end; padding-right: 60px; }
.offset-center { justify-content: center; }

.panel {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 860px;
    width: 100%;
    border: 2px solid rgba(192, 132, 252, 0.3);
    box-shadow: 6px 6px 0 var(--lilac);
    transform: translateY(40px) translateX(0);
    opacity: 0;
    transition: transform 800ms var(--bouncy), box-shadow 400ms var(--spring), opacity 800ms ease-out;
}

.offset-left .panel { transform: translateY(40px) translateX(-60px); }
.offset-right .panel { transform: translateY(40px) translateX(60px); }

.panel.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.panel:hover {
    box-shadow: 10px 10px 0 var(--lilac);
}

.panel-mint {
    background: var(--cream);
    border-color: rgba(78, 205, 196, 0.4);
    box-shadow: 6px 6px 0 var(--mint);
}
.panel-mint:hover { box-shadow: 10px 10px 0 var(--mint); }

.panel-pink {
    background: var(--white);
    border-color: rgba(255, 107, 157, 0.4);
    box-shadow: 6px 6px 0 var(--pink);
}
.panel-pink:hover { box-shadow: 10px 10px 0 var(--pink); }

.panel-lilac {
    background: var(--pale-lilac);
    border-color: rgba(192, 132, 252, 0.4);
    box-shadow: 6px 6px 0 var(--lilac);
}
.panel-lilac:hover { box-shadow: 10px 10px 0 var(--lilac); }

.panel-cream {
    background: var(--cream);
    border-color: rgba(255, 230, 109, 0.6);
    box-shadow: 6px 6px 0 var(--lemon);
}
.panel-cream:hover { box-shadow: 10px 10px 0 var(--lemon); }

.panel-tang {
    background: var(--white);
    border-color: rgba(255, 159, 67, 0.4);
    box-shadow: 6px 6px 0 var(--tangerine);
}
.panel-tang:hover { box-shadow: 10px 10px 0 var(--tangerine); }

.panel-final {
    background: linear-gradient(135deg, var(--pink) 0%, var(--lilac) 100%);
    color: var(--white);
    border: 2px solid rgba(255, 230, 109, 0.6);
    box-shadow: 8px 8px 0 var(--lemon);
    text-align: center;
}
.panel-final:hover { box-shadow: 12px 12px 0 var(--lemon); }

.panel-tag {
    display: inline-block;
    font-family: 'Recursive', monospace;
    font-variation-settings: 'CASL' 1, 'MONO' 1;
    font-size: 0.85rem;
    color: var(--plum);
    background: rgba(192, 132, 252, 0.12);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.panel h2 {
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--cocoa);
}

.panel p { margin-bottom: 14px; color: var(--cocoa); }
.panel p:last-child { margin-bottom: 0; }

/* Accents floating around panels */
.accent {
    position: absolute;
    pointer-events: none;
}

.accent-star { width: 56px; height: 56px; right: 4%; top: -20px; animation: spin-soft 7s var(--bouncy) infinite; }
.accent-tri { width: 64px; height: 64px; left: 4%; bottom: -22px; animation: drift-y 5s ease-in-out infinite; }
.accent-circ { width: 90px; height: 90px; right: 6%; bottom: -30px; animation: pulse-soft 3.6s ease-in-out infinite; }
.accent-star-pink { width: 44px; height: 44px; right: 6%; top: -18px; animation: spin-soft 8.5s var(--bouncy) infinite; }

/* ===== Polyrhythm stage ===== */
.poly-stage {
    position: relative;
    height: 200px;
    margin: 30px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: linear-gradient(90deg, rgba(255,107,157,0.06), rgba(192,132,252,0.06), rgba(78,205,196,0.06));
    border-radius: 18px;
    border: 2px dashed rgba(192, 132, 252, 0.3);
    overflow: hidden;
}

.poly {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.poly-1 { background: var(--pink); animation: poly-bounce 2.1s var(--bouncy) infinite; }
.poly-2 { background: var(--lilac); animation: poly-scale 2.4s var(--bouncy) infinite; }
.poly-3 { background: var(--mint); animation: poly-rotate 2.7s var(--spring) infinite; border-radius: 16px; }
.poly-4 { background: var(--lemon); animation: poly-color 3s ease-in-out infinite; }
.poly-5 { background: var(--tangerine); animation: poly-fig8 3.3s ease-in-out infinite; }

.poly-caption {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'CASL' 1, 'MONO' 1;
    font-size: 0.85rem;
    color: var(--plum);
    text-align: center;
    margin-top: 8px;
}

/* ===== Concurrent circles row ===== */
.cc-row {
    display: flex;
    gap: 0;
    margin-top: 24px;
    height: 100px;
    align-items: center;
    padding-left: 28px;
}
.cc {
    display: inline-block;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin-left: -28px;
    mix-blend-mode: multiply;
    animation: pulse-soft 3.4s ease-in-out infinite;
}
.cc-pink { background: var(--pink); opacity: 0.55; animation-duration: 3.1s; }
.cc-lilac { background: var(--lilac); opacity: 0.55; animation-duration: 3.6s; animation-delay: -0.5s; }
.cc-mint { background: var(--mint); opacity: 0.55; animation-duration: 4.1s; animation-delay: -1s; }
.cc-tangerine { background: var(--tangerine); opacity: 0.55; animation-duration: 3.4s; animation-delay: -1.6s; }
.cc-lemon { background: var(--lemon); opacity: 0.65; animation-duration: 3.8s; animation-delay: -2.1s; }

/* ===== Parallel list ===== */
.parallel-list { list-style: none; margin-top: 10px; }
.parallel-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    font-size: 1.1rem;
    color: var(--cocoa);
}
.bullet {
    width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto;
    box-shadow: 2px 2px 0 rgba(45,27,46,0.15);
}
.b-pink { background: var(--pink); }
.b-mint { background: var(--mint); }
.b-lemon { background: var(--lemon); }
.b-tangerine { background: var(--tangerine); }
.b-lilac { background: var(--lilac); }

/* ===== Sticker button ===== */
.sticker-btn {
    margin-top: 22px;
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    background: var(--pink);
    color: var(--white);
    border: 2px solid rgba(45,27,46,0.2);
    border-radius: 18px;
    padding: 14px 28px;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--cocoa);
    transition: transform 300ms var(--bouncy), box-shadow 300ms var(--spring);
}
.sticker-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--cocoa);
}
.sticker-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--cocoa);
}

/* ===== Chips ===== */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.chip {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 16px;
    background: var(--white);
    color: var(--cocoa);
    border: 2px solid rgba(45,27,46,0.2);
    transition: transform 300ms var(--bouncy), box-shadow 300ms var(--spring);
}
.chip-pink { box-shadow: 4px 4px 0 var(--pink); }
.chip-mint { box-shadow: 4px 4px 0 var(--mint); }
.chip-lilac { box-shadow: 4px 4px 0 var(--lilac); }
.chip-tangerine { box-shadow: 4px 4px 0 var(--tangerine); }
.chip-lemon { box-shadow: 4px 4px 0 var(--lemon); }
.chip:hover { transform: translate(-2px, -2px); }
.chip-pink:hover { box-shadow: 6px 6px 0 var(--pink); }
.chip-mint:hover { box-shadow: 6px 6px 0 var(--mint); }
.chip-lilac:hover { box-shadow: 6px 6px 0 var(--lilac); }
.chip-tangerine:hover { box-shadow: 6px 6px 0 var(--tangerine); }
.chip-lemon:hover { box-shadow: 6px 6px 0 var(--lemon); }

/* ===== Final panel ===== */
.final-head {
    color: var(--white) !important;
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 800;
}
.final-sub { color: var(--cream); font-weight: 600; opacity: 0.95; }
.final-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}
.final-dot {
    width: 18px; height: 18px; border-radius: 50%;
    animation: pulse-soft 2.8s ease-in-out infinite;
}
.d1 { background: var(--lemon); animation-delay: -0s; }
.d2 { background: var(--mint); animation-delay: -0.4s; }
.d3 { background: var(--white); animation-delay: -0.8s; }
.d4 { background: var(--lemon); animation-delay: -1.2s; }
.d5 { background: var(--mint); animation-delay: -1.6s; }

/* ===== Footer ===== */
.foot {
    text-align: center;
    padding: 60px 20px 20px;
}
.foot-mono {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'CASL' 1, 'MONO' 1;
    font-size: 0.85rem;
    color: var(--plum);
}

/* ===== Confetti layer ===== */
.confetti-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}
.confetti-bit {
    position: absolute;
    width: 8px;
    height: 16px;
    border-radius: 2px;
    animation: confetti-fall 1800ms cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

/* ===== Back to top ===== */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    background: var(--lemon);
    color: var(--cocoa);
    border: 2px solid rgba(45,27,46,0.25);
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--pink);
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px) scale(0.6);
    transition: transform 600ms var(--bouncy), opacity 400ms ease-out, box-shadow 300ms var(--spring);
}
.back-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.back-top:hover { box-shadow: 6px 6px 0 var(--pink); }
.bt-arrow {
    display: inline-block;
    margin-right: 4px;
    animation: arrow-bounce 1.6s var(--bouncy) infinite;
}

/* ===== Keyframes ===== */
@keyframes spin-soft {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}
@keyframes drift-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}
@keyframes dash-float {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); opacity: 0.85; }
    50% { transform: translateY(-12px) rotate(var(--r, 0deg)); opacity: 1; }
}
@keyframes letter-pop {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes fade-up {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes wave-drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-20px); }
}
@keyframes poly-bounce {
    0%, 100% { transform: translateY(-50px); }
    50% { transform: translateY(50px); }
}
@keyframes poly-scale {
    0%, 100% { transform: scale(0.7); }
    50% { transform: scale(1.4); }
}
@keyframes poly-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes poly-color {
    0%, 100% { background: var(--lemon); }
    25% { background: var(--pink); }
    50% { background: var(--mint); }
    75% { background: var(--lilac); }
}
@keyframes poly-fig8 {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(30px, -30px); }
    50%  { transform: translate(0, 0); }
    75%  { transform: translate(-30px, -30px); }
    100% { transform: translate(0, 0); }
}
@keyframes confetti-fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .offset-left, .offset-right, .offset-center {
        justify-content: center;
        padding-left: 16px;
        padding-right: 16px;
    }
    .panel {
        width: calc(100vw - 32px);
        padding: 32px 22px;
    }
    .offset-left .panel { transform: translateY(30px) translateX(-30px); }
    .offset-right .panel { transform: translateY(30px) translateX(30px); }
    .panel.in-view { transform: translateY(0) translateX(0); }
    .float-shape:nth-child(even) { display: none; }
    .dash:nth-child(even) { display: none; }
    .poly-stage { height: 160px; }
    .poly { width: 40px; height: 40px; }
    .cc { width: 60px; height: 60px; margin-left: -20px; }
    .cc-row { padding-left: 20px; }
    .accent { display: none; }
    .back-top { right: 14px; bottom: 14px; padding: 10px 16px; font-size: 0.9rem; }
}
