:root {
    --primary-color: #3d8dff;
    --primary-hover-color: #2176f8;
    --text-color: #0c1e42; /* Dark navy blue */
    --light-text-color: #6a7387;
    --footer-text-color: #adb5bd; /* Lighter gray for footer text */
    --footer-link-color: #ced4da; /* Even lighter gray for footer links */
    --white-color: #ffffff;
    --border-color: #e5e7f0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Layout */
    --container-width: 1120px; /* Wider container for bold, airy layout */
    --border-radius: 16px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.2s;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html { scroll-behavior: smooth; }

/* Locale-specific font stacks */
html[lang='ja'] body { font-family: 'Inter', 'Noto Sans JP', sans-serif; }
html[lang='zh-CN'] body { font-family: 'Inter', 'Noto Sans SC', sans-serif; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2 {
    margin-top: 0;
    font-weight: 700;
}

h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    color: var(--primary-hover-color);
}

/* 1.1 Design Tokens (Extended) */
:root {
    /* Spacing scale */
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);

    /* Surfaces */
    --surface-1: #ffffff;
    --surface-2: #f3f6fc;
    --surface-3: #eef2fb;

    /* Gradients */
    --gradient-hero: linear-gradient(180deg, rgba(61,141,255,0.08) 0%, rgba(33,118,248,0.04) 100%);
}

/* 1.2 Base Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: var(--surface-1);
    color: var(--text-color);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-hover-color); }

.btn-secondary {
    background: var(--surface-1);
    border-color: var(--border-color);
}

.section {
    padding: var(--space-16) 0;
}
.section--alt {
    background: var(--surface-2);
}

.card {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-10);
    transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px) scale(1.01); }
.card h3 { margin: 8px 0 8px; }
.card p { margin: 0 0 var(--space-8); color: var(--light-text-color); }
.card > div:first-child { font-size: 28px; line-height: 1; }

/* Products section: emphasize cards with blue outline */
.products-section .card {
    border: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    text-align: center;
}
.products-section .card .btn {
    display: inline-flex;
    align-self: center;
    margin-top: auto;
}
.products-section .card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-hover-color); transform: translateY(-3px) scale(1.015); }

/* Keep button text color on hover */
.btn-primary:hover { color: #fff; }
.btn-secondary:hover { color: var(--text-color); }
.card h3 { margin: 8px 0 8px; }
.card p { margin: 0 0 var(--space-8); color: var(--light-text-color); }
.card > div:first-child { font-size: 28px; line-height: 1; }

.grid {
    display: grid;
    gap: var(--space-8);
    align-items: stretch;
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.upload-dropzone {
    border: 2px dashed rgba(12, 30, 66, 0.2);
    background: var(--surface-1);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    text-align: center;
    transition: border-color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
.upload-dropzone:hover {
    border-color: var(--primary-color);
    background: #fff;
}

/* 4. Compare/Demo Component
------------------------------------- */
.compare-section {
    padding: var(--space-16) 0;
}
.compare-header {
    text-align: center;
    margin-bottom: var(--space-8);
}
.kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}
.kpi-card {
    background: var(--surface-1);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-5);
    text-align: center;
}
.kpi-number {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.kpi-label {
    margin-top: var(--space-2);
    color: var(--light-text-color);
}
.compare-note {
    text-align: center;
    margin-top: var(--space-6);
    color: var(--light-text-color);
    font-size: 0.95rem;
}
@media (max-width: 960px) { .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr; } }

/* Constrain KPI container width to half on desktop */
.compare-section .kpis {
    max-width: 50%;
    margin: 0 auto;
}
@media (max-width: 960px) {
    .compare-section .kpis { max-width: 100%; }
}

/* 4.1 Brands & Testimonials
------------------------------------- */
.brands-section { text-align: center; }
.brands-section h2 { margin-bottom: var(--space-8); }

.brand-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-4);
    align-items: center;
    justify-items: center;
    margin-bottom: var(--space-12);
}

.brand-logo {
    height: 48px;
    width: 100%;
    max-width: 180px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0.95; /* full color, no grayscale */
    transition: opacity .2s ease, transform .2s ease;
}
.brand-logo:hover { opacity: 1; transform: translateY(-1px); }

.testimonials { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.testimonial-card { text-align: left; }
.testimonial-card {
    border: 2px solid var(--primary-color);
}
.testimonial-card .quote { font-size: 1.05rem; line-height: 1.6; margin: 0 0 var(--space-3); }
.testimonial-card .author { color: #6b7280; font-size: .95rem; }

/* Homepage enhanced testimonials (cards with avatars + 3-col on desktop) */
.brands-section .testimonials.grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.brands-section .testimonial-card {
    position: relative;
    padding: 1.25rem;
    padding-right: 90px;
    min-height: 140px;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.brands-section .testimonial-card:nth-child(1) { border-color: #8ac926; }
.brands-section .testimonial-card:nth-child(2) { border-color: #6a4c93; }
.brands-section .testimonial-card:nth-child(3) { border-color: #ffca3a; }
.brands-section .testimonial-avatar {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Carousel indicators (mobile) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}
.carousel-indicators .indicator.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary-color);
}
@media (min-width: 769px) {
    .carousel-indicators { display: none; }
}

/* Enhanced product cards (palkumw) used on homepage */
.products-section .grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.card.palkumw {
    background: linear-gradient(135deg, var(--palkumw-1) 0%, rgba(255,255,255,0.95) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    position: relative;
}
.card.palkumw::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--palkumw-0) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s ease; border-radius: 16px; pointer-events: none; }
.card.palkumw:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); border-color: var(--palkumw-0); }
.card.palkumw:hover::after { opacity: 0.05; }
.card.palkumw .main { flex: 1; position: relative; z-index: 1; }
.card.palkumw .learn-more { margin-top: auto; position: relative; z-index: 1; }
.card.palkumw .logo { width: 50px; height: 50px; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; background: var(--palkumw-0); border-radius: 12px; color: white; position: relative; overflow: hidden; }
.card.palkumw .logo::before { content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; }
.card.palkumw:hover .logo::before { width: 100px; height: 100px; }
.card.palkumw .logo svg { width: 30px; height: 30px; color: white; position: relative; z-index: 1; transition: transform 0.3s ease; }
.card.palkumw:hover .logo svg { transform: scale(1.1); }
.card.palkumw .heading { margin-bottom: 0.75rem; }
.card.palkumw .heading p { font-size: 1.25rem; color: #1a1a1a; margin: 0; }
.card.palkumw .text { margin-bottom: 1.5rem; }
.card.palkumw .text p { color: #666; line-height: 1.5; margin: 0; font-size: 1.25rem; }
.card.palkumw .product-link p { color: var(--palkumw-0); font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; cursor: pointer; transition: gap 0.3s ease; font-size: 1.2rem; }
.card.palkumw .product-link:hover p { gap: 0.75rem; }
.card.palkumw .product-link svg { width: 16px; height: 16px; fill: currentColor; }

/* Mobile: turn brands and products into horizontal carousels */
@media (max-width: 768px) {
    .products-section { position: relative; padding-bottom: 3rem; }
    .products-section .grid { 
        display: flex !important; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y; /* FIX: Changed from pan-y to pan-x */
        scrollbar-width: none; 
        -ms-overflow-style: none; 
        gap: 1rem; 
        padding: 0 1rem; 
        margin: 2rem -1rem 0; 
        grid-template-columns: none; 
    }
    .products-section .grid::-webkit-scrollbar { display: none; }
    .products-section .card.palkumw { flex: 0 0 70%; scroll-snap-align: center; min-height: 273px; }
    .products-section .card.palkumw:first-child { margin-left: 7.5%; }
    .products-section .card.palkumw:last-child { margin-right: 7.5%; }

    .brands-section { position: relative; padding-bottom: 3rem; }
    .brands-section .testimonials.grid { 
        display: flex !important; 
        overflow-x: auto !important; 
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y; /* FIX: Changed from pan-y to pan-x */
        scrollbar-width: none; 
        -ms-overflow-style: none; 
        gap: 1rem; 
        grid-template-columns: none !important; 
        padding: 0 1rem; 
        margin: 2rem -1rem 0; 
    }
    .brands-section .testimonials.grid::-webkit-scrollbar { display: none; }
    .brands-section .testimonials .testimonial-card { flex: 0 0 70% !important; scroll-snap-align: center; padding: 1rem; padding-right: 80px; min-height: 160px; }
    .brands-section .testimonials.grid .testimonial-card:first-child { margin-left: 7.5%; }
    .brands-section .testimonials.grid .testimonial-card:last-child { margin-right: 7.5%; }
    .brands-section .testimonial-avatar { width: 70px; height: 70px; border-width: 2px; bottom: 0.5rem; right: 0.5rem; }
    .card.palkumw:hover { transform: none; }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .brand-logo { max-width: 140px; height: 42px; }
}

/* 2. Header & Footer (Bold Color Block Style)
------------------------------------- */
.main-header {
    padding: 20px 0;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: left;
    margin-bottom: 12px;
}
.footer-title {
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links-list li { margin: 10px 0; }
.footer-links-list a {
    color: var(--footer-link-color);
    text-decoration: none;
}
.footer-links-list a:hover { color: var(--white-color); }

.footer-extras {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-bottom: 8px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.footer-social a:hover { background: rgba(255,255,255,0.16); }
.footer-social svg { width: 18px; height: 18px; stroke: var(--white-color); fill: none; }

.footer-bottom { font-size: 0.9rem; opacity: 0.9; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-title {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .footer-title::after {
        content: '▾';
        color: var(--white-color);
        opacity: 0.8;
        transition: transform 0.2s ease;
    }
    .footer-grid > div .footer-links-list { display: none; padding-top: 6px; }
    .footer-grid > div.open .footer-links-list { display: block; }
    .footer-grid > div.open .footer-title::after { transform: rotate(180deg); }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white-color);
    z-index: 1001; /* Ensure logo is above mobile menu */
}
.logo:hover { color: var(--white-color); }

.main-nav {
    display: flex; /* Displayed on desktop */
    align-items: center;
}

.main-nav a {
    color: var(--white-color);
    margin-left: 30px;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity var(--transition-speed) ease;
}
.main-nav a:hover {
    color: var(--white-color);
    opacity: 1;
}

/* 9. Modal (Feedback Dialog)
------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none; /* shown via inline style or JS */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}
.modal {
    background: var(--surface-1);
    color: var(--text-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 100%;
    padding: 20px 20px 16px;
}
.modal h3 { margin: 0 0 8px; font-size: 1.25rem; }
.modal p { margin: 0; color: var(--light-text-color); }
.modal-actions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }
.modal-actions .btn { height: 40px; padding: 0 16px; }

.main-footer {
    padding: 40px 0; /* Adjusted padding */
    margin-top: 80px;
    text-align: center;
    background-color: var(--text-color); /* Dark navy background */
    color: var(--footer-text-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px; /* Space between links on desktop */
    margin-bottom: 30px;
}

.footer-links a {
    margin: 0;
    color: var(--footer-link-color);
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--white-color);
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    z-index: 1001;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px 0;
    transition: 0.4s;
}

.mobile-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.mobile-nav a {
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 15px 0;
    opacity: 0.9;
}

/* Active state for hamburger */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 3. Main Content & Sections
------------------------------------- */
main {
    padding: 40px 0;
}

/* Language Switcher Styles (remove.bg style) */
.language-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.language-switcher-container {
    display: flex;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50px;
}
.language-option {
    padding: 10px 20px;
    color: var(--footer-link-color);
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.2s ease;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
}
.language-option:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white-color);
}
.language-option.active {
    background-color: var(--white-color);
    color: var(--text-color);
    font-weight: 700;
}

/* Language Switcher (Dropdown variant) */
.lang-switcher { position: relative; }
.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
    backdrop-filter: blur(6px);
}
.lang-trigger:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); }
.lang-trigger svg { width: 18px; height: 18px; stroke: #fff; }

.lang-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.98);
    transform-origin: bottom center;
    opacity: 0; pointer-events: none;
    background: #fff;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 260px;
    width: min(92vw, 320px);
    padding: 8px;
    z-index: 1200;
    transition: opacity .15s ease, transform .15s ease;
}
.lang-switcher.open .lang-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); }
.lang-option { display: block; padding: 10px 12px; border-radius: 8px; color: inherit; font-weight: 600; }
.lang-option:hover { background: var(--surface-2); }
.lang-option.active, .lang-option[aria-current="true"] { background: var(--surface-3); color: var(--text-color); }

/* Drop-up triangle pointer (border + fill) */
.lang-menu::before,
.lang-menu::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    pointer-events: none;
}
/* Border (shadow) triangle */
.lang-menu::before {
    bottom: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--border-color);
}
/* White fill triangle slightly inset to show border */
.lang-menu::after {
    bottom: -9px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #fff;
}


/* 7. Responsive Design
------------------------------------- */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide desktop nav on mobile */
    }
    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }
    
    .footer-links {
        flex-direction: column; /* Stack links vertically */
        gap: 15px;
    }
    .footer-links a {
        font-size: 0.9rem; /* Make font smaller */
    }

    .language-switcher-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
    }
    .language-option {
        font-size: 0.9rem;
        padding: 12px 18px;
    }
}

/* Other existing styles remain below */
.hero {
    text-align: center;
    padding: 20px 0 40px;
}
.hero-wrap {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: var(--space-8);
}
.hero-content { max-width: 620px; margin: 0 auto; }
.hero-illustration { display: none; }
.hero-illustration img { width: 100%; height: auto; display: block; }
@media (min-width: 960px) {
    .hero { text-align: left; }
    .hero-wrap { grid-template-columns: 1.1fr 1fr; padding: var(--space-12); }
    .hero-content { margin: 0; }
    .hero .cta-group { justify-content: flex-start; }
    .hero-illustration { display: block; }
}
.hero .cta-group {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
}
.hero .subtitle {
    font-size: 1.2rem;
    color: var(--light-text-color);
    max-width: 580px;
    margin: 1rem auto 0;
}
@media (max-width: 768px) {
    .hero .cta-group { flex-direction: column; }
}

/* Product icons in cards */
.products-section .card > .product-icon { margin-bottom: var(--space-4); display: inline-block; }
.products-section .card > .product-icon img { width: 44px; height: 44px; display: block; }
.uploader-section {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
}
.drop-zone {
    border: 2px dashed #cdd4e0;
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    cursor: pointer;
    background-color: #fcfdff;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.drop-zone:hover, .drop-zone.drag-over {
    background-color: #f5f9ff;
    border-color: var(--primary-color);
}
.drop-zone-prompt p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}
.drop-zone-prompt .light-text {
    font-size: 1rem;
    margin: 0.5rem 0 1.25rem 0;
}
.processing-info {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--light-text-color);
}
.button-primary, .button-secondary {
    display: inline-block;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
.button-primary:hover { transform: translateY(-2px); }
.button-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.button-primary:hover {
    background-color: var(--primary-hover-color);
    color: var(--white-color);
}
.button-secondary {
    background-color: #eef0f5;
    color: var(--text-color);
}
.button-secondary:hover {
    background-color: #e5e7f0;
}
.button-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}
.hidden { display: none; }
.file-list-section, .download-section {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px 40px;
    box-shadow: var(--box-shadow);
    margin-top: 50px;
    text-align: center;
}
.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.file-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.file-list li:last-child { border-bottom: none; }
.file-info .file-name { font-weight: 600; }
.file-info .file-size {
    font-size: 0.9rem;
    color: var(--light-text-color);
}
.file-status {
    margin-left: auto;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .container { padding: 0 15px; }
    h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
        line-height: 1.3;
    }
    h2 { font-size: 1.3rem; }
    .uploader-section { padding: 20px 15px; }
    .drop-zone { 
        padding: 25px 20px;
        min-height: 120px;
        font-size: 1rem;
    }
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .button, .button-secondary {
        min-height: 48px;
        font-size: 1rem;
        padding: 12px 24px;
    }
    .file-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
    }
    .file-list .button-secondary {
        width: 100%;
        text-align: center;
    }
}

.processed-files {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    text-align: left;
}
.processed-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fc;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.processed-file-card span:first-child {
    font-weight: 600;
    word-break: break-all;
    margin-right: 15px;
}
.processed-file-card .button-secondary {
    padding: 8px 16px;
    border-radius: 30px;
    white-space: nowrap;
}
.file-list li { flex-wrap: wrap; }
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
    display: none;
}
.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
}
.ad-container-top {
    min-height: 0; 
    text-align: center;
    padding: 20px 0;
}
.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.exif-info-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
.exif-info-btn:hover { background-color: var(--secondary-color); }
.exif-info-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--light-text-color);
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-content {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--light-text-color);
    cursor: pointer;
    border: none;
    background: none;
}
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}
.exif-data-pre {
    background-color: #f8f9fc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* 8. Cookie Consent Banner (Bottom Fixed)
------------------------------------- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(12, 30, 66, 0.95);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #3d8dff;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #2176f8;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.cookie-consent-accept {
    background-color: #3d8dff;
    color: white;
}

.cookie-consent-accept:hover {
    background-color: #2176f8;
}

.cookie-consent-decline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-consent-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Soften card hover on small screens to avoid jump */
@media (max-width: 640px) {
    .card:hover {
        transform: translateY(-1px) scale(1.002);
        box-shadow: var(--shadow-md);
    }
    .products-section .card:hover {
        transform: translateY(-1px) scale(1.003);
        box-shadow: var(--shadow-md);
    }
}

/* Tweak products cards between 960px and 768px */
@media (max-width: 960px) and (min-width: 769px) {
    .products-section .grid { gap: var(--space-6); }
    .products-section .card { padding: var(--space-8); }
    .products-section .card h3 { font-size: 1.125rem; }
    .products-section .card p { font-size: 0.95rem; }
    .products-section .card > div:first-child { font-size: 24px; }
    .products-section .card .btn { margin-top: auto; }
}


