/* ========================================
   ERMIAS — Hub Page Components (hub-*)
   Выделено из components.css (T8)
   Загружается ПЕРЕД components.css:
   responsive-правила в components.css сохраняют приоритет каскада.
   ======================================== */

/* Hub Card (для products) */
.hub-card {
    background: var(--ed-bg-card);
    border: 1px solid var(--ed-border);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s;
}

.hub-card:hover {
    border-color: var(--ed-accent);
    transform: translateY(-4px);
}

.hub-card--featured {
    border-color: var(--ed-accent);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.08);
}

[data-theme="light"] .hub-card--featured {
    box-shadow: 0 0 30px rgba(0, 200, 83, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hub-card__badge {
    display: inline-block;
    color: var(--ed-accent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hub-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ed-text-primary);
    margin: 0 0 12px;
}

.hub-card__title small {
    font-weight: 400;
    color: var(--ed-text-secondary);
    font-size: 0.85em;
}

.hub-card__desc {
    font-size: 0.9375rem;
    color: var(--ed-text-body);
    line-height: 1.5;
    margin: 0 0 20px;
}

.hub-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}

.hub-card__features li {
    position: relative;
    padding-left: 16px;
    color: var(--ed-text-body);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.hub-card__features li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--ed-accent);
    font-weight: 700;
}

.hub-card__link {
    color: var(--ed-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
}

.hub-card__link:hover {
    color: var(--ed-link-hover);
    text-decoration: underline;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hub-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--ed-bg-primary);
}

.hub-hero__container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hub-hero__badge {
    display: inline-block;
    border: 1px solid var(--ed-accent);
    color: var(--ed-accent);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hub-hero__title {
    font-size: var(--ed-font-size-hero);
    font-weight: 800;
    color: var(--ed-text-primary);
    line-height: 1.1;
    margin: 0 0 24px;
}

.hub-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--ed-text-secondary);
    line-height: 1.6;
    margin: 0 0 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hub-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hub-hero__disclaimer {
    display: block;
    font-size: 0.75rem;
    color: var(--ed-text-secondary);
    opacity: 0.7;
    margin: -16px auto 0;
    max-width: 420px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Decorative element hero — gradient + animated grid */
.hub-hero__decor {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 50%, rgba(0, 230, 118, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Decorative element hero — Network Nodes (нейросеть / граф связей) */
.hub-hero__decor::before {
    content: '';
    position: absolute;
    top: 5%;
    right: -5%;
    width: 500px;
    height: 400px;
    /* Связи (линии) + узлы (точки) — ассоциация с AI/ML */
    background-image: url("data:image/svg+xml,%3Csvg width='500' height='400' viewBox='0 0 500 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2300e676' stroke-width='0.4' opacity='0.15'%3E%3Cline x1='60' y1='80' x2='180' y2='40'/%3E%3Cline x1='60' y1='80' x2='120' y2='180'/%3E%3Cline x1='180' y1='40' x2='280' y2='90'/%3E%3Cline x1='180' y1='40' x2='120' y2='180'/%3E%3Cline x1='120' y1='180' x2='280' y2='90'/%3E%3Cline x1='120' y1='180' x2='200' y2='280'/%3E%3Cline x1='120' y1='180' x2='80' y2='300'/%3E%3Cline x1='280' y1='90' x2='400' y2='60'/%3E%3Cline x1='280' y1='90' x2='380' y2='200'/%3E%3Cline x1='280' y1='90' x2='200' y2='280'/%3E%3Cline x1='200' y1='280' x2='380' y2='200'/%3E%3Cline x1='200' y1='280' x2='320' y2='350'/%3E%3Cline x1='200' y1='280' x2='80' y2='300'/%3E%3Cline x1='80' y1='300' x2='320' y2='350'/%3E%3Cline x1='380' y1='200' x2='460' y2='320'/%3E%3Cline x1='380' y1='200' x2='320' y2='350'/%3E%3Cline x1='400' y1='60' x2='460' y2='320'/%3E%3Cline x1='60' y1='80' x2='40' y2='200'/%3E%3Cline x1='40' y1='200' x2='80' y2='300'/%3E%3Cline x1='40' y1='200' x2='120' y2='180'/%3E%3Cline x1='400' y1='60' x2='480' y2='160'/%3E%3Cline x1='480' y1='160' x2='380' y2='200'/%3E%3Cline x1='480' y1='160' x2='460' y2='320'/%3E%3C/g%3E%3Cg fill='%2300e676' opacity='0.25'%3E%3Ccircle cx='60' cy='80' r='2.5'/%3E%3Ccircle cx='180' cy='40' r='2'/%3E%3Ccircle cx='120' cy='180' r='3'/%3E%3Ccircle cx='280' cy='90' r='2.5'/%3E%3Ccircle cx='200' cy='280' r='2'/%3E%3Ccircle cx='80' cy='300' r='2'/%3E%3Ccircle cx='400' cy='60' r='2.5'/%3E%3Ccircle cx='380' cy='200' r='3'/%3E%3Ccircle cx='320' cy='350' r='2'/%3E%3Ccircle cx='460' cy='320' r='2.5'/%3E%3Ccircle cx='40' cy='200' r='2'/%3E%3Ccircle cx='480' cy='160' r='2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: hub-hero-pulse 8s ease-in-out infinite alternate;
}

[data-theme="light"] .hub-hero__decor {
    background: radial-gradient(ellipse at 70% 50%, rgba(0, 200, 83, 0.03) 0%, transparent 70%);
}

[data-theme="light"] .hub-hero__decor::before {
    background-image: url("data:image/svg+xml,%3Csvg width='500' height='400' viewBox='0 0 500 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2300c853' stroke-width='0.4' opacity='0.12'%3E%3Cline x1='60' y1='80' x2='180' y2='40'/%3E%3Cline x1='60' y1='80' x2='120' y2='180'/%3E%3Cline x1='180' y1='40' x2='280' y2='90'/%3E%3Cline x1='180' y1='40' x2='120' y2='180'/%3E%3Cline x1='120' y1='180' x2='280' y2='90'/%3E%3Cline x1='120' y1='180' x2='200' y2='280'/%3E%3Cline x1='120' y1='180' x2='80' y2='300'/%3E%3Cline x1='280' y1='90' x2='400' y2='60'/%3E%3Cline x1='280' y1='90' x2='380' y2='200'/%3E%3Cline x1='280' y1='90' x2='200' y2='280'/%3E%3Cline x1='200' y1='280' x2='380' y2='200'/%3E%3Cline x1='200' y1='280' x2='320' y2='350'/%3E%3Cline x1='200' y1='280' x2='80' y2='300'/%3E%3Cline x1='80' y1='300' x2='320' y2='350'/%3E%3Cline x1='380' y1='200' x2='460' y2='320'/%3E%3Cline x1='380' y1='200' x2='320' y2='350'/%3E%3Cline x1='400' y1='60' x2='460' y2='320'/%3E%3Cline x1='60' y1='80' x2='40' y2='200'/%3E%3Cline x1='40' y1='200' x2='80' y2='300'/%3E%3Cline x1='40' y1='200' x2='120' y2='180'/%3E%3Cline x1='400' y1='60' x2='480' y2='160'/%3E%3Cline x1='480' y1='160' x2='380' y2='200'/%3E%3Cline x1='480' y1='160' x2='460' y2='320'/%3E%3C/g%3E%3Cg fill='%2300c853' opacity='0.2'%3E%3Ccircle cx='60' cy='80' r='2.5'/%3E%3Ccircle cx='180' cy='40' r='2'/%3E%3Ccircle cx='120' cy='180' r='3'/%3E%3Ccircle cx='280' cy='90' r='2.5'/%3E%3Ccircle cx='200' cy='280' r='2'/%3E%3Ccircle cx='80' cy='300' r='2'/%3E%3Ccircle cx='400' cy='60' r='2.5'/%3E%3Ccircle cx='380' cy='200' r='3'/%3E%3Ccircle cx='320' cy='350' r='2'/%3E%3Ccircle cx='460' cy='320' r='2.5'/%3E%3Ccircle cx='40' cy='200' r='2'/%3E%3Ccircle cx='480' cy='160' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* Мягкое пульсирование вместо вращения — органично для сетевой структуры */
@keyframes hub-hero-pulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.03); }
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.hub-products {
    padding: var(--ed-section-padding);
    background: var(--ed-bg-primary);
}

.hub-products__container {
    max-width: var(--ed-max-width);
    margin: 0 auto;
}

.hub-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ed-card-gap);
}

/* ========================================
   STEPS SECTION (How it works)
   ======================================== */
.hub-steps {
    padding: var(--ed-section-padding);
    background: var(--ed-bg-tertiary);
}

.hub-steps__container {
    max-width: 1000px;
    margin: 0 auto;
}

.hub-steps__grid {
    display: flex;
    align-items: stretch;
    gap: 16px;
    justify-content: center;
}

.hub-step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 32px 20px;
    background: var(--ed-bg-secondary);
    border: 1px solid var(--ed-border);
    border-radius: 12px;
}

.hub-step__number {
    width: 56px;
    height: 56px;
    line-height: 52px;
    text-align: center;
    border: 2px solid var(--ed-accent);
    border-radius: 50%;
    color: var(--ed-accent);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.hub-step__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ed-text-primary);
    margin: 0 0 12px;
}

.hub-step__desc {
    font-size: var(--ed-font-size-small);
    color: var(--ed-text-body);
    line-height: 1.5;
    margin: 0;
}

.hub-step__arrow {
    display: flex;
    align-items: center;
    color: var(--ed-accent);
    font-size: 1.5rem;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ========================================
   AUDIENCE SECTION (For Whom)
   ======================================== */
.hub-audience {
    padding: var(--ed-section-padding);
    background: var(--ed-bg-primary);
}

.hub-audience__container {
    max-width: var(--ed-max-width);
    margin: 0 auto;
}

.hub-audience__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ed-card-gap);
}

.hub-audience__card {
    background: var(--ed-bg-secondary);
    border: 1px solid var(--ed-border);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.25s, transform 0.25s;
}

.hub-audience__card:hover {
    border-color: var(--ed-accent);
    transform: translateY(-4px);
}

.hub-audience__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--ed-accent);
    margin: 0 auto 16px;
}

.hub-audience__icon svg {
    width: 32px;
    height: 32px;
}

.hub-audience__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ed-text-primary);
    margin: 0 0 12px;
}

.hub-audience__desc {
    font-size: 0.875rem;
    color: var(--ed-text-body);
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   STATS BAR
   ======================================== */
.hub-stats {
    padding: 48px 24px;
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.04) 0%, transparent 100%);
    border-top: 1px solid var(--ed-border);
    border-bottom: 1px solid var(--ed-border);
}

[data-theme="light"] .hub-stats {
    background: linear-gradient(90deg, rgba(0, 200, 83, 0.04) 0%, transparent 100%);
}

.hub-stats__container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.hub-stats__value {
    display: block;
    color: var(--ed-accent);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 4px;
}

.hub-stats__label {
    display: block;
    color: var(--ed-text-body);
    font-size: var(--ed-font-size-small);
}

/* ========================================
   CTA SECTION
   ======================================== */
.hub-cta {
    padding: var(--ed-section-padding);
    background: var(--ed-bg-primary);
    text-align: center;
}

.hub-cta__container {
    max-width: 600px;
    margin: 0 auto;
}

.hub-cta__title {
    font-size: var(--ed-font-size-h2);
    font-weight: 700;
    color: var(--ed-text-primary);
    margin: 0 0 16px;
}

.hub-cta__subtitle {
    font-size: 1rem;
    color: var(--ed-text-body);
    margin: 0 0 32px;
}

.hub-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   SHARED — Section Title
   ======================================== */
.hub-section__title {
    font-size: var(--ed-font-size-h2);
    font-weight: 700;
    color: var(--ed-text-primary);
    text-align: center;
    margin-bottom: 48px;
}