/* RESET & GENERAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #1f2937; /* Dark charcoal for excellent readability */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    display: flex;
    background: linear-gradient(135deg, #49baba, #2b8c8c);
    padding: 20px 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
}

.logo-icon {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: #ffffff;
    font-weight: 600;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 4px;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, #49baba, #2b8c8c);
    padding: 50px 0 60px 0;
    color: #ffffff;
    min-height: 240px;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #ffffff;
    color: #2b8c8c;
}

.btn-primary:hover {
    background-color: #f0fdfa;
}

.link-secondary {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
}

.btn-teal {
    background-color: #49baba;
    color: #ffffff;
}

.btn-teal:hover {
    background-color: #2b8c8c;
}

/* CONTENT SECTIONS */
.section-light {
    background-color: #f2fbfb; /* Very light, soft tint of your base color */
    padding: 80px 0;
}

.section-white {
    background-color: #ffffff;
    padding: 80px 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.section-head h2 {
    font-size: 36px;
    color: #2b8c8c;
    margin-bottom: 15px;
}

.section-head p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}

/* DOWNLOAD CARDS */
.download-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
}

/* On medium screens and larger, show cards side-by-side */
@media (min-width: 769px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .download-grid .download-card {
        width: 100%;
    }
}

/* On large screens, center the grid */
@media (min-width: 1025px) {
    .download-grid {
        max-width: 800px;
        margin: 0 auto;
    }
}

.download-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px 35px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 4px solid #d1d5db;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.3s;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Highlighted automatically by js/downloads.js when it matches the visitor's device */
.download-card.is-recommended {
    border-top-color: #49baba;
    box-shadow: 0 10px 25px rgba(43, 140, 140, 0.15);
}

.recommended-badge {
    position: absolute;
    top: -14px;
    left: 30px;
    background-color: #2b8c8c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 15px;
}

.download-card h3 {
    font-size: 20px;
    color: #2b8c8c;
    margin-bottom: 10px;
}

.download-card p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
}

.download-specs {
    list-style: none;
    margin-bottom: 25px;
}

.download-specs li {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}

.download-specs li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #49baba;
    font-weight: bold;
}

.download-card .badge-link {
    display: inline-block;
    margin-top: auto;
}

.badge-link img {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.2s;
}

.badge-link img:hover {
    transform: scale(1.05);
}

/* INSTALLATION STEPS */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    background: #f2fbfb;
    border-radius: 12px;
    padding: 25px 20px;
    border-top: 4px solid #49baba;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #49baba;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 17px;
    color: #1f2937;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

/* SYSTEM REQUIREMENTS TABLE */
.requirements-container {
    max-width: 900px;
}

.table-wrap {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.requirements-table {
    width: 100%;
    border-collapse: collapse;
}

.requirements-table th,
.requirements-table td {
    padding: 15px 20px;
    font-size: 15px;
    text-align: left;
}

.requirements-table thead {
    background-color: #2b8c8c;
    color: #ffffff;
}

.requirements-table tbody tr:nth-child(even) {
    background-color: #f2fbfb;
}

.requirements-table tbody td {
    color: #4b5563;
    border-top: 1px solid #e5f4f4;
}

.requirements-table tbody td:first-child {
    color: #1f2937;
    font-weight: 600;
}

/* FAQ */
.faq-container {
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #f2fbfb;
    border-radius: 12px;
    padding: 0 25px;
    border-left: 4px solid #49baba;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    position: relative;
    padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #2b8c8c;
    font-weight: 400;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    padding-bottom: 20px;
}

.faq-item p a {
    color: #2b8c8c;
    font-weight: 600;
    text-decoration: none;
}

.faq-item p a:hover {
    text-decoration: underline;
}

/* CTA BAND */
.cta-band {
    background: linear-gradient(135deg, #49baba, #2b8c8c);
    padding: 60px 0;
    color: #ffffff;
}

.cta-inner {
    text-align: center;
}

.cta-inner h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-inner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* FOOTER */
.footer {
    background-color: #2b8c8c;
    color: #ffffff;
    padding: 30px 0;
    font-size: 14px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    margin-left: 15px;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* SCROLL REVEAL ANIMATION (progressive enhancement, see js/reveal.js) */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* RESPONSIVE DESIGN (For mobile screens) */
@media (max-width: 1024px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .navbar {
        position: relative;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-links a {
        margin-left: 0;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons, .cta-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section-head h2 {
        font-size: 28px;
    }

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

    .download-card {
        align-items: center;
        text-align: center;
    }

    .download-specs li {
        text-align: left;
    }

    /* Requirements table becomes stacked rows on small screens */
    .requirements-table thead {
        display: none;
    }

    .requirements-table,
    .requirements-table tbody,
    .requirements-table tr,
    .requirements-table td {
        display: block;
        width: 100%;
    }

    .requirements-table tr {
        border-bottom: 1px solid #e5f4f4;
        padding: 10px 0;
    }

    .requirements-table td {
        border-top: none;
        padding: 6px 20px;
    }

    .requirements-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #2b8c8c;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 2px;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
