/* ==========================================================================
   WHATSAPP AI MANAGER LANDING PAGE DESIGN SYSTEM (VANILLA CSS)
   ========================================================================== */

/* --- CSS Variables & Custom Theme --- */
:root {
    --bg-dark: #080A10;
    --bg-dark-card: rgba(22, 27, 38, 0.65);
    --bg-dark-nav: rgba(11, 15, 25, 0.75);
    
    --primary: #00E676; /* WhatsApp Cyber Green */
    --primary-hover: #00c853;
    --secondary: #00B0FF; /* Cyber Blue */
    --secondary-hover: #0091ea;
    --accent-cyan: #26D5F2; /* Cyber Cyan highlight */
    
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 230, 118, 0.15);
    --border-glow-blue: rgba(0, 176, 255, 0.15);
    
    --glow-primary: rgba(0, 230, 118, 0.3);
    --glow-secondary: rgba(0, 176, 255, 0.3);
    
    --danger: #EF4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

/* --- Typography & Text Utilities --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1.25rem;
}

.text-center { text-align: center; }
.text-green { color: var(--primary); }
.text-blue { color: var(--secondary); }
.highlight-cyan { color: var(--accent-cyan); font-weight: 800; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Layout Components --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0; /* Reduced from 7rem for better rhythm */
    position: relative;
    z-index: 2;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

/* --- Background Glow Effects (Visual WOW) --- */
.glow-bg-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    background: radial-gradient(circle at 0% 0%, rgba(0, 230, 118, 0.07) 0%, rgba(8, 10, 16, 0) 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.glow-bg-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    background: radial-gradient(circle at 100% 100%, rgba(0, 176, 255, 0.07) 0%, rgba(8, 10, 16, 0) 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    z-index: 1;
    pointer-events: none;
}

/* --- Language Switcher Control (CSS-based toggle) --- */
body.lang-ru [data-lang="en"] {
    display: none !important;
}

body.lang-en [data-lang="ru"] {
    display: none !important;
}

/* --- Buttons & CTAs --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, #4779EF 0%, #26D5F2 100%);
    color: #04060A;
    box-shadow: 0 4px 20px rgba(38, 213, 242, 0.25);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(38, 213, 242, 0.45);
    background: linear-gradient(135deg, #26D5F2 0%, #4779EF 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
    pointer-events: none;
}

.btn-glow:hover::after {
    transform: translate(-50%, -50%) scale(1.2);
}

.btn-glow-blue:hover {
    box-shadow: 0 0 25px rgba(0, 176, 255, 0.3);
    border-color: var(--secondary);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow-icon {
    transform: translateX(4px);
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-dark-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    gap: 0.5rem;
}

.nav-btn .icon-download {
    width: 16px;
    height: 16px;
}

/* --- LOGO & AI CORE ICON --- */
.chip-icon {
    filter: drop-shadow(0 0 4px rgba(0, 230, 118, 0.6));
    animation: neuro-glow 3s infinite ease-in-out;
    transform-origin: center;
}

@keyframes neuro-glow {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(0, 230, 118, 0.4));
        opacity: 0.8;
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(38, 213, 242, 0.8));
        opacity: 1;
    }
}

.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: 30px;
    position: relative;
    isolation: isolate;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition-smooth);
    z-index: 2;
}

.lang-btn.active {
    color: #04060A;
}

.switcher-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust sliding pill position based on active switch values */
body.lang-en .switcher-slider {
    transform: translateX(44px);
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    padding-top: 8.5rem; /* Reduced from 10rem */
    padding-bottom: 2rem; /* Reduced to close gap with next section */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem; /* ~14px */
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 90%;
    line-height: 1.8; /* Increased line-height for better readability */
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    max-width: 950px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3.5rem; /* Space from preview above */
    margin-bottom: 1rem; /* Reduced to close gap with next section */
}

.micro-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.info-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

/* --- WHATSAPP SIMULATION PREVIEW (REPLACES OLD DASHBOARD) --- */
.hero-preview {
    width: 100%;
    max-width: 950px;
    background: rgba(17, 20, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(71, 121, 239, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(38, 213, 242, 0.15);
    margin-top: 2rem;
    transition: var(--transition-smooth);
}
.hero-preview:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(38, 213, 242, 0.25);
    border-color: rgba(71, 121, 239, 0.5);
}

.mockup-header {
    background: rgba(22, 27, 38, 0.8);
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
}

.mockup-dots span:nth-child(1) { background-color: #FF5F56; }
.mockup-dots span:nth-child(2) { background-color: #FFBD2E; }
.mockup-dots span:nth-child(3) { background-color: #27C93F; }

.mockup-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-muted);
}

.mockup-body {
    background: #0B0E14;
    height: 380px;
}

/* Simulated WhatsApp Interface */
.mockup-whatsapp {
    display: flex;
    width: 100%;
    height: 100%;
}

.wa-sidebar {
    width: 260px;
    background: #111419;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .wa-sidebar {
        display: none; /* Hide sidebar on small mobile displays to save room */
    }
}

.wa-search {
    padding: 0.75rem;
}

.wa-search-bar {
    height: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.wa-chat-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.wa-chat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.wa-chat-item:hover, .wa-chat-item.active {
    background: rgba(255, 255, 255, 0.03);
}

.wa-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #FFFFFF;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.wa-chat-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.wa-chat-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-chat-last-msg {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-unread-badge {
    background: var(--primary);
    color: #04060A;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.wa-chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0B0F19;
    position: relative;
}

.wa-chat-header {
    background: #161B26;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.wa-header-info {
    text-align: left;
}

.wa-chat-status {
    font-size: 0.7rem;
    color: var(--primary);
}

.wa-messages-area {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 0),
        radial-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 0);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
}

.wa-msg-row {
    display: flex;
    width: 100%;
}

.wa-msg-left {
    justify-content: flex-start;
}

.wa-msg-right {
    justify-content: flex-end;
}

.wa-msg-bubble {
    max-width: 80%;
    background: #1E2533;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.75rem 1rem 0.5rem 1rem;
    border-radius: 8px;
    border-top-left-radius: 0;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.wa-msg-bubble p {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.wa-msg-time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.ai-bubble {
    background: linear-gradient(135deg, rgba(0, 92, 75, 0.9) 0%, rgba(2, 117, 83, 0.9) 100%);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: 8px;
    border-top-right-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.1);
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(38, 213, 242, 0.15);
    border: 1px solid rgba(38, 213, 242, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ai-badge svg {
    width: 10px;
    height: 10px;
}

/* Typing indicator bubble */
.typing-bubble {
    background: #1E2533;
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    border-top-right-radius: 0;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 12px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: wa-typing 1.4s infinite both;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wa-typing {
    0% { transform: translateY(0px); opacity: 0.4; }
    28% { transform: translateY(-4px); opacity: 1; }
    44% { transform: translateY(0px); opacity: 0.4; }
}

.wa-input-bar {
    background: #161B26;
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    text-align: left;
}

.wa-input-placeholder {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Dialogue Dynamic Transitions */
.fade-in-msg {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- SECTION GENERAL STYLING --- */
.section-title {
    font-size: 2rem;
    font-weight: 750;
    margin-bottom: 3.5rem;
    letter-spacing: -0.5px;
    text-wrap: balance;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
}

.section-subtitle {
    max-width: 700px;
    margin: -2.5rem auto 4rem auto;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* --- CARDS & PAIN POINTS --- */
.card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.card-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-primary);
}

.card-danger {
    border-left: 4px solid var(--danger);
}

.card-danger .card-icon {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.card-success {
    border-left: 4px solid var(--primary);
    background: linear-gradient(to right, rgba(0, 230, 118, 0.03), transparent);
}

.card-success .card-icon {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--primary);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: rgba(22, 27, 38, 0.85);
}

.card-danger:hover {
    border-color: rgba(239, 68, 68, 0.3) rgba(255,255,255,0.08) rgba(255,255,255,0.08) var(--danger);
}

.card-success:hover {
    border-color: rgba(0, 230, 118, 0.3) rgba(255,255,255,0.08) rgba(255,255,255,0.08) var(--primary);
}

/* --- FEATURES & CAPABILITIES --- */
.feature-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
}

.feature-icon.bg-green {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--primary);
}

.feature-icon.bg-blue {
    background: rgba(0, 176, 255, 0.08);
    border: 1px solid rgba(0, 176, 255, 0.2);
    color: var(--secondary);
}

.feature-icon.bg-purple {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #A855F7;
}

.feature-icon.bg-cyan {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #06B6D4;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* --- STEP-BY-STEP SYSTEM (RESTRUCTURED TO 2-COLUMNS) --- */
.steps-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .steps-layout {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 5rem;
    }
}

.steps-timeline {
    width: 100%;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    max-width: 100%;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), rgba(255,255,255,0.05));
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.step-num {
    width: 4rem;
    height: 4rem;
    background: #0F131D;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
    transition: var(--transition-bounce);
    margin-left: 0;
}

.step-item:nth-child(even) .step-num {
    color: var(--secondary);
}

.step-content {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    margin-top: 1rem;
    margin-left: 4.5rem;
    transition: var(--transition-smooth);
}

.step-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-primary);
}

/* Tooltip trigger badges */
.tech-badge.has-tooltip {
    position: relative;
    cursor: help;
}

.tooltip-icon {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.tech-badge.has-tooltip:hover .tooltip-icon {
    background: var(--secondary);
    color: #FFF;
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #161B26;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px rgba(0, 176, 255, 0.1);
    width: 280px;
    padding: 1rem;
    border-radius: 8px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-secondary);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #161B26 transparent transparent transparent;
}

.tech-badge.has-tooltip:hover .tooltip-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.icon-os {
    width: 12px;
    height: 12px;
}

.step-item:hover .step-num {
    border-color: currentColor;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.15);
}

.step-item:nth-child(even):hover .step-num {
    box-shadow: 0 0 25px rgba(0, 176, 255, 0.15);
}

.step-item:hover .step-content {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(22, 27, 38, 0.85);
}

/* --- STEP FLOW DIAGRAM (RIGHT COLUMN) --- */
.steps-diagram {
    position: sticky;
    top: 7rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.steps-visualization {
    width: 100%;
    max-width: 420px;
    height: 620px;
    background: rgba(11, 15, 25, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.vis-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 20px 20px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    z-index: 1;
}

.vis-box {
    width: 100%;
    background: rgba(22, 27, 38, 0.8);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.vis-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(22, 27, 38, 0.95);
    transform: translateY(-2px);
}

.vis-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vis-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.vis-icon-wrapper.text-blue {
    color: var(--secondary);
    border-color: rgba(0, 176, 255, 0.2);
    background: rgba(0, 176, 255, 0.05);
}

.vis-icon-wrapper.text-green {
    color: var(--primary);
    border-color: rgba(0, 230, 118, 0.2);
    background: rgba(0, 230, 118, 0.05);
}

.vis-icon-wrapper.text-cyan {
    color: var(--accent-cyan);
    border-color: rgba(38, 213, 242, 0.2);
    background: rgba(38, 213, 242, 0.05);
}

.vis-desc {
    text-align: left;
}

.vis-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.vis-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Connecting fibers (SVGs) - Redesigned to be vertical */
.vis-fiber {
    height: 50px;
    width: 20px;
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
}

.vis-fiber svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.pulse-path {
    animation: fiber-pulse 2s infinite linear;
}

@keyframes fiber-pulse {
    to {
        stroke-dashoffset: -40px;
    }
}

/* Server glow animations */
.vis-server {
    position: relative;
}

.server-glow {
    position: absolute;
    top: 50%;
    left: 21px;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.15;
    pointer-events: none;
    animation: server-blink 2s infinite;
}

@keyframes server-blink {
    0% { opacity: 0.1; }
    50% { opacity: 0.25; }
    100% { opacity: 0.1; }
}

/* AI Hologram glow rings */
.vis-ai {
    position: relative;
    border-color: rgba(38, 213, 242, 0.2);
}

.holo-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 12px;
    border: 1px solid var(--accent-cyan);
    opacity: 0.15;
    pointer-events: none;
    animation: holo-glow 3s infinite ease-in-out;
}

@keyframes holo-glow {
    0% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.03); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.15; }
}

/* --- LICENSE & TRIAL (PRICING CARD) --- */
.pricing-card {
    background: linear-gradient(135deg, rgba(22, 27, 38, 0.8) 0%, rgba(11, 15, 25, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .pricing-card {
        padding: 4.5rem 3.5rem;
    }
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), var(--secondary), transparent);
}

.pricing-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.pricing-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .pricing-title {
        font-size: 2.25rem;
    }
}

.pricing-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.pricing-alert {
    background: rgba(245, 158, 11, 0.05);
    border: 1px dashed rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    text-align: left;
    margin-bottom: 2.5rem;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.alert-title {
    font-size: 1rem;
    font-weight: 700;
    color: #F59E0B;
    margin-bottom: 0.35rem;
}

.alert-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.pricing-cta {
    display: flex;
    justify-content: center;
}

/* --- FINAL CTA CARD --- */
.section-final-cta {
    padding: 0 0 4rem 0; /* Removed top padding entirely */
}

.section-faq {
    padding-bottom: 1.5rem; /* Reduced bottom padding for FAQ to bring CTA closer */
}

.final-cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--secondary);
    padding: 1.1rem 2.2rem;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 0 25px rgba(0, 176, 255, 0.15);
}

.final-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 176, 255, 0.08) 100%);
    opacity: 1;
}

.final-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 176, 255, 0.15);
}

.cta-card-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-logo .logo-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.cta-logo .logo-text {
    font-size: 1.25rem; /* More substantial logo text */
}

.cta-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
}

.cta-slogan {
    font-size: 15px; /* Slightly larger for readability */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.cta-action {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
    white-space: nowrap;
}

.cta-arrow {
    color: var(--secondary);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.cta-arrow svg {
    width: 24px; /* Slightly larger arrow */
    height: 24px;
}

.final-cta-card:hover .cta-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* --- FOOTER & COMMUNITY --- */
.site-footer {
    background: rgba(5, 7, 12, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 2.5rem 0;
    z-index: 2;
    position: relative;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.15); /* Very subtle as requested */
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .copyright {
        padding: 0 1rem;
    }
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.footer-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.icon-tg {
    width: 20px;
    height: 20px;
}

/* --- CSS ANIMATIONS / TRANSITIONS --- */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="flip-up"] {
    transform: translateY(30px) rotateX(-10deg);
}

[data-aos="zoom-in"] {
    transform: scale(0.95);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1) rotate(0);
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 200;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px var(--glow-primary);
}

/* --- SCROLL HINT ARROW --- */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 1;
    transition: opacity 0.4s ease;
    animation: scroll-bounce 2s infinite ease-in-out;
}

.scroll-hint svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.6));
    color: var(--primary);
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ==========================================================================
   NEW UPDATES & REFINEMENTS
   ========================================================================== */

/* Переливающийся зеленоватый градиент как в логотипе */
.main-gradient-title {
    background: linear-gradient(135deg, #00E676 0%, #00B0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Кнопка с градиентным фоном и белым текстом внутри */
.btn-gradient-glow {
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #ffffff;
    background: linear-gradient(135deg, #00E676 0%, #00B0FF 100%);
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gradient-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 176, 255, 0.5);
}

/* Новый стиль для карточек болей (предупреждающий, но не отпугивающий желтый) */
.card-warning {
    border: 1px solid rgba(255, 179, 0, 0.3) !important;
    background: rgba(255, 179, 0, 0.03);
    border-left: 4px solid #FFB300 !important;
}
.card-warning .card-icon {
    background: rgba(255, 179, 0, 0.08);
    border: 1px solid rgba(255, 179, 0, 0.2);
    color: #FFB300 !important;
}

/* Позиционирование дескриптора в шапке */
.header-descriptor {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    opacity: 0.75;
    color: #ffffff;
    max-width: 400px;
    text-align: center;
    line-height: 1.3;
}

.text-warning {
    color: #FFB300 !important;
}

/* Иконки в карточках болей с разными цветами */
.card-icon.icon-green {
    color: var(--primary) !important;
    background: rgba(0, 230, 118, 0.08) !important;
    border: 1px solid rgba(0, 230, 118, 0.2) !important;
}
.card-icon.icon-blue {
    color: var(--secondary) !important;
    background: rgba(0, 176, 255, 0.08) !important;
    border: 1px solid rgba(0, 176, 255, 0.2) !important;
}
.card-icon.icon-purple {
    color: #A855F7 !important;
    background: rgba(168, 85, 247, 0.08) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
}
.card-icon.icon-cyan {
    color: #06B6D4 !important;
    background: rgba(6, 182, 212, 0.08) !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
}

@media (max-width: 992px) {
    .header-descriptor {
        display: none; /* скрываем на планшетах и мобилках, чтобы не ломать меню */
    }
}

/* --- STATS SECTION --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--secondary);
    background: rgba(0, 176, 255, 0.04);
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FAQ SECTION --- */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.faq-item summary {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.faq-link {
    color: var(--secondary);
    text-decoration: underline;
    transition: color 0.2s;
}

.faq-link:hover {
    color: var(--primary);
}
