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

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #151932;
    --bg-tertiary: #1e2442;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-purple-dark: #6d28d9;
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;
    --text-muted: #8b7fb8;
    --border-color: #2d3561;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f3a 100%);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Анимированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: rgba(21, 25, 50, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-purple);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.logo span {
    background: linear-gradient(135deg, var(--accent-purple-light), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-purple-light));
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--accent-purple-light);
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

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

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlide 1s ease-out;
}

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

.hero-subtitle-accent {
    font-size: 36px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 24px;
    animation: subtitleSlide 1.2s ease-out;
}

@keyframes subtitleSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: descriptionFade 1.4s ease-out;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
    animation: buttonsSlide 1.6s ease-out;
}

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

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dark));
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}

/* Browser Mockup */
.hero-image {
    margin-top: 60px;
    animation: mockupFloat 2s ease-in-out infinite;
}

@keyframes mockupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.browser-mockup {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(30, 36, 66, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    animation: mockupSlide 1.8s ease-out;
}

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

.browser-bar {
    background: rgba(10, 14, 39, 0.8);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.browser-url {
    flex: 1;
    background: rgba(21, 25, 50, 0.6);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.browser-content {
    padding: 60px;
    min-height: 400px;
}

.content-line {
    height: 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 6px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.content-line:nth-child(2) {
    width: 70%;
    animation-delay: 0.2s;
}

.content-line:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: rgba(21, 25, 50, 0.3);
    position: relative;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-purple-light), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 18px;
}

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

.feature-card {
    background: rgba(30, 36, 66, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* Download Section */
.download {
    padding: 100px 0;
    position: relative;
}

.download-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 60px;
}

.download-card {
    background: rgba(30, 36, 66, 0.6);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.download-card:hover::before {
    opacity: 1;
}

.download-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-purple);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
}

.os-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    animation: osIconBounce 2s ease-in-out infinite;
}

@keyframes osIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.download-card h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.download-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 15px;
}

.btn-download {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dark));
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-download:hover::before {
    width: 300px;
    height: 300px;
}

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
}

.download-size {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.download-info {
    text-align: center;
    padding: 32px;
    background: rgba(30, 36, 66, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.download-info p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: rgba(21, 25, 50, 0.3);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.about-text h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 28px;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text li {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
    padding-left: 24px;
    position: relative;
}

.about-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
}

.about-text li:hover {
    color: var(--accent-purple-light);
    transform: translateX(8px);
}

/* Footer */
.footer {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 18px;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.7;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-purple-light);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle-accent {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav {
        gap: 20px;
        font-size: 14px;
    }
    
    .features-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Анимация появления элементов при скролле */
.feature-card,
.download-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-card.visible,
.download-card.visible {
    opacity: 1;
    transform: translateY(0);
}
