:root {
    --bg-dark: #07070b;
    --text-main: #f4f4fa;
    --text-muted: #a3a3b4;
    --accent: #ff3b4b;
    --accent-hover: #ff5260;
    --glass-bg: rgba(30, 32, 46, 0.5);
    --glass-border: rgba(255, 255, 255, 0.12);
    --font-main: 'Onest', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

#features {
    scroll-margin-top: 140px;
}

#pricing {
    scroll-margin-top: 220px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Atmosphere */
.atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.atmosphere img {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    object-fit: cover;
    filter: blur(8px) saturate(120%);
    opacity: 0.6;
}

.atmosphere-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 8, 14, 0.4) 0%, rgba(7, 8, 14, 0.2) 34%, rgba(7, 8, 14, 0.6) 64%, rgba(7, 7, 11, 0.95) 100%);
}

.atmosphere-radial {
    position: absolute;
    inset: 0;
    background: radial-gradient(130% 92% at 50% 40%, transparent 40%, rgba(7, 7, 11, 0.8) 100%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Navigation Bar */
header {
    display: flex;
    justify-content: center;
    padding-top: 32px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, rgba(30, 32, 46, 0.6), rgba(16, 17, 26, 0.5));
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 10px 10px 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: dropDown 0.6s ease-out both;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 12px;
    transition: 0.2s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link span.material-symbols-rounded {
    font-size: 18px;
    opacity: 0.8;
}

.nav-buy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 14px;
    transition: 0.2s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-buy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 80px;
}

.hero-title {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #f7f8fc;
    margin: 0 auto;
    text-shadow: 0 2px 36px rgba(0, 0, 0, 0.6);
    animation: fadeUp 0.6s ease-out both 0.1s;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.5;
    color: #c4c7d8;
    max-width: 700px;
    margin: 24px auto 0;
    font-weight: 400;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.6s ease-out both 0.2s;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    animation: fadeUp 0.6s ease-out both 0.3s;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--accent);
    color: black;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 59, 75, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(255, 59, 75, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: rgba(20, 22, 32, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #eceef6;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 16px;
    transition: 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 80px;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease-out both 0.4s;
}

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

.stat-item span.material-symbols-rounded {
    color: var(--accent);
    opacity: 0.8;
}

.stat-label {
    font-size: 17px;
    color: var(--text-muted);
}

.stat-value {
    font-size: 18px;
    color: white;
    font-weight: 700;
}

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

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pricing-card {
    background: linear-gradient(180deg, rgba(30, 32, 46, 0.7), rgba(16, 17, 26, 0.6));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 59, 75, 0.3);
    box-shadow: 0 30px 60px rgba(255, 59, 75, 0.15);
}

.pricing-card.popular {
    border-color: rgba(255, 59, 75, 0.5);
    background: linear-gradient(180deg, rgba(40, 20, 24, 0.8), rgba(20, 10, 14, 0.7));
}

.pricing-card.popular::before {
    content: 'ПОПУЛЯРНЫЙ';
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: black;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
}

.plan-price span {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #c4c7d8;
}

.plan-features li span.material-symbols-rounded {
    color: var(--accent);
    font-size: 20px;
}

.btn-buy {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-buy.primary {
    background: var(--accent);
    color: black;
    border: none;
}

.btn-buy.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-buy:hover {
    filter: brightness(1.1);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    margin-top: 100px;
    text-align: center;
    color: var(--text-muted);
}

/* Global Form Input Styling */
.login-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(255, 59, 75, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {
    /* Navbar adjustments */
    header {
        padding-top: 16px;
    }
    
    .nav-bar {
        padding: 8px 12px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-logo {
        padding-right: 12px;
        font-size: 16px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .nav-buy-btn {
        padding: 8px 14px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    /* Hero section */
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 42px;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        padding: 0 20px;
        margin-top: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        padding: 0 20px;
        gap: 12px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Stats */
    .stats {
        margin-top: 40px;
        gap: 30px;
        flex-direction: column;
    }
    
    .stat-item {
        justify-content: center;
    }

    /* Pricing section */
    .pricing-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .pricing-cards {
        gap: 20px;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 340px;
    }
    
    /* Login & Register Containers */
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 24px 20px;
        max-width: 100%;
    }
}
