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

:root {
    --telegram-blue: #0088cc;
    --telegram-light-blue: #37aee2;
    --telegram-dark: #1d2733;
    --telegram-darker: #17212b;
    --telegram-light: #ffffff;
    --telegram-gray: #8e99a3;
    --telegram-green: #24b455;
    --vk-blue: #4c75a3;
    --youtube-red: #ff0000;
    --rutube-orange: #f68423;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--telegram-darker);
    color: var(--telegram-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
header {
    padding: 24px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(23, 33, 43, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 136, 204, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    background: var(--telegram-blue);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 24px;
    color: white;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.github-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.github-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--telegram-dark);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 136, 204, 0.2);
    color: #37aee2;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(0, 136, 204, 0.3);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--telegram-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-title-telegram {
    color: var(--telegram-light-blue);
}

.hero p {
    font-size: 1.25rem;
    color: var(--telegram-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--telegram-blue);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.3);
}

.btn-primary:hover {
    background: var(--telegram-light-blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 136, 204, 0.4);
}

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

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

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 24px;
    color: var(--telegram-blue);
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--telegram-gray);
    font-size: 0.9rem;
}

/* Video Section */
.video-section {
    max-width: 800px;
    margin: 0 auto 60px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--telegram-dark);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--telegram-light-blue);
}

.about p {
    font-size: 1.25rem;
    color: var(--telegram-gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.vision {
    background: rgba(0, 136, 204, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(0, 136, 204, 0.2);
}

.vision p {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--telegram-light);
    margin: 0;
}

/* Features Section */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--telegram-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--telegram-dark);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 136, 204, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 32px;
    color: var(--telegram-blue);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--telegram-gray);
    line-height: 1.7;
}

/* Integration Section */
.integration-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.integration-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.integration-icon:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

.integration-icon svg {
    width: 40px;
    height: 40px;
}

.integration-arrow {
    color: var(--text-secondary);
}

.integration-arrow svg {
    width: 32px;
    height: 32px;
}

.integration-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* How it works Section */
.how-it-works {
    background: var(--telegram-darker);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-number {
    background: var(--telegram-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--telegram-light-blue);
}

/*.step-content p {*/
/*    color: var(--telegram-gray);*/
/*    line-height: 1.7;*/
/*}*/

/* Installation Section */
.installation {
    background: var(--telegram-dark);
}

.code-block {
    background: var(--telegram-darker);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 700px;
    margin: 0 auto 30px;
}

.code-line {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 16px;
    line-height: 2;
    color: var(--telegram-light);
}

.prompt { color: var(--telegram-blue); }
.command { color: var(--telegram-green); }

.docs-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--telegram-blue);
    text-decoration: none;
    font-weight: 500;
}

.docs-link:hover {
    text-decoration: underline;
}

.video-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-video {
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-rutube {
    background: var(--rutube-orange);
    color: white;
}

.btn-youtube {
    background: var(--youtube-red);
    color: white;
}

.btn-vk {
    background: var(--vk-blue);
    color: white;
}

.btn-video:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Community Section */
.community {
    background: rgba(0, 136, 204, 0.1);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    margin: 60px 0;
}

.community h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.community p {
    font-size: 1.25rem;
    color: var(--telegram-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-community {
    background: var(--telegram-blue);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-community:hover {
    background: var(--telegram-light-blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 136, 204, 0.4);
}

/* CTA Section */
.cta {
    background: rgba(0, 136, 204, 0.1);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    margin: 60px 0;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.25rem;
    color: var(--telegram-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-github {
    background: white;
    color: var(--telegram-darker);
}

.btn-github:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-issue {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

/* Footer */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--telegram-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--telegram-gray);
    font-size: 24px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: var(--telegram-gray);
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* How It Works Section */
.how-it-works {
    background: var(--bg-secondary);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    position: relative;
}

.step-line {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--telegram-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-connector {
    width: 2px;
    flex: 1;
    background: var(--border-color);
    min-height: 40px;
}

.step:last-child .step-connector {
    display: none;
}

.step-content {
    padding-bottom: 40px;
}

.step:last-child .step-content {
    padding-bottom: 0;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-code {
    margin-top: 16px;
    background: var(--telegram-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.step-code .highlight {
    color: var(--telegram-blue);
}

.step-code .string {
    color: #22c55e;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats {
        gap: 20px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

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

    .step {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .feature-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .video-buttons {
        flex-direction: column;
    }

    a.btn-video {
        display: block;
        text-align: center;
    }

    .step-number {
        margin: auto;
    }

    .cta-buttons {
        flex-direction: column;
    }

    a.btn {
        display: block;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 140px 0 60px;
    }

    .section {
        padding: 60px 0;
    }

    .about {
        padding: 60px 0;
    }

    .community, .cta {
        padding: 60px 20px;
    }

    .community h2, .cta h2 {
        font-size: 2rem;
    }
}
