/* =============================
   CSS Variables (Light Theme)
   ============================= */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #707579;
    --border-color: #e0e0e0;
    --accent-color: #0088cc;
    --accent-hover: #0077b3;
    --shadow-light: rgba(0, 0, 0, 0.15);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.4);

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================
   Dark Theme
   ============================= */
.dark-theme {
    --bg-primary: #212121;
    --bg-secondary: #2c2c2c;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
    --accent-color: #0088cc;
    --accent-hover: #0099dd;
    --shadow-light: rgba(0, 0, 0, 0.4);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-dark: rgba(0, 0, 0, 0.6);
}

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* =============================
   Header
   ============================= */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--header-bg, var(--bg-primary));
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.header-logo:hover {
    opacity: 0.8;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

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

.nav-link.active {
    color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.nav-link.lang-switch {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

/* =============================
   Main Content
   ============================= */
.main-content {
    flex: 1;
    padding: 0;
}

.main-container {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

/* =============================
   Hero Section
   ============================= */
.hero-section {
    padding: 80px 16px;
    text-align: center;
    background: linear-gradient(135deg,
    rgba(0, 136, 204, 0.05) 0%,
    rgba(0, 136, 204, 0.02) 100%
    );
}

.dark-theme .hero-section {
    background: linear-gradient(135deg,
    rgba(0, 136, 204, 0.1) 0%,
    rgba(0, 136, 204, 0.05) 100%
    );
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.hero-button.primary {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.hero-button.primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

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

.hero-button.secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.hero-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.hero-button:hover .button-icon {
    transform: translateX(4px);
}

/* =============================
   Features Section
   ============================= */
.features-section {
    padding: 80px 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 48px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =============================
   Benefits Section
   ============================= */
.benefits-section {
    padding: 80px 16px;
    background-color: var(--bg-secondary);
}

.benefits-content {
    max-width: 800px;
    margin: 0 auto;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
}

.benefit-text {
    flex: 1;
}

.benefit-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.benefit-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =============================
   CTA Section
   ============================= */
.cta-section {
    padding: 80px 16px;
    text-align: center;
    background: linear-gradient(135deg,
    rgba(0, 136, 204, 0.08) 0%,
    rgba(0, 136, 204, 0.03) 100%
    );
}

.dark-theme .cta-section {
    background: linear-gradient(135deg,
    rgba(0, 136, 204, 0.15) 0%,
    rgba(0, 136, 204, 0.08) 100%
    );
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button .button-icon {
    font-size: 20px;
}

.cta-button:hover .button-icon {
    transform: translateX(4px);
}

/* =============================
   Footer
   ============================= */
.main-footer {
    margin-top: auto;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 16px 24px;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* =============================
   Responsive Design
   ============================= */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .header-nav {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }

    .hero-section {
        padding: 60px 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-section,
    .benefits-section,
    .cta-section {
        padding: 60px 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-description {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 12px;
    }

    .header-nav {
        gap: 10px;
    }

    .nav-link {
        padding: 8px 4px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-button {
        width: 100%;
        justify-content: center;
    }

    .features-section,
    .benefits-section,
    .cta-section {
        padding: 40px 12px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

