/* web/static/pages/home.css */
.home-hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: visible;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -30%; left: 50%;
    transform: translateX(-50%);
    width: 100vw; height: 1000px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #b8c0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(88,101,242,0.2);
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #0f172a 0%, #5865f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    font-weight: 400;
}

[data-theme="light"] .hero-subtitle {
    color: #475569;
}

.glow-btn {
    position: relative;
    background: linear-gradient(135deg, #5865f2 0%, #7c3aed 100%);
    color: white !important;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 25px -5px rgba(88, 101, 242, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-btn:hover {
    box-shadow: 0 20px 35px -5px rgba(88, 101, 242, 0.6);
    transform: translateY(-3px);
}

/* Bento Grid */
.bento-section {
    padding: 100px 0;
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 3rem;
    backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

[data-theme="light"] .bento-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-color: rgba(88, 101, 242, 0.3);
}

[data-theme="light"] .bento-item:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.bento-wide { grid-column: span 8; }
.bento-square { grid-column: span 4; }

@media (max-width: 991px) {
    .bento-wide, .bento-square { grid-column: span 12; }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 100px 0 60px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .bento-section {
        padding: 60px 0;
    }

    .bento-item {
        padding: 2rem;
    }

    .stat-showcase {
        gap: 3rem;
        margin-top: 3rem;
        padding-top: 2.5rem;
    }

    .stat-item h4 {
        font-size: 2.8rem;
    }

    .stat-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .home-hero {
        padding: 90px 0 50px;
    }

    .bento-item {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .stat-showcase {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stat-item h4 {
        font-size: 2.5rem;
    }

    .hero-preview {
        margin-top: 2.5rem;
    }
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #5865f2, #a5adff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bento-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

[data-theme="light"] .bento-title {
    color: #0f172a;
}

.bento-desc {
    color: #94a3b8;
    font-size: 1.15rem;
    line-height: 1.6;
}

[data-theme="light"] .bento-desc {
    color: #475569;
}

.stat-showcase {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}

[data-theme="light"] .stat-showcase {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.stat-item h4 {
    font-size: 4rem;
    font-weight: 900;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

[data-theme="light"] .stat-item h4 {
    color: #0f172a;
}

.stat-item p {
    color: #5865f2;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    background: rgba(88, 101, 242, 0.1);
    color: #a5adff;
    border: 1px solid rgba(88, 101, 242, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .hero-badge-modern {
    background: rgba(88, 101, 242, 0.05);
    color: #5865f2;
    border-color: rgba(88, 101, 242, 0.2);
}

/* 강렬한 데코레이션 효과 */
.bento-decoration {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 10rem;
    opacity: 0.03;
    transform: rotate(-15deg);
    pointer-events: none;
    transition: all 0.4s ease;
}

[data-theme="light"] .bento-decoration {
    opacity: 0.03;
}

.bento-item:hover .bento-decoration {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.06;
}

/* Home template extracted styles */
.hero-section {
            padding: 140px 0 80px;
            position: relative;
            z-index: 1;
        }

        /* 부유하는 아바타 장식 */
        .deco-avatar {
            position: absolute;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid var(--brand-primary);
            box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
            opacity: 0.6;
        }

        .hero-preview {
            max-width: 800px;
            margin: 4rem auto 0;
            perspective: 1000px;
        }

        .discord-mockup {
            transform: rotateX(10deg) rotateY(-5deg);
            transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .hero-preview:hover .discord-mockup {
            transform: rotateX(5deg) rotateY(0deg) scale(1.02);
        }

        .live-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 4px 12px;
            background: rgba(34, 197, 94, 0.1);
            color: #22c55e;
            border-radius: 100px;
            font-size: 0.8rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .live-dot {
            width: 8px;
            height: 8px;
            background: #22c55e;
            border-radius: 50%;
            animation: live-pulse 1.5s infinite;
        }

        @keyframes live-pulse {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(2.5); opacity: 0; }
        }

        .feature-tag {
            font-size: 0.75rem;
            color: var(--brand-primary);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 800;
            display: block;
            margin-bottom: 0.5rem;
        }

        .bento-icon {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            background: var(--brand-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .home-section-title {
            font-size: 2.8rem;
        }

        .bento-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 1.5rem;
            align-items: stretch;
        }

        .bento-item {
            min-width: 0;
            min-height: 180px;
            padding: 2rem;
            overflow: hidden;
        }

        .bento-item.wide {
            grid-column: span 2;
        }

        .bento-item.tall {
            grid-row: span 2;
        }

        .bento-item h3,
        .bento-item h4,
        .bento-item p,
        .bento-item div {
            max-width: 100%;
            word-break: keep-all;
            overflow-wrap: normal;
        }

        .bento-item h3,
        .bento-item h4 {
            line-height: 1.25;
            white-space: normal;
        }

        .bento-icon-sm {
            font-size: 1.5rem;
        }

        @media (max-width: 992px) {
            .bento-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .bento-item.wide {
                grid-column: span 2;
            }
        }

        @media (max-width: 640px) {
            .home-section-title {
                font-size: 2.15rem;
            }

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

            .bento-item,
            .bento-item.wide {
                grid-column: auto;
            }

            .bento-item.tall {
                grid-row: auto;
            }
        }

        /* ── 히어로 플로팅 데코 아이콘 ── */
        .hero-deco-icon {
            position: absolute;
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            pointer-events: none;
            z-index: 0;
            animation: heroDeco 6s ease-in-out infinite;
        }

        @keyframes heroDeco {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50%       { transform: translateY(-16px) rotate(4deg); }
        }

        .hd-1 { --deco-color: #5865f2;  width: 70px; height: 70px; top: 18%; left: 10%;  font-size: 1.8rem; animation-delay: 0s;    animation-duration: 7s; }
        .hd-2 { --deco-color: #eb459e;  width: 62px; height: 62px; top: 38%; left: 8%;  font-size: 1.5rem; animation-delay: -1.5s; animation-duration: 5.5s; }
        .hd-3 { --deco-color: #7c3aed;  width: 70px; height: 70px; top: 15%; right: 10%; font-size: 1.8rem; animation-delay: -3s;   animation-duration: 8s; }
        .hd-4 { --deco-color: #22c55e;  width: 62px; height: 62px; top: 38%; right: 12%; font-size: 1.5rem; animation-delay: -2s;   animation-duration: 6.5s; }
        .hd-5 { --deco-color: #f59e0b;  width: 54px; height: 54px; top: 58%; left: 12%; font-size: 1.3rem; animation-delay: -4s; animation-duration: 7s; }

        /* Emoji ambient deco */
        .deco-avatar {
            border: 2px solid rgba(88, 101, 242, 0.5);
            box-shadow: 0 0 15px rgba(88, 101, 242, 0.26);
            opacity: 0.58;
            backdrop-filter: blur(2px);
        }

        .hero-deco-icon {
            background: rgba(255, 255, 255, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.7);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: var(--deco-color, currentColor) !important;
            opacity: 0.9;
            filter: saturate(0.9);
            font-size: 1.35rem;
        }

        .hero-deco-icon::before { content: none; }
        .hero-deco-icon i { display: inline-block; line-height: 1; color: var(--deco-color, currentColor) !important; text-shadow: 0 2px 8px color-mix(in srgb, var(--deco-color, currentColor) 45%, transparent); }

        .hd-1 { --deco-color: #5865f2;  width: 64px; height: 64px; }
        .hd-2 { --deco-color: #eb459e;  width: 56px; height: 56px; }
        .hd-3 { --deco-color: #7c3aed;  width: 64px; height: 64px; }
        .hd-4 { --deco-color: #22c55e;  width: 56px; height: 56px; }
        .hd-5 { --deco-color: #f59e0b;  width: 50px; height: 50px; }

        /* 모바일에서 숨김 */
        @media (max-width: 768px) {
            .hero-deco-icon { display: none; }
        }

        .stat-divider {
            padding-left: 2.5rem;
            border-left: 1px solid var(--border-color);
        }


        .compare-shell {
            border: 1px solid var(--glass-border);
            border-radius: 2rem;
            overflow: hidden;
            background: var(--bg-card);
            backdrop-filter: blur(8px);
        }

        .deco-avatar-1 {
            top: 25%;
            left: 8%;
            background: url('https://cdn.discordapp.com/embed/avatars/1.png') center / cover;
            animation-delay: 0s;
        }

        .deco-avatar-2 {
            top: 40%;
            right: 10%;
            background: url('https://cdn.discordapp.com/embed/avatars/2.png') center / cover;
            animation-delay: -2s;
        }

        .deco-avatar-3 {
            bottom: 20%;
            left: 12%;
            background: url('https://cdn.discordapp.com/embed/avatars/3.png') center / cover;
            animation-delay: -4s;
        }

        .hero-section {
            position: relative;
            overflow: hidden;
        }

        .hero-content,
        .home-cta-title,
        .home-cta-copy,
        .home-cta-actions {
            position: relative;
            z-index: 1;
        }

        .hd-1 { color: #5865f2; }
        .hd-2 { color: #eb459e; }
        .hd-3 { color: #7c3aed; }
        .hd-4 { color: #22c55e; }
        .hd-5 { color: #f59e0b; }

        .home-hero-title {
            margin-bottom: 1.5rem;
        }

        .home-app-badge {
            font-size: 0.6rem;
        }

        .home-embed-link {
            color: var(--brand-primary);
            font-size: 0.8rem;
        }

        .section-compare {
            padding: 100px 0 70px;
        }

        .section-journey {
            padding: 70px 0;
        }

        .section-proof {
            padding: 120px 0;
        }

        .home-compare-title {
            font-size: 2.5rem;
        }

        .home-journey-title {
            font-size: 2.4rem;
        }

        .home-proof-tag {
            background: rgba(88, 101, 242, 0.1);
            color: var(--brand-primary);
        }

        .home-proof-title {
            margin-bottom: 2rem;
            font-size: 3rem;
        }

        .home-proof-copy {
            color: var(--text-sub);
            font-size: 1.1rem;
            line-height: 1.7;
        }

        .home-stat-value {
            letter-spacing: 0;
        }

        .review-glow {
            position: absolute;
            top: 50%;
            left: 50%;
            z-index: 0;
            width: 120%;
            height: 120%;
            background: radial-gradient(circle, rgba(88, 101, 242, 0.08) 0%, transparent 70%);
            filter: blur(40px);
            transform: translate(-50%, -50%);
        }

        .review-card {
            z-index: 1;
            border: 1px solid rgba(0, 0, 0, 0.03);
            border-radius: 2.5rem;
            background: rgba(248, 250, 252, 0.8);
            backdrop-filter: blur(10px);
        }

        .review-avatar {
            width: 38px;
            height: 38px;
            flex: 0 0 38px;
        }

        .review-bubble {
            line-height: 1.6;
        }

        .review-bubble.bg-white {
            border: 1px solid var(--border-color);
        }

        .home-cta-section {
            padding: 100px 0 140px;
        }

        .home-cta-box {
            position: relative;
            overflow: hidden;
            padding: 4.5rem 2rem;
            border: none;
            border-radius: 3rem;
            background: linear-gradient(135deg, #5865f2 0%, #7c3aed 50%, #eb459e 100%);
        }

        .home-cta-glow {
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
            animation: rotate 20s linear infinite;
        }

        .home-cta-title {
            font-size: 2.5rem;
            letter-spacing: 0;
        }

        .home-cta-copy {
            max-width: 600px;
            font-size: 1.1rem;
            line-height: 1.5;
        }

        .home-cta-primary,
        .home-cta-secondary {
            border-radius: 100px;
            font-size: 1rem;
            font-weight: 800;
        }

        .home-cta-secondary {
            border-width: 2px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(15px);
        }

        .compare-head {
            display: grid;
            grid-template-columns: 1fr 1fr;
            border-bottom: 1px solid var(--border-color);
        }

        .compare-head > div {
            padding: 1.1rem 1.25rem;
            font-weight: 800;
            font-size: 0.95rem;
        }

        .compare-head .left {
            background: rgba(148, 163, 184, 0.14);
            color: var(--text-sub);
        }

        .compare-head .right {
            background: rgba(88, 101, 242, 0.12);
            color: var(--brand-primary);
        }

        .compare-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .compare-row + .compare-row {
            border-top: 1px solid var(--border-color);
        }

        .compare-cell {
            padding: 1rem 1.25rem;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .compare-cell.left {
            color: var(--text-sub);
            background: rgba(148, 163, 184, 0.05);
        }

        .compare-cell.right {
            color: var(--text-main);
            font-weight: 650;
            background: rgba(88, 101, 242, 0.04);
        }

        .journey-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 1rem;
            position: relative;
        }

        .journey-card {
            border: 1px solid var(--border-color);
            border-radius: 1.4rem;
            padding: 1.3rem;
            background: var(--bg-card);
        }

        .journey-step {
            width: 2rem;
            height: 2rem;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 800;
            color: #fff;
            background: var(--brand-gradient);
            margin-bottom: 0.8rem;
        }

        .journey-title {
            font-size: 1.05rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
        }

        .journey-desc {
            color: var(--text-sub);
            font-size: 0.92rem;
            margin: 0;
        }

        @media (max-width: 576px) {
            .hero-section {
                padding: 100px 0 60px;
            }

            .stat-row {
                gap: 1.5rem !important;
            }

            .stat-divider {
                padding-left: 0;
                border-left: none;
            }

            .discord-mockup {
                transform: none !important;
            }

            .hero-preview:hover .discord-mockup {
                transform: none !important;
            }
        }

        @media (max-width: 768px) {
            .hero-section {
                padding: 110px 0 60px;
            }

            .stat-divider {
                padding-left: 1.5rem;
            }

            .section-pad-lg {
                padding: 70px 0 !important;
            }

            .section-pad-cta {
                padding: 70px 0 100px !important;
            }

            .cta-box {
                padding: 3.5rem 1.5rem !important;
                border-radius: 2rem !important;
            }

            .review-card {
                padding: 1.5rem !important;
                border-radius: 1.5rem !important;
            }

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

        @media (max-width: 576px) {
            .section-pad-lg {
                padding: 50px 0 !important;
            }

            .section-pad-cta {
                padding: 50px 0 80px !important;
            }

            .cta-box {
                padding: 2.5rem 1.25rem !important;
                border-radius: 1.5rem !important;
            }

            .deco-avatar {
                display: none;
            }

            .compare-head,
            .compare-row {
                grid-template-columns: 1fr;
            }
        }


            @keyframes rotate {
                from { transform: rotate(0deg); }
                to { transform: rotate(360deg); }
            }
