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

:root {
    --primary-yellow: #f5c518;
    --primary-yellow-hover: #ffd700;
    --dark-bg: #141414;
    --darker-bg: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #8c8c8c;
    --text-dim: #757575;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-yellow);
    letter-spacing: -1px;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-secondary);
}

.btn-download-small {
    background: var(--primary-yellow);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    color: #000 !important;
    transition: all 0.3s ease;
}

.btn-download-small:hover {
    background: var(--primary-yellow-hover);
    color: #000 !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 70%, transparent 100%),
                linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 70%);
    z-index: 2;
}


.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.1;
    text-align: left;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9),
                 0px 0px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-yellow);
    color: #000;
    padding: 18px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.3);
}

.btn-download.btn-download-mac {
    border: 0;
    cursor: pointer;
}

.btn-download:hover {
    background: var(--primary-yellow-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(245, 197, 24, 0.5);
}

.btn-download svg {
    width: 24px;
    height: 24px;
}

.btn-caret {
    margin-left: 6px;
    font-size: 0.9rem;
    opacity: 0.85;
    transition: transform 0.15s ease;
}

.download-mac.open .btn-caret {
    transform: rotate(180deg);
}

.download-mac {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.mac-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: min(360px, calc(100vw - 40px));
    background: rgba(18, 18, 18, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    padding: 16px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(20px);
}

.download-mac.open .mac-dropdown {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mac-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transition: all 0.2s ease;
}

.mac-dropdown-item + .mac-dropdown-item {
    margin-top: 10px;
}

.mac-dropdown-item:hover {
    background: rgba(245, 197, 24, 0.12);
    border-color: rgba(245, 197, 24, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.15);
}

.mac-item-content {
    flex: 1;
}

.mac-item-main {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
    margin-bottom: 3px;
}

.mac-item-sub {
    font-size: 0.88rem;
    opacity: 0.65;
    font-weight: 500;
}

.mac-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.mac-badge-rec {
    background: rgba(245, 197, 24, 0.18);
    color: rgba(255, 240, 180, 0.95);
    border: 1px solid rgba(245, 197, 24, 0.35);
}

.mac-dropdown-help {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    line-height: 1.6;
}

.mac-dropdown-help strong {
    color: var(--primary-yellow);
    font-weight: 700;
}

.mac-dropdown-help em {
    color: #fff;
    font-style: italic;
    font-weight: 600;
}


.hero-note {
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: 30px;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--dark-bg);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -1px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(245, 197, 24, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 197, 24, 0.1);
    border-radius: 50%;
    color: var(--primary-yellow);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Screenshots Section */
.screenshots {
    padding: 120px 0;
    background: var(--darker-bg);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.screenshot-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.1) 0%, rgba(245, 197, 24, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.screenshot-placeholder:hover {
    border-color: rgba(245, 197, 24, 0.5);
    transform: scale(1.05);
}

.screenshot-placeholder p {
    color: var(--text-dim);
    font-size: 1.2rem;
}


/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-separator {
    color: var(--text-dim);
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

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

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 15px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Smooth animations */
.feature-card,
.screenshot-placeholder {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

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

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Dynamic Hero Updates */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center top;
    transition: background-image 1s ease;
    z-index: 1;
}

.hero-text {
    max-width: 650px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-meta .rating {
    color: var(--primary-yellow);
}

.hero-info {
    margin-bottom: 24px;
}

.hero-info p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-size: 1.05rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    text-align: left;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
    text-align: left;
}

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

.btn-watch-now {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #ffd700 100%);
    color: #000;
    box-shadow: 0 8px 30px rgba(245, 197, 24, 0.5),
                0 0 40px rgba(245, 197, 24, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-watch-now:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(245, 197, 24, 0.7),
                0 0 60px rgba(245, 197, 24, 0.5);
    background: linear-gradient(135deg, #ffd700 0%, var(--primary-yellow) 100%);
}

.btn-watch-now:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-watch-now svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-nav svg {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.hero-nav:hover {
    transform: translateY(-50%) scale(1.2);
}

.hero-nav:hover svg {
    filter: drop-shadow(0 0 10px rgba(245, 197, 24, 0.8));
}

.hero-nav:hover {
    color: var(--primary-yellow);
}

.hero-nav.prev {
    left: 40px;
}

.hero-nav.next {
    right: 40px;
}

.imdb-badge {
    background: var(--primary-yellow);
    padding: 4px 10px;
    border-radius: 4px;
    color: #000;
    font-weight: bold;
    font-size: 0.9rem;
}

/* 3D Carousel */
.carousel-section {
    padding: 20px 0 80px;
    background: var(--dark-bg);
    overflow: hidden;
}

.carousel-title {
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #ffffff;
    margin-top: -100px;
    margin-bottom: 80px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 1),
                 0 0 40px rgba(0, 0, 0, 0.8),
                 0 0 20px rgba(0, 0, 0, 0.9);
    padding: 20px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.carousel-3d {
    position: relative;
    height: 600px;
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
    user-select: none;
}

.carousel-item {
    position: absolute;
    width: 320px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform, opacity;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.carousel-item[data-pos="0"]::before {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
    display: block;
}

.carousel-item:hover img {
    transform: scale(1.03);
    box-shadow: 0 30px 90px rgba(245, 197, 24, 0.4);
}

/* Carousel positions (3D effect with better spacing) */
.carousel-item[data-pos="0"] {
    transform: translateX(0) translateZ(100px) scale(1.4);
    z-index: 10;
    opacity: 1;
}

.carousel-item[data-pos="0"] img {
    border: 4px solid var(--primary-yellow);
    box-shadow: 0 30px 100px rgba(245, 197, 24, 0.5),
                0 0 60px rgba(245, 197, 24, 0.3);
}

.carousel-item[data-pos="1"] {
    transform: translateX(450px) translateZ(-100px) scale(1);
    z-index: 8;
    opacity: 0.85;
}

.carousel-item[data-pos="-1"] {
    transform: translateX(-450px) translateZ(-100px) scale(1);
    z-index: 8;
    opacity: 0.85;
}

.carousel-item[data-pos="2"] {
    transform: translateX(750px) translateZ(-250px) scale(0.75);
    z-index: 6;
    opacity: 0.6;
}

.carousel-item[data-pos="-2"] {
    transform: translateX(-750px) translateZ(-250px) scale(0.75);
    z-index: 6;
    opacity: 0.6;
}

.carousel-item[data-pos="3"] {
    transform: translateX(1000px) translateZ(-400px) scale(0.55);
    z-index: 4;
    opacity: 0.4;
}

.carousel-item[data-pos="-3"] {
    transform: translateX(-1000px) translateZ(-400px) scale(0.55);
    z-index: 4;
    opacity: 0.4;
}

.carousel-item[data-pos="4"],
.carousel-item[data-pos="-4"],
.carousel-item[data-pos="5"],
.carousel-item[data-pos="-5"],
.carousel-item[data-pos="6"],
.carousel-item[data-pos="-6"],
.carousel-item[data-pos="7"],
.carousel-item[data-pos="-7"] {
    transform: translateX(1200px) translateZ(-500px) scale(0.4);
    z-index: 2;
    opacity: 0.2;
}

/* Download CTA */
.download-cta {
    padding: 80px 0 100px;
    background: var(--dark-bg);
    text-align: center;
}

