@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #16192b;
    color: #ffffff;
    overflow-x: hidden;
}

/* Starfield Background */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 60px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1px 1px at 90px 10px, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 200px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px;
}

.stars2 {
    background-image: 
        radial-gradient(1px 1px at 40px 60px, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1px 1px at 110px 90px, rgba(255, 255, 255, 0.06), transparent),
        radial-gradient(1px 1px at 170px 30px, rgba(255, 255, 255, 0.07), transparent);
    background-size: 250px 250px;
    background-position: 0 0, 60px 90px, 140px 180px;
}

.stars3 {
    background-image: 
        radial-gradient(1px 1px at 80px 10px, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.04), transparent);
    background-size: 300px 300px;
    background-position: 0 0, 90px 140px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 3rem;
    z-index: 1000;
    background: rgba(22, 25, 43, 0.95);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-self: start;
}

.logo-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 8px rgba(59, 158, 255, 0.3));
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 400;
    background: linear-gradient(90deg, #5b9cff 0%, #8b7cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    letter-spacing: 0.5px;
    justify-self: center;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    justify-self: end;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(20deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
}

.theme-toggle .sun-icon {
    display: none;
    position: absolute;
}

.theme-toggle .moon-icon {
    display: block;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 2rem;
    position: relative;
    overflow: hidden;
}

.telegram-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 158, 255, 0.15);
    border: 1px solid rgba(74, 158, 255, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #4a9eff;
    margin-bottom: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.telegram-badge:hover {
    background: rgba(74, 158, 255, 0.25);
    transform: translateY(-2px);
}

.telegram-badge svg {
    width: 20px;
    height: 20px;
}

.telegram-badge .arrow {
    font-size: 1.2rem;
}

.hero-content {
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(91, 156, 255, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(91, 156, 255, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #5b9cff;
    margin-bottom: 1.2rem;
    animation: float 3s ease-in-out infinite;
}

.hero-badge svg {
    color: #5b9cff;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #e8eaf0;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #5b9cff 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
    display: inline-block;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-content p {
    font-size: 1rem;
    color: rgba(224, 224, 224, 0.8);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(224, 224, 224, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

.feature-item svg {
    color: #10b981;
    flex-shrink: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #5b9cff 0%, #8b5cf6 100%);
    color: #ffffff;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(91, 156, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(91, 156, 255, 0.6);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    
    nav {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .theme-toggle {
        width: 38px;
        height: 38px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .telegram-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* Light Theme */
body.light-theme {
    background: #f5f7fa;
    color: #1a1d2e;
}

body.light-theme .stars,
body.light-theme .stars2,
body.light-theme .stars3 {
    opacity: 0.3;
}

body.light-theme header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .logo-text {
    background: linear-gradient(90deg, #4a8fff 0%, #7b5cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1d2e;
}

body.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .theme-toggle .moon-icon {
    display: none;
}

body.light-theme .theme-toggle .sun-icon {
    display: block;
}

body.light-theme .telegram-badge {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: #3b7fd9;
}

body.light-theme .telegram-badge:hover {
    background: rgba(74, 158, 255, 0.2);
}

body.light-theme .hero-content h1 {
    color: #1a1d2e;
}

body.light-theme .hero-content p {
    color: #5a5f73;
}

body.light-theme .cta-button {
    background: #1a1d2e;
    color: #ffffff;
    box-shadow: 0 2px 15px rgba(26, 29, 46, 0.2);
}

body.light-theme .cta-button:hover {
    box-shadow: 0 8px 30px rgba(26, 29, 46, 0.3);
}


/* Anti-Copy Protection */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Allow selection only in input fields */
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent dragging images */
img {
    -webkit-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Prevent text selection on double click */
body {
    -webkit-tap-highlight-color: transparent;
}


/* Logo SVG Animation */
.logo-icon {
    filter: drop-shadow(0 0 10px rgba(91, 156, 255, 0.5));
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 15px rgba(91, 156, 255, 0.8));
    transform: scale(1.05);
}
