/* index.css — kyun.sh style */

:root {
    --bg: #0a0a0a;
    --bg-offset: #111111;
    --border: #222222;
    --border-light: #2a2a2a;
    --text: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;
    --accent-dim: #cccccc;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Навигация */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    font-family: var(--font-mono);
}

.accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.btn-primary {
    background: var(--text);
    color: var(--bg) !important;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.85;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero секция */
.hero {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
}

.stats {
    display: flex;
    gap: 2.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Чат превью */
.chat-preview {
    background: var(--bg-offset);
    border: 2px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.message-wrapper.own {
    flex-direction: row-reverse;
}

.avatar {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.message {
    padding: 0.5rem 1rem;
    max-width: 70%;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    line-height: 1.4;
}

.message.own {
    background: var(--text);
    color: var(--bg);
    border: none;
}

.message.file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message.file::before {
    content: '📎';
}

/* Features */
.features {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-offset);
    border: 2px solid var(--border);
    padding: 2rem;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--border-light);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* About */
.about {
    max-width: 800px;
    margin: 6rem auto;
    padding: 0 2rem;
    text-align: center;
}

.about-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    line-height: 1.7;
}

/* CTA */
.cta {
    max-width: 600px;
    margin: 6rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-offset);
    border: 2px solid var(--border);
}

.cta h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    border-top: 2px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .stats {
        justify-content: center;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}