/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #000000;
    --secondary-bg: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-color: #ffffff;
    --modal-bg: #1a1a1a;
    --platform-hover: rgba(255, 255, 255, 0.1);
    --platform-active: rgba(255, 255, 255, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    color: var(--text-primary);
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
}

.hero-title {
    font-size: clamp(32px, 8vw, 80px);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 32px);
    font-weight: 300;
    margin-bottom: 50px;
    color: var(--text-secondary);
}

/* ============================================
   DOWNLOAD BUTTON
   ============================================ */
.download-btn {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    font-size: 18px;
    font-weight: 700;
    padding: 18px 60px;
    border-radius: 0;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 60px;
    border: 2px solid var(--accent-color);
}

.download-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.download-btn:active {
    transform: translateY(0);
}

/* ============================================
   PLATFORMS - ОБНОВЛЕННЫЙ СТИЛЬ
   ============================================ */
.platforms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    background-color: transparent;
    position: relative;
}

/* Неактивная платформа */
.platform:hover {
    background-color: var(--platform-hover);
    transform: translateY(-5px);
}

/* АКТИВНАЯ ПЛАТФОРМА - НОВЫЙ СТИЛЬ */
.platform.active {
    background-color: var(--platform-active);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.platform.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.platform-icon {
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.platform:hover .platform-icon {
    transform: scale(1.1);
}

.platform.active .platform-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.platform span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    transition: all 0.3s ease;
}

.platform.active span {
    color: var(--text-primary);
    font-weight: 600;
}
/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--modal-bg);
    padding: 40px;
    border-radius: 0;
    max-width: 500px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

/* ============================================
   DOWNLOAD OPTIONS
   ============================================ */
.download-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.download-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.download-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.download-option svg {
    flex-shrink: 0;
}

.download-option span {
    flex: 1;
}

/* ============================================
   MODAL CLOSE BUTTON
   ============================================ */
.modal-close {
    background-color: transparent;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets and below */
@media screen and (max-width: 1024px) {
    .nav-menu {
        gap: 30px;
    }
    
    .hero-title {
        font-size: clamp(28px, 7vw, 60px);
    }
    
    .platforms {
        gap: 30px;
    }
}

/* Mobile Landscape and below */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: clamp(24px, 10vw, 48px);
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: clamp(16px, 4vw, 24px);
        margin-bottom: 40px;
    }
    
    .download-btn {
        font-size: 16px;
        padding: 15px 40px;
        width: 100%;
        max-width: 350px;
    }
    
    .platforms {
        gap: 20px;
    }
    
    .platform {
        padding: 10px 15px;
    }
    
    .platform-icon {
        width: 35px;
        height: 35px;
    }
    
    .platform span {
        font-size: 12px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: clamp(18px, 5vw, 24px);
        margin-bottom: 25px;
    }
    
    .download-option {
        padding: 15px 20px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .header {
        padding: 15px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 35px;
    }
    
    .download-btn {
        padding: 14px 30px;
        font-size: 15px;
        margin-bottom: 40px;
    }
    
    .platforms {
        gap: 15px;
    }
    
    .platform {
        padding: 8px 12px;
    }
    
    .platform-icon {
        width: 30px;
        height: 30px;
    }
    
    .platform span {
        font-size: 11px;
    }
    
    .modal-content {
        padding: 25px 15px;
    }
    
    .download-options {
        gap: 15px;
    }
    
    .download-option {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }
    
    .modal-close {
        width: 100%;
        padding: 12px;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .platforms {
        gap: 10px;
    }
}

/* Landscape Orientation for Mobile */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 20px 30px;
    }
    
    .hero-title {
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        margin-bottom: 20px;
    }
    
    .download-btn {
        margin-bottom: 30px;
    }
    
    .platforms {
        margin-top: 20px;
    }
}

/* High Resolution Displays */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 90px;
    }
    
    .hero-subtitle {
        font-size: 36px;
    }
    
    .platforms {
        gap: 50px;
    }
    
    .platform {
        padding: 18px 25px;
    }
    
    .platform-icon {
        width: 50px;
        height: 50px;
    }
    
    .platform span {
        font-size: 16px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
.platform:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.no-scroll {
    overflow: hidden;
}
/* ============================================
   COMING SOON BUTTON STYLE
   ============================================ */
.download-btn.coming-soon {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    pointer-events: none;
}

.download-btn.coming-soon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    transform: none;
    box-shadow: none;
}