/* ===== Navigation (Glass without Border) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: none;
    box-shadow: var(--shadow-navbar);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.brand-name {
    color: var(--text);
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: color 0.2s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 12px;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(59, 130, 246, 0.1);
}

.nav-link:hover::after {
    width: calc(100% - 24px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--text);
    transition: var(--transition);
}

/* ===== Buttons (Primary filled, Secondary outline) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn:hover {
    background: var(--bg-elevated);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--bg-elevated);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.28);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.24);
}

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

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

/* ===== Cards (Not Flat, Subtle Layers) ===== */
.card {
    background: var(--bg-surface);
    border: none;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.2s ease;
}

.card:hover {
    background: var(--bg-elevated);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-1px);
}

/* Main page feature & audience cards — text only, no box */
.feature-card,
.audience-grid .card,
.features-grid .card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: none !important;
}

.feature-card:hover,
.audience-grid .card:hover {
    background: transparent !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-surface);
    color: var(--text-muted);
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 350;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 350;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 400;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 16px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 350;
    box-shadow: var(--shadow-subtle);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), var(--shadow-subtle);
    background: var(--bg-surface);
}

/* ===== Feature Cards ===== */
.feature-card {
    text-decoration: none;
    color: inherit;
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 24px;
    transition: none;
}

/* ===== Audience ===== */
.audience-icon {
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ===== Updates ===== */
.blog-card.is-latest {
    box-shadow: var(--shadow-elevated);
    border: none;
    position: relative;
}

.blog-card.is-latest::before {
    content: "Latest";
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.28);
    padding: 6px 10px;
    border-radius: 999px;
}

/* ===== Responsive Navigation ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 12, 16, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        padding: 24px;
        box-shadow: var(--shadow-elevated);
        transition: left 0.3s ease;
        z-index: 1001;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Уменьшение иконок на мобильных */
    .feature-icon,
    .audience-icon {
        width: 32px !important;
        height: 32px !important;
    }
}
