﻿/* =====================================================
   AI PLATFORM LANDING - CUSTOM FIXES
   Адаптация Hero секции под 5 компонентов
   ===================================================== */

/* =====================================================
   HERO MAIN PILL - Увеличиваем под длинный заголовок
   ===================================================== */
.hero-main-pill {
    width: 95%;
    max-width: 900px;
    height: auto;
    min-height: 220px;
    padding: 40px 30px;
    border-radius: 24px;
    
    /* Advanced Glassmorphism & Tech BG */
    background: 
        linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.75)),
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px; /* Сетка 40px */
    
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Glowing Border */
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 0 60px rgba(59, 130, 246, 0.1),
        inset 0 0 20px rgba(59, 130, 246, 0.05),
        0 0 0 1px rgba(15, 23, 42, 0.5); /* Outer dark ring */
    
    position: relative;
    overflow: hidden;
}

/* Shine effect */
.hero-main-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine 8s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.pill-inner-main {
    padding: 0;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.hero-main-pill h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
    letter-spacing: -0.02em;
}

/* SUBTITLE CODE STYLE FIX */
.hero-main-pill .subtitle {
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: 24px;
    opacity: 1;
    
    /* Code Badge Style */
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #94a3b8; /* Comment color */
    letter-spacing: 0;
    
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero description */
.hero-description {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 580px;
    text-align: center;
    font-weight: 300;
}

/* Status badge */
.status-badge {
    font-size: 0.7rem;
    padding: 8px 16px;
    letter-spacing: 1.5px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: #34d399;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% { opacity: 1; box-shadow: 0 0 8px #10b981; }
    50% { opacity: 0.5; box-shadow: 0 0 0 #10b981; }
    100% { opacity: 1; box-shadow: 0 0 8px #10b981; }
}

/* =====================================================
   SCHEMATIC CONNECTORS
   ===================================================== */
.schematic-connectors {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: auto;
    min-height: 50px;
    margin-bottom: 0;
}

.connector-vertical-main {
    width: 0;
    height: 30px;
    border-left: 1px dashed rgba(59, 130, 246, 0.4);
    margin: 0 auto;
}

.connector-horizontal-bar {
    height: 0;
    border-top: 1px dashed rgba(59, 130, 246, 0.4);
    width: calc(80% + 12.8px); 
    position: relative;
    margin: 0 auto;
}

/* Удаляем псевдоэлементы старой реализации */
.connector-horizontal-bar::before {
    display: none;
}

.connector-vertical-legs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    height: 25px;
    margin-top: -1px;
    position: relative;
}

.leg {
    width: 0;
    height: 100%;
    border-left: 1px dashed rgba(59, 130, 246, 0.4);
    margin: 0 auto;
    position: relative;
}

.leg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: rgba(59, 130, 246, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.6);
    transform: translate(-50%, -50%);
}

/* =====================================================
   SCHEMATIC GRID
   ===================================================== */
.schematic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 50px;
    padding: 0 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-pill {
    height: 90px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    position: relative;
}

.stat-pill:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -5px rgba(59, 130, 246, 0.2);
}

/* Inner glow on hover */
.stat-pill::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0);
    transition: box-shadow 0.3s ease;
}

.stat-pill:hover::after {
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.pill-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 2;
}

.pill-icon {
    opacity: 0.9;
    color: #60a5fa;
    transition: transform 0.3s ease;
}

.stat-pill:hover .pill-icon {
    transform: scale(1.1);
    color: #93c5fd;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.pill-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.4));
}

.pill-value {
    display: none;
}

.pill-label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-weight: 500;
    color: #e2e8f0;
}

/* =====================================================
   VSCODE BLOCK / BENEFITS GRID
   ===================================================== */
.vscode-block {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

@media (min-width: 900px) {
    .vscode-block {
        position: sticky;
        top: 80px;
        margin-bottom: 40px; /* Нормальный отступ, задержка через JS */
        transition: opacity 0.4s ease;
    }
}

.vscode-content {
    padding: 16px 20px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .schematic-connectors {
        display: none;
    }

    .schematic-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .schematic-grid .stat-pill:nth-child(4),
    .schematic-grid .stat-pill:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    /* Центрируем schematic-top */
    .schematic-top {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-main-pill {
        width: calc(100% - 12px); /* Шире! Отступы по 6px с каждой стороны */
        max-width: 100%;
        margin: 0 auto;
        padding: 28px 20px; /* Нормальные внутренние отступы! */
        min-height: auto;
        border-radius: 16px;
    }

    .hero-main-pill .pill-inner-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-main-pill h1,
    .hero-main-pill .subtitle,
    .hero-main-pill .hero-description,
    .hero-main-pill .status-badge {
        margin: 0;
    }
    
    .hero-main-pill h1 {
        font-size: 1.15rem;
        line-height: 1.35;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    .hero-main-pill .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .hero-main-pill .subtitle {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .status-badge {
        font-size: 0.6rem;
        padding: 6px 12px;
        letter-spacing: 1px;
    }
    
    .hero-tech-btn {
        padding: 12px 22px;
        font-size: 0.75rem;
        gap: 8px;
    }
    
    .hero-tags {
        gap: 4px 8px;
        font-size: 0.7rem;
    }
    
    .schematic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .schematic-grid .stat-pill:nth-child(5) {
        grid-column: span 2;
    }
    
    .stat-pill {
        height: 75px;
    }
    
    /* VSCode block mobile improvements */
    .vscode-block {
        margin: 12px auto 24px;
        max-width: calc(100% - 12px);
        border-radius: 12px;
    }
    
    .vscode-content {
        padding: 12px 10px;
        font-size: 0.7rem;
    }
    
    .vscode-content .line {
        white-space: nowrap;
    }
    
    .vscode-content .line-num {
        min-width: 16px;
        margin-right: 10px;
        font-size: 0.65rem;
    }
    
    .vscode-header {
        padding: 8px 12px;
    }
    
    .vscode-title {
        font-size: 0.7rem;
    }
}

/* =====================================================
   SPACING
   ===================================================== */
.hero-schematic-container {
    padding-top: 80px;
    padding-bottom: 40px; /* Вернули нормальный отступ */
    gap: 20px;
}

.schematic-top {
    margin-bottom: 20px;
}

/* =====================================================
   BENEFITS SECTION (2 rows x 4 cols)
   ===================================================== */

/* =====================================================
   BENEFITS SECTION
   ===================================================== */
#benefits {
    margin-top: 60px;
    padding-bottom: 40px;
}

/* --- PRICING REDESIGN V2 --- */
.pricing-section {
    padding: 100px 5% 120px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.pricing-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 60px auto 0;
}

/* Glass Card */
.pricing-card-v2 {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 50px 30px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.pricing-card-v2:hover {
    transform: translateY(-12px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.card-tech-badge {
    position: absolute;
    top: 20px;
    right: 25px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

.tech-glow {
    color: #00d2ff !important;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.pricing-header-v2 {
    margin-bottom: 30px;
    text-align: center;
}

.plan-icon-wrapper-v2 {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transition: all 0.3s ease;
}

.pricing-card-v2:hover .plan-icon-wrapper-v2 {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
    color: #fff;
    transform: scale(1.1);
}

.plan-icon-svg {
    width: 26px;
    height: 26px;
}

/* Premium Icon Override */
.pricing-card-v2.featured .plan-icon-wrapper-v2 {
    background: rgba(0, 210, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.4);
    color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.pricing-card-v2.featured:hover .plan-icon-wrapper-v2 {
    background: rgba(0, 210, 255, 0.25);
    box-shadow: 0 0 35px rgba(0, 210, 255, 0.4);
    color: #fff;
}

.pricing-header-v2 h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.plan-desc {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-time {
    display: inline-block;
    align-self: center;
    background: rgba(59, 130, 246, 0.08);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 35px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-family: 'JetBrains Mono', monospace;
}

.plan-features-v2 {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    flex-grow: 1;
}

.plan-features-v2 li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.plan-features-v2 li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 8px #3b82f6;
}

.plan-features-v2 li:hover {
    color: #fff;
}

.plan-btn-v2 {
    display: block;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-btn-v2:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Featured (Premium) Styles */
.pricing-card-v2.featured {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.6);
}

.plan-popular {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    padding: 5px 20px;
    border-radius: 0 0 10px 10px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
}

.accent-glow {
    background: #3b82f6 !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.accent-glow:hover {
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.5);
    background: #fff !important;
    color: #000 !important;
}

.text-glow {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Hide legacy desktop grid */
.pricing-grid { display: none !important; }

/* Responsive Grid */
@media (max-width: 1300px) {
    .pricing-grid-new {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .pricing-grid-new {
        grid-template-columns: 1fr;
        padding: 0 20px;
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    /* Make mobile spacing tighter & consistent */
    .hero-schematic-container {
        padding-top: 0;
        padding-bottom: 24px;
        gap: 16px;
    }

    .schematic-top {
        margin-bottom: 12px;
    }

    #benefits {
        margin-top: 24px;
        padding-bottom: 24px;
    }

    .benefits-grid-custom {
        gap: 16px;
        margin-top: 24px;
        padding: 0 12px;
    }

    .benefit-item {
        padding: 16px;
        border-radius: 14px;
    }

    .pricing-section {
        padding: 56px 12px 64px;
    }

    .pricing-grid-new {
        padding: 0 12px;
        margin-top: 24px;
        gap: 16px;
    }

    .pricing-card-v2 {
        padding: 28px 16px 22px;
        border-radius: 16px;
    }

    .pricing-header-v2 {
        margin-bottom: 18px;
    }
}
/* --- END PRICING REDESIGN V2 --- */

.benefits-grid-custom {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Mobile default */
    gap: 24px;
    margin-top: 40px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Tablet */
@media (min-width: 640px) {
    .benefits-grid-custom {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1100px) {
    .benefits-grid-custom {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Benefit Item (Card Style Clone) */
.benefit-item {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Tech ID Label */
.benefit-tech-id {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.65rem;
    color: #3b82f6; 
    opacity: 0.5;
    letter-spacing: 1px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-tech-id {
    opacity: 1;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* Hover Effects */
.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Gradient border effect on hover */
.benefit-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.5), 
        rgba(139, 92, 246, 0.5), 
        rgba(236, 72, 153, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.benefit-item:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 130, 246, 0.1);
    border-color: transparent;
}

.benefit-item:hover::before,
.benefit-item:hover::after {
    opacity: 1;
}

/* Icon */
.benefit-icon {
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    color: #3b82f6;
    transition: all 0.3s ease;
}

/* SVG fix */
.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-item:hover .benefit-icon {
    background: #3b82f6;
    color: #ffffff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.benefit-item h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.benefit-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #94a3b8;
    flex-grow: 1;
}


/* Subtitle common style */
.section-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-top: -10px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}


/* Circuit background for the benefits grid */
.benefits-grid-custom::before {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}


/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
    padding: 100px 20px;
    background: #050505;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
}

.pricing-card.featured {
    background: rgba(0, 243, 255, 0.03);
    border-color: rgba(0, 243, 255, 0.2);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent-color);
    color: #000;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 800;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.pricing-header {
    margin-bottom: 30px;
}

.plan-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: 0.5;
    margin-bottom: 10px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li.disabled {
    opacity: 0.3;
}

.feat-icon {
    font-size: 1.1rem;
    font-weight: bold;
}

.plan-button {
    display: block;
    text-align: center;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.plan-button:hover {
    background: #fff;
    color: #000;
}

.plan-button.accent-bg {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

.plan-button.accent-bg:hover {
    background: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

@media (max-width: 1024px) {
    .pricing-card.featured {
        transform: none;
    }
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}


/* =====================================================
   PROBLEMS SECTION (System Diagnostics Style)
   ===================================================== */

.problems-section {
    position: relative;
    padding: 48px 0;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 768px) { .problems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .problems-grid { grid-template-columns: repeat(4, 1fr); } }

/* Error Card Style */
.problem-card {
    background: rgba(15, 10, 10, 0.6); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.15); /* Red border */
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Hover State - Red Alert */
.problem-card:hover {
    background: rgba(30, 10, 10, 0.8);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(239, 68, 68, 0.15),
        inset 0 0 20px rgba(239, 68, 68, 0.05);
    transform: translateY(-5px);
}

/* Header: ID + Status */
.problem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: 'Consolas', monospace;
    font-size: 0.7rem;
}

.problem-tech-id {
    color: #ef4444;
    opacity: 0.7;
    letter-spacing: 1px;
}

.problem-status {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 0.6rem;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.problem-status.blinking {
    animation: blinkRed 2s infinite;
}

@keyframes blinkRed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Icon */
.problem-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
    color: #ef4444;
    transition: 0.3s;
}

.problem-card:hover .problem-icon-wrapper {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.problem-icon {
    width: 24px;
    height: 24px;
}

/* Content */
.problem-card h3 {
    color: #fca5a5; /* Light Red */
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.problem-card p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Footer Solution Pill */
.problems-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 0 16px;
}

.solution-pill-fix {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1); /* Green tint */
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 12px 24px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    animation: floatPill 4s ease-in-out infinite;
}

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

.pill-icon-ok {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981; /* Green */
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
}
.pill-icon-ok svg {
    width: 14px;
    height: 14px;
}

.pill-text-content {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.pill-text-content .text-accent {
    color: #34d399; /* Green accent */
    font-weight: 600;
}


/* =====================================================
   TECHNOLOGIES SECTION (Tech Grid)
   ===================================================== */

.tech-grid-custom {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 768px) { .tech-grid-custom { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tech-grid-custom { grid-template-columns: repeat(3, 1fr); } }

/* Tech Card */
.tech-item.blur-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tech-icon-small {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.tech-item h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f1f5f9;
}

.tech-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Logos Row */
.tech-logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    padding: 0 16px;
}

.tech-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #64748b;
    padding: 10px 20px;
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 8px;
    transition: all 0.3s;
    cursor: default;
    background: rgba(255,255,255,0.02);
}

.tech-logo:hover {
    color: #e2e8f0;
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

/* =====================================================
   FOR WHO SECTION (Horizontal Timeline Style)
   ===================================================== */

.for-who-h-section {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.h-timeline-container {
    overflow: hidden; /* Изменено с auto для плавного параллакса */
    padding: 20px 20px 40px;
    position: relative;
}

.h-timeline-container::-webkit-scrollbar {
    display: none;
}

.h-timeline-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 30px;
    min-width: max-content;
    position: relative;
    padding: 20px 40px 50px;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1); /* Добавлена плавность */
    will-change: transform;
}

/* Horizontal Axis */
.h-timeline-axis {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    height: 1px;
    border-top: 1px dashed rgba(59, 130, 246, 0.4);
    z-index: 1;
}

.h-timeline-scan {
    position: absolute;
    top: -1px;
    left: 0;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    animation: hScan 6s linear infinite;
}

@keyframes hScan {
    0% { left: -150px; }
    100% { left: 100%; }
}

.h-timeline-item {
    width: 300px !important;
    flex-shrink: 0 !important;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Vertical connector to main axis */
.h-connector {
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.h-line-vertical {
    width: 1px;
    height: 55px;
    border-left: 1px dashed rgba(59, 130, 246, 0.4);
}

.h-dot {
    width: 10px;
    height: 10px;
    background: #0f172a;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-blue);
    position: absolute;
    bottom: -5px;
}

/* Card Style */
.h-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    z-index: 5;
}

.h-timeline-item:hover .h-card {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.h-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h-step-label {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.h-step-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #64748b;
}

.h-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.h-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.h-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #f8fafc;
}

.h-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* =====================================================
   MOBILE MENU Z-INDEX FIX
   Ensure mobile menu button is above AI chat widget
   ===================================================== */
@media (max-width: 768px) {
    /* Navigation should be above AI chat */
    nav.browser-nav {
        z-index: 10005 !important;
        position: fixed !important;
    }
    
    /* Mobile menu toggle always on top */
    .mobile-menu-toggle {
        position: relative !important;
        z-index: 10010 !important;
        pointer-events: auto !important;
    }
    
    /* Prevent AI chat from blocking menu button area */
    .ai-chat-widget,
    [data-ai-chat],
    .ai-chat-container {
        pointer-events: none;
    }
    
    .ai-chat-widget *,
    [data-ai-chat] *,
    .ai-chat-container * {
        pointer-events: auto;
    }
    
    /* When menu is open, it should be on top of everything */
    .mobile-menu-overlay.active {
        z-index: 10015 !important;
    }
    
    .mobile-menu-backdrop.active {
        z-index: 10012 !important;
    }
}
