/* Modern Landing Page Styles - Dark Theme & Vibrancy */
:root {
    --bg-dark: #0f0f11;
    --bg-card: #1c1c1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --accent-primary: #3390ec; /* Telegram Blue */
    --accent-glow: rgba(51, 144, 236, 0.4);
    --gradient-1: linear-gradient(135deg, #3390ec 0%, #64d2ff 100%);
    --gradient-text: linear-gradient(90deg, #ffffff 0%, #a0a0a5 100%);
    --glass-bg: rgba(28, 28, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(32px, 5vw, 56px);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: clamp(24px, 4vw, 40px);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 60ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    transition: background 0.3s backdrop-filter 0.3s;
}

header.scrolled {
    background: rgba(15, 15, 17, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    padding: 160px 0 var(--spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(51, 144, 236, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.hero-subtitle {
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.hero-visual {
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    transform: rotateX(10deg) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateX(0) rotateY(0);
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Grid */
.features {
    padding: var(--spacing-xl) 0;
    background: #141416;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: white;
}

/* Templates Showcase */
.showcase {
    padding: var(--spacing-xl) 0;
}

.scroll-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.template-card {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/16;
    cursor: pointer;
}

.template-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-sm);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-weight: 500;
}

/* Pricing */
.pricing {
    padding: var(--spacing-xl) 0;
    background: #141416;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.pricing-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(51,144,236,0.1) 0%, var(--bg-card) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: var(--spacing-sm) 0;
    color: white;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin: var(--spacing-md) 0;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.plan-features li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: bold;
}

/* Footer */
footer {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--glass-border);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-col h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--accent-primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 var(--spacing-lg);
    }
    
    h1 {
        font-size: 36px;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .scroll-container {
        display: flex;
        overflow-x: auto;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .scroll-container::-webkit-scrollbar {
        display: none;
    }

    .template-card {
        min-width: 160px;
        scroll-snap-align: start;
    }
}
