/* --- (v25.0) LANDING PAGE STYLES: Premium Apple Metallic Aesthetic --- */

/* 1. Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&display=swap');

:root {
    /* --- Palette: MacBook Silver & Matte Black --- */
    
    /* Background: Cold, clean aluminum silver */
    --metal-dark-bg: #F5F5F7; 
    
    /* Text: Matte Black (No Gradients on text) */
    --text-primary: #111111; 
    --text-secondary: #6E6E73; /* Apple's standard secondary gray */

    /* UI Accents: Metallic Gradients for Buttons/Borders ONLY */
    --metal-silver-gradient: linear-gradient(180deg, #FFFFFF 0%, #D1D1D6 100%);
    --metal-brushed-texture: repeating-linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.02) 0px,
        rgba(0, 0, 0, 0.02) 1px,
        transparent 1px,
        transparent 2px
    );

    /* Borders & Highlights for Light Mode */
    --metal-border: rgba(0, 0, 0, 0.08); 
    --metal-highlight: rgba(255, 255, 255, 0.8);
    
    /* Accent: Subtle Signal Green */
    --accent-green: #00C853; 

    /* Lighting: Strong Studio Spotlight from Top */
    --spotlight-gradient: radial-gradient(
        circle at 50% -10%, 
        rgba(255, 255, 255, 1.0) 0%, 
        rgba(255, 255, 255, 0.0) 60%
    );

    /* Compatibility Variables */
    --deep-space: var(--metal-dark-bg);
    --neon-green: var(--accent-green);
    --neon-cyan: #0071e3; /* Apple Blue for links if needed */
    --glass-bg: rgba(255, 255, 255, 0.65); /* Frosted glass for light mode */
    --glass-border: var(--metal-border);
    --glass-highlight: var(--metal-highlight);
}

body {
    margin: 0; padding: 0; overflow-x: hidden;
    background-color: var(--metal-dark-bg);
    
    /* 상단 조명 */
    background-image: radial-gradient(
        circle at 50% -10%, 
        rgba(255, 255, 255, 1.0) 0%, 
        rgba(255, 255, 255, 0.5) 20%, 
        transparent 70%
    );
    
    /* 🔥 [삭제] 이 속성이 모바일 렉 유발 1순위입니다. 무조건 지우세요! */
    /* background-attachment: fixed; */ 
    
    /* 대신 이걸 추가해서 배경이 반복되지 않게만 설정 */
    background-repeat: no-repeat;
    background-size: 100% 100vh; /* 배경을 화면 크기에 맞춤 */
    
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 3. Intro Video Container */
#video-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 9999;
    background-color: #000000; /* Video container stays black for cinema feel */
    transition: opacity 1.5s ease-out;
    opacity: 1;
}
#video-container.fade-out { opacity: 0; pointer-events: none; }
#intro-video { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
    #intro-video {
        object-fit: contain;
        background-color: #000000;
    }
}

/* 4. Canvas (Hidden or Subtle) */
#heroCanvas {
    /* Optional: Can be used for subtle dust particles, but kept low opacity */
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* Content Fade In */
#main-content {
    opacity: 0;
    transition: opacity 1.5s ease-in;
}
#main-content.visible { opacity: 1; }

/* 5. Container */
.landing-container {
     max-width: 1280px;
     margin: 0 auto;
     padding: 0 40px;
}

/* 6. Header Styles */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    position: relative; 
    z-index: 20;
}
.header-logo img { max-width: 120px; height: auto; filter: invert(1); /* Invert logo to black if it was white */ }

.header-nav { display: flex; gap: 12px; }

.nav-button {
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 500; text-decoration: none;
    padding: 10px 24px; border-radius: 99px;
    transition: all 0.2s ease;
    /* Clean text, no gradients */
    color: var(--text-primary);
}

.nav-button.primary {
    /* Physical Button Feel: Silver Gradient Background */
    background: var(--metal-silver-gradient);
    color: #000000;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.nav-button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: #FFFFFF;
}

.nav-button.secondary {
    background: transparent;
    color: var(--text-secondary);
}
.nav-button.secondary:hover {
    color: var(--text-primary);
}

/* 7. Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    padding: 120px 40px 120px 40px;
    position: relative; z-index: 20;
}

.hero-content { text-align: left; z-index: 20; }

.hero-subtitle-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary); /* Elegant Gray */
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 16px; display: block;
    text-shadow: none;
}

.hero-title {
    font-family: 'Merriweather', serif; /* or SF Pro Display */
    font-size: 4.5rem;
    line-height: 1.05; font-weight: 900; letter-spacing: -0.03em;
    /* Matte Black Text - No Gradient */
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 24px;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem; line-height: 1.5;
    color: var(--text-secondary);
    max-width: 480px; margin-bottom: 40px;
    font-weight: 400;
}

.hero-cta-buttons { display: flex; gap: 16px; }

.cta-button {
    padding: 16px 36px; border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 16px; text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.cta-button.primary {
    /* Solid Black Button like Apple Keyboards */
    background: #111111;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}
.cta-button.primary:hover {
    transform: translateY(-2px);
    background: #000000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-button.secondary {
    background: #FFFFFF;
    color: #111111;
    border: 1px solid #D1D1D6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.cta-button.secondary:hover {
    border-color: #999;
    background: #F5F5F7;
}

/* 8. Metallic Glass Vertical Feed */
.hero-feed-vertical {
    position: relative;
    height: 480px;
    /* Frosted Aluminum Glass */
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Soft shadow to separate from bg */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
        
    overflow: hidden;
    display: flex; flex-direction: column;
    z-index: 30;
}

.widget-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 600; 
    color: var(--text-secondary);
    background: transparent;
    -webkit-text-fill-color: initial;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 24px; margin: 0;
    border-bottom: 1px solid var(--metal-border);
    background-color: rgba(255,255,255,0.3); flex-shrink: 0;
}

.vertical-scroll-container { flex-grow: 1; overflow: hidden; position: relative; }

@keyframes scroll-up { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
#vertical-ticker-list { position: absolute; width: 100%; animation: scroll-up 60s linear infinite; }
#vertical-ticker-list:hover { animation-play-state: paused; }

.loading-text { padding: 20px; color: var(--text-secondary); font-family: 'Inter', sans-serif; }

/* Ticker Item */
.v-ticker-item {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr;
    padding: 14px 24px;
    border-bottom: 1px solid var(--metal-border);
    align-items: center;
    transition: background 0.2s;
}
.v-ticker-item:hover { background: rgba(0,0,0,0.02); }

.v-ticker-item .name { 
    font-family: 'Inter', sans-serif;
    font-weight: 700; font-size: 15px; 
    color: var(--text-primary);
}
.v-ticker-item .price { 
    font-family: 'Inter', sans-serif;
    font-size: 14px; color: var(--text-secondary); text-align: right; 
    font-feature-settings: "tnum" on, "lnum" on;
}

.v-ticker-item .change-positive { 
    color: var(--accent-green); text-align: right; font-weight: 600; font-size: 14px;
    text-shadow: none;
}
.v-ticker-item .change-negative { 
    color: #FF3B30; text-align: right; font-weight: 600; font-size: 14px;
} 
.v-ticker-item .change-zero { 
    color: var(--text-secondary); text-align: right; font-weight: 600; font-size: 14px;
}

/* 9. Lower Content (Clean White Section) */
.lower-content-wrapper {
    background-color: #FFFFFF;
    color: var(--text-primary);
    padding-top: 1px; 
    position: relative; z-index: 20;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.05); /* Soft separation shadow */
}

.features-section {
    margin-top: 0; margin-bottom: 100px; padding-top: 80px;
    border-top: none;
}
.section-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem; font-weight: 900; 
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
    text-align: left; margin-bottom: 3rem;
}
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px;
}

/* Feature Cards */
.feature-card {
    background-color: #F5F5F7; /* Slight contrast from white bg */
    padding: 40px 32px; border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: none;
    transition: all 0.3s ease;
}
.feature-card:hover { 
    transform: translateY(-5px); 
    background-color: #FFFFFF;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
}

.feature-card h3 {
    font-family: 'Inter', sans-serif; font-size: 1.25rem; font-weight: 700;
    color: var(--text-primary); margin-top: 12px; margin-bottom: 1rem;
}
.feature-card p { 
    font-family: 'Inter', sans-serif;
    font-size: 1rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0; 
}

/* Footer */
.landing-footer {
    margin-top: 100px; margin-bottom: 40px; padding-top: 24px;
    text-align: center; color: var(--text-secondary); font-size: 14px;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid #E5E5EA;
}

/* ==========================================================================
   (v25.0) PREMIUM POPUP: Matte White & Shadow
   ========================================================================== */

.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Lighter backdrop */
    backdrop-filter: blur(15px); z-index: 10000;
    display: none; justify-content: center; align-items: center;
    transition: opacity 0.3s ease;
}

.popup-content {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); /* Deep soft shadow */
    width: 90%; max-width: 460px; max-height: 85vh;
    border-radius: 20px; display: flex; flex-direction: column;
    color: var(--text-primary); font-family: 'Inter', sans-serif;
    animation: popupFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popupFadeIn { from { opacity: 0; transform: scale(0.98) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.popup-header {
    padding: 24px;
    border-bottom: 1px solid #E5E5EA;
    display: flex; justify-content: space-between; align-items: center;
    background: transparent;
}
.popup-header h2 {
    margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
    color: var(--text-primary);
    background: none; -webkit-text-fill-color: initial;
}
.close-btn {
    background: none; border: none; color: #999; font-size: 24px;
    cursor: pointer; padding: 0; transition: color 0.2s; line-height: 1;
}
.close-btn:hover { color: #333; }

.popup-body { padding: 24px; overflow-y: auto; font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); }
.popup-section { margin-bottom: 28px; }
.popup-section:last-child { margin-bottom: 0; }

.neon-accent {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase; letter-spacing: 1px;
    margin: 0 0 12px 0; display: flex; align-items: center;
}
.neon-accent::before {
    content: ''; display: inline-block; width: 16px; height: 2px;
    background: #111; /* Black line */
    margin-right: 10px; opacity: 1;
}

.highlight-box {
    background: #F2F2F7;
    border: none;
    padding: 20px; border-radius: 12px;
}
.main-desc { font-size: 1rem; color: var(--text-primary); margin-bottom: 12px; }
.main-desc strong { color: var(--accent-green); font-weight: 600; }

.clean-list { list-style: none; padding: 0; margin: 0; }
.clean-list li { display: flex; align-items: start; margin-bottom: 8px; color: var(--text-secondary); }
.accent-dot {
    display: inline-block; min-width: 6px; height: 6px;
    background: #999;
    border-radius: 50%;
    margin-top: 8px; margin-right: 12px;
}

.clean-ol { padding-left: 20px; margin: 0; color: var(--text-secondary); }
.clean-ol li { margin-bottom: 8px; padding-left: 5px; }
.clean-ol strong { color: var(--text-primary); font-weight: 600; }

.install-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-item {
    background: #F9F9F9;
    padding: 16px; border-radius: 12px;
    border: 1px solid #E5E5EA;
    text-align: center; transition: all 0.2s ease;
}
.guide-item:hover { border-color: #CCC; }
.os-label {
    display: block; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; font-size: 0.9rem;
}
.guide-item p { margin: 0; color: var(--text-secondary); font-size: 0.8rem; }

.footer-info {
    border-top: 1px solid #E5E5EA;
    padding-top: 16px; margin-top: 16px;
}
.disclaimer, .contact { font-size: 0.75rem; color: #999; margin: 4px 0; }

.popup-footer {
    padding: 20px 24px; border-top: 1px solid #E5E5EA;
    display: flex; justify-content: space-between; align-items: center;
    background: #F9F9F9;
    border-radius: 0 0 20px 20px;
}
.dont-show {
    font-size: 0.85rem; color: #999; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
}
.dont-show:hover { color: #555; }
.dont-show input { accent-color: #111; }

.confirm-btn {
    background: #111111;
    color: #FFFFFF;
    border: none;
    padding: 12px 30px; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- Layered Metallic Header (Visual Flair) --- */
.layered-curl-header {
    position: absolute; 
    top: -150px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 120%; 
    height: 500px;
    
    /* Silver Brushed Metal Texture */
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,1.0) 0%, transparent 60%),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 4px),
        linear-gradient(135deg, #F5F5F7 0%, #D1D1D6 100%);
    
    border-radius: 50% / 100%;
    
    /* Lighting & Edge Definition */
    border-bottom: 1px solid rgba(255,255,255,0.8);
    box-shadow: 
        0 20px 60px -20px rgba(0, 0, 0, 0.15),
        inset 0 -10px 30px rgba(255, 255, 255, 0.9);
    
    z-index: 5; 
    opacity: 1.0;
    pointer-events: none;
}

/* Mobile */
@media (max-width: 480px) {
    .install-guide { grid-template-columns: 1fr; }
    .popup-footer { flex-direction: column; gap: 16px; }
    .confirm-btn, .dont-show { width: 100%; justify-content: center; }
}