/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #33334f;
    background: #fff;
    line-height: 1.6;
}

a {
    color: #6078ff;
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* === LAYOUT === */
.container {
    max-width: 1030px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7em 0.8em;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    color: #000;
    background: transparent;
    box-shadow: inset 0 0 0 1px, 0 1px 2px rgba(0, 0, 0, .17);
}

.btn:hover {
    box-shadow: inset 0 0 0 1px, 0 4px 10px rgba(50, 50, 93, .23), 0 1px 3px rgba(0, 0, 0, .08);
    text-decoration: none;
}

.btn.primary {
    color: #fff;
    background: #000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .17);
}

.btn.primary:hover {
    box-shadow: 0 4px 10px rgba(50, 50, 93, .23), 0 1px 3px rgba(0, 0, 0, .08);
}

/* === HEADER === */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1030px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #33334f;
    flex-shrink: 0;
    min-width: 0;
}

.header-logo:hover {
    text-decoration: none;
}

.header-logo img {
    width: 51px;
    height: 51px;
}

.header-logo span {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 5vw, 24px);
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions .btn {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 15px;
    font-weight: 400;
    color: #999;
    transition: color 0.2s;
}

.header-actions .btn:hover {
    color: #333;
    box-shadow: none;
    text-decoration: none;
}

/* === HERO === */
.hero {
    padding: 40px 0 20px;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-height: 350px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #eef0ff;
    color: #5b5fc7;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    text-decoration: none;
}

.hero-badge svg {
    flex-shrink: 0;
}

.hero-badge:hover {
    text-decoration: none;
    background: #e2e5ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(96, 120, 255, .15);
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #33334f;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-subtitle {
    color: #767ead;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-ctas {
    display: none;
    gap: 10px;
    flex-wrap: wrap;
}

/* === FEATURES === */
.features-section {
    padding: 10px 0 30px;
}

.features-grid {
    display: flex;
    gap: 30px;
}

.feature-card {
    flex: 1;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    padding: 20px 16px;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 120, 255, .12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background-size: contain;
    background-repeat: no-repeat;
    font-size: 36px;
    line-height: 48px;
}

.feature-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #33334f;
    margin-bottom: 8px;
}

.feature-desc {
    color: #767ead;
    font-size: 14px;
    line-height: 1.5;
}

/* === FOOTER === */
.site-footer {
    padding: 30px 0 15px;
    border-top: 1px solid #eee;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-inner span {
    color: #999;
    font-size: 14px;
}

.footer-inner a {
    color: #999;
    transition: color 0.2s;
}

.footer-inner a:hover {
    color: #6078ff;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.footer-social a {
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: color 0.25s, transform 0.25s;
}

.footer-social a svg path {
    fill: currentColor;
}

.footer-social a:hover {
    transform: scale(1.2);
    text-decoration: none;
}

.footer-social .social-telegram:hover {
    color: #0088cc;
}

.footer-social .social-youtube:hover {
    color: #FF0000;
}

.footer-social .social-instagram:hover {
    color: #E4405F;
}

.footer-social .social-x:hover {
    color: #000;
}

.footer-social .social-github:hover {
    color: #333;
}

.footer-social .social-linkedin:hover {
    color: #0A66C2;
}

.footer-social .social-devto:hover {
    color: #000;
}

/* === DARK MODE === */
[data-theme="dark"] body {
    background: #0f0f1a;
    color: #e0e0e0;
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .header-logo {
    color: #e0e0e0;
}

[data-theme="dark"] .header-actions .btn {
    color: #888;
}

[data-theme="dark"] .header-actions .btn:hover {
    color: #e0e0e0;
}

[data-theme="dark"] .hero-title {
    color: #e0e0e0;
}

[data-theme="dark"] .hero-badge {
    background: #1a1a2e;
    color: #818cf8;
}

[data-theme="dark"] .hero-badge:hover {
    background: #252540;
}

[data-theme="dark"] .feature-title {
    color: #e0e0e0;
}

[data-theme="dark"] .feature-desc {
    color: #999;
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 4px 12px rgba(96, 120, 255, .2);
}

[data-theme="dark"] .site-footer {
    border-top-color: #2a2a40;
}

[data-theme="dark"] .footer-inner span,
[data-theme="dark"] .footer-inner a {
    color: #666;
}

[data-theme="dark"] .footer-inner a:hover {
    color: #818cf8;
}

[data-theme="dark"] .footer-social a {
    color: #666;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

/* === MOBILE (max-width: 768px) === */
@media (max-width: 768px) {
    .header-actions .btn {
        display: none;
    }

    .header-logo img {
        width: 64px;
        height: 64px;
    }

    .hero-grid {
        flex-direction: column;
        gap: 20px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-badge {
        display: none;
    }

    .hero-image {
        display: none;
    }

    .hero-ctas {
        display: flex;
    }

    .hero-ctas .btn.primary {
        background: linear-gradient(135deg, #7c3aed, #6366f1);
        box-shadow: 0 2px 8px rgba(99, 102, 241, .3);
    }

    .hero-ctas .btn svg {
        margin-left: 2px;
    }

    .hero-ctas .btn {
        font-weight: 400 !important;
    }

    .features-grid {
        flex-direction: column;
        gap: 14px;
    }

    .feature-card {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 0;
    }

    .feature-card .feature-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .feature-card .feature-title {
        display: none;
    }

    .feature-card .feature-desc {
        font-size: 12px;
        line-height: 1.4;
    }

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

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

@media (max-width: 380px) {
    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 16px;
    }
}