@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Pretendard:wght@300;400;500;600;700;800&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    /* Theme based on uploaded image (Purple/Blue Gradient) */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Default Dark Mode Variables */
    --main-bg: #0f172a;
    --section-bg-1: #1e293b;
    --section-bg-2: #0f172a; /* Used in complex gradient */
    
    --bg-card: rgba(255, 255, 255, 0.1); /* Transparent Glass */
    --primary: #a78bfa; /* Light Purple */
    --secondary: #22d3ee; /* Bright Cyan */
    --accent: #f472b6; /* Soft Pink */
    
    --text-main: #ffffff; /* White text for dark background */
    --text-muted: #e2e8f0; /* Light gray for secondary text */
    
    --border-color: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    --gradient-text: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    --card-hover-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);

    /* Nav Variables */
    --nav-bg-scrolled: rgba(0, 0, 0, 0.7);
    --nav-text: #ffffff;
    --nav-text-opacity: 0.8;
}

[data-theme="light"] {
    --main-bg: #f8fafc; /* Slate 50 */
    --section-bg-1: #ffffff;
    --section-bg-2: #f1f5f9; /* Slate 100 */

    --bg-card: rgba(255, 255, 255, 0.8);
    --primary: #7c3aed; /* Darker Purple for contrast */
    --secondary: #0891b2; /* Darker Cyan */
    --accent: #db2777; /* Darker Pink */

    --text-main: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */

    --border-color: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --gradient-text: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    --card-hover-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);

    /* Nav Variables Light */
    --nav-bg-scrolled: rgba(255, 255, 255, 0.9);
    --nav-text: #1e293b;
    --nav-text-opacity: 1;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scroll-padding-top: 100px; /* Ensure anchor links are not hidden by fixed header */
}

body {
    font-family: 'Pretendard', sans-serif;
    /* Base background is deep dark, sections will overlay their own styles */
    background-color: var(--main-bg); 
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1; /* Ensure body content sits above fixed background */
}

/* Space Canvas Styling */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind everything */
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%); /* Deep space base */
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Light Mode Canvas Background: Transparent to show body color */
[data-theme="light"] #space-canvas {
    background: transparent;
    opacity: 1;
    display: block !important; /* Force visible */
}

/* --- Section Specific Themes --- */

/* 1. Hero: Transparent for Space Effect */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Made transparent to show stars in dark mode */
    background: transparent; 
}

/* Add gradient ONLY for light mode or create a subtle overlay for dark mode if needed */
[data-theme="light"] .hero {
    /* Semi-transparent gradient to show stars behind */
    background: linear-gradient(-45deg, 
        rgba(102, 126, 234, 0.85), 
        rgba(118, 75, 162, 0.85), 
        rgba(107, 95, 168, 0.85), 
        rgba(76, 29, 149, 0.85)
    );
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* Optional: Slight tint for dark mode hero to ensure text readability against stars */
[data-theme="dark"] .hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.5) 100%);
    z-index: -1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. App Showcase: Semi-transparent for Space Effect */
.app-showcase {
    position: relative;
    background: rgba(30, 41, 59, 0.7); /* Translucent Slate 800 */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
    backdrop-filter: blur(10px); /* Glass effect */
}

[data-theme="light"] .app-showcase {
    background: var(--section-bg-1);
}
.app-showcase::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15), transparent 50%);
    pointer-events: none;
}

/* 3. Features: Semi-transparent Mesh Gradient */
#service {
    background: radial-gradient(at 0% 0%, rgba(15, 23, 42, 0.8) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(30, 41, 59, 0.8) 0px, transparent 50%),
                rgba(15, 23, 42, 0.6);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
    backdrop-filter: blur(5px);
}

[data-theme="light"] #service {
    background: radial-gradient(at 0% 0%, var(--section-bg-2) 0px, transparent 50%),
                radial-gradient(at 100% 100%, var(--section-bg-1) 0px, transparent 50%),
                var(--main-bg);
}
/* Pulsing Glow Effect for Features */
#service::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulseGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

/* 4. Platform Integration: Cyberpunk Dark (Tech feel) */
.platform-integration {
    background: #000000;
    position: relative;
    overflow: hidden;
}
.platform-integration::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* 5. Before/After: Clean Slate */
.before-after {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

/* 6. Pricing: Spotlight Effect */
#pricing {
    background: #0f172a;
    position: relative;
}
#pricing::before {
    content: '';
    position: absolute;
    top: -20%; left: 50%; transform: translateX(-50%);
    width: 100%; height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* 7. FAQ: Dark Minimal */
#faq {
    background: #0b0f19;
}

/* 8. Final CTA: Gradient Return */
.final-cta-section { /* Assuming you might want to add a class to the inline style section */
    background: linear-gradient(0deg, #000 0%, #1e293b 100%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #2d2d2d;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Utility & Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-main);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-main);
    /* Reset background clip for pure white text */
    background: none; 
    -webkit-text-fill-color: initial;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 5rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
}

/* Glassmorphism Card Base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
    background: rgba(0, 0, 0, 0.1); /* Slight dark tint */
    backdrop-filter: blur(10px);
}

nav.scrolled {
    background: var(--nav-bg-scrolled); /* Darker on scroll */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Navigation Container */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Context for centering */
    height: 80px; /* Fixed height for stability */
}

/* Logo Alignment */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--nav-text);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    z-index: 10; /* Ensure clickable */
    white-space: nowrap; /* 줄바꿈 방지 */
    flex-shrink: 0; /* 크기 축소 방지 */
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

/* Right Side Buttons (Login, Theme, CTA) */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10; /* Ensure clickable */
}

/* Desktop Menu (The 5 items) - Absolute Centering */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important; /* 강제 적용 */
    flex-direction: row !important; /* 가로 정렬 강제 */
    align-items: center;
    gap: 80px; /* "8바이트" 요청 반영 (약 80px) */
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.nav-links li {
    display: inline-block;
}

/* Nav Link Styling */
.nav-links a {
    color: var(--nav-text);
    opacity: var(--nav-text-opacity);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* Responsive: Tablet & Small Laptop (769px ~ 1300px) */
/* 이 구간에서는 절대 위치(중앙 고정)를 풀고 자연스럽게 배치합니다 */
@media (max-width: 1300px) and (min-width: 769px) {
    .nav-links {
        position: static !important; /* 중앙 고정 해제 */
        transform: none !important; /* 위치 이동 해제 */
        gap: 45px !important; /* 태블릿에서도 최대한 넓게 (40px -> 45px) */
        display: flex !important;
        margin: 0 auto !important; /* 중앙 정렬 유지 */
    }
    
    .nav-links a {
        font-size: 0.95rem; /* 글자 크기 살짝 줄여서 공간 확보 */
    }

    /* 로고, 메뉴, 버튼 사이 공간 자동 배분 */
    .nav-container {
        justify-content: space-between !important; 
    }
}

/* Mobile (<768px) - Hide Top Menu, Reset Positioning */
@media (max-width: 768px) {
        .nav-links {
            display: none !important; /* Hide center menu */
        }
        .nav-container {
            justify-content: space-between; /* Space logo and buttons */
        }
        .logo, .nav-buttons {
            position: static; /* Reset z-index/position context if needed */
        }
        /* Mobile Layout Fixes */
        .hero h1 {
            font-size: 2rem;
            line-height: 1.3;
            word-break: keep-all;
        }
    }

.cta-button {
    background: #fff;
    color: #667eea; /* Match gradient start */
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Shimmer Effect for Button */
.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: 0.5s;
    animation: shimmer 3s infinite;
}

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

.cta-button:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
}

/* Force Horizontal Layout for Footer Links */
.footer-links {
    display: flex !important;
    flex-direction: row !important; /* Strictly horizontal */
    flex-wrap: nowrap !important; /* Never wrap */
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    white-space: nowrap !important;
}

/* Tablet Optimization: Keep horizontal but shrink space */
@media (max-width: 1200px) {
    .nav-links, 
    .footer-links {
        gap: 1.5rem !important; /* Consistent gap */
    }
    
    .nav-links a,
    .footer-links a {
        font-size: 1rem !important;
    }
    .logo {
        font-size: 1.3rem; 
        left: 1rem; /* Adjust absolute position for tighter screens */
    }
    .nav-buttons {
        right: 1rem; /* Adjust absolute position for tighter screens */
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* Hero Section */
/* Removed previous .hero block to avoid duplication as it is defined in the section above */

.hero-content {
    max-width: 1000px;
    padding: 2rem;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    font-family: 'Pretendard', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* 강제 한 줄 표시 */
    text-align: center; /* 텍스트 중앙 정렬 강제 */
}

/* Shimmer Effect for Hero CTA */
.hero-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 200, 255, 0.5), transparent);
    animation: shimmer 3s infinite 1.5s; /* Delay to alternate with small button */
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.hero ul {
    text-align: left;
    max-width: 600px;
    margin: 3rem auto;
    list-style: none;
}
.hero ul li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    /* 긴 텍스트 줄바꿈 방지 및 말줄임표 처리 */
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 모바일 화면에서 리스트 글자 크기 조정 */
@media (max-width: 768px) {
    .hero ul {
        width: 100%;
        padding: 0 10px;
    }
    
    .hero ul li {
        font-size: 0.85rem; /* 글자 크기 축소 (한 줄에 다 들어가도록) */
        margin-bottom: 0.8rem;
        padding-left: 1.8rem;
        text-align: left;
    }
    
    .hero ul li span {
        left: 0;
        top: 0;
    }
}
.hero ul li span {
    position: absolute;
    left: 0;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Floating Elements (Orbs) */
.floating {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite alternate;
}
.floating-1 { top: 10%; left: 5%; width: 300px; height: 300px; background: rgba(255, 255, 255, 0.2); }
.floating-2 { bottom: 10%; right: 5%; width: 400px; height: 400px; background: rgba(255, 255, 255, 0.1); }
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -30px); }
}

/* Responsive Image Global Fix */
img {
    max-width: 100%;
    height: auto;
}

/* Section Common */
section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
}

/* App Showcase */
.app-showcase {
    position: relative;
}
.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.showcase-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    /* Floating Animation */
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.phone-screen {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    width: 100%;
    padding-top: 2rem;
    overflow: hidden;
    position: relative;
}
/* Review Cards inside Phone */
.review-card {
    background: rgba(255,255,255,0.95);
    margin: 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.review-stars { color: #fbbf24; }
.review-text { font-size: 0.8rem; color: #333; margin: 0.5rem 0; }
.ai-response {
    background: #f3f4f6;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    border-left: 3px solid #667eea;
    color: #333;
}
.ai-badge {
    color: #667eea;
    font-weight: bold;
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    background: rgba(255, 255, 255, 0.1); /* Glass */
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    color: var(--text-main);
}
.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-main);
}
.feature-card p {
    color: var(--text-muted);
}
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}
.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

/* Platform Integration */
/* .platform-integration background defined in section grouping above */
.platform-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color) !important;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.platform-card-item:hover {
    border-color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}
.platform-card-item h3 { color: var(--text-main) !important; }
.platform-card-item p { color: var(--text-muted) !important; }

/* Before/After */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.comparison-card {
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.comparison-card.before {
    background: rgba(0, 0, 0, 0.2); /* Darker for before */
}
.comparison-card.after {
    background: rgba(255, 255, 255, 0.15); /* Lighter for after */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}
.comparison-card h3 { color: var(--text-main); }
.comparison-card p { color: var(--text-muted); font-weight: 500;}

/* Pricing */
.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.pricing-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%);
    animation: rotate 10s linear infinite;
    z-index: 0;
}
@keyframes rotate { 100% { transform: rotate(360deg); }}
.pricing-card > * { position: relative; z-index: 1; }

.price {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
    margin: 1rem 0;
}
.pricing-badge {
    background: #fff;
    color: #667eea;
    font-weight: bold;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.pricing-features li { color: var(--text-muted); }

/* FAQ */
.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}
.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #fff;
}
.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}
.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    display: none;
}
.faq-item.active .faq-answer { display: block; }

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] footer {
    background: #f1f5f9;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
}
footer .logo { color: #fff; }
[data-theme="light"] footer .logo { color: #334155; }

/* Force horizontal layout for footer links on Tablet/PC */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* Force single line on desktop */
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .footer-links {
        gap: 1rem; /* Reduce gap on tablet */
        flex-wrap: wrap; /* Allow wrapping if really tight on small tablets */
    }
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap; /* Prevent breaking inside link text */
}
[data-theme="light"] .footer-links a {
    color: #64748b;
}

.footer-links a:hover { color: #fff; }
[data-theme="light"] .footer-links a:hover { color: #0f172a; }

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: #1e293b; /* Dark bg for modal readability */
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #fff;
}
.modal-content h2, .modal-content h3 { color: #fff; }
.modal-content p { color: rgba(255,255,255,0.7); }

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none; border: none;
    color: rgba(255,255,255,0.5); font-size: 2rem;
    cursor: pointer;
}
.form-group label { color: #fff; font-weight: 600; display: block; margin-bottom: 0.5rem; }
.form-group input {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 8px;
    color: #fff;
    margin-top: 0;
}
.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255,255,255,0.15);
}
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1rem;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 2rem;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}
.submit-btn:hover {
    box-shadow: 0 0 25px rgba(118, 75, 162, 0.6);
    transform: translateY(-2px);
}

/* Mobile App Icons Row */
.hero-mobile-icons {
    display: none;
}

/* Kakao Chat Floating Button */
.kakao-float {
    position: fixed;
    bottom: 100px; /* Moved up to make room for download button */
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #FEE500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9990;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kakao-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.kakao-icon {
    width: 32px;
    height: 32px;
    fill: #391B1B;
}

/* Download Floating Button */
.download-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #fff;
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9990;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.download-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: #764ba2;
}
.download-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Responsive Utilities */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

/* Responsive */
@media (max-width: 1024px) {
    .features-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem;
    }
    
    .hero h1 { font-size: 3rem; }
    
    section { padding: 5rem 2rem; } /* Reduce padding on tablet */
    
    .showcase-content {
        gap: 2rem;
    }
}
@media (max-width: 768px) {
    .mobile-only { display: block !important; }
    .desktop-only { display: none !important; }
    
    /* Layout Reset for Mobile */
    .features-grid, 
    .before-after-grid, 
    .showcase-content { 
        grid-template-columns: 1fr !important; 
        gap: 2rem; 
    }
    
    .showcase-content {
        display: flex;
        flex-direction: column; /* Text first (on top), then Image */
        align-items: center; /* 가로축 중앙 정렬 */
    }

    .showcase-text {
        text-align: center !important; /* 텍스트 중앙 정렬 강제 */
        width: 100%;
    }

    /* Padding Adjustments */
    section { padding: 4rem 1.5rem; }
    
    /* Pricing Card Mobile */
    .pricing-card {
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .price { font-size: 3rem; }
    
    /* Hero Adjustments */
    .hero { 
        padding-top: 85px; /* 100px -> 85px (네비게이션 바 바로 아래로 바짝 당김) */
        min-height: auto; 
        padding-bottom: 4rem; 
        display: block; /* Stack content instead of flex center */
    }
    
    .hero-content {
        margin-top: 0; /* 2rem -> 0 (불필요한 외부 여백 제거) */
        padding-top: 1rem !important; /* 내부 여백도 최소화 */
    }

    /* 모바일에서 버튼 너비 자동 조정 (텍스트 잘림 방지) */
    .hero .hero-cta {
        width: auto !important;
        min-width: 200px;
        padding: 1.2rem 2rem; /* 좌우 패딩 확보 */
        max-width: 90%; /* 화면 밖으로 나가지 않게 */
    }

    /* Mobile Signup Button */
    .cta-button.mobile-only {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
        margin-left: 0.5rem;
    }

    /* Mobile Typography Adjustments */
    .hero h1 { font-size: 2.2rem; line-height: 1.4; margin-bottom: 1.5rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    
    /* Reduced section title size to prevent wrapping */
    .section-title { 
        font-size: 1.8rem; 
        margin-bottom: 0.5rem; 
        white-space: nowrap; /* Prevent line break */
    }
    .section-subtitle { font-size: 1rem; margin-bottom: 3rem; }
    
    /* [Final Perfect Fit] Banner Slider */
    .mobile-event-banner {
        width: 100%;
        margin-top: 80px; 
        margin-bottom: -85px;
        position: relative;
        z-index: 2;
        overflow: hidden;
    }

    #mainBannerSlider {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        width: 100% !important;
        height: auto !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #mainBannerSlider::-webkit-scrollbar {
        display: none;
    }
    
    .banner-slide {
        display: block !important;
        flex-shrink: 0 !important;
        height: auto !important;
        box-sizing: border-box !important;
        scroll-snap-align: center !important; /* 중앙 정렬 */
        scroll-snap-stop: always !important;
        padding: 0 !important;
    }
    
    .banner-slide img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important; /* 비율 유지하며 다 보여줌 (잘림 방지) */
    }

    /* 1. 모바일 (기본): 1장 (100%) */
    .banner-slide {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    /* 2. 태블릿 (769px 이상): 3장 (33.33%) */
    @media (min-width: 769px) {
        .mobile-event-banner {
            margin-top: 100px !important;
            margin-bottom: 2rem !important;
            padding: 0 2rem !important;
        }
        .banner-slide {
            flex: 0 0 33.333% !important;
            width: 33.333% !important;
            padding: 0 5px !important;
        }
        .banner-slide img {
            border-radius: 12px !important;
        }
    }

    /* 3. PC (1301px 이상): 5장 (20%) */
    @media (min-width: 1301px) {
        .mobile-event-banner {
            max-width: 1400px !important;
            margin: 100px auto 2rem !important;
        }
        .banner-slide {
            flex: 0 0 20% !important;
            width: 20% !important;
        }
    }

    /* Mobile Top App Icons */
    .hero-mobile-icons {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-bottom: 1rem; /* 2rem -> 1rem (하단 여백 50% 축소) */
        width: 100%;
        padding: 0 0.5rem;
    }
    .hero-mobile-icons img {
        width: 16vw;
        max-width: 58px;
        height: auto;
        aspect-ratio: 1/1;
        border-radius: 22%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        object-fit: cover;
    }
    
    /* Adjust Kakao Float on Mobile (Move up to avoid Bottom Nav) */
    .kakao-float {
        bottom: 150px; /* Raised further */
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .download-float {
        bottom: 90px; /* Above nav */
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .kakao-icon {
        width: 26px;
        height: 26px;
    }
    
    .download-float svg {
        width: 24px;
        height: 24px;
    }

    /* Hide entire footer on mobile */
    footer {
        display: none !important;
    }

    /* Force hide mobile menu overlay since we use bottom nav */
    .mobile-menu {
        display: none !important;
    }
    
    /* Add padding to body to prevent content from being hidden behind bottom nav */
    body {
        padding-bottom: 80px; /* Adjust based on bottom nav height */
    }
}

/* Mobile Menu Overlay (Desktop only fallback or if needed later) */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 999;
}
.mobile-menu.active { display: flex; align-items: center; justify-content: center; }
.mobile-menu-links { list-style: none; text-align: center; }
.mobile-menu-links li { margin: 2rem 0; }
.mobile-menu-links a { color: #fff; font-size: 1.5rem; text-decoration: none; font-family: 'Orbitron', sans-serif; font-weight: 700; }

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; height: 3px;
    background: #fff;
    z-index: 2001;
}

/* Scroll Animation Classes - Force visible on mobile/default to avoid white screen if JS fails */
.scroll-hidden {
    opacity: 1 !important;
    transform: none !important;
}

.scroll-hidden.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Force white text for dark sections in Light Mode */
.platform-integration .section-title,
.platform-integration .section-subtitle,
.before-after .section-title,
.before-after .section-subtitle,
#pricing .section-title,
#pricing .section-subtitle,
#faq .section-title,
#faq .section-subtitle {
    color: #ffffff !important;
}

/* [긴급 수정] 요금제 카드 텍스트 가독성 확보 */
/* 배경이 어둡기 때문에 무조건 흰색으로 표시 */
.pricing-card h3,
.pricing-card .price,
.pricing-card p,
.pricing-card li,
.pricing-card span:not(.pricing-badge) {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 가독성을 위한 그림자 추가 */
}

/* 가격 텍스트 강조 */
.pricing-card .price {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 2px 5px rgba(0,0,0,0.5) !important;
}

/* Mobile Bottom Navigation - Premium Design */
@media (max-width: 768px) {
    .bottom-nav.mobile-only {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 75px !important; /* 높이 약간 증가 */
        
        /* 글래스모피즘 (유리 효과) */
        background: rgba(15, 23, 42, 0.85) !important; 
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        
        /* 테두리 및 그림자 */
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px 20px 0 0; /* 상단 모서리 둥글게 */
        box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
        
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-evenly !important; /* 간격 균등 분배 */
        align-items: center !important;
        padding: 0 0 10px 0 !important; /* 하단 여백 추가 */
        padding-bottom: env(safe-area-inset-bottom, 10px) !important; /* 아이폰 하단 바 대응 */
        z-index: 99999 !important;
        margin: 0 !important;
    }

    /* Light Mode Glass */
    [data-theme="light"] .bottom-nav.mobile-only {
        background: rgba(255, 255, 255, 0.85) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #64748b; /* 기본 회색 */
        font-size: 0.7rem;
        gap: 4px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 쫀득한 애니메이션 */
        opacity: 0.7;
        position: relative;
        flex: 1;
        height: 100%;
        justify-content: center;
    }

    .nav-item svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
        transition: all 0.3s ease;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    /* Active State - 활성화 시 효과 */
    .nav-item.active, 
    .nav-item:hover {
        color: #fff !important;
        opacity: 1;
        transform: translateY(-5px); /* 위로 살짝 떠오름 */
    }

    [data-theme="light"] .nav-item.active,
    [data-theme="light"] .nav-item:hover {
        color: #7c3aed !important;
    }

    /* 아이콘 발광 효과 (Glow) */
    .nav-item.active svg {
        fill: #a78bfa; /* 밝은 보라색 */
        filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6)); /* 네온 글로우 */
        transform: scale(1.1);
    }

    /* 활성 표시 점 (Indicator Dot) */
    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 8px; /* 위치 조정 */
        width: 4px;
        height: 4px;
        background: #22d3ee; /* 청록색 포인트 */
        border-radius: 50%;
        box-shadow: 0 0 5px #22d3ee;
        animation: fadeIn 0.3s ease-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: scale(0); }
        to { opacity: 1; transform: scale(1); }
    }
}

.default-color {color: var(--text-main);}