/* ============================================
   NEW HERO BANNER — Full viewport, animated
   ============================================ */
.hn-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
    padding: 160px 0 120px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Плавное осветление внизу — появляется при скролле */
.hn-hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to bottom, transparent 0%, rgba(244,249,255,0.3) 40%, rgba(244,249,255,0.7) 75%, #F4F9FF 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hn-hero-fade--visible {
    opacity: 1;
}

/* ============================================
   Background effects
   ============================================ */
.hn-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hn-hero-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 12s ease-in-out infinite;
}

.hn-hero-bg .orb--1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 70%);
    top: -100px; right: 10%;
    animation-duration: 14s;
}

.hn-hero-bg .orb--2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
    bottom: -80px; left: 5%;
    animation-duration: 10s; animation-delay: -4s;
}

.hn-hero-bg .orb--3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(249,115,22,0.2), transparent 70%);
    top: 20%; left: 40%;
    animation-duration: 16s; animation-delay: -8s;
}

.hn-hero-bg .orb--4 {
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(34,197,94,0.15), transparent 70%);
    bottom: 10%; right: 25%;
    animation-duration: 11s; animation-delay: -2s;
}

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

/* Grid pattern */
.hn-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

/* Particles */
.hn-hero-particles {
    position: absolute; inset: 0; pointer-events: none;
}

.hn-hero-particles .dot {
    position: absolute; width: 3px; height: 3px;
    border-radius: 50%; background: rgba(255,255,255,0.3);
    animation: dotPulse 4s ease-in-out infinite;
}

.hn-hero-particles .dot:nth-child(1) { top: 15%; left: 10%; }
.hn-hero-particles .dot:nth-child(2) { top: 25%; left: 85%; animation-delay: -1s; width: 4px; height: 4px; }
.hn-hero-particles .dot:nth-child(3) { top: 70%; left: 20%; animation-delay: -2s; }
.hn-hero-particles .dot:nth-child(4) { top: 60%; left: 75%; animation-delay: -0.5s; width: 2px; height: 2px; }
.hn-hero-particles .dot:nth-child(5) { top: 40%; left: 55%; animation-delay: -3s; width: 4px; height: 4px; }
.hn-hero-particles .dot:nth-child(6) { top: 80%; left: 50%; animation-delay: -1.5s; }
.hn-hero-particles .dot:nth-child(7) { top: 10%; left: 65%; animation-delay: -2.5s; width: 2px; height: 2px; }
.hn-hero-particles .dot:nth-child(8) { top: 50%; left: 30%; animation-delay: -3.5s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.5); }
}

/* ============================================
   Two-column layout
   ============================================ */
.hn-hero-inner {
    position: relative; z-index: 2;
    display: flex;
    align-items: center;
    gap: 48px;
}

.hn-hero-content {
    flex: 1; min-width: 0;
    text-align: left;
}

.hn-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(59,130,246,0.12); color: #60a5fa;
    font-size: 13px; font-weight: 600;
    padding: 8px 18px; border-radius: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(59,130,246,0.2);
    backdrop-filter: blur(8px);
    animation: fadeInLeft 0.6s ease-out;
}

.hn-hero-badge i { font-size: 12px; }

.hn-hero-title {
    font-size: 48px; font-weight: 800; color: #fff;
    line-height: 1.15; margin-bottom: 18px; letter-spacing: -0.5px;
    animation: fadeInLeft 0.6s ease-out 0.1s both;
}

.hn-hero-title span {
    background: linear-gradient(135deg, #3b82f6, #818cf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hn-hero-subtitle {
    font-size: 17px; color: #94a3b8; line-height: 1.7;
    margin-bottom: 32px; max-width: 520px;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

.hn-hero-actions {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    animation: fadeInLeft 0.6s ease-out 0.3s both;
}

.hn-hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 30px; font-size: 15px; font-weight: 600;
    border-radius: 12px; text-decoration: none; transition: all 0.25s ease; white-space: nowrap;
}

.hn-hero-btn--primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff;
    box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.hn-hero-btn--primary:hover {
    transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.45);
    color: #fff; text-decoration: none;
}

.hn-hero-btn--ghost {
    background: rgba(255,255,255,0.06); color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(4px);
}
.hn-hero-btn--ghost:hover {
    background: rgba(255,255,255,0.12); color: #fff; text-decoration: none;
}

.hn-hero-btn i { font-size: 13px; }

/* Stats */
.hn-hero-stats {
    display: flex; align-items: center; gap: 32px; margin-top: 36px;
    animation: fadeInLeft 0.6s ease-out 0.4s both;
}

.hn-hero-stat { text-align: left; }

.hn-hero-stat-value {
    font-size: 22px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 3px;
}

.hn-hero-stat-label {
    font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}

.hn-hero-stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.1); }

/* ============================================
   Right side — Animated SVG scene
   ============================================ */
.hn-hero-visual {
    flex: 0 0 420px;
    position: relative;
    height: 380px;
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

/* Central server rack */
.hn-vis-server {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 160px;
    background: linear-gradient(180deg, rgba(30,41,59,0.9), rgba(15,23,42,0.95));
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex; flex-direction: column;
    padding: 14px 12px; gap: 8px;
    z-index: 2;
}

.hn-vis-slot {
    height: 18px; border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative; overflow: hidden;
}

.hn-vis-slot::after {
    content: '';
    position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
    width: 5px; height: 5px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: blink 2s ease-in-out infinite;
}

.hn-vis-slot:nth-child(2)::after { animation-delay: -0.4s; }
.hn-vis-slot:nth-child(3)::after { animation-delay: -0.8s; }
.hn-vis-slot:nth-child(4)::after { animation-delay: -1.2s; }
.hn-vis-slot:nth-child(5)::after { animation-delay: -1.6s; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Orbiting elements */
.hn-vis-orbit {
    position: absolute;
    left: 50%; top: 50%;
    border: 1px dashed rgba(59,130,246,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbitSpin 20s linear infinite;
}

.hn-vis-orbit--1 { width: 240px; height: 240px; }
.hn-vis-orbit--2 { width: 340px; height: 340px; animation-duration: 30s; animation-direction: reverse; }

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating icons on orbits */
.hn-vis-icon {
    position: absolute;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 3;
    animation: iconFloat 6s ease-in-out infinite;
}

.hn-vis-icon--shield {
    background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.2);
    top: 5%; right: 15%;
    animation-delay: 0s;
}

.hn-vis-icon--cloud {
    background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2);
    top: 15%; left: 5%;
    animation-delay: -1.5s;
}

.hn-vis-icon--bolt {
    background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2);
    bottom: 10%; left: 10%;
    animation-delay: -3s;
}

.hn-vis-icon--globe {
    background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2);
    bottom: 15%; right: 5%;
    animation-delay: -4.5s;
}

.hn-vis-icon--cpu {
    background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2);
    top: 50%; left: -5%;
    animation-delay: -2s;
}

.hn-vis-icon--disk {
    background: rgba(236,72,153,0.15); color: #f472b6; border: 1px solid rgba(236,72,153,0.2);
    top: 50%; right: -5%;
    animation-delay: -3.5s;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Connection lines (pulse) */
.hn-vis-line {
    position: absolute;
    left: 50%; top: 50%;
    width: 1px;
    background: linear-gradient(180deg, rgba(59,130,246,0.3), transparent);
    transform-origin: top center;
    z-index: 1;
    animation: linePulse 3s ease-in-out infinite;
}

.hn-vis-line--1 { height: 80px; transform: translate(-50%, -50%) rotate(-30deg); animation-delay: 0s; }
.hn-vis-line--2 { height: 100px; transform: translate(-50%, -50%) rotate(30deg); animation-delay: -1s; }
.hn-vis-line--3 { height: 90px; transform: translate(-50%, -50%) rotate(150deg); animation-delay: -2s; }
.hn-vis-line--4 { height: 110px; transform: translate(-50%, -50%) rotate(-150deg); animation-delay: -0.5s; }
.hn-vis-line--5 { height: 70px; transform: translate(-50%, -50%) rotate(90deg); animation-delay: -1.5s; }
.hn-vis-line--6 { height: 85px; transform: translate(-50%, -50%) rotate(-90deg); animation-delay: -2.5s; }

@keyframes linePulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

/* ============================================
   Scroll Down Indicator — centered
   ============================================ */
.hn-hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 0; right: 0;
    z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    animation: fadeInDown 0.6s ease-out 0.8s both;
}

.hn-hero-scroll-text {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
}

.hn-hero-scroll-icon {
    width: 28px; height: 44px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 14px; position: relative;
    display: flex; justify-content: center;
}

.hn-hero-scroll-icon::before {
    content: ''; width: 4px; height: 8px;
    background: rgba(255,255,255,0.5); border-radius: 2px;
    position: absolute; top: 6px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    50% { opacity: 0.3; top: 22px; }
    100% { opacity: 1; top: 6px; }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Responsive
   ============================================ */
@media screen and (min-width: 1400px) {
    .hn-hero { padding: 180px 0 90px; }
    .hn-hero-visual { flex: 0 0 460px; height: 400px; }
}

@media (max-width: 1200px) {
    .hn-hero { padding: 150px 0 70px; }
    .hn-hero-title { font-size: 40px; }
    .hn-hero-visual { flex: 0 0 340px; height: 320px; }
    .hn-vis-server { width: 100px; height: 130px; }
    .hn-vis-orbit--1 { width: 200px; height: 200px; }
    .hn-vis-orbit--2 { width: 280px; height: 280px; }
    .hn-vis-icon { width: 38px; height: 38px; font-size: 15px; }
}

@media (max-width: 1100px) {
    .hn-hero-inner { flex-direction: column; text-align: center; gap: 32px; }
    .hn-hero-subtitle { margin-left: auto; margin-right: auto; }
    .hn-hero-actions { justify-content: center; }
    .hn-hero-stats { justify-content: center; }
    .hn-hero-stat { text-align: center; }
    .hn-hero-visual { flex: 0 0 auto; width: 320px; height: 280px; }
}

@media (max-width: 768px) {
    .hn-hero { padding: 130px 0 60px; }
    .hn-hero-title { font-size: 32px; }
    .hn-hero-subtitle { font-size: 15px; }
    .hn-hero-stats { gap: 20px; }
    .hn-hero-stat-value { font-size: 18px; }
    .hn-hero-btn { padding: 12px 24px; font-size: 14px; }
    .hn-hero-visual { width: 260px; height: 240px; }
    .hn-vis-server { width: 80px; height: 110px; padding: 10px 8px; }
    .hn-vis-orbit--1 { width: 170px; height: 170px; }
    .hn-vis-orbit--2 { width: 230px; height: 230px; }
    .hn-vis-icon { width: 32px; height: 32px; font-size: 13px; border-radius: 8px; }
}

@media (max-width: 576px) {
    .hn-hero { padding: 120px 0 50px; }
    .hn-hero-title { font-size: 26px; }
    .hn-hero-subtitle { font-size: 14px; }
    .hn-hero-actions { flex-direction: column; width: 100%; }
    .hn-hero-btn { width: 100%; justify-content: center; }
    .hn-hero-stats { gap: 12px; flex-wrap: wrap; }
    .hn-hero-stat-divider { display: none; }
    .hn-hero-scroll-text { font-size: 10px; }
    .hn-hero-visual { width: 220px; height: 200px; }
}
