/* ═══════════════════════════════════════════════════════════════
   BLOOM LANDING PAGE — Complete Design System & Styles
   World-class couples app landing page
   ═══════════════════════════════════════════════════════════════ */

/* ─── Fonts ─────────────────────────────────────────────────── */
@font-face {
    font-family: 'Nunito';
    src: url('assets/fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('assets/fonts/Nunito-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('assets/fonts/Nunito-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
    --primary: #E2546F;
    --primary-rgb: 226, 84, 111;
    --primary-dark: #C73D58;
    --primary-light: #F4899C;
    --secondary: #F7A8B5;
    --secondary-dark: #E88A99;
    --secondary-light: #FDD5DC;
    --accent: #C23058;
    --accent-dark: #A8254A;

    --background: #FFF4F5;
    --background-secondary: #FFF9FA;
    --background-tertiary: #FFE8EC;
    --background-dark: #2A1F22;

    --rose: var(--primary);
    --rose-dark: var(--primary-dark);
    --rose-light: var(--primary-light);
    --blush: var(--secondary);
    --cream: var(--background);
    --cream-deep: var(--background-tertiary);
    --dark: var(--background-dark);
    --dark-card: #1C0F12;

    --gradient-start: #F7C5CE;
    --gradient-mid: #FFE8EC;
    --gradient-end: #F4899C;

    --text-primary: #2C1A1F;
    --text-secondary: #5C3A44;
    --text-tertiary: #8F6470;
    --text-light: #BFA4AA;
    --text-white: #FFFFFF;

    --gold: #D4A853;
    --gold-light: #F5D08A;
    --violet: #8A63C4;
    --teal: #3BBFD4;
    --green: #3E9E70;
    --amber: #FF9A6C;

    --container: 1200px;
    --nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --phone-w: 272px;
    --phone-h: 572px;
    --phone-radius: 44px;
    --phone-border: 8px;
    --phone-screen-radius: 36px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Animations ────────────────────────────────────────────── */


@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes scroll-line {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blobify {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


/* Scroll reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
    background: rgba(255, 244, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 40px rgba(var(--primary-rgb), 0.08);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.2);
}

.nav-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 12px;
    transition: all 0.25s;
}

.nav-link:hover {
    color: var(--rose);
    background: rgba(var(--primary-rgb), 0.06);
}

.nav-link-cta {
    background: var(--rose);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 14px;
    margin-left: 8px;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.25);
    transition: all 0.3s var(--ease-spring);
}

.nav-link-cta:hover {
    background: var(--rose-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.35);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--nav-height);
    padding-left: 24px;
    padding-right: 24px;
    overflow: hidden;
    background: radial-gradient(120% 120% at 50% 10%, var(--cream) 0%, var(--cream-deep) 100%);
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 60px 0 80px;
    gap: 40px;
}

.hero-text {
    flex: 0 0 auto;
    max-width: 520px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -2.5px;
    margin-bottom: 24px;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero social proof — small avatar row */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.hero-avatars {
    display: flex;
}

.hero-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid var(--cream);
    object-fit: contain;
    margin-left: -10px;
}

.hero-avatar:first-child {
    margin-left: 0;
}

.hero-join-text {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.hero-join-text strong {
    color: var(--text-primary);
}

.hero-image {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-mascot-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mascot-img {
    width: clamp(300px, 34vw, 520px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 40px 80px rgba(var(--primary-rgb), 0.35)) drop-shadow(0 0 120px rgba(var(--primary-rgb), 0.15));
}

.hero-mascot-glow {
    position: absolute;
    width: 80%;
    height: 40%;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(226, 84, 111, 0.3) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    border-radius: 50%;
}

.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 40px;
}

.hero-scroll-hint span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(44, 26, 31, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1.5px;
    height: 40px;
    background: rgba(44, 26, 31, 0.15);
    animation: scroll-line 2s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════════════════════
   APP STORE BADGES
   ═══════════════════════════════════════════════════════════════ */
.app-badge-link {
    transition: transform 0.3s var(--ease-spring);
    display: inline-block;
}

.app-badge-link:hover {
    transform: scale(1.05);
}

.app-badge {
    height: 48px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-badge-lg {
    height: 60px;
}

.app-badge-google {
    height: 72px;
    box-shadow: none;
    border-radius: 0;
}

.app-badge-lg.app-badge-google {
    height: 90px;
}


/* ═══════════════════════════════════════════════════════════════
   SOCIAL PROOF
   ═══════════════════════════════════════════════════════════════ */
.social-proof {
    padding: 60px 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(226, 84, 111, 0.06);
}

.proof-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.proof-pill {
    text-align: center;
}

.proof-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--rose);
    line-height: 1.1;
}

.proof-label {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--rose-light), transparent);
}


/* ═══════════════════════════════════════════════════════════════
   APP SHOWCASE — FAN LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.showcase {
    position: relative;
    padding: 100px 0 60px;
    background: var(--background-secondary);
    overflow: hidden;
}

.showcase-bg {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.showcase-wrapper {
    position: relative;
    height: 680px;
    margin: 48px auto 56px;
    max-width: 1300px;
    overflow: visible;
}

.fan-stage {
    position: absolute;
    inset: 0;
}

.fan-phone {
    position: absolute;
    bottom: 0;
    will-change: transform;
    transition: transform 0.08s linear;
}

.phone-center {
    z-index: 10;
    left: 50%;
    transform: translateX(-50%) translateY(0px) scale(1) rotate(0deg);
}

.phone-inner-left {
    z-index: 7;
    left: 50%;
    transform: translateX(calc(-50% - 230px)) translateY(40px) scale(0.9) rotate(-5deg);
}

.phone-inner-right {
    z-index: 7;
    left: 50%;
    transform: translateX(calc(-50% + 230px)) translateY(40px) scale(0.9) rotate(5deg);
}

.phone-outer-left {
    z-index: 4;
    left: 50%;
    transform: translateX(calc(-50% - 440px)) translateY(80px) scale(0.82) rotate(-10deg);
}

.phone-outer-right {
    z-index: 4;
    left: 50%;
    transform: translateX(calc(-50% + 440px)) translateY(80px) scale(0.82) rotate(10deg);
}

/* Phone frame */
.phone-frame {
    position: relative;
    width: var(--phone-w);
    height: var(--phone-h);
    background: #0d0d0d;
    border-radius: var(--phone-radius);
    border: var(--phone-border) solid #1c1c1e;
    box-shadow:
        0 0 0 1.5px #333,
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(var(--primary-rgb), 0.15);
    overflow: hidden;
}

.phone-screen {
    position: absolute;
    inset: 0;
    border-radius: calc(var(--phone-radius) - var(--phone-border));
    overflow: hidden;
    background: #111;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    display: block;
    border-radius: 0;
}

.dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 22px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
    pointer-events: none;
}

.btn-silence,
.btn-volume-up,
.btn-volume-down,
.btn-power {
    position: absolute;
    background: #1c1c1e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.btn-silence {
    left: calc(-1 * var(--phone-border) - 3px);
    top: 76px;
    width: 3px;
    height: 30px;
    border-radius: 3px 0 0 3px;
}

.btn-volume-up {
    left: calc(-1 * var(--phone-border) - 6px);
    top: 134px;
    width: 6px;
    height: 46px;
    border-radius: 4px 0 0 4px;
}

.btn-volume-down {
    left: calc(-1 * var(--phone-border) - 6px);
    top: 198px;
    width: 6px;
    height: 46px;
    border-radius: 4px 0 0 4px;
}

.btn-power {
    right: calc(-1 * var(--phone-border) - 6px);
    top: 140px;
    width: 6px;
    height: 62px;
    border-radius: 0 4px 4px 0;
}

.phone-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 15;
    border-radius: calc(var(--phone-radius) - var(--phone-border));
}

.phone-inner-border {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: calc(var(--phone-radius) - var(--phone-border));
    z-index: 18;
    pointer-events: none;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 28px;
    background: #0d0d0d;
    border-radius: 0 0 18px 18px;
    z-index: 5;
}

/* Mobile Carousel */
.mobile-carousel {
    display: none;
    width: 100vw;
    margin-left: -24px;
    padding: 0 24px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.mobile-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
}

.carousel-item {
    scroll-snap-align: center;
    flex: 0 0 260px;
}

.mobile-frame {
    width: 260px !important;
    height: 540px !important;
    border-radius: 40px !important;
}

/* Blobs */
.showcase-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: blobify 12s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #E2546F;
    top: 10%;
    left: 10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #8A63C4;
    bottom: 10%;
    right: 10%;
    animation-delay: -4s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: #F7A8B5;
    top: 40%;
    left: 60%;
    animation-delay: -8s;
}

/* Theme Pills */
.theme-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.theme-pill {
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tc);
    background: color-mix(in srgb, var(--tc) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--tc) 20%, transparent);
    transition: all 0.3s var(--ease-spring);
    cursor: default;
}

.theme-pill:hover {
    transform: translateY(-3px) scale(1.05);
    background: color-mix(in srgb, var(--tc) 18%, transparent);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--tc) 20%, transparent);
}

.hidden-mobile {
    display: block;
}

.show-mobile {
    display: none;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-tertiary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════
   FEATURES BENTO GRID — Premium Layout
   ═══════════════════════════════════════════════════════════════ */
.features {
    padding: 100px 0 80px;
    background: var(--cream);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bento-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--primary-rgb), 0.06);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.1), 0 4px 16px rgba(0, 0, 0, 0.04);
    border-color: rgba(var(--primary-rgb), 0.12);
}

.bento-card-content {
    padding: 32px 28px 20px;
}

.bento-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.bento-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.bento-desc {
    font-size: 14.5px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* Hero card — spans full width */
.bento-hero {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
}

/* Medium card — single col */
.bento-medium {
    grid-column: span 1;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

/* Third card — for 3-col row */
.bento-third {
    grid-column: span 1;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

/* Wide card — spans 2 cols */
.bento-wide {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

/* When we have 3 thirds in a row, use a 3-col sub-grid via nth-child targeting */

/* ─── Widget Visualization ─── */
.bento-visual-widgets {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.widget-img {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s var(--ease-out);
}

.widget-main {
    width: 55%;
    position: relative;
    z-index: 2;
}

.widget-mood {
    position: absolute;
    width: 35%;
    top: 10%;
    right: 5%;
    z-index: 3;
}

.widget-events {
    position: absolute;
    width: 35%;
    bottom: 8%;
    right: 8%;
    z-index: 1;
}

.widget-doodle {
    position: absolute;
    width: 30%;
    bottom: 15%;
    left: 3%;
    z-index: 3;
}

.bento-card:hover .widget-img {
    transform: scale(1.02);
}

/* ─── AI Visualization ─── */
.bento-visual-ai {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.ai-img {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    padding: 12px;
    background: linear-gradient(135deg, #8A63C422, #E2546F22);
}

.ai-bubbles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    width: 100%;
}

.ai-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    animation: slide-up 0.6s var(--ease-out) both;
}

.ai-bubble-1 {
    background: var(--cream-deep);
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    animation-delay: 0.3s;
}

.ai-bubble-2 {
    background: linear-gradient(135deg, var(--violet), var(--rose));
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    animation-delay: 0.8s;
}

/* ─── Mood Visualization ─── */
.bento-visual-mood {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 200px;
}

.mood-mascot {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 20px;
    transition: transform 0.4s var(--ease-spring);
}

.mood-mascot:nth-child(2) {
    animation-delay: 0.5s;
}

.mood-mascot:nth-child(3) {
    animation-delay: 1s;
}

.mood-mascot:nth-child(4) {
    animation-delay: 1.5s;
}

.mood-mascot:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ─── Generic Mini Visual ─── */
.bento-visual-mini {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px 24px;
    overflow: hidden;
}

.bento-mini-img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: transform 0.5s var(--ease-out);
}

.bento-card:hover .bento-mini-img {
    transform: scale(1.04);
}

.bento-visual-letter {
    align-items: center;
    justify-content: center;
}

/* Mascot Duo — pairs of otters */
.bento-mascot-duo {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    justify-content: center;
}

.mascot-small {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: transform 0.4s var(--ease-spring);
}

.mascot-small:nth-child(2) {
    animation-delay: 1s;
}

.bento-card:hover .mascot-small:first-child {
    transform: rotate(-5deg) scale(1.05);
}

.bento-card:hover .mascot-small:last-child {
    transform: rotate(5deg) scale(1.05);
}


/* ═══════════════════════════════════════════════════════════════
   GAMES SECTION — Premium Grid
   ═══════════════════════════════════════════════════════════════ */
.games-section {
    padding: 100px 0 80px;
    background: var(--background-secondary);
    position: relative;
    overflow: hidden;
}

.games-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.games-grid {
    display: grid;
    /* slightly smaller layout: keep 4 columns but tighter spacing */
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    /* reduce overall width so each tile is a bit smaller */
    max-width: 1000px;
    margin: 0 auto 48px;
}

.game-tile {
    background: #fff;
    border-radius: var(--radius-lg);
    /* keep square but reduce padding slightly */
    aspect-ratio: 1 / 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.06);
    transition: all 0.4s var(--ease-spring);
    cursor: default;
    overflow: hidden;
}

.game-tile:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 16px 48px rgba(var(--primary-rgb), 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.game-tile-icon {
    /* slightly smaller image containage */
    width: 60%;
    height: 60%;
    border-radius: 12px;
    object-fit: contain;
    display: block;
}

.game-tile-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.25;
    margin-top: 6px;
}

/* Games CTA */
.games-cta {
    text-align: center;
}

.games-mascots {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
}

.games-mascot {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.games-mascot:nth-child(2) {
    animation-delay: 1s;
    margin-left: -16px;
}

.games-tagline {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════════
   MORE FEATURES — Grid
   ═══════════════════════════════════════════════════════════════ */
.more-features {
    padding: 100px 0 80px;
    background: var(--cream);
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.more-item {
    text-align: center;
    padding: 36px 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--primary-rgb), 0.04);
    transition: all 0.4s var(--ease-out);
}

.more-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.1);
}

.more-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.more-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.more-item p {
    font-size: 14px;
    color: var(--text-tertiary);
}


/* ═══════════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════════ */
.faq-section {
    padding: 100px 0 80px;
    background: var(--background-secondary);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--primary-rgb), 0.06);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.faq-item:hover {
    border-color: rgba(var(--primary-rgb), 0.12);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.06);
}

.faq-item[open] {
    border-color: rgba(var(--primary-rgb), 0.15);
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.08);
}

.faq-question {
    padding: 22px 28px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    font-weight: 700;
    color: var(--rose);
    transition: transform 0.3s var(--ease-spring);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item[open] .faq-question {
    color: var(--rose);
}

.faq-answer {
    padding: 0 28px 22px;
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD CTA
   ═══════════════════════════════════════════════════════════════ */
.download {
    padding: 40px 0 100px;
    background: var(--cream);
}

.download-card {
    position: relative;
    background: linear-gradient(165deg, var(--dark) 0%, #2C1A1F 50%, var(--rose-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse-glow 5s ease-in-out infinite;
}

.download-content {
    position: relative;
    z-index: 2;
}

.download-mascot {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 32px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.download-title {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    background: var(--dark);
    padding: 72px 0 32px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.footer-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links-grid {
    display: flex;
    gap: 72px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.25s;
}

.footer-col a:hover {
    color: var(--rose-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.25s;
}

.footer-bottom a:hover {
    color: var(--rose-light);
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    :root {
        --phone-w: 220px;
        --phone-h: 464px;
        --phone-radius: 36px;
        --phone-border: 7px;
    }

    .showcase-wrapper {
        height: 580px;
    }

    .phone-inner-left {
        transform: translateX(calc(-50% - 190px)) translateY(35px) scale(0.9) rotate(-5deg);
    }

    .phone-inner-right {
        transform: translateX(calc(-50% + 190px)) translateY(35px) scale(0.9) rotate(5deg);
    }

    .phone-outer-left {
        transform: translateX(calc(-50% - 365px)) translateY(70px) scale(0.82) rotate(-10deg);
    }

    .phone-outer-right {
        transform: translateX(calc(-50% + 365px)) translateY(70px) scale(0.82) rotate(10deg);
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    :root {
        --phone-w: 190px;
        --phone-h: 400px;
        --phone-radius: 32px;
        --phone-border: 6px;
    }

    .showcase-wrapper {
        height: 480px;
    }

    .phone-outer-left,
    .phone-outer-right {
        display: none;
    }

    .phone-inner-left {
        transform: translateX(calc(-50% - 165px)) translateY(30px) scale(0.9) rotate(-5deg);
    }

    .phone-inner-right {
        transform: translateX(calc(-50% + 165px)) translateY(30px) scale(0.9) rotate(5deg);
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 244, 245, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s;
        z-index: 5;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-links .nav-link {
        font-size: 20px;
        padding: 14px 28px;
    }

    .nav-links .nav-link-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-badge {
        margin: 0 auto 24px;
    }

    .hero-social-proof {
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-hero,
    .bento-medium,
    .bento-third,
    .bento-wide {
        grid-column: span 1;
    }

    .bento-hero {
        grid-template-columns: 1fr;
    }

    .bento-visual-widgets {
        min-height: 280px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .more-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-pills {
        gap: 24px;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-grid {
        gap: 40px;
        flex-wrap: wrap;
    }

    .download-card {
        padding: 60px 24px;
    }
}

@media (max-width: 640px) {
    .app-badge {
        height: 40px;
    }

    .app-badge-google {
        height: 60px;
    }

    .app-badge-lg {
        height: 48px;
    }

    .app-badge-lg.app-badge-google {
        height: 72px;
    }

    .download-buttons {
        gap: 12px;
    }
}

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

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .hero-buttons .app-badge {
        height: 38px;
    }

    .hero-buttons .app-badge-google {
        height: 58px;
    }

    .proof-divider {
        display: none;
    }

    .proof-number {
        font-size: 28px;
    }

    .proof-pills {
        gap: 16px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .game-tile {
        padding: 16px 10px;
    }

    .game-tile-icon {
        width: 44px;
        height: 44px;
    }

    .game-tile-name {
        font-size: 11px;
    }

    .more-grid {
        grid-template-columns: 1fr;
    }

    .theme-pills {
        gap: 8px;
    }

    .theme-pill {
        padding: 8px 16px;
        font-size: 12px;
    }

    .download-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .download-buttons .app-badge {
        height: 42px;
    }

    .download-buttons .app-badge-google {
        height: 64px;
    }

    .footer-links-grid {
        gap: 32px;
    }

    .widget-main {
        width: 65%;
    }

    .widget-mood {
        width: 40%;
        top: 5%;
        right: 0%;
    }

    .widget-events {
        width: 40%;
        bottom: 5%;
        right: 2%;
    }

    .widget-doodle {
        width: 35%;
        bottom: 10%;
        left: 0%;
    }

    .mood-grid {
        gap: 8px;
        max-width: 160px;
    }

    .mood-mascot {
        width: 64px;
        height: 64px;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 20px 18px;
        font-size: 14px;
    }

    .mascot-small {
        width: 70px;
        height: 70px;
    }
}