* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Index Page Styles */
.index-page {
    background: #fafbfc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Main Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e1e5e9;
    z-index: 1000;
}

.main-nav .nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav .logo {
    font-size: 24px;
    font-weight: 700;
    color: #1a1d29;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-nav .logo:hover {
    color: #6b7280;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.main-nav .language-toggle {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #e5e7eb;
}

.main-nav .lang-btn {
    background: none;
    border: none;
    color: #6b7280;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-nav .lang-btn.active {
    background: white;
    color: #1a1d29;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.main-nav .lang-btn:not(.active):hover {
    color: #374151;
}

:root {
    /* Ocean theme variables from the second palette */
    --background-color: #f0f4f8; /* Lightest shade for background */
    --surface-color: #ffffff;
    --text-color: #1a2a3a; /* Dark blue-gray for text */
    --text-color-secondary: #5a6a7a;
    --border-color: #d0d8e0;
    --gradient-start: #87a5c8; /* Muted blue from palette */
    --gradient-end: #a7c5d8; /* Lighter sky blue from palette */
}

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

/* Hero Section - Full Width Independent */
@media (min-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 600px; /* Ensure minimum height */
        max-height: 900px; /* Cap maximum height */
    }
    
    .hero-inner {
        min-height: 500px; /* Ensure sufficient height for desktop */
    }
}

.hero {
    background-color: var(--background-color); /* Light background for the outer area */
    color: white; /* White text on dark background */
    padding: 140px 20px 90px; /* Extended bottom padding from 40px to 90px */
    margin: 0; /* No margin - full width */
    overflow: hidden; /* Key for the half-image effect */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    width: 100%;
    min-height: 100vh; /* Make hero section fit the height of the screen */
}

/* Create inner container for clipping */
.hero-inner {
    position: absolute;
    top: 100px; /* Start further below the nav for more spacing */
    left: 40px; /* 20px more from each side */
    right: 40px; /* 20px more from each side */
    bottom: 50px; /* Don't extend to the very bottom - leave space for rounded corners */
    background: var(--text-color);
    border-radius: 24px; /* All corners rounded */
    overflow: hidden; /* This will clip the image */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-inner {
        top: 88px;
        left: 24px;
        right: 24px;
        bottom: 40px;
        border-radius: 20px;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2; /* Ensure content is above the inner container */
    flex-shrink: 0; /* Prevent content from shrinking */
    padding: 40px 20px 20px; /* Add some padding inside the dark container */
}

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

.gradient-text {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.hero-download-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 auto 20px auto;
}

@media (max-width: 480px) {
    .hero-inner {
        top: 80px;
        left: 16px;
        right: 16px;
        bottom: 32px;
        border-radius: 18px;
    }

    .hero-content {
        padding: 32px 16px 16px;
    }

    .hero h1 {
        font-size: 2em;
        line-height: 1.12;
        letter-spacing: -0.015em;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 0.9em;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .hero-download-group {
        gap: 10px;
        margin-bottom: 16px;
    }
}

.hero-download-btn {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, var(--gradient-end), var(--gradient-start));
}

.hero-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Disabled state for unsupported platforms */
.hero-download-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.hero-download-btn[disabled]:hover,
.hero-download-btn[disabled]:active {
    transform: none;
    box-shadow: none;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.hero-secondary-link {
    color: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.hero-secondary-link:hover {
    color: white;
    opacity: 1;
    text-decoration: underline;
}

.hero-image-container {
    margin-top: 0px; /* Adjust this value to control the space */
    width: 100%;
    position: relative;
    z-index: 2; /* Same level as content, inside the clipping container */
    flex: 1; /* Take remaining space */
    overflow: hidden; /* Additional clipping if needed */
}

.hero-image {
    width: 100%;
    max-width: min(1000px, calc(100vw - 80px)); /* Restore original width constraint */
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    display: block;
    margin: 0 auto; /* Center the image */
    object-fit: cover; /* Ensure proper image scaling and cropping */
}

.hero-image.hero-image--rounded {
    border-radius: 28px;
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: #ffffff;
}

/* Showcase Sections */
.showcase-section {
    padding: 140px 0;
    background: #ffffff;
}

.showcase-alt {
    background: var(--background-color);
}

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

.showcase-grid {
    display: flex;
    gap: 56px;
    align-items: center;
    justify-content: space-between;
}

.showcase-grid-reverse {
    flex-direction: row-reverse;
}

.showcase-text {
    flex: 1 1 0;
    color: var(--text-color);
    max-width: 520px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-color-secondary);
    background: rgba(26, 45, 74, 0.08);
    margin-bottom: 24px;
}

.section-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 0 0 4px rgba(135, 165, 200, 0.2);
}

.showcase-text h2 {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.showcase-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color-secondary);
    margin-bottom: 32px;
}

.showcase-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.showcase-points li {
    display: flex;
    gap: 14px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color-secondary);
}

.showcase-points li::before {
    content: '';
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 0 0 5px rgba(135, 165, 200, 0.15);
    flex-shrink: 0;
}

.showcase-media {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-image {
    width: 100%;
    max-width: 560px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

.showcase-image.showcase-image--rounded {
    border-radius: 28px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: #ffffff;
}

.lazy-image {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-image.is-loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 1200px) {
    .showcase-section {
        padding: 120px 0;
    }
}

@media (max-width: 1024px) {
    .showcase-grid,
    .showcase-grid-reverse {
        flex-direction: column;
        gap: 40px;
    }

    .showcase-media,
    .showcase-text {
        width: 100%;
    }

    .showcase-text h2 {
        font-size: 38px;
    }
}

@media (max-width: 640px) {
    .showcase-section {
        padding: 80px 0;
    }

    .showcase-text h2 {
        font-size: 32px;
    }

    .showcase-text p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .showcase-points li {
        font-size: 15px;
    }

    .platform-quick-row {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 12px 10px;
        gap: 12px;
    }

    .platform-quick-row::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 768px) {
    .platform-category-row {
        display: none !important;
    }

    .platform-quick-row {
        display: flex !important;
    }

    .platform-list {
        display: none !important;
    }

    .platform-detail-container {
        margin: 0;
        width: 100%;
    }
}

/* Shared Section Header (download page) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1d29;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* Minimalistic Download Page Design */
.download-page {
    background: #fafbfc;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
}

/* Minimal Navigation */
.minimal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e1e5e9;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-minimal {
    font-size: 24px;
    font-weight: 700;
    color: #1a1d29;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.logo-minimal:hover {
    color: #6b7280;
}

/* Main Content */
.download-main {
    padding-top: 120px;
    padding-bottom: 64px;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    flex: 1 0 auto;
    width: 100%;
}

.download-intro {
    text-align: center;
    margin-bottom: 48px;
}

.download-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #1a1d29;
    margin: 0 0 12px 0;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.download-subtitle {
    font-size: 19px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}


.platform-switcher {
    display: grid;
    gap: 24px;
}

.platform-category-row {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
}

.platform-category-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.platform-category-btn:hover {
    color: #1f2937;
}

.platform-category-btn.active {
    background: #fff;
    color: #1a1d29;
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.18);
}

.platform-category-btn:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 3px;
}

.platform-quick-row {
    display: none;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    overflow-x: auto;
}

.platform-quick-row::-webkit-scrollbar {
    display: none;
}

.platform-quick-btn {
    border: none;
    background: transparent;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.platform-quick-btn:hover {
    color: #1f2937;
    transform: translateY(-1px);
}

.platform-quick-btn.active {
    background: #ffffff;
    color: #1a1d29;
    box-shadow: 0 16px 36px rgba(59, 130, 246, 0.18);
}

.platform-quick-btn:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 3px;
}

.platform-quick-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.platform-quick-icon svg {
    width: 100%;
    height: 100%;
}

.platform-quick-btn.active .platform-quick-icon {
    filter: drop-shadow(0 8px 18px rgba(59, 130, 246, 0.25));
}

.platform-quick-label {
    line-height: 1.1;
}

.viewable-image {
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.viewable-image:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 6px;
}

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

.image-lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.image-lightbox.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.image-lightbox__backdrop {
    position: absolute;
    inset: 0;
}

.image-lightbox__content {
    position: relative;
    max-width: min(90vw, 960px);
    max-height: 90vh;
    margin: 0;
    display: grid;
    gap: 16px;
    justify-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.image-lightbox__img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.image-lightbox__caption {
    font-size: 14px;
    color: #4b5563;
    text-align: center;
}

.image-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-lightbox__close:hover {
    background: rgba(15, 23, 42, 0.95);
    transform: scale(1.05);
}

.image-lightbox__close:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 3px;
}

body.lightbox-open {
    overflow: hidden;
}

.platform-main {
    display: grid;
    gap: 20px;
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
    width: min(100%, 360px);
}

.platform-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    color: #1a1d29;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.platform-list-item.is-hidden {
    display: none !important;
}


.platform-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.platform-list-item.active {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 22px 48px rgba(59, 130, 246, 0.18);
    background: rgba(236, 245, 255, 0.92);
}
.platform-list-item.is-just-activated {
    animation: platform-tab-pop 0.48s cubic-bezier(0.19, 1, 0.3, 1);
}


.platform-list-item:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 3px;
}

.platform-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a1d29;
}

.platform-list-item.active .platform-list-icon {
    color: #3b82f6;
}

.platform-list-label {
    font-size: 16px;
    font-weight: 600;
}

.platform-list-caption {
    font-size: 13px;
    color: #6b7280;
}

.platform-detail-container {
    width: min(100%, 720px);
    margin: 0 auto;
}

.platform-detail {
    display: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.75);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.08);
    padding: 32px clamp(24px, 5vw, 40px);
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.platform-detail.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.platform-detail.is-entering {
    animation: platform-panel-in 0.45s cubic-bezier(0.19, 1, 0.3, 1);
}

.platform-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.platform-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(59, 130, 246, 0.08);
    color: #1a1d29;
}

.platform-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 6px 0 0 0;
    font-weight: 500;
}

.platform-detail-body {
    display: grid;
    gap: 16px;
}

.version-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
    padding: 10px 14px;
    background: #f5f7fa;
    border-radius: 10px;
    margin: 0;
    font-weight: 500;
}

.version-info span:last-child {
    color: #1a1d29;
    font-weight: 600;
}

.platform-note {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}
@media (min-width: 960px) {
    .platform-switcher {
        gap: 32px;
    }

    .platform-category-row {
        justify-content: flex-start;
    }

    .platform-main {
        grid-template-columns: 280px 1fr;
        align-items: flex-start;
        gap: 32px;
    }

    .platform-list {
        margin: 0;
        width: 100%;
        position: sticky;
        top: 120px;
    }

    .platform-detail-container {
        max-width: none;
    }
}


/* Download Buttons */

.download-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.download-btn.primary {
    background: #1a1d29;
    color: white;
}

.download-btn.primary:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

.download-btn.primary:active {
    transform: translateY(0);
}

.download-btn.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Language Toggle (Updated for minimal nav) */
.minimal-nav .language-toggle {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #e5e7eb;
}

.minimal-nav .lang-btn {
    background: none;
    border: none;
    color: #6b7280;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.minimal-nav .lang-btn.active {
    background: white;
    color: #1a1d29;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.minimal-nav .lang-btn:not(.active):hover {
    color: #374151;
}

/* Footer */
footer {
    margin-top: 0;
    padding: 24px 0;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}


/* Responsive Design */
@media (max-width: 768px) {
    html, body { font-size: 15px; }
    body { -webkit-tap-highlight-color: rgba(0,0,0,0); }

    .download-main {
        padding-top: 96px;
        padding-bottom: 32px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .download-title {
        font-size: 42px;
    }

    .download-subtitle {
        font-size: 17px;
    }

    .platform-list {
        width: 100%;
    }

    .platform-list-item {
        padding: 16px 18px;
    }

    .platform-detail {
        padding: 26px 20px;
    }

    .nav-content { padding: 0 12px; height: 56px; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 14px; }
    section[id] { scroll-margin-top: 68px; }
    .scroll-indicator { top: 56px; }

    .logo-minimal {
        font-size: 20px;
    }
    
    .footer-content {
        padding: 0 16px;
    }
}


@media (max-width: 480px) {
    .download-title { font-size: 36px; }
    .download-subtitle { font-size: 15px; }
    .platform-detail { padding: 22px 18px; }
}


@keyframes platform-tab-pop {
    0% { transform: translateY(-2px) scale(0.96); box-shadow: 0 12px 26px rgba(59, 130, 246, 0.12); }
    55% { transform: translateY(-6px) scale(1.04); box-shadow: 0 32px 54px rgba(59, 130, 246, 0.2); }
    100% { transform: translateY(-2px) scale(1); box-shadow: 0 22px 48px rgba(59, 130, 246, 0.18); }
}

@keyframes platform-panel-in {
    0% { opacity: 0; transform: translateY(22px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}


/* ============ ENTRY ANIMATIONS ============ */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fadeInUp {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInLeft {
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fadeInRight {
    opacity: 0;
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-fadeIn {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-scaleIn {
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

/* Staggered Animation Delays */
.animate-delay-100 {
    --animate-delay: 0.1s;
    animation-delay: 0.1s;
}

.animate-delay-200 {
    --animate-delay: 0.2s;
    animation-delay: 0.2s;
}

.animate-delay-300 {
    --animate-delay: 0.3s;
    animation-delay: 0.3s;
}

.animate-delay-400 {
    --animate-delay: 0.4s;
    animation-delay: 0.4s;
}

.animate-delay-500 {
    --animate-delay: 0.5s;
    animation-delay: 0.5s;
}

.animate-delay-600 {
    --animate-delay: 0.6s;
    animation-delay: 0.6s;
}

/* Elements that animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--animate-delay, 0s);
    will-change: opacity, transform;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}


/* Specific element animations */
.hero-content h1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-content p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-download-group {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-image-container {
    opacity: 0;
    animation: fadeInRight 0.8s ease-out 0.3s forwards;
}

/* Smooth scroll behavior */
html {
    /* Keep default instant behavior to avoid perceived delay */
    scroll-behavior: auto;
}

/* Ensure anchor targets are not hidden behind the fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navigation link animations and effects */
.nav-links a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #3b82f6;
    font-weight: 600;
}

/* Scroll indicator animation */
.scroll-indicator {
    position: fixed;
    top: 64px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    z-index: 1001;
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

@media (prefers-reduced-motion: reduce) {
    .platform-list-item,
    .platform-detail,
    .hero-download-btn,
    .animate-on-scroll {
        transition: none !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .animate-on-scroll {
        transform: none !important;
    }
}


.download-page footer {
    margin-top: auto;
}
