/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #FFFFFF;
    --primary-dark: #E0E0E0;
    --secondary: #2C2C2C;
    --accent: #00A8FF;
    --accent-dark: #0078D4;
    --success: #00A8FF;
    --warning: #FFFFFF;
    --danger: #FFFFFF;
    
    /* Backgrounds */
    --bg-primary: #1C1C1C;
    --bg-secondary: #2C2C2C;
    --bg-tertiary: #3C3C3C;
    --bg-card: rgba(44, 44, 44, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    
    /* Borders */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 168, 255, 0.4);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 168, 255, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition-normal);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%
    );
    pointer-events: none;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
}

.logo {
    color: #1C1C1C; /* Dark text for white navbar */
}

.logo-accent {
    background: linear-gradient(135deg, #0078D4, #2C2C2C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 2px;
    font-weight: 700; /* Make it bolder for better visibility */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #666666; /* Darker gray for white navbar */
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    background: #F0F0F0; /* Light gray for white navbar */
    border-radius: 8px;
    padding: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: #666666; /* Darker gray for white navbar */
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--accent);
    color: white; /* White text on blue background */
    transform: translateY(-1px);
}

.lang-btn:active {
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.4);
    background: var(--accent);
    color: var(--primary);
}

/* Special styling for navbar buttons */
.navbar .btn-primary {
    background: #1C1C1C !important;
    color: #FFFFFF !important;
    border: 2px solid #1C1C1C !important;
    box-shadow: 0 2px 8px rgba(28, 28, 28, 0.2) !important;
}

.navbar .btn-primary:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 28, 28, 0.3) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-accent);
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-arrow {
    transition: var(--transition-fast);
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(240, 240, 240, 0.05) 15%, 
        rgba(28, 28, 28, 0.8) 40%, 
        var(--bg-primary) 70%
    );
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 168, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 80%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start; /* Changed from center to flex-start */
    position: relative;
    z-index: 2;
    min-height: 500px; /* Fixed minimum height */
}

.hero-text {
    min-height: 450px; /* Optimal height for shorter description */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

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

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    height: 120px; /* Reduced height for shorter text */
    overflow: visible; /* Allow text to show */
    display: flex;
    align-items: flex-start; /* Align text to top */
}

.typed-text {
    color: var(--text-secondary);
    white-space: pre-wrap; /* Allow text wrapping */
    word-wrap: break-word;
}

.typed-text .highlight {
    color: var(--accent);
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), #0078D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--accent);
    animation: blink 0.7s infinite;
    margin-left: 2px;
    height: 1.2em;
    vertical-align: text-bottom;
}

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

.terminal-cursor {
    color: var(--accent);
    animation: blink 0.7s infinite;
}

.comment {
    color: var(--text-muted);
}

/* Cool animated dots for "..." */
.dots-animation {
    animation: dots-pulse 1.5s infinite;
    color: var(--accent) !important;
}

@keyframes dots-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Terminal Window */
.hero-visual {
    position: relative;
}

.terminal-window {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-slow);
}

.terminal-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-primary);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #FF5F57; }
.control.yellow { background: #FFBD2E; }
.control.green { background: #28CA42; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
}

.code-line {
    display: flex;
    margin-bottom: 8px;
}

.line-number {
    color: var(--text-muted);
    width: 30px;
    text-align: right;
    margin-right: 16px;
    user-select: none;
}

.code-content {
    flex: 1;
}

.keyword { color: #FF6B9D; }
.gradient-keyword {
    background: linear-gradient(135deg, #FFFFFF, #FF6B9D, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    background-size: 200% 100%;
    animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.italic-text {
    font-style: italic;
    color: inherit;
}

.white-text {
    color: #FFFFFF;
    font-weight: 600;
}
.module { color: #4ECDC4; }
.function { color: #45B7D1; }
.class { color: #E17055; }
.string { color: #96CEB4; }
.comment { color: var(--text-muted); }
.variable { color: #FFEAA7; }
.output { color: var(--success); }

.cursor {
    animation: blink 1s infinite;
}

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

.typing {
    /* Removed animation that might interfere with cursor */
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: #FFFFFF;
    color: var(--bg-primary);
}

.features .section-title {
    color: var(--bg-primary);
}

.features .section-description {
    color: #666666;
}

.features .feature-card {
    background: rgba(28, 28, 28, 0.05);
    border: 1px solid rgba(28, 28, 28, 0.1);
}

.features .feature-card:hover {
    background: rgba(28, 28, 28, 0.08);
    border-color: var(--accent);
}

.features .feature-title {
    color: var(--bg-primary);
}

.features .feature-description {
    color: #666666;
}

/* AI Flow Diagram Section */
.ai-flow-section {
    padding: 120px 0;
    background: 
        radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 80%, rgba(147, 51, 234, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%, #F8FAFC 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #CBD5E1;
    border-bottom: 1px solid #CBD5E1;
}

/* Particle Animation Background */
.particle-animation-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle-group {
    position: absolute;
    width: 350px;
    height: 350px;
    /* Debug border - remove after testing */
    /* border: 2px dashed rgba(255, 0, 0, 0.5); */
}

.particle-group.left {
    left: 3%;
    top: 35%;
    transform: translateY(-50%);
}

.particle-group.right {
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(59, 130, 246, 1);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.6), 0 0 12px rgba(59, 130, 246, 0.3);
}

.particle.gathering {
    animation: gather-to-center 2s ease-in-out forwards;
}

.particle.moving-to-screen {
    animation: move-to-screen 2s ease-in-out forwards;
}

.particle.pulsing {
    animation: particle-pulse 4s ease-in-out infinite;
}

.particle.dispersing {
    animation: particle-disperse 2s ease-in forwards;
}

/* Particle Animation Keyframes */
@keyframes gather-to-center {
    0% {
        opacity: 0;
        transform: translate(var(--start-x), var(--start-y)) scale(0) rotate(0deg);
    }
    20% {
        opacity: var(--particle-opacity, 0.8);
        transform: translate(var(--start-x), var(--start-y)) scale(1) rotate(90deg);
    }
    60% {
        opacity: var(--particle-opacity, 0.8);
        transform: translate(calc(var(--start-x) * 0.3), calc(var(--start-y) * 0.3)) scale(1.1) rotate(180deg);
    }
    100% {
        opacity: var(--particle-opacity, 0.8);
        transform: translate(175px, 175px) scale(1) rotate(360deg);
    }
}

@keyframes move-to-screen {
    0% {
        opacity: var(--particle-opacity, 0.8);
        transform: translate(175px, 175px) scale(1) rotate(0deg);
    }
    50% {
        opacity: var(--particle-opacity, 0.8);
        transform: translate(calc(175px + (50vw - 175px) * 0.5), calc(175px + (40vh - 175px) * 0.5)) scale(0.8) rotate(180deg);
    }
    80% {
        opacity: calc(var(--particle-opacity, 0.8) * 0.6);
        transform: translate(calc(175px + (50vw - 175px) * 0.8), calc(175px + (40vh - 175px) * 0.8)) scale(0.5) rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: translate(50vw, 40vh) scale(0.2) rotate(360deg);
    }
}

@keyframes particle-pulse {
    0% {
        opacity: calc(var(--particle-opacity, 0.8) * 0.7);
        transform: translate(calc(175px + var(--end-x)), calc(175px + var(--end-y))) scale(1.2) rotate(0deg);
        box-shadow: 0 0 4px rgba(59, 130, 246, 0.5), 0 0 8px rgba(59, 130, 246, 0.2);
    }
    25% {
        opacity: var(--particle-opacity, 0.8);
        transform: translate(calc(175px + var(--end-x) * 1.1), calc(175px + var(--end-y) * 1.1)) scale(1.4) rotate(90deg);
        box-shadow: 0 0 6px rgba(59, 130, 246, 0.6), 0 0 12px rgba(59, 130, 246, 0.3);
    }
    50% {
        opacity: calc(var(--particle-opacity, 0.8) * 1.2);
        transform: translate(calc(175px + var(--end-x) * 0.9), calc(175px + var(--end-y) * 0.9)) scale(1.6) rotate(180deg);
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.7), 0 0 16px rgba(59, 130, 246, 0.4);
    }
    75% {
        opacity: var(--particle-opacity, 0.8);
        transform: translate(calc(175px + var(--end-x) * 1.05), calc(175px + var(--end-y) * 1.05)) scale(1.3) rotate(270deg);
        box-shadow: 0 0 6px rgba(59, 130, 246, 0.6), 0 0 12px rgba(59, 130, 246, 0.3);
    }
    100% {
        opacity: calc(var(--particle-opacity, 0.8) * 0.7);
        transform: translate(calc(175px + var(--end-x)), calc(175px + var(--end-y))) scale(1.2) rotate(360deg);
        box-shadow: 0 0 4px rgba(59, 130, 246, 0.5), 0 0 8px rgba(59, 130, 246, 0.2);
    }
}

@keyframes particle-disperse {
    0% {
        opacity: calc(var(--particle-opacity, 0.8) * 0.7);
        transform: translate(calc(175px + var(--end-x)), calc(175px + var(--end-y))) scale(1.2) rotate(0deg);
        box-shadow: 0 0 4px rgba(59, 130, 246, 0.5), 0 0 8px rgba(59, 130, 246, 0.2);
    }
    30% {
        opacity: calc(var(--particle-opacity, 0.8) * 0.5);
        transform: translate(calc(175px + var(--end-x) * 1.5), calc(175px + var(--end-y) * 1.5)) scale(0.8) rotate(180deg);
        box-shadow: 0 0 2px rgba(59, 130, 246, 0.3), 0 0 4px rgba(59, 130, 246, 0.1);
    }
    70% {
        opacity: calc(var(--particle-opacity, 0.8) * 0.2);
        transform: translate(calc(175px + var(--end-x) * 2), calc(175px + var(--end-y) * 2)) scale(0.4) rotate(270deg);
        box-shadow: 0 0 1px rgba(59, 130, 246, 0.2);
    }
    100% {
        opacity: 0;
        transform: translate(calc(175px + var(--end-x) * 2.5), calc(175px + var(--end-y) * 2.5)) scale(0.1) rotate(360deg);
        box-shadow: none;
    }
}

/* Central Glow Effect */
.central-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    background: transparent;
    border-radius: 50%;
    opacity: 0;
}

.central-glow.active {
    animation: central-glow-pulse 2s ease-in-out;
}

@keyframes central-glow-pulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(6);
    }
}

/* Sphere Formation Effect */
.sphere-container {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
}

.sphere-container.active {
    opacity: 0;
    animation: sphere-glow 4s ease-in-out infinite;
}

@keyframes sphere-glow {
    0%, 100% {
        box-shadow: 0 0 0px transparent;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 0px transparent;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.ai-flow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2394A3B8' fill-opacity='0.02'%3E%3Ccircle cx='7' cy='7' r='1'/%3E%3Ccircle cx='27' cy='27' r='1'/%3E%3Ccircle cx='47' cy='47' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.3;
}

/* Computer Terminal */
.computer-terminal {
    max-width: 1200px;
    margin: 0 auto;
    background: #0B0C10;
    border-radius: 12px;
    border: 1px solid #1F2937;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(59, 130, 246, 0.15),
        0 0 120px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
    position: relative;
    z-index: 2;
}

.terminal-header {
    background: 
        linear-gradient(135deg, #0D1117 0%, #161B22 25%, #1C2128 50%, #161B22 75%, #0D1117 100%),
        radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #30363D;
    position: relative;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

.terminal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
    pointer-events: none;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f57; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #28ca42; }


.terminal-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    padding: 4px 12px;
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    color: #000000;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: status-blink 2s infinite;
}

@keyframes status-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.terminal-screen {
    background: #0B0C10;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(201, 209, 217, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(130, 170, 255, 0.01) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9D1D9' fill-opacity='0.008'%3E%3Ccircle cx='7' cy='7' r='1'/%3E%3Ccircle cx='27' cy='27' r='1'/%3E%3Ccircle cx='47' cy='47' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 600px;
    padding: 20px;
    color: #C9D1D9;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(11, 12, 16, 0.8);
}

/* Terminal Phases */
.terminal-phase {
    margin-bottom: 30px;
    opacity: 1;
    transition: all 0.5s ease;
}

.terminal-phase.hidden {
    display: none;
}

.phase-header {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.prompt {
    color: #58a6ff;
    font-weight: 600;
}

.command {
    color: #FF6B9D;
    font-weight: 500;
}

.loading-text {
    color: #FFFFFF;
    margin-bottom: 20px;
    animation: loading-dots 2s infinite;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFFFFF, #F8F8F8, #FFFFFF);
    background-size: 200% 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.5s ease;
    animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Chart Title Styling */
.chart-title {
    color: #FFFFFF !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 !important;
    text-align: center;
}

/* Formula Display - Matrix Style */
.formula-display {
    background: transparent;
    padding: 40px 30px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: flex-start;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
}

/* Matrix Formula Labels */
.matrix-formula-label {
    color: #8B949E;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 5px;
    text-shadow: none;
    opacity: 0;
    min-height: 20px;
    font-style: italic;
    line-height: 1.6;
}

/* Embedded Formula Block */
.embedded-formula {
    background: transparent;
    border: none;
    padding: 18px 0;
    margin: 8px 0 15px 0;
    width: 100%;
    opacity: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.embedded-formula.show {
    opacity: 1;
    transform: translateY(0);
}

.embedded-formula .katex {
    color: #E6EDF3 !important;
    font-size: 1.6em !important;
    text-shadow: 0 0 15px rgba(230, 237, 243, 0.2);
}

.embedded-formula .katex .base {
    color: #e2e8f0 !important;
}

@keyframes formula-embed {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Matrix Formula Lines */
.matrix-formula-line {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 20px;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
    margin: 15px 0;
    opacity: 0;
    white-space: nowrap;
    position: relative;
}

.matrix-formula-line.active {
    opacity: 1;
}

@keyframes label-appear {
    to { opacity: 1; }
}

/* Matrix Character Animation */
.matrix-char {
    display: inline-block;
    opacity: 0;
    animation: matrix-char-type 0.1s ease-out forwards;
}

.matrix-char.cursor {
    background: #00ff88;
    color: #0d1117;
    animation: matrix-cursor-blink 1s infinite;
}

@keyframes matrix-char-type {
    0% {
        opacity: 0;
        transform: scale(0.8);
        color: #ffffff;
        text-shadow: 0 0 20px #00ff88;
    }
    50% {
        color: #ffffff;
        text-shadow: 0 0 15px #00ff88;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        color: #00ff88;
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
    }
}

@keyframes matrix-cursor-blink {
    0%, 50% { 
        background: #00ff88;
        box-shadow: 0 0 10px #00ff88;
    }
    51%, 100% { 
        background: transparent;
        box-shadow: none;
    }
}

/* Formula Description */
.formula-description {
    color: #8B949E;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 12px 0 30px 0;
    padding-left: 0;
    padding-right: 20px;
    opacity: 0;
    max-width: 1000px;
    width: 100%;
    min-height: 60px;
    word-wrap: break-word;
    white-space: normal;
    text-align: left;
    font-style: italic;
}

/* New Monospace Terminal Styles */
.system-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #30363d;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* 3D Cube Styles */
.cube-3d {
    position: relative;
    width: 16px;
    height: 16px;
    transform-style: preserve-3d;
    transform: rotateX(-30deg) rotateY(45deg);
    animation: cube-rotate 4s linear infinite;
}

.cube-face {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid #FFFFFF;
    background: transparent;
}

.cube-front {
    transform: translateZ(8px);
}

.cube-back {
    transform: translateZ(-8px) rotateY(180deg);
}

.cube-right {
    transform: rotateY(90deg) translateZ(8px);
}

.cube-left {
    transform: rotateY(-90deg) translateZ(8px);
}

.cube-top {
    transform: rotateX(90deg) translateZ(8px);
}

.cube-bottom {
    transform: rotateX(-90deg) translateZ(8px);
}

@keyframes cube-rotate {
    0% { transform: rotateX(-30deg) rotateY(45deg); }
    100% { transform: rotateX(-30deg) rotateY(405deg); }
}

/* Header 3D Cube Styles */
.cube-3d-header {
    position: relative;
    width: 18px;
    height: 18px;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(35deg) rotateZ(15deg);
    animation: cube-rotate-header 5s linear infinite;
}

.cube-3d-header .cube-face {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid #C9D1D9;
    background: transparent;
}

.cube-3d-header .cube-front {
    transform: translateZ(9px);
}

.cube-3d-header .cube-back {
    transform: translateZ(-9px) rotateY(180deg);
}

.cube-3d-header .cube-right {
    transform: rotateY(90deg) translateZ(9px);
}

.cube-3d-header .cube-left {
    transform: rotateY(-90deg) translateZ(9px);
}

.cube-3d-header .cube-top {
    transform: rotateX(90deg) translateZ(9px);
}

.cube-3d-header .cube-bottom {
    transform: rotateX(-90deg) translateZ(9px);
}

@keyframes cube-rotate-header {
    0% { transform: rotateX(-20deg) rotateY(35deg) rotateZ(15deg); }
    100% { transform: rotateX(-20deg) rotateY(395deg) rotateZ(15deg); }
}

.system-header-text {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.system-text {
    color: #C9D1D9;
    font-size: 14px;
    font-weight: 600;
}

.formula-container {
    position: relative;
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid #FFFFFF;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.formula-container.show {
    opacity: 1;
    transform: translateY(0);
}

.formula-label-mono {
    color: #8B949E;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.formula-mono {
    color: #E6EDF3;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 16px;
    margin: 8px 0;
    padding: 0;
    background: transparent;
    border: none;
    display: inline-block;
    max-width: fit-content;
}

.formula-mono .katex {
    color: #E6EDF3 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.formula-mono .katex-display {
    margin: 0 !important;
    text-align: left !important;
}

.formula-description-mono {
    color: #8B949E;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 10px;
    opacity: 0;
    font-style: normal;
    transition: opacity 0.6s ease;
}

/* Checkmark styles removed */

@keyframes arrow-appear {
    to { opacity: 1; }
}

/* Terminal Text Styling */
.prompt {
    color: #C9D1D9;
    font-weight: 400;
}

.command {
    color: #FF6B9D;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.3);
}

.loading-text {
    color: #FFFFFF;
    font-weight: 400;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.phase-header {
    margin-bottom: 15px;
}

.phase-header .prompt::after {
    content: " ";
    margin-right: 5px;
}

/* Compilation and Analysis Messages */
.compilation-output .message,
.analysis-output .message {
    margin: 8px 0;
    padding: 4px 0;
}

.compilation-output .message.info,
.analysis-output .message.info {
    color: #82AAFF;
}

.compilation-output .message.success,
.analysis-output .message.success {
    color: #A9DC76;
}

.compilation-output .message.warning,
.analysis-output .message.warning {
    color: #FFD602;
}

.compilation-output .message.bullish,
.analysis-output .message.bullish {
    color: #A9DC76;
    font-weight: 500;
}

/* Terminal Title */
.terminal-title {
    color: #E6EDF3;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    text-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .formula-display {
        flex-direction: column;
        gap: 15px;
    }
    
    .formula-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .formula-block {
        width: 100%;
        max-width: 400px;
        height: 160px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .flow-arrow .arrow-symbol {
        font-size: 24px;
    }
    
    .katex-formula {
        font-size: 16px;
        min-height: 70px;
    }
    
    .katex-formula .katex {
        font-size: 1.1em !important;
    }
}

/* Compilation Output */
.compilation-output {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.compilation-line {
    margin-bottom: 8px;
    opacity: 0;
    animation: line-appear 0.3s ease-out forwards;
}

.compilation-line.success {
    color: #4ECDC4;
}

.compilation-line.warning {
    color: #ffa657;
}

.compilation-line.info {
    color: #ffffff;
}

@keyframes line-appear {
    to { opacity: 1; }
}

/* Analysis Output */
.analysis-output {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.analysis-line {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: line-appear 0.5s ease-out forwards;
}

.analysis-metric {
    color: #ffffff;
}

.analysis-value {
    color: #4ECDC4;
    font-weight: 600;
}

.analysis-value.bullish {
    color: #4ECDC4;
}

.analysis-value.bearish {
    color: #4ECDC4;
}

/* Chart Container */
.chart-container {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    color: #4ECDC4;
    margin: 0;
    font-size: 18px;
}

.chart-controls {
    display: flex;
    gap: 10px;
}

.timeframe {
    padding: 6px 12px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #7c3aed;
    cursor: default;
    font-size: 12px;
    user-select: none;
}

.timeframe.active {
    background: #00ff88;
    color: #0d1117;
    border-color: #00ff88;
}

#prediction-chart {
    width: 100%;
    height: 400px;
    background: #0d1117;
    border-radius: 4px;
}

/* AI Prediction Compilation Area */
.ai-compilation-area {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-top: 15px;
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
}

.ai-compilation-header {
    margin-bottom: 10px;
    font-size: 14px;
}

.ai-compilation-header .prompt {
    color: #58a6ff;
    font-weight: 600;
}

.ai-compilation-header .command {
    color: #FF6B9D;
    font-weight: 500;
}

.ai-compilation-output {
    min-height: 60px;
    max-height: 150px;
    overflow-y: auto;
}

.ai-prediction-line {
    margin-bottom: 5px;
    opacity: 0;
    animation: line-appear 0.3s ease-out forwards;
    font-size: 13px;
}

.ai-prediction-line.info {
    color: #ffffff;
}

.ai-prediction-line.success {
    color: #4ECDC4;
}

.ai-prediction-line.warning {
    color: #ffa657;
}

/* Trading Signals */
.signals-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

.signal-card {
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: signal-appear 0.6s ease-out forwards;
}

.signal-card.buy {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.signal-card.sell {
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.signal-card:nth-child(1) { animation-delay: 0.2s; }
.signal-card:nth-child(2) { animation-delay: 0.4s; }
.signal-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes signal-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.signal-type {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.signal-type.buy {
    color: #00ff88;
}

.signal-type.sell {
    color: #ff6b6b;
}

.signal-confidence {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.signal-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signal-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signal-label {
    color: #7c3aed;
    font-size: 12px;
    text-transform: uppercase;
}

.signal-value {
    color: #00ff88;
    font-weight: 600;
}

.signal-reasoning {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #30363d;
    color: #58a6ff;
    font-size: 12px;
    line-height: 1.4;
}


/* Formula Decryption Animation */
.formula-decrypting {
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

.formula-char {
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.formula-char.decrypting {
    animation: char-flicker 0.1s infinite;
    color: #00D4FF;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.formula-char.decrypted {
    animation: char-stabilize 0.3s ease-out forwards;
    color: #1a1a1a;
    text-shadow: none;
}

@keyframes char-flicker {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes char-stabilize {
    0% {
        color: #00D4FF;
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
        transform: scale(1.1);
    }
    50% {
        color: #00FF88;
        text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
        transform: scale(1.05);
    }
    100% {
        color: #1a1a1a;
        text-shadow: none;
        transform: scale(1);
    }
}

/* Section Dividers */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #9ca3af 50%, #e5e7eb 80%, transparent 100%);
    margin: 0;
    opacity: 0.6;
}


/* Market Modeling Evolution - Horizontal Flow Layout */
.market-modeling-evolution {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px 40px 20px; /* No top padding at all */
}

.evolution-card {
    background: transparent;
    padding: 0 50px 50px 50px; /* Removed top padding */
}

.card-header {
    text-align: center;
    margin: 0 0 30px 0; /* Removed top margin */
}

.card-title {
    font-size: 32px; /* Increased from 30px to 32px (+2) */
    font-weight: 700;
    color: #1C1C1C; /* Simple black color */
    margin-bottom: 8px;
}

.card-title.gradient-text {
    color: #1C1C1C; /* Override gradient with black color */
}

.card-subtitle {
    font-size: 16px;
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

.evolution-flow {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Top Row: MA → EMA → RSI */
.top-flow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}

/* Second Row: Volatility → GARCH */
.second-flow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Third Row: ARIMA → Kalman → AI */
.third-flow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.formula-block {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    position: relative;
    min-width: 320px;
    max-width: 380px;
    flex-shrink: 0;
}

.formula-block.animate {
    opacity: 1;
    transform: translateY(0);
}

.katex-formula {
    margin-bottom: 12px;
    font-size: 16px;
    color: #1f2937;
    line-height: 1.4;
}

.formula-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-bottom: 2px solid #1f2937;
    padding-bottom: 4px;
    display: inline-block;
}

.flow-connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.arrow-down {
    font-size: 24px;
    color: #3b82f6;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.arrow-down.animate {
    opacity: 1;
}

.connection-text {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.connection-text.animate {
    opacity: 1;
}

/* Horizontal Arrows */
.horizontal-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 8px;
    flex-shrink: 0;
}

.arrow-right {
    font-size: 28px;
    color: #ff0066; /* Red color like Python 'from' keyword */
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.arrow-right.animate {
    opacity: 1;
}

.arrow-text {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.arrow-text.animate {
    opacity: 1;
}

/* Removed bottom-flow - now using third-flow-row */

/* Remove AI Block Special Styling - now same as other blocks */

/* Responsive Design */
@media (max-width: 1200px) {
    .top-flow-row,
    .second-flow-row,
    .third-flow-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .horizontal-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .arrow-right {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .market-modeling-evolution {
        max-width: 100%;
        padding: 20px 10px;
    }
    
    .evolution-card {
        padding: 24px;
    }
    
    .katex-formula {
        font-size: 16px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .formula-block {
        padding: 16px;
    }
}

.flow-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.flow-icon {
    font-size: 56px;
    background: linear-gradient(135deg, #00D4FF, #00FF88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 212, 255, 0.4));
}

.flow-title {
    color: #1a1a1a;
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin: 0;
}

.flow-description {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.flow-description p {
    color: #4a4a4a;
    font-size: 20px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

.flow-diagram {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 1200px;
}

/* Chain Titles */
.chain-title {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* TA Chain (Vertical) */
.ta-chain {
    position: absolute;
    left: 100px;
    top: 0;
    width: 350px;
}

/* Formula Nodes */
.formula-node {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.formula-node.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.formula-node:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.node-title {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.node-equation {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.node-equation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    animation: data-flow 4s ease-in-out infinite;
}

.node-description {
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

/* Connection Arrows */
.connection-arrow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #1a1a1a, #666666);
    opacity: 0;
    animation: arrow-draw 1s ease-out forwards;
}

.connection-arrow::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #1a1a1a;
}

/* Econometric Models */
.econometric-models {
    position: absolute;
    right: 100px;
    top: 100px;
    width: 400px;
}

.formula-node.econometric {
    border-color: #cbd5e1;
    margin-bottom: 80px;
}

.econometric .node-title {
    color: #1a1a1a;
}

.econometric .node-equation {
    border-color: #cbd5e1;
    color: #1a1a1a;
}

.econometric .node-equation::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Connection Lines from TA to Econometric */
.connection-line {
    position: absolute;
    top: 50%;
    right: 100%;
    width: 200px;
    height: 2px;
    background: #1a1a1a;
    opacity: 0;
    animation: line-draw 1.5s ease-out forwards;
    animation-delay: 2s;
}

.connection-line::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #1a1a1a;
}


/* AI Final Node */
.ai-final {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
}


.ai-node {
    border: 3px solid #1a1a1a;
    background: #ffffff;
    position: relative;
    margin-bottom: 0;
}

.ai-node .node-title {
    color: #1a1a1a;
    font-size: 28px;
}

.ai-node .node-equation {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1a1a1a;
    font-size: 12px;
    padding: 20px;
}

.ai-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    filter: blur(15px);
    opacity: 0;
    animation: ai-glow-pulse 3s ease-in-out infinite;
    animation-delay: 5s;
    z-index: -1;
}

.particle-flow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.particle-flow::before,
.particle-flow::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 4s ease-in-out infinite;
}

.particle-flow::before {
    top: 20%;
    left: 10%;
    animation-delay: 1s;
}

.particle-flow::after {
    top: 60%;
    right: 15%;
    animation-delay: 2.5s;
}

/* Keyframe Animations */
@keyframes data-flow {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

@keyframes arrow-draw {
    0% { 
        opacity: 0;
        height: 0;
    }
    100% { 
        opacity: 1;
        height: 40px;
    }
}

@keyframes line-draw {
    0% { 
        opacity: 0;
        width: 0;
    }
    100% { 
        opacity: 1;
        width: 200px;
    }
}


@keyframes ai-glow-pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes particle-float {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    20% { 
        opacity: 1;
    }
    80% { 
        opacity: 1;
        transform: translateY(-20px);
    }
    100% { 
        opacity: 0;
        transform: translateY(-40px);
    }
}


/* Responsive Design for AI Flow Section */
@media (max-width: 768px) {
    .ai-flow-section {
        padding: 80px 0;
    }
    
    .flow-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .flow-icon {
        font-size: 44px;
    }
    
    .flow-title {
        font-size: 28px;
    }
    
    .flow-description {
        margin-bottom: 60px;
        padding: 0 20px;
    }
    
    .flow-description p {
        font-size: 16px;
    }
    
    .flow-diagram {
        position: static;
        min-height: auto;
        padding: 20px;
    }
    
    .ta-chain {
        position: static;
        width: 100%;
        margin-bottom: 60px;
    }
    
    .econometric-models {
        position: static;
        width: 100%;
        margin-bottom: 60px;
    }
    
    .ai-final {
        position: static;
        width: 100%;
        transform: none;
    }
    
    .formula-node {
        margin-bottom: 40px;
    }
    
    .connection-arrow,
    .connection-line,
    .convergence-lines {
        display: none;
    }
    
    .chain-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .node-title {
        font-size: 18px;
    }
    
    .node-equation {
        font-size: 13px;
        padding: 14px;
    }
    
    .ai-node .node-title {
        font-size: 24px;
    }
    
    .ai-node .node-equation {
        font-size: 11px;
        padding: 16px;
    }
}

/* Animated Dashboard Section */
.dashboard-showcase {
    padding: 120px 0;
    background: linear-gradient(135deg, #1C1C1C 0%, #2C2C2C 100%);
    position: relative;
    overflow: hidden;
}

.dashboard-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 120, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.dashboard-container {
    position: relative;
    z-index: 2;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin: 0;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 20px;
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator.live {
    background: linear-gradient(135deg, #00FF88, #00D4FF);
    color: #1C1C1C;
    animation: pulse-glow 2s ease-in-out infinite;
}

.timestamp {
    font-family: 'JetBrains Mono', monospace;
    color: #888;
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: panel-appear 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    height: 320px;
    display: flex;
    flex-direction: column;
}

.dashboard-panel:nth-child(1) { animation-delay: 0.1s; }
.dashboard-panel:nth-child(2) { animation-delay: 0.2s; }
.dashboard-panel:nth-child(3) { animation-delay: 0.3s; }
.dashboard-panel:nth-child(4) { animation-delay: 0.4s; }
.dashboard-panel:nth-child(5) { animation-delay: 0.5s; }

.dashboard-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.panel-header h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Panel Content Areas */
.token-info,
.buyers-list,
.social-feed,
.trading-chart,
.prediction-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.buyers-panel .panel-header + div,
.social-panel .panel-header + div,
.chart-panel .panel-header + div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.alert-badge {
    background: linear-gradient(135deg, #FF4757, #FF3742);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    animation: badge-pulse 1.5s ease-in-out infinite;
}

/* Token Panel Styles */
.token-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.token-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00D4FF, #0078D4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: token-appear 2s ease-out;
}

.token-symbol {
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.token-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 2s ease-in-out infinite;
}

.token-details {
    flex: 1;
}

.token-name {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.token-price {
    color: #00FF88;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.price-change {
    font-size: 14px;
    margin-left: 8px;
}

.price-change.positive {
    color: #00FF88;
}

.price-change.negative {
    color: #FF4757;
}

.token-volume {
    color: #888;
    font-size: 14px;
}

/* Buyers Panel Styles */
.progress-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00D4FF, #00FF88);
    border-radius: 3px;
    width: 87%;
    animation: progress-fill 3s ease-out;
}

.progress-text {
    color: #00FF88;
    font-size: 12px;
    font-weight: 600;
}

.buyers-list {
    flex: 1;
    position: relative;
    overflow-y: auto;
}

.world-map {
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><path d="M50,100 Q100,80 150,100 T250,100 Q300,90 350,100" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/></svg>') center/contain no-repeat;
    position: relative;
    margin-top: auto;
    flex-shrink: 0;
}

/* Social Panel Styles */
.mentions-counter {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mentions-count {
    color: #00D4FF;
    font-weight: 700;
    font-size: 18px;
    animation: counter-update 0.5s ease-out;
}

.social-feed {
    flex: 1;
    position: relative;
    overflow-y: auto;
}

/* Chart Panel Styles */
.chart-controls {
    display: flex;
    gap: 8px;
}

.timeframe-btn {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #888;
    font-size: 12px;
    cursor: default;
    user-select: none;
}

.timeframe-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00D4FF;
    color: #00D4FF;
}

.trading-chart {
    position: relative;
    flex: 1;
    margin-top: 20px;
    min-height: 150px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-tooltip {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    opacity: 0;
    animation: tooltip-appear 1s ease-out 2s forwards;
}

.tooltip-price {
    color: #00D4FF;
    font-weight: 700;
    font-size: 16px;
}

.tooltip-volume,
.tooltip-change {
    color: #888;
    font-size: 12px;
}

/* Prediction Panel Styles */
.confidence-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.confidence-label {
    color: #888;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confidence-value {
    color: #00FF88;
    font-weight: 700;
    font-size: 16px;
    font-family: 'JetBrains Mono', monospace;
}

.prediction-content {
    margin-top: 24px;
}


/* Action Recommendation */
.prediction-action-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-recommendation {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.1));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.action-recommendation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: scan-line 3s ease-in-out infinite;
}

.action-type {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00FF88, #00D4FF);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1C1C1C;
}

.action-icon svg {
    width: 20px;
    height: 20px;
}

.action-details {
    flex: 1;
}

.action-text {
    color: #00FF88;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-subtitle {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Target Information */
.target-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
}

.target-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.target-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.target-timeframe {
    background: rgba(0, 212, 255, 0.2);
    color: #00D4FF;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.target-value-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.target-percentage {
    color: #00FF88;
    font-size: 28px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    animation: target-grow 3s ease-out;
}

.target-arrow {
    color: #00FF88;
    width: 24px;
    height: 24px;
    animation: arrow-float 2s ease-in-out infinite;
}

.target-arrow svg {
    width: 100%;
    height: 100%;
}

/* Risk Assessment */
.risk-assessment {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 165, 0, 0.5);
}

.risk-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.risk-label {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-value {
    font-weight: 600;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.risk-value.moderate {
    color: #FFA500;
}

/* Enhanced Animations */
@keyframes scan-line {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes arrow-float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-3px) rotate(5deg); 
    }
}

/* Animations */
@keyframes panel-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.6); }
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes token-appear {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(-90deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes progress-fill {
    from { width: 0%; }
    to { width: 87%; }
}

@keyframes counter-update {
    0% { transform: scale(1.2); color: #00FF88; }
    100% { transform: scale(1); }
}

@keyframes tooltip-appear {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes action-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 0 30px rgba(0, 255, 136, 0.5); }
}

@keyframes target-grow {
    0% { font-size: 16px; }
    100% { font-size: 32px; }
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--secondary));
    border: 2px solid var(--border-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-normal);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: var(--accent);
}

.feature-card:hover .feature-icon svg {
    color: var(--primary);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Analysis Tools Section */
.analysis-tools {
    padding: var(--section-padding);
}

.tools-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.tool-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    background: var(--bg-tertiary);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: var(--bg-primary);
}

.tool-content {
    position: relative;
    min-height: 400px;
}

.tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
    pointer-events: none;
}

.tab-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tool-demo {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 30px;
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-primary);
}

.demo-header h4 {
    font-size: 18px;
    font-weight: 600;
}

.status-indicator {
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #FFFFFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.live {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Demo Metrics */
.demo-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.metric-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    width: 120px;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-bar.danger .progress-fill {
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

/* DeFi Stats */
.defi-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-primary);
}

.stat-title {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stat-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-change {
    font-size: 12px;
    font-weight: 500;
}

.stat-change.positive { color: var(--accent); }
.stat-change.negative { color: var(--text-muted); }

/* Indicators Grid */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
}

.indicator-name {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.indicator-value {
    font-weight: 600;
    font-size: 14px;
}

.indicator-value.bullish { color: var(--accent); }
.indicator-value.bearish { color: var(--text-muted); }

/* Sentiment Chart */
.sentiment-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sentiment-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.platform {
    font-weight: 500;
    min-width: 80px;
    color: var(--text-secondary);
}

.sentiment-bar {
    flex: 1;
    height: 20px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
}

.sentiment-positive {
    background: var(--accent);
}

.sentiment-neutral {
    background: var(--text-secondary);
}

.sentiment-negative {
    background: var(--text-muted);
}

.sentiment-score {
    font-weight: 600;
    min-width: 40px;
    text-align: right;
    color: var(--accent);
}

/* Community Section */
.community {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(240, 240, 240, 0.05) 15%, 
        rgba(28, 28, 28, 0.8) 40%, 
        var(--bg-primary) 70%
    );
}

.community::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 168, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.community-features {
    margin-top: 40px;
}

.community-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

/* Telegram Preview */
.telegram-preview {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    overflow: hidden;
    max-width: 400px;
    margin-left: auto;
}

.telegram-header {
    background: var(--bg-tertiary);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-primary);
}

.telegram-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
}

.telegram-name {
    font-weight: 600;
    font-size: 16px;
}

.telegram-status {
    font-size: 12px;
    color: var(--text-muted);
}

.telegram-messages {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.message-content {
    font-size: 14px;
    line-height: 1.5;
}

.typing-message {
    border-left-color: var(--warning);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing-dot 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-dot {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* CTA Section */
.cta {
    padding: var(--section-padding);
    background: 
        linear-gradient(135deg, rgba(0, 168, 255, 0.08), rgba(255, 255, 255, 0.02)),
        var(--bg-primary);
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-btn {
    font-size: 18px;
    padding: 20px 40px;
    box-shadow: var(--shadow-glow);
}

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

.cta-guarantee {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.guarantee-icon {
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 40px 0 30px;
    border-top: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand .logo {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.footer-brand {
    flex: 1;
    max-width: 500px;
}

.footer-brand .logo-accent {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 12px;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .community-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .telegram-preview {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-primary);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .language-switcher {
        align-self: center;
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-tabs {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        justify-content: center;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .terminal-window {
        transform: none;
    }
    
    .defi-stats {
        grid-template-columns: 1fr;
    }
    
    .indicators-grid {
        grid-template-columns: 1fr;
    }
    
    .sentiment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .platform {
        min-width: auto;
    }
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding);
    background: #FFFFFF;
    position: relative;
}

.pricing-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing .section-title {
    color: #1A1A1A;
}

.pricing .section-description {
    color: #666666;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.pricing-plan {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.pricing-plan.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(0, 168, 255, 0.05) 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 168, 255, 0.2);
}

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

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

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

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 15px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.price-period {
    font-size: 18px;
    color: #666666;
    font-weight: 500;
}

.plan-features {
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 0;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.feature span {
    color: #1A1A1A;
    font-size: 16px;
    line-height: 1.5;
}

.plan-description {
    color: #2C2C2C;
    line-height: 1.6;
    font-size: 15px;
    text-align: left;
    padding: 20px;
    background: #F8F9FA;
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    margin-top: auto;
    border: 1px solid #E9ECEF;
}

.plan-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    margin-top: auto;
    border: 2px solid var(--accent);
}

.plan-cta-btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.3);
}

.plan-cta-btn.featured-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.plan-cta-btn.featured-btn:hover {
    box-shadow: 0 8px 30px rgba(0, 168, 255, 0.4);
    transform: translateY(-3px);
}

.plan-cta-btn .telegram-icon {
    width: 20px;
    height: 20px;
}

.plan-cta-btn .cta-text {
    font-weight: 600;
}

/* Responsive Design for Pricing */
@media (max-width: 768px) {
    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .pricing-plan {
        padding: 30px 20px;
    }
    
    .pricing-plan.featured {
        transform: none;
    }
    
    .pricing-plan.featured:hover {
        transform: translateY(-5px);
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .plan-name {
        font-size: 20px;
    }
}
