/* gabs.day - Blobitecture Fluid Layout */
/* Palette: #f0f7ff, #bfdbfe, #fce7f3, #d1fae5, #1e293b, #94a3b8, #6366f1 */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #f0f7ff;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* ==================== */
/* Floating Decorative Blobs */
/* ==================== */

.floating-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.deco-blob {
    position: absolute;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    opacity: 0.12;
    animation: blobFloat 20s ease-in-out infinite;
}

.deco-blob-1 {
    width: 300px;
    height: 300px;
    background: #bfdbfe;
    top: 5%;
    left: -5%;
    animation-delay: 0s;
}

.deco-blob-2 {
    width: 200px;
    height: 200px;
    background: #fce7f3;
    top: 15%;
    right: -3%;
    border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%;
    animation-delay: -4s;
}

.deco-blob-3 {
    width: 250px;
    height: 250px;
    background: #d1fae5;
    top: 35%;
    left: 5%;
    border-radius: 50% 50% 40% 60% / 60% 50% 50% 40%;
    animation-delay: -8s;
}

.deco-blob-4 {
    width: 180px;
    height: 180px;
    background: #bfdbfe;
    top: 50%;
    right: 8%;
    animation-delay: -12s;
}

.deco-blob-5 {
    width: 220px;
    height: 220px;
    background: #fce7f3;
    top: 65%;
    left: -2%;
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    animation-delay: -3s;
}

.deco-blob-6 {
    width: 160px;
    height: 160px;
    background: #d1fae5;
    top: 75%;
    right: -4%;
    border-radius: 45% 55% 55% 45% / 55% 45% 55% 45%;
    animation-delay: -7s;
}

.deco-blob-7 {
    width: 280px;
    height: 280px;
    background: #bfdbfe;
    top: 88%;
    left: 10%;
    border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
    animation-delay: -15s;
}

.deco-blob-8 {
    width: 140px;
    height: 140px;
    background: #fce7f3;
    top: 92%;
    right: 15%;
    animation-delay: -10s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(15px, -20px) rotate(5deg) scale(1.04);
    }
    50% {
        transform: translate(-10px, 10px) rotate(-3deg) scale(0.97);
    }
    75% {
        transform: translate(8px, 15px) rotate(4deg) scale(1.02);
    }
}

/* ==================== */
/* Hero Section */
/* ==================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-blob {
    position: absolute;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    opacity: 0.25;
    z-index: -1;
    animation: blobPulse 8s ease-in-out infinite;
}

.hero-blob-left {
    width: 400px;
    height: 400px;
    background: #bfdbfe;
    left: 5%;
    top: 15%;
    animation-delay: 0s;
}

.hero-blob-right {
    width: 350px;
    height: 350px;
    background: #fce7f3;
    right: 5%;
    top: 25%;
    border-radius: 60% 40% 50% 50% / 40% 60% 50% 50%;
    animation-delay: -3s;
}

.hero-blob-top {
    width: 280px;
    height: 280px;
    background: #d1fae5;
    top: 5%;
    left: 35%;
    border-radius: 50% 50% 40% 60% / 60% 50% 50% 40%;
    animation-delay: -5s;
}

@keyframes blobPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    33% {
        transform: scale(1.08) rotate(3deg);
    }
    66% {
        transform: scale(0.95) rotate(-2deg);
    }
}

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

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.sunrise-icon {
    flex-shrink: 0;
}

.brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(3rem, 10vw, 6rem);
    color: #1e293b;
    letter-spacing: -0.02em;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-top: 0.75rem;
}

.ticker {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 24px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

.ticker-sep {
    opacity: 0.4;
}

/* ==================== */
/* Flow SVGs */
/* ==================== */

.flow-svg {
    display: block;
    width: 100px;
    height: 80px;
    margin: -10px auto;
    position: relative;
    z-index: 1;
}

.flow-curve {
    display: block;
    width: 80px;
    height: 40px;
    margin: -8px auto 0;
}

/* ==================== */
/* Topics Section */
/* ==================== */

.topics {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem 6rem;
    max-width: 720px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.topics-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.topic-bubble {
    padding: 32px;
    max-width: 520px;
    width: 100%;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.topic-bubble:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.blob-blue {
    background: #bfdbfe;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
}

.blob-pink {
    background: #fce7f3;
    border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%;
}

.blob-green {
    background: #d1fae5;
    border-radius: 50% 50% 40% 60% / 60% 50% 50% 40%;
}

.topic-tag {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: #6366f1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.topic-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.topic-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1e293b;
    opacity: 0.75;
    line-height: 1.7;
}

.topic-replies {
    display: inline-block;
    margin-top: 12px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: #6366f1;
    opacity: 0.7;
}

/* Alternating alignment */
.topic-bubble:nth-child(odd) {
    align-self: flex-start;
    margin-left: 0;
}

.topic-bubble:nth-child(even) {
    align-self: flex-end;
    margin-right: 0;
}

/* Actually the flow-curves are also children so we target via nth-of-type is not suitable.
   We'll handle alternating via a class approach in JS or just let them flow naturally. */

/* ==================== */
/* Deep Dive Section */
/* ==================== */

.deep-dive {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.deep-dive-blob {
    background: #bfdbfe;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    padding: 48px 40px;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.deep-dive-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 16px;
}

.deep-dive-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.deep-dive-body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1e293b;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 16px;
}

.deep-dive-meta {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: #6366f1;
    opacity: 0.7;
}

.supporting-blobs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    padding: 0 1rem;
}

.support-blob {
    padding: 24px 28px;
    max-width: 280px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #1e293b;
    opacity: 0.85;
    line-height: 1.6;
    font-style: italic;
}

.support-blob-1 {
    background: #fce7f3;
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
}

.support-blob-2 {
    background: #d1fae5;
    border-radius: 45% 55% 55% 45% / 55% 45% 55% 45%;
}

.support-blob-3 {
    background: #bfdbfe;
    border-radius: 50% 50% 40% 60% / 40% 50% 60% 50%;
}

/* ==================== */
/* Tomorrow Section */
/* ==================== */

.tomorrow {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    overflow: hidden;
}

.tomorrow-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.away-blob {
    position: absolute;
    opacity: 0.15;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    animation: floatAway 12s ease-in-out infinite;
}

.away-blob-1 {
    width: 200px;
    height: 200px;
    background: #bfdbfe;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.away-blob-2 {
    width: 160px;
    height: 160px;
    background: #fce7f3;
    top: 40%;
    right: 15%;
    border-radius: 60% 40% 50% 50% / 40% 60% 50% 50%;
    animation-delay: -4s;
}

.away-blob-3 {
    width: 120px;
    height: 120px;
    background: #d1fae5;
    bottom: 25%;
    left: 30%;
    border-radius: 50% 50% 40% 60% / 60% 50% 50% 40%;
    animation-delay: -8s;
}

@keyframes floatAway {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translate(20px, -30px) scale(0.85);
        opacity: 0.08;
    }
}

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

.tomorrow-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #1e293b;
    margin-bottom: 12px;
}

.tomorrow-brand {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    color: #94a3b8;
    display: block;
}

/* ==================== */
/* Fade-up Animation */
/* ==================== */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Stagger delays for topic bubbles */
.topic-bubble.fade-up:nth-child(1) { transition-delay: 0s; }
.topic-bubble.fade-up:nth-child(3) { transition-delay: 0.1s; }
.topic-bubble.fade-up:nth-child(5) { transition-delay: 0.2s; }
.topic-bubble.fade-up:nth-child(7) { transition-delay: 0.3s; }
.topic-bubble.fade-up:nth-child(9) { transition-delay: 0.4s; }
.topic-bubble.fade-up:nth-child(11) { transition-delay: 0.5s; }
.topic-bubble.fade-up:nth-child(13) { transition-delay: 0.6s; }

.support-blob.fade-up:nth-child(1) { transition-delay: 0.1s; }
.support-blob.fade-up:nth-child(2) { transition-delay: 0.25s; }
.support-blob.fade-up:nth-child(3) { transition-delay: 0.4s; }

/* ==================== */
/* Responsive */
/* ==================== */

@media (max-width: 768px) {
    .hero-blob-left { width: 250px; height: 250px; }
    .hero-blob-right { width: 200px; height: 200px; }
    .hero-blob-top { width: 180px; height: 180px; }

    .topic-bubble {
        padding: 24px;
        max-width: 100%;
        border-radius: 30px !important;
    }

    .topic-bubble:nth-child(odd),
    .topic-bubble:nth-child(even) {
        align-self: center;
        margin-left: 0;
        margin-right: 0;
    }

    .deep-dive-blob {
        padding: 32px 24px;
        border-radius: 30px;
    }

    .supporting-blobs {
        flex-direction: column;
        align-items: center;
    }

    .support-blob {
        max-width: 100%;
        border-radius: 24px !important;
    }

    .deco-blob {
        display: none;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 2.5rem;
    }

    .sunrise-icon {
        width: 32px;
        height: 32px;
    }

    .ticker {
        font-size: 0.7rem;
        padding: 8px 16px;
    }
}
