/* =========================================
   1. COLOR PALETTE (Matched to AppTheme)
   ========================================= */
:root {
    /* Primary Colors */
    --deep-navy: #1A1C2E;        /* kDeepNavy - Scaffold Background */
    --deep-navy-light: #252840;  /* kDeepNavyLight - Cards, AppBar */
    --deep-navy-dark: #141520;   /* kDeepNavyDark - Contrast */
    
    /* Accent Colors */
    --mint-green: #4ECDC4;       /* kMintGreen - Primary */
    --mint-green-light: #6EDDD6; /* kMintGreenLight */
    --mint-green-dark: #3AB5AE;  /* kMintGreenDark */
    
    /* Text/Surface Colors */
    --soft-sand: #F5E6D3;        /* kSoftSand - Main Text */
    --soft-sand-light: #FFF5E8;  /* kSoftSandLight - Highlights */
    --soft-sand-dark: #E8D4B8;   /* kSoftSandDark - Muted Text */
    
    /* Functional Colors */
    --error-red: #E57373;        /* kErrorRed */
    --warning-orange: #FFB74D;   /* kWarningOrange */
    --success-green: #81C784;    /* kSuccessGreen */
}

/* =========================================
   2. BASE STYLES (Material 3 Typography)
   ========================================= */
body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    margin: 0;
    background-color: var(--deep-navy);
    color: var(--soft-sand);
    line-height: 1.6;
    letter-spacing: 0.3px;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    color: var(--soft-sand);
    margin-top: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
    color: var(--soft-sand);
    opacity: 0.9;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.subtitle {
    display: block;
    text-align: center;
    color: var(--mint-green);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* =========================================
   3. COMPONENTS (Buttons & Cards)
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-primary {
    background-color: var(--mint-green);
    color: var(--deep-navy);
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--mint-green-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--mint-green);
    color: var(--mint-green);
}

.btn-outline:hover {
    background-color: rgba(78, 205, 196, 0.1);
}

.btn-download {
    background-color: var(--mint-green);
    color: var(--deep-navy);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}
.btn-download:hover { background-color: var(--mint-green-light); }

/* Badges */
.badge-safe {
    background-color: rgba(78, 205, 196, 0.1); /* Mint tint for privacy */
    color: var(--mint-green);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* =========================================
   4. NAVBAR (AppBar Theme)
   ========================================= */
.navbar {
    background-color: rgba(37, 40, 64, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--soft-sand);
    letter-spacing: 0.5px;
}
.logo img { height: 32px; width: auto; margin-right: 20px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--soft-sand); font-size: 1rem; font-weight: 500; }
.nav-links a:hover { color: var(--mint-green); }
.nav-links .nav-warning { color: var(--warning-orange); opacity: 0.9; }

.hamburger { display: none; color: var(--soft-sand); font-size: 1.5rem; cursor: pointer; }

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--deep-navy-light);
    z-index: 999;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.mobile-menu a {
    color: var(--soft-sand);
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(245, 230, 211, 0.1);
}

/* =========================================
   5. SECTIONS
   ========================================= */
section { padding: 80px 0; }

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 60px;
    background: radial-gradient(circle at top right, rgba(78, 205, 196, 0.08), transparent 50%);
}
.hero-content { display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1; }

.legal-note-small {
    font-size: 0.8rem;
    color: var(--soft-sand-dark);
    margin-top: 16px;
}

.cta-buttons { display: flex; gap: 16px; margin-top: 32px; }

.hero-image { flex: 1; display: flex; justify-content: center; }

/* Carousel Styles */
.app-carousel {
    width: 280px;
    height: 560px;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    background: transparent;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Carousel dots removed */

.app-screenshot { display: none; width: 100%; max-width: 280px; border-radius: 40px; }

/* Trust Bar */
.trust-bar {
    background-color: var(--deep-navy-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 24px 0;
}
.trust-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.trust-item {
    display: flex; align-items: center; gap: 12px;
    color: var(--soft-sand-dark); font-size: 0.95rem; font-weight: 500;
}
.trust-item i { color: var(--mint-green); font-size: 1.2rem; }

/* Features Section (CardTheme Applied) */
.features-section { background-color: var(--deep-navy); }
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; margin-top: 40px;
}
.feature-card {
    background-color: var(--deep-navy-light);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.02);
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(78, 205, 196, 0.3); }

.icon-wrapper {
    width: 50px; height: 50px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.icon-wrapper i { font-size: 1.5rem; color: var(--mint-green); }

/* =========================================
   6. WARNING & PRIVACY
   ========================================= */
.ai-warning-section { padding: 40px 0; background-color: var(--deep-navy); }
.warning-box {
    background: rgba(255, 183, 77, 0.05);
    border: 1px solid rgba(255, 183, 77, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex; gap: 20px; align-items: start;
    max-width: 800px; margin: 0 auto;
}
.warning-box i { color: var(--warning-orange); font-size: 1.5rem; margin-top: 4px; }
.warning-text h3 { font-size: 1.1rem; color: var(--warning-orange); margin-bottom: 8px; }

.privacy-section { background-color: var(--deep-navy-dark); }
.privacy-content { display: flex; justify-content: center; }
.privacy-text {
    max-width: 700px; width: 100%;
    padding: 40px; border-radius: 24px;
    background: linear-gradient(135deg, rgba(37, 40, 64, 0.5), rgba(20, 21, 32, 0.8));
    border: 1px solid rgba(78, 205, 196, 0.1);
}
.icon-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.icon-header i { font-size: 2rem; color: var(--mint-green); }
.icon-header h2 { margin: 0; text-align: left; font-size: 1.8rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--soft-sand); }
.check-list i { color: var(--mint-green); margin-top: 4px; }

/* =========================================
   7. DISCLAIMER SECTION
   ========================================= */
.disclaimer-section { padding: 60px 0 100px; background-color: var(--deep-navy); }
.disclaimer-border {
    border: 2px solid var(--warning-orange);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    background: rgba(255, 183, 77, 0.03);
    position: relative;
    max-width: 800px; margin: 0 auto;
}
.warning-icon { font-size: 3rem; color: var(--warning-orange); margin-bottom: 20px; }
.disclaimer-border h2 { color: var(--warning-orange); font-size: 1.8rem; }
.disclaimer-body { text-align: left; margin-top: 24px; }
.highlight-text {
    color: var(--soft-sand-light);
    font-weight: 600;
    border-left: 4px solid var(--error-red);
    padding-left: 16px;
}

/* =========================================
   8. FOOTER (FIXED IMAGE SIZE)
   ========================================= */
.footer {
    background-color: #0F1018;
    padding: 60px 0; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    font-size: 1.2rem; font-weight: 600; opacity: 0.9; margin-bottom: 20px;
    color: var(--soft-sand);
}
/* 這裡就是修正的地方：限制頁尾圖片高度 */
.footer-logo img {
    height: 30px;
    width: auto;
    margin-right: 16px;
}
.footer p { font-size: 0.85rem; opacity: 0.5; margin-bottom: 10px; }
.footer-links a { color: var(--soft-sand-dark); margin: 0 12px; font-size: 0.85rem; }
.footer-links a:hover { color: var(--mint-green); }
.legal-footer { margin-top: 20px; font-size: 0.75rem !important; opacity: 0.3 !important; }

/* =========================================
   9. RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { margin-bottom: 50px; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .cta-buttons { justify-content: center; }
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .trust-grid { flex-direction: column; align-items: center; }
    .app-carousel {
        width: 100%;
        max-width: 260px;
        height: 500px;
    }
    .carousel-container {
        border-radius: 32px;
    }
    .disclaimer-border { padding: 24px; }
    .btn { width: 100%; }
    .cta-buttons { flex-direction: column; }
}