/* ===========================
   Variables CSS
   =========================== */
:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #E3F2FD;
    --secondary-color: #FF9800;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FFC107;
    --purple: #9C27B0;
    --cyan: #00BCD4;

    --text-dark: #212121;
    --text-light: #757575;
    --text-lighter: #9E9E9E;
    --bg-gray: #F5F5F5;
    --bg-white: #FFFFFF;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);

    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

section {
    padding: 80px 0;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

.version-badge {
    background: var(--warning-color);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
    padding: 100px 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-note {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.hero-note i {
    color: var(--primary-color);
    margin: 0 0.5rem;
}

.app-preview {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.app-preview i {
    color: var(--primary-color);
    opacity: 0.3;
}

.preview-text {
    margin-top: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-download {
    background: linear-gradient(135deg, var(--success-color), #66BB6A);
    color: white;
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-download .file-size {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ===========================
   Features Section
   =========================== */
.features {
    background: var(--bg-gray);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-icon.blue {
    background: var(--primary-light);
    color: var(--primary-color);
}

.feature-icon.green {
    background: #E8F5E9;
    color: var(--success-color);
}

.feature-icon.orange {
    background: #FFF3E0;
    color: var(--secondary-color);
}

.feature-icon.purple {
    background: #F3E5F5;
    color: var(--purple);
}

.feature-icon.cyan {
    background: #E0F7FA;
    color: var(--cyan);
}

.feature-icon.red {
    background: #FFEBEE;
    color: var(--danger-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.feature-list i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* ===========================
   Download Section
   =========================== */
.download {
    background: var(--bg-white);
}

.download-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius);
    padding: 3rem;
    color: white;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.download-info h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.version-info {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.download-features {
    margin-bottom: 2rem;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.download-feature i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.download-note {
    margin-top: 1rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.download-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    opacity: 0.8;
    font-size: 0.9rem;
}

.warning-banner {
    background: #FFF3CD;
    border: 2px solid #FFC107;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.warning-banner i {
    color: #FF9800;
    font-size: 1.5rem;
}

.warning-banner strong {
    color: #E65100;
}

/* ===========================
   Requirements Section
   =========================== */
.requirements {
    background: var(--bg-gray);
}

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

.req-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.req-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.req-card h3 i {
    margin-right: 0.5rem;
}

.req-card ul {
    list-style: none;
}

.req-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.req-card strong {
    color: var(--text-dark);
}

/* ===========================
   Documentation Section
   =========================== */
.documentation {
    background: var(--bg-white);
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.doc-card {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.doc-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.doc-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.doc-card h3 {
    margin-bottom: 1rem;
}

.doc-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.doc-link:hover {
    color: var(--primary-dark);
}

.doc-link i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* ===========================
   IMAP Servers Section
   =========================== */
.imap-servers {
    background: var(--bg-gray);
}

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

.server-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.server-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.server-logo.gmail {
    background: #EA4335;
    color: white;
}

.server-logo.outlook {
    background: #0078D4;
    color: white;
}

.server-logo.yahoo {
    background: #6001D2;
    color: white;
}

.server-logo.ovh {
    background: #123F6D;
    color: white;
}

.server-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.server-config p {
    margin: 0.5rem 0;
    color: var(--text-light);
}

.server-config strong {
    color: var(--text-dark);
}

.servers-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    color: var(--text-light);
}

/* ===========================
   FAQ Section
   =========================== */
.faq {
    background: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

.faq-answer.active {
    max-height: 500px;
}

/* ===========================
   Support Section
   =========================== */
.support {
    background: var(--bg-gray);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.support-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.support-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-card h3 {
    margin-bottom: 1rem;
}

.support-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-version {
    font-size: 0.9rem;
    opacity: 0.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ===========================
   Scroll to Top Button
   =========================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.scroll-top.visible {
    display: flex;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .download-box {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}
