/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1e3a5f;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: #64748b;
}

a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4af37;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.08);
    padding: 1rem 0;
}

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

.logo-text {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: #d4af37;
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    border: 2px solid #d4af37;
    border-radius: 50px;
    color: #1e3a5f;
    font-weight: 600;
    margin-bottom: 3rem;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
}

.hero-badge span {
    color: #d4af37;
}

/* Section Styles */
.section {
    padding: 50px 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
    color: #1e3a5f;
}

.section-alt {
    background-color: #f8f9fa;
}

/* Why Free Section */
.why-free {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.why-free h2 {
    margin-bottom: 2rem;
}

.why-free p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #64748b;
}

.features-list {
    list-style: none;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0;
    display: inline-block;
}

.features-list li {
    padding: 1rem 0;
    text-align: left;
    position: relative;
    padding-left: 2rem;
    color: #1e3a5f;
    font-size: 1.05rem;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
    font-size: 1.2rem;
}

/* How It Works */
.how-it-works {
    max-width: 1000px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #d4af37;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1e3a5f;
}

.step-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Language Selection */
.language-selection {
    max-width: 1200px;
    margin: 0 auto;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.language-card {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
}

.language-card:hover {
    border-color: #d4af37;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(30, 58, 95, 0.15);
    text-decoration: none;
}

.language-flag {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.language-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1e3a5f;
}

.language-card .language-subtitle {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    line-height: 1.4;
}

.language-card .btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #1e3a5f;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.language-card:hover .btn-download {
    background-color: #d4af37;
    color: white;
}

/* Disclaimer */
.disclaimer {
    max-width: 900px;
    margin: 2.5rem auto 0;
    padding: 2.5rem;
    background-color: #fff8e1;
    border-left: 4px solid #d4af37;
    border-radius: 8px;
}

.disclaimer h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #1e3a5f;
    font-size: 1.5rem;
}

.disclaimer-icon {
    font-size: 1.75rem;
}

.disclaimer p {
    color: #1e3a5f;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.disclaimer ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
    color: #1e3a5f;
}

.disclaimer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeInScrollIndicator 1s ease-out 1s forwards;
}

.scroll-text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scroll-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-arrow span {
    font-size: 2rem;
    color: #667eea;
    font-weight: 900;
    animation: bounceArrow 2s infinite;
    display: inline-block;
    text-shadow: 0 0 1px rgba(102, 126, 234, 0.3);
    filter: drop-shadow(0 1px 2px rgba(102, 126, 234, 0.2));
}

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

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.download-header .scroll-indicator {
    margin-top: 2rem;
}

/* Hide scroll indicator after scrolling */
.scroll-indicator.hidden {
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

/* Footer */
.footer {
    background-color: #1e3a5f;
    color: white;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-content h3 {
    color: #d4af37;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-content p {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #334155;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
}

.footer-bottom {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Download Page Styles */
.download-page {
    padding: 60px 0 80px;
}

.download-header {
    text-align: center;
    margin-bottom: 4rem;
}

.download-header h1 {
    margin-bottom: 1rem;
}

.download-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

.whats-included {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.whats-included h2 {
    margin-bottom: 2.5rem;
    text-align: center;
}

.included-items {
    display: grid;
    gap: 2rem;
}

.included-item {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.included-item:hover {
    border-color: #d4af37;
    box-shadow: 0 5px 20px rgba(30, 58, 95, 0.1);
}

.included-item h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.included-item-icon {
    font-size: 1.75rem;
}

.included-item p {
    color: #64748b;
    margin-bottom: 1rem;
}

.included-item ul {
    margin-left: 1.5rem;
    color: #64748b;
}

.included-item li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.download-button-container {
    text-align: center;
    margin: 4rem 0;
}

.btn-download-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background-color: #1e3a5f;
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.3);
}

.btn-download-large:hover {
    background-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    color: white;
    text-decoration: none;
}

.download-instructions {
    max-width: 900px;
    margin: 4rem auto;
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
}

.download-instructions h2 {
    margin-bottom: 2rem;
}

.download-instructions ol {
    margin-left: 1.5rem;
    color: #1e3a5f;
}

.download-instructions li {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.back-to-home {
    text-align: center;
    margin-top: 4rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: #1e3a5f;
    border: 2px solid #1e3a5f;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #1e3a5f;
    color: white;
    text-decoration: none;
}

/* Policy Pages */
.policy-page {
    padding: 60px 0 80px;
    max-width: 800px;
    margin: 0 auto;
}

.policy-page h1 {
    margin-bottom: 2rem;
}

.policy-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.policy-page h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.policy-page p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #1e3a5f;
}

.policy-page ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: #1e3a5f;
}

.policy-page li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.policy-page .last-updated {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 50px 0 30px;
    }

    .section {
        padding: 40px 0;
    }

    .language-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .disclaimer {
        padding: 1.5rem;
    }

    .download-button-container {
        margin: 3rem 0;
    }

    .btn-download-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 400px;
    }

    .policy-page {
        padding: 40px 0 60px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.875rem 1rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        line-height: 1.7;
        max-width: calc(100% - 2rem);
        margin-left: auto;
        margin-right: auto;
        gap: 0.375rem;
    }

    .language-card {
        padding: 2rem 1.5rem;
    }

    .language-flag {
        font-size: 3rem;
    }

    .included-item {
        padding: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus states for keyboard navigation */
button:focus,
a:focus,
.language-card:focus {
    outline: 3px solid #d4af37;
    outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .language-card,
    .included-item,
    .step-card {
        border: 2px solid #1e3a5f;
    }
}
