* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.lucide {
    stroke-width: 2px;
    vertical-align: middle;
}

:root {
    --text-primary: #111111;
    --text-secondary: #666666;
    --text-tertiary: #a0a0a0;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --border-color: #eaeaea;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.scrolled .navbar {
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.logo strong {
    font-weight: 700;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    z-index: 1000;
    transition: var(--transition);
}

.menu-toggle:hover {
    opacity: 0.7;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: #000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: #d0d0d0;
}

.btn-github {
    gap: 8px;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 6rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 0.8s ease-out forwards;
}

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

.hero-pill {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #000 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* App Interface Mockup Preview */
.mockup-container {
    max-width: 900px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s 0.3s ease-out forwards;
}

/* Telegram Mockup Specifics */
.telegram-chat {
    background-color: #f0f2f5;
    border: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.telegram-header {
    background-color: #517da2;
    padding: 0.75rem 1rem;
    color: white;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.telegram-avatar {
    width: 36px;
    height: 36px;
    background-color: #72b1e4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
}

.telegram-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.telegram-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.telegram-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.telegram-actions {
    margin-left: auto;
    opacity: 0.7;
}

.mockup-body.telegram-body {
    background-image: url('https://user-images.githubusercontent.com/1500684/157740693-0176cd97-0097-40c2-9e91-768a18357a79.png');
    background-color: #8db0cf;
    padding: 1.5rem;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    min-height: 480px;
}

.telegram-chat .chat-message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
    max-width: 85%;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.telegram-chat .chat-message.user {
    background-color: #effdde;
    align-self: flex-end;
    color: #111;
    border-bottom-right-radius: 4px;
}

.telegram-chat .chat-message.bot {
    background-color: #ffffff;
    align-self: flex-start;
    color: #111;
    border-bottom-left-radius: 4px;
    border: none;
}

/* Bubble tails */
.telegram-chat .chat-message.user::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #effdde 50%, transparent 50%);
}

.telegram-chat .chat-message.bot::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 15px;
    height: 15px;
    background: linear-gradient(225deg, #ffffff 50%, transparent 50%);
}

.chat-source {
    font-size: 0.7rem;
    font-weight: 700;
    color: #3897f0;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bot-content {
    line-height: 1.4;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
    border-color: #d0d0d0;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* How It Works */
.workflow {
    padding: 8rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    margin-top: 4rem;
}

.steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 1px;
    background-color: var(--border-color);
    z-index: -1;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.step-content p {
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    padding: 8rem 2rem;
    text-align: center;
    background-color: #111;
    color: #fff;
}

.cta h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta p {
    color: #a0a0a0;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: #fff;
    color: #111;
    border-color: #fff;
}

.cta .btn-primary:hover {
    background-color: #f0f0f0;
    transform: scale(1.02);
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        padding: 1.25rem 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        padding: 2rem;
        text-align: center;
    }

    .mobile-open .nav-links {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .btn-github {
        width: 100%;
        max-width: 200px;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 4rem;
    }
    
    .mockup-body {
        padding: 1.5rem;
    }
    
    .chat-message {
        max-width: 90%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .steps::before {
        left: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cta h2 {
        font-size: 2.5rem;
    }
    
    .footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
