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

:root {
    /* Dark Theme Colors with Blue Accent */
    --bg-primary: #0a0b0f;
    --bg-secondary: #151821;
    --bg-tertiary: #1e2332;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8396;
    --accent-primary: #00b4ff;
    --accent-secondary: #0088cc;
    --accent-tertiary: #2196f3;
    --accent-light: #64b5f6;
    --border-color: #2d3748;
    --gradient-1: linear-gradient(135deg, #00b4ff 0%, #0066cc 100%);
    --gradient-2: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
    --gradient-3: linear-gradient(135deg, #00b4ff 0%, #2196f3 50%, #1565c0 100%);
    --gradient-dark: linear-gradient(135deg, #151821 0%, #0a0b0f 100%);
    --shadow: 0 10px 30px rgba(0, 180, 255, 0.15);
    --shadow-blue: 0 10px 40px rgba(0, 180, 255, 0.2);
    --shadow-dark: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

body.loaded {
    overflow: auto;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.btn--primary {
    background: var(--gradient-3);
    color: white;
    box-shadow: var(--shadow-blue);
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 180, 255, 0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn--secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn--outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text-img {
    height: 20px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav__link:hover {
    color: var(--accent-primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--login {
    background: var(--gradient-1);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.user-info:hover {
    background: rgba(0, 180, 255, 0.1);
    border-color: var(--accent-primary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    object-fit: cover;
    filter: drop-shadow(0 0 10px rgba(0, 180, 255, 0.3));
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-subscription {
    font-size: 0.75rem;
    color: var(--accent-primary);
    line-height: 1.2;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(0, 180, 255, 0.1);
    color: var(--accent-primary);
}

.dropdown-item:last-child {
    border-top: 1px solid var(--border-color);
    margin-top: 0.25rem;
}

.dropdown-item:last-child:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: var(--gradient-dark);
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 180, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
    text-align: center;
}

.ninja-img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

.hero__bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: -1;
}

.main-clouds {
    width: 100%;
    height: auto;
    opacity: 0.7;
}

.play-icon {
    width: 16px;
    height: 16px;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.features__header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.features__description h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.features__description p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Stories Section */
.stories {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.stories__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stories__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stories__subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.stories__image {
    text-align: center;
}

.telegram-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 180, 255, 0.4));
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.pricing__header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 32px rgba(0, 180, 255, 0.15);
}

.pricing-card--featured {
    border: 1px solid var(--accent-primary);
    background: rgba(0, 180, 255, 0.05);
    position: relative;
}

.pricing-card__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.pricing-card__header {
    margin-bottom: 1.5rem;
}

.pricing-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pricing-card__price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.pricing-card__features {
    list-style: none;
    margin-bottom: auto;
    padding-bottom: 1.5rem;
    flex-grow: 1;
    text-align: left;
}

.pricing-card__features li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.pricing-card__features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.pricing-card__features li:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.cta__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta__image {
    text-align: center;
}

.ninja-cta-img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.cta__bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: -1;
}

.trial-clouds {
    width: 100%;
    height: auto;
    opacity: 0.6;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    border-top: 1px solid var(--accent-primary);
    padding: 3rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    box-shadow: 0 0 20px var(--accent-primary);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__link:hover {
    color: var(--accent-primary);
}

.footer__text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer__copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 15px 40px rgba(0, 180, 255, 0.4));
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
        filter: drop-shadow(0 20px 50px rgba(0, 180, 255, 0.5));
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
        filter: drop-shadow(0 25px 60px rgba(0, 180, 255, 0.6));
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
        filter: drop-shadow(0 20px 50px rgba(0, 180, 255, 0.5));
    }
}

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

    /* Header Mobile */
    .nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav.active {
        transform: translateY(-100%);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Mobile */
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .hero__buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 2rem;
    }

    /* Stories Mobile */
    .stories__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .stories__title {
        font-size: 2rem;
    }

    /* Pricing Mobile */
    .pricing__cards {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
    }

    .pricing-card {
        min-height: auto;
    }

    .pricing-card--featured {
        order: -1;
    }

    /* CTA Mobile */
    .cta__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .cta__title {
        font-size: 2rem;
    }

    /* Footer Mobile */
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stories__title,
    .cta__title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn--large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll animations */
.hero, .features, .stories, .pricing, .cta {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero { animation-delay: 0.2s; }
.features { animation-delay: 0.4s; }
.stories { animation-delay: 0.6s; }
.pricing { animation-delay: 0.8s; }
.cta { animation-delay: 1s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 20px rgba(0, 180, 255, 0.1);
    }
}

/* Glow effects */
.section-title {
    text-shadow: 0 0 30px rgba(0, 180, 255, 0.3);
}

.hero__title {
    text-shadow: 0 0 40px rgba(0, 180, 255, 0.2);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
}

.preloader__container {
    text-align: center;
    position: relative;
}

.preloader__ninja {
    width: 200px;
    height: auto;
    animation: preloaderFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 180, 255, 0.4));
}

@keyframes preloaderFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

