/* --- 1. Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- 2. Navigation --- */
header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--header-shadow);
}

.header-content {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    box-shadow: var(--icon-shadow);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 0.2px;
    margin-top: 2px;
}

/* --- 3. Layout & Sections --- */
main {
    flex: 1;
    padding: 1rem 0;
}

section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-primary);
}

.no-divider {
    border-bottom: none !important;
    padding-bottom: 0;
}

main section:last-of-type {
    border-bottom: none;
}

/* --- 4. Typography --- */
h1 {
    font-size: 2.75rem;
    margin-bottom: 0rem;
    color: var(--heading-primary);
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--heading-primary);
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--heading-secondary);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.subtitle {
    margin-bottom: 1.5rem;
    color: var(--text-subtitle);
    font-size: 1.2rem;
}

strong {
    color: var(--text-strong);
    font-weight: 600;
}

ul {
    margin-bottom: 1rem;
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

/* --- 5. Hero Visuals --- */
.hero-visual-double {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 20px 0 40px 0;
    perspective: 1000px;
}

.screenshot-wrapper {
    max-width: 260px;
    transition: transform 0.5s ease;
}

.screenshot-wrapper.primary {
    transform: rotate(-2deg) translateX(20px);
    z-index: 2;
}

.screenshot-wrapper.secondary {
    transform: rotate(2deg) translateX(-20px);
    z-index: 1;
}

.hero-visual-double:hover .screenshot-wrapper {
    transform: rotate(0deg) translateX(0);
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 34px;
    border: 1px solid var(--screenshot-border);
    box-shadow: var(--screenshot-shadow);
}

/* --- 6. Feature Blocks --- */
.feature-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.feature-header p {
    font-size: 1.1rem;
    color: var(--text-tertiary);
}

.feature-split {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.feature-split.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1.2;
    padding-bottom: 0rem;
}

.feature-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    margin-bottom: 2rem;
}

.feature-image .app-screenshot {
    max-width: 240px;
    transform: none !important;
}

/* --- 7. Privacy & Trust Statements --- */
.trust-statement {
    text-align: center;
    background: var(--box-bg);
    margin: 3rem 0;
    padding: 0;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--box-border) !important;
}

.trust-statement .container-small {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 2rem; 
}

/* Your essential divider line for privacy.html */
/* We only draw it if it's NOT the .last-section */
.trust-statement:not(.last-section)::after {
    content: "";
    position: absolute;
    bottom: -3rem;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--border-primary);
}

/* --- 8. Contact Page Specifics --- */
.contact-box {
    background: var(--box-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--box-border);
    margin-top: 2rem;
}

.contact-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-box a {
    color: var(--link-color);
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

.dispute-box {
    background: var(--box-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-primary);
    margin: 1rem 0;
}

/* --- 9. Download CTAs --- */
section.download-cta {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-primary) !important;
}

.download-cta-box {
    text-align: center; 
    background-color: var(--cta-bg);
    border-radius: 12px;
    box-shadow: var(--cta-shadow);
    margin: 0 auto; 
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--cta-border);
}

.download-cta-badge {
    height: 60px;
    width: auto;
    display: block; 
    margin: auto;
    transition: transform 0.2s;
}

.final-cta {
    padding: 0rem 0 2rem 0;
    text-align: center;
}

.final-cta .download-cta-badge {
    margin: 0 auto;
    transition: transform 0.2s;
}

.download-cta-badge:hover, 
.final-cta .download-cta-badge:hover {
    transform: scale(1.05);
}

/* --- 10. Footer --- */
footer {
    background: var(--footer-bg);
    padding: 1rem 0;
    border-top: 1px solid var(--border-secondary);
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--footer-link-hover);
}

.footer-links a.active {
    color: var(--footer-link-active);
}

.footer-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--footer-link-active);
}

/* Language Selector */
.language-selector {
    position: absolute;
    right: 0;
}

.language-selector summary {
    list-style: none;
}

.language-selector summary::-webkit-details-marker {
    display: none;
}

.language-button {
    background: transparent;
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-family: inherit;
}

.language-button:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.language-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.language-selector[open] .language-arrow {
    transform: rotate(180deg);
}

.language-button:hover .language-arrow {
    transform: translateY(1px);
}

.language-selector[open] .language-button:hover .language-arrow {
    transform: rotate(180deg) translateY(-1px);
}

.language-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 0.25rem;
    width: max-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-option {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.15s;
    white-space: nowrap;
}

.language-option:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.language-option.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.language-option.current {
    cursor: default;
}

.language-option.current:hover {
    background: transparent;
    color: var(--accent-primary);
}

.footer-copyright {
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
}

.footer-copyright p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* --- 11. Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero-visual-double { flex-direction: column; gap: 40px; }
    .screenshot-wrapper.secondary { display: none; }
    .feature-split, .feature-split.reverse { flex-direction: column; gap: 2rem; }
    .feature-image { position: static; justify-content: center; }
    
    .footer-content {
        justify-content: flex-start;
    }
    
    .footer-links {
        gap: 2rem;
        order: 2;
    }
    
    .language-selector {
        position: static;
        order: 1;
        margin-right: 2rem;
    }
}