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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #ffffff;
}

/* ===== Typography ===== */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Header & Navigation ===== */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.logo a {
    color: #111827;
    text-decoration: none;
}

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

.nav-links a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: #2563eb;
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #111827;
}

/* ===== Main Content Container ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* ===== Download Buttons ===== */
.download-btn-primary {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.download-btn-primary:hover {
    background-color: #1d4ed8;
    text-decoration: none;
}

.download-btn-secondary {
    display: inline-block;
    background-color: #10b981;
    color: #ffffff;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.download-btn-secondary:hover {
    background-color: #059669;
    text-decoration: none;
}

.download-info {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===== Sections ===== */
section {
    padding: 3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

section:last-child {
    border-bottom: none;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 1.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.feature-card h3 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

/* ===== Screenshot Gallery ===== */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.screenshot-item {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Download Page Specific ===== */
.download-section {
    background-color: #f9fafb;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.version-info {
    background-color: #f9fafb;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.version-info h3 {
    color: #2563eb;
}

.system-requirements {
    background-color: #ffffff;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.system-requirements ul {
    list-style-position: inside;
    margin-top: 0.5rem;
}

/* ===== Installation Steps ===== */
.installation-steps {
    background-color: #f9fafb;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.installation-steps ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.installation-steps li {
    margin-bottom: 0.5rem;
}

/* ===== FAQ Section ===== */
.faq-item {
    background-color: #f9fafb;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.faq-item h3 {
    color: #2563eb;
}

/* ===== Sitemap ===== */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sitemap-section {
    background-color: #f9fafb;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.sitemap-section h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

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

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

/* ===== 404 Page ===== */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.5rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CTA Section ===== */
.cta-section {
    background-color: #f9fafb;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* ===== Footer ===== */
footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

footer a {
    color: #2563eb;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #e5e7eb;
}

table th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }

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

    .nav-links li {
        padding: 0.5rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    main {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .download-btn-primary {
        display: block;
        width: 100%;
        padding: 16px 24px;
    }

    .download-btn-secondary {
        display: block;
        width: 100%;
        padding: 12px 24px;
    }

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

    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

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

    .error-code {
        font-size: 4rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions a {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
