/* ============================================================
   Glow Cast - Immersive Landing Page
   Design System: Editorial Light Theme
   ============================================================ */

/* === Import Base Variables === */
@import 'base/variables.css';

/* === Landing Specific Variables === */
:root {
    --landing-section-height: 100vh;
    --landing-content-max: 1000px;
}

/* === Base === */
html {
    margin: 0;
    padding: 0;
}

body.landing-page {
    font-family: var(--font-primary);
    background: var(--color-surface);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Scroll Snap Container */
html.snap-scroll {
    overflow: hidden;
    height: 100%;
}

html.snap-scroll body {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

/* === Language Switcher === */
.lang-switcher {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

/* === Demo Button === */
.demo-btn {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border: 1px solid #E5E5E5;
    background: #fff;
    transition: all 0.2s ease;
}

.demo-btn:hover {
    color: #fff;
    border-color: #000;
    background: #000;
}

.demo-btn .demo-icon {
    font-size: 10px;
}

.lang-switcher:hover {
    opacity: 0.8;
}

.lang-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 4px 6px;
    transition: all 0.2s ease;
}

.lang-link:hover {
    color: var(--color-text);
}

.lang-link.active {
    color: var(--color-text);
    font-weight: 500;
}

.lang-divider {
    color: var(--color-border);
    font-size: 9px;
}

/* ============================================================
   Landing Sections
   ============================================================ */

.landing-section {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    position: relative;
    background: var(--color-surface);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

/* Alternating subtle background */
.landing-section:nth-child(even) {
    background: #FAFAFA;
}

.section-content {
    max-width: var(--landing-content-max);
    width: 100%;
    text-align: center;
}

.section-title {
    font-family: var(--font-serif-kr);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.5;
}

.section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.section-desc {
    font-family: var(--font-primary);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* ============================================================
   Section 1: Hero
   ============================================================ */

.hero-section {
    background: var(--color-surface);
    flex-direction: column;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin-top: -60px; /* 시각적 중앙 보정 (scroll indicator 고려) */
}

.hero-title {
    font-family: 'Bebas Neue', var(--font-primary);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--color-text);
    margin-bottom: 16px;
}

.hero-tagline {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    color: var(--color-text);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-buttons {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    margin-top: 28px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero-btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border, #DDD);
}

.hero-btn-outline:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: #fff;
    transform: translateY(-1px);
}

.hero-powered {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: gentle-bounce 2.5s ease-in-out infinite;
}

.scroll-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid var(--color-text-tertiary);
    border-bottom: 1.5px solid var(--color-text-tertiary);
    transform: rotate(45deg);
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   Section 2: Scale - Country Counter
   ============================================================ */

.scale-section {
    background: var(--color-surface);
}

.scale-numbers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.scale-stat {
    text-align: center;
}

.scale-number {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 8px;
}

.scale-label {
    font-family: var(--font-primary);
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 400;
    color: var(--color-text-secondary);
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.scale-note {
    margin-top: 48px;
    font-size: 12px;
    color: var(--color-text-tertiary);
}

/* ============================================================
   Section 3: Bridge
   ============================================================ */

.bridge-section {
    background: var(--color-surface);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Background world map (continent outlines) */
.bridge-map-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    max-width: 1600px;
    height: auto;
    pointer-events: none;
    z-index: 0;
}

.bridge-section .section-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .bridge-map-bg {
        width: 140vw;
        max-width: none;
    }
}

.bridge-title {
    font-family: var(--font-serif-kr);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.bridge-arrow {
    margin-top: 48px;
    color: var(--color-text-secondary);
    opacity: 0.7;
    animation: bridge-arrow-float 2s ease-in-out infinite;
}

.bridge-arrow svg {
    width: 20px;
    height: 40px;
}

@keyframes bridge-arrow-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@media (max-width: 768px) {
    .bridge-arrow {
        margin-top: 32px;
    }

    .bridge-arrow svg {
        width: 16px;
        height: 32px;
    }
}

/* ============================================================
   Section 4: Brand Map Showcase (Native Animated)
   ============================================================ */

.global-section {
    background: var(--color-surface);
    overflow: hidden;
    align-items: flex-start;
    padding-top: 60px;
}

.global-section .section-content {
    max-width: none;  /* 지도 섹션은 제한 해제 */
    width: 100%;
}

.global-section .scale-note {
    margin-top: 24px;
    margin-bottom: 8px;
}

.brand-map-showcase {
    margin: 40px 0 0 0;
    position: relative;
    width: 80vw;
    max-width: 1800px;
    height: clamp(480px, 62vh, 720px);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #B3C6D4;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Brand List Sidebar (Left) */
.brand-list-sidebar {
    width: 15%;
    min-width: 150px;
    max-width: 220px;
    height: 100%;
    background: #FAFAFA;
    border-right: 1px solid var(--color-border);
    overscroll-behavior: contain;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}

.brand-list-sidebar::-webkit-scrollbar {
    width: 4px;
}

.brand-list-sidebar::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.brand-list-sidebar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* Map Play/Stop Button Overlay */
.map-play-stop-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 1000;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.map-play-stop-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: rgba(0, 0, 0, 0.7);
}

.map-play-stop-btn.playing {
    background: rgba(249, 115, 22, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.map-play-stop-btn.playing:hover {
    background: rgba(249, 115, 22, 0.8);
    color: white;
}

.brand-list-item {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 6px 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.brand-list-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--color-text-secondary);
}

.brand-list-item.active {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    background: linear-gradient(90deg, rgba(249,115,22,0.15) 0%, transparent 100%);
    border-left: 3px solid #F97316;
    padding-left: 13px;
}

.brand-list-item.ellipsis {
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 2px;
}

/* Map Container */
.showcase-map-container {
    flex: 1;
    height: 100%;
    background: #B3C6D4;  /* Match Leaflet ocean color */
    position: relative;
    overflow: hidden;
}

/* Leaflet map should fill container completely */
.showcase-map-container .leaflet-container {
    width: 100% !important;
    height: 100% !important;
    background: #B3C6D4 !important;
}

/* Tile pane background to match ocean color */
.showcase-map-container .leaflet-tile-pane {
    background: #B3C6D4;
}

/* Hide Leaflet attribution for cleaner look */
.showcase-map-container .leaflet-control-attribution {
    display: none;
}

/* Loading State */
.brand-map-showcase.loading .showcase-map-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Large Brand Name Overlay */
.brand-name-overlay {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 500;
    pointer-events: none;
    padding: 0;
}

.showcase-brand-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 12vw, 6rem);
    font-weight: 400;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(255, 255, 255, 0.3);
    line-height: 1;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* ============================================================
   Section 5: Deep Dive (Brand + Country)
   ============================================================ */

.deepdive-section {
    background: var(--color-surface);
    padding: 80px 32px;
}

.deepdive-section .section-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

/* Tabs */
.deepdive-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.deepdive-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    font-size: 14px;
}

.deepdive-tab:hover {
    border-color: var(--color-text-secondary);
}

.deepdive-tab.active {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.tab-brand {
    font-weight: 600;
}

.tab-plus {
    color: var(--color-text-tertiary);
    font-size: 12px;
}

.deepdive-tab.active .tab-plus {
    color: var(--color-text-secondary);
}

.tab-country {
    color: var(--color-text-secondary);
}

.deepdive-tab.active .tab-country {
    color: var(--color-bg);
    opacity: 0.8;
}

/* Main Content Container */
.deepdive-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    min-height: 550px;
}

/* Background Screenshot Grid */
.deepdive-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 550px;
    max-height: 550px;
    z-index: 0;
    overflow: hidden;
}

.deepdive-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 550px;
    object-fit: cover;
    filter: blur(1px);
    opacity: 0.6;
}

.deepdive-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 550px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.7) 40%,
        rgba(255, 255, 255, 0.85) 100%
    );
}

/* Foreground Content */
.deepdive-foreground {
    position: relative;
    z-index: 1;
    padding: 32px;
}

/* Post Count Badge */
.deepdive-post-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-count-flag {
    font-size: 16px;
}

.post-count-number {
    font-weight: 700;
    color: var(--color-text);
}

.post-count-label {
    color: var(--color-text-secondary);
}

/* Hide on mobile utility */
.hide-mobile {
    display: inline-flex;
}

/* Featured Posts (centered) */
.deepdive-posts {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.deepdive-post-card {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.5s ease;
}

/* Scroll sequence animation - initial hidden state */
.deepdive-post-card.seq-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.deepdive-post-card.seq-visible {
    opacity: 1;
    transform: translateY(0);
}

.deepdive-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.post-card-image {
    flex-shrink: 0;
    width: 100px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.post-username {
    font-weight: 600;
    color: var(--color-text);
}

.post-card-caption {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 6px;
}

.post-card-translation {
    font-size: 12px;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 2px solid var(--color-primary);
}

.post-card-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-tertiary);
}

/* Right: AI Insights */
.deepdive-ai {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Scroll sequence animation for AI panel */
.deepdive-ai.seq-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.deepdive-ai.seq-visible {
    opacity: 1;
    transform: translateY(0);
}

.deepdive-ai-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.deepdive-ai .ai-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.deepdive-ai .ai-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text);
}

.deepdive-ai-chips {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.deepdive-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: 28px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.deepdive-chip:hover {
    border-color: var(--color-text);
    color: var(--color-text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.deepdive-chip.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-surface);
}

.deepdive-chip.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Chip attention animation - shimmer border effect */
.deepdive-chip.attention,
.trend-ai-chip.attention,
.myglow-ai-chip.attention {
    position: relative;
    overflow: hidden;
    animation: glowPulse 2s ease-in-out infinite;
}

.deepdive-chip.attention::before,
.trend-ai-chip.attention::before,
.myglow-ai-chip.attention::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: calc(100% + 4px);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
    50% {
        box-shadow: 0 0 12px 2px rgba(99, 102, 241, 0.3);
    }
}

.deepdive-ai-result {
    min-height: 150px;
    padding: 16px;
    background: var(--color-surface);
    border-radius: 8px;
}

.deepdive-ai-result .ai-result-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
}

/* Typing cursor */
.deepdive-ai-result .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: var(--color-primary);
    margin-left: 2px;
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Note */
.deepdive-note {
    margin-top: 24px;
    font-size: 12px;
    color: var(--color-text-tertiary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .deepdive-tabs {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 24px;
        margin-left: -24px;
        margin-right: -24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .deepdive-tabs::-webkit-scrollbar {
        display: none;
    }

    .deepdive-tab {
        padding: 10px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .deepdive-ai-chips {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        gap: 12px;
    }

    .deepdive-posts {
        flex-direction: column;
        gap: 16px;
    }

    .deepdive-post-card {
        flex-direction: row;
    }

    .post-card-image {
        width: 80px;
        height: 120px;
    }

    .post-card-translation {
        display: none;
    }

    .deepdive-foreground {
        padding: 20px;
    }

    .hide-mobile {
        display: none !important;
    }

    .deepdive-chip {
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* Deep Dive Overlay */
.deepdive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.deepdive-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.deepdive-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.deepdive-overlay-card {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.deepdive-overlay.visible .deepdive-overlay-card {
    transform: translateY(0);
}

.deepdive-overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.deepdive-overlay-close:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-surface);
}

.deepdive-overlay-content {
    padding: 32px;
    max-height: 80vh;
    overflow-y: auto;
}

.deepdive-overlay-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--color-text);
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.deepdive-overlay-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin: 12px 0;
}

.deepdive-overlay-content strong {
    font-weight: 600;
    color: var(--color-text);
}

.deepdive-overlay-content ul {
    margin: 12px 0;
    padding-left: 0;
    list-style: none;
}

.deepdive-overlay-content li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.deepdive-overlay-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.deepdive-overlay-content li strong {
    font-weight: 600;
    color: var(--color-text);
}

.deepdive-overlay .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--color-brand);
    animation: blink 0.8s infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
}

/* Mobile: Bottom Sheet Style */
@media (max-width: 768px) {
    .deepdive-overlay {
        align-items: flex-end;
    }

    .deepdive-overlay-card {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
    }

    .deepdive-overlay.visible .deepdive-overlay-card {
        transform: translateY(0);
    }

    .deepdive-overlay-content {
        padding: 24px;
        padding-bottom: 40px;
    }
}

/* ============================================================
   Section 6: Trend Insights
   ============================================================ */

.trend-section {
    background: var(--color-surface);
    min-height: 80vh;
}

.trend-section .section-title {
    margin-bottom: 24px;
}

/* Trend Cloud Container */
.trend-cloud-container {
    max-width: 750px;
    margin: 0 auto 8px;
    text-align: center;
}

.trend-cloud-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
}

.trend-section .scale-note {
    margin-top: 32px;
    margin-bottom: 0;
}

/* Trend AI Chips */
.trend-ai-chips {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.trend-ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: 28px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.trend-ai-chip:hover {
    border-color: var(--color-text);
    color: var(--color-text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.trend-ai-chip.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-surface);
}

.trend-ai-chip.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Trend Overlay */
.trend-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.trend-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.trend-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.trend-overlay-card {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.trend-overlay.visible .trend-overlay-card {
    transform: translateY(0);
}

.trend-overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.trend-overlay-close:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-surface);
}

.trend-overlay-content {
    padding: 32px;
    max-height: 80vh;
    overflow-y: auto;
}

.trend-overlay-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--color-text);
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.trend-overlay-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin: 12px 0;
}

.trend-overlay-content strong {
    font-weight: 600;
    color: var(--color-text);
}

.trend-overlay-content ul {
    margin: 12px 0;
    padding-left: 0;
    list-style: none;
}

.trend-overlay-content li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.trend-overlay-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.trend-overlay-content li strong {
    font-weight: 600;
    color: var(--color-text);
}

.trend-overlay .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--color-brand);
    animation: blink 0.8s infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Mobile: Bottom Sheet Style */
@media (max-width: 768px) {
    .trend-overlay {
        align-items: flex-end;
    }

    .trend-overlay-card {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
    }

    .trend-overlay.visible .trend-overlay-card {
        transform: translateY(0);
    }

    .trend-overlay-content {
        padding: 24px;
        padding-bottom: 40px;
    }
}

/* ============================================================
   Section 7: MY GLOW
   ============================================================ */

.myglow-section {
    background: var(--color-surface);
    padding: 80px 0;
}

.myglow-section .section-desc {
    margin-top: 16px;
    margin-bottom: 40px;
}

.myglow-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* MY GLOW Header */
.myglow-header {
    text-align: center;
    padding: 32px 40px;
    border-bottom: 1px solid var(--color-border);
}

.myglow-icon {
    font-size: 0.8em;
    color: var(--color-text);
    margin-right: 8px;
}

.myglow-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--color-text);
    margin: 0 0 8px 0;
}

.myglow-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--color-text-tertiary);
    margin: 0;
    text-transform: lowercase;
}

/* MY GLOW Cards */
.myglow-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 40px;
}

.myglow-card {
    background: var(--color-surface-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.2s ease;
}

.myglow-card:hover {
    border-color: var(--color-text-tertiary);
}

.myglow-card-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.myglow-card-type.brand {
    color: var(--color-brand);
}

.myglow-card-title {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
}

/* MY GLOW AI Chips */
.myglow-ai-chips {
    margin-top: 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.myglow-ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: 24px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.myglow-ai-chip:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.myglow-ai-chip:active {
    transform: translateY(0);
}

.myglow-ai-chip.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================================
   Toast Notification
   ============================================================ */

.landing-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text);
    color: var(--color-surface);
    padding: 20px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    max-width: 90vw;
}

.landing-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.landing-toast .toast-main {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.landing-toast .toast-sub {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .landing-toast {
        bottom: 24px;
        padding: 16px 24px;
        border-radius: 12px;
    }

    .landing-toast .toast-main {
        font-size: 14px;
    }

    .landing-toast .toast-sub {
        font-size: 12px;
    }
}

/* ============================================================
   Section 8: CTA
   ============================================================ */

.cta-section {
    background: var(--color-surface);
}


.cta-title {
    font-family: var(--font-serif-kr);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.5;
}

.cta-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 24px;
    white-space: pre-line;
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 18px 48px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.cta-footer {
    margin-top: 60px;
    text-align: center;
}

.cta-footer-logo {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--color-text-tertiary);
    margin-bottom: 8px;
}

.cta-footer-copy {
    display: block;
    font-size: 12px;
    color: var(--color-text-tertiary);
}

/* ============================================================
   Footer
   ============================================================ */

.landing-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 32px;
}

.footer-content {
    max-width: var(--landing-content-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--color-text);
}

.footer-copy {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

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

@media (max-width: 1024px) {
    .brand-map-showcase {
        width: 95vw;
        height: clamp(340px, 45vh, 420px);
    }

    .brand-list-sidebar {
        height: 100%;
    }

    .showcase-brand-name {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

@media (max-width: 768px) {
    /* 모바일: 느슨한 스냅 (mandatory → proximity) */
    html.snap-scroll body {
        scroll-snap-type: y proximity;
    }

    .landing-section {
        /* height: auto 제거 - 짧은 섹션은 중앙 정렬 유지 */
        min-height: 100vh;
        min-height: 100dvh;  /* dvh 지원 브라우저용 */
        overflow: visible;
        padding: 40px 24px 80px;  /* 상단 줄여서 시각적 중앙 보정 */
    }

    /* 긴 섹션만 height: auto + 스냅 제외 */
    .deepdive-section,
    .myglow-section {
        height: auto;
        scroll-snap-align: none;
    }

    .lang-switcher {
        top: 12px;
        right: 12px;
        font-size: 9px;
        gap: 2px;
        opacity: 0.4;
    }

    .lang-link {
        padding: 3px 5px;
    }

    .lang-divider {
        font-size: 8px;
    }

    /* Global Section - center content on mobile */
    .global-section {
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }

    .global-section .section-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Brand Map Showcase */
    .brand-map-showcase {
        flex-direction: column-reverse;
        width: 100vw;
        margin-left: -24px;  /* 섹션 패딩 상쇄 */
        height: 316px;
        background: #B3C6D4;
        margin-top: 24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .brand-list-sidebar {
        width: 100%;
        min-width: unset;
        max-width: none;  /* 데스크탑 max-width 해제 */
        height: 36px;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-top: 1px solid var(--color-border);
        padding: 0;
        background: #FAFAFA;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .brand-list-sidebar::-webkit-scrollbar {
        display: none;
    }

    .brand-list-sidebar .brand-list-item {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 13px;
    }

    .showcase-map-container {
        width: 100%;
        height: 280px;
        flex: none;
    }

    .brand-name-overlay {
        top: 10px;
        right: 12px;
    }

    .showcase-brand-name {
        font-size: clamp(1.6rem, 10vw, 2.2rem);
        letter-spacing: 2px;
    }

    /* Trend */
    .trend-cloud-container {
        margin-bottom: 32px;
    }

    .trend-cloud-image {
        max-width: 450px;
    }

    .trend-ai-chip {
        padding: 12px 20px;
        font-size: 13px;
    }

    /* MY GLOW */
    .myglow-section {
        padding: 60px 24px;
    }

    .myglow-container {
        max-width: 100%;
    }

    .myglow-header {
        padding: 24px;
    }

    .myglow-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .myglow-cards {
        grid-template-columns: 1fr;
        padding: 20px 24px;
    }

    .myglow-card {
        padding: 20px;
    }

    .myglow-card:nth-child(2) {
        display: none;
    }

    .myglow-card-title {
        font-size: 14px;
    }

    .myglow-ai-chips {
        margin-top: 24px;
        gap: 12px;
    }

    .myglow-ai-chip {
        padding: 12px 18px;
        font-size: 12px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

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

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

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

    .trend-cloud-image {
        max-width: 320px;
    }

    .trend-ai-chip,
    .deepdive-chip {
        padding: 10px 16px;
        font-size: 12px;
    }
}
