/* =============================================================
   hero.css — Hero с тёмной темой, анимацией, продающий
   ============================================================= */

.hero {
    padding: 140px 0 80px;
    position: relative; overflow: hidden;
    min-height: 92vh; display: flex; align-items: center;
    background: var(--color-bg);
}

/* Градиентный фон */
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 600px 400px at 80% 20%, rgba(0, 136, 204, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 20% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Верхняя подсветка */
.hero::after {
    content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

/* Плавающие декоративные круги */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.04;
}
.hero-orb--1 {
    width: 400px; height: 400px;
    border: 1px solid var(--color-primary);
    top: -80px; right: -80px;
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb--2 {
    width: 250px; height: 250px;
    border: 1px solid var(--color-accent);
    bottom: 10%; left: 5%;
    animation: orbFloat 10s ease-in-out infinite reverse;
}
.hero-orb--3 {
    width: 180px; height: 180px;
    border: 1px solid var(--color-primary);
    top: 40%; left: 40%;
    animation: orbFloat 12s ease-in-out infinite 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content { position: relative; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 500;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(0, 136, 204, 0.2);
    margin-bottom: 24px;
    animation: heroFadeUp 0.6s 0.15s both;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 20px;
    color: var(--color-text);
    letter-spacing: -0.04em;
    animation: heroFadeUp 0.6s 0.3s both;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--color-primary), #33aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h1 .accent {
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
    animation: heroFadeUp 0.6s 0.45s both;
}

.hero-actions {
    display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px;
    animation: heroFadeUp 0.6s 0.6s both;
}

.hero-stats {
    display: flex; gap: 40px;
    animation: heroFadeUp 0.6s 0.75s both;
}

.hero-stat { text-align: left; position: relative; }

.hero-stat:not(:last-child)::after {
    content: ''; position: absolute; right: -20px; top: 50%;
    transform: translateY(-50%); width: 1px; height: 32px;
    background: var(--color-border);
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 2px;
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* ======== Hero Visual (правая панель) ======== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: heroFadeUp 0.6s 0.5s both;
}

.hero-device {
    width: 100%;
    max-width: 440px;
    position: relative;
}

.hero-device-frame {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
}

.hero-device-strip {
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 100%;
    animation: stripMove 3s linear infinite;
}

@keyframes stripMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.hero-device-body {
    padding: 24px 20px 20px;
}

.hero-device-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
    margin-bottom: 14px;
    font-weight: 600;
}

/* Список активностей */
.hero-device-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 18px;
    margin-bottom: 4px;
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--color-primary);
    animation: itemSlide 0.6s both;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.hero-device-item:nth-child(1) { animation-delay: 0.8s; }
.hero-device-item:nth-child(2) { animation-delay: 1.0s; }
.hero-device-item:nth-child(3) { animation-delay: 1.2s; }
.hero-device-item:nth-child(4) { animation-delay: 1.4s; }
.hero-device-item:nth-child(5) { animation-delay: 1.6s; }

@keyframes itemSlide {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-device-item-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-elevated);
    display: flex; align-items: center;
    justify-content: center; font-size: 0.95rem;
    flex-shrink: 0;
}

.hero-device-item-icon svg {
    width: 18px; height: 18px;
    color: var(--color-primary);
    stroke: var(--color-primary);
}

.hero-device-item-text {
    flex: 1; font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

.hero-device-item-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-heading);
    min-width: 36px;
    text-align: right;
}

.hero-device-item-progress {
    width: 100%; height: 2px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
    position: absolute; bottom: 0; left: 0; right: 0;
}

.hero-device-item-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #33aaff);
    border-radius: 2px;
    width: 0%;
    transition: width 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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