:root {
    --bg-main: #0B0B0E;
    --bg-secondary: #13131A;
    --bg-card: rgba(20, 20, 28, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-purple: #ff8c00;
    --accent-purple-dim: rgba(255, 140, 0, 0.2);
    --accent-gold: #ffa800;
    --accent-gold-dim: rgba(255, 168, 0, 0.2);
    --success: #00e676;
    --danger: #ff1744;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Background Particles */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.accent-purple { color: var(--accent-purple); text-shadow: 0 0 10px var(--accent-purple-dim); }
.accent-gold { color: var(--accent-gold); text-shadow: 0 0 10px var(--accent-gold-dim); }
.d-none { display: none !important; }

/* GSAP Reset */
.reveal { opacity: 0; transform: translateY(30px); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), #d45d00);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.7);
    transform: translateY(-2px);
}
.btn-secondary {
    background: linear-gradient(135deg, var(--accent-gold), #ff4800);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 168, 0, 0.4);
}
.btn-secondary:hover {
    box-shadow: 0 0 30px rgba(255, 168, 0, 0.7);
    transform: translateY(-2px);
}
.btn-outline {
    background:linear-gradient(135deg, var(--accent-purple), #d45d00);;
    border: 2px solid var(--accent-purple);
    color: #fff;;
}
.btn-outline:hover {
    background: var(--accent-purple-dim);
    box-shadow: 0 0 15px var(--accent-purple-dim);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(11, 11, 14, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}
.nav {
    display: flex;
    gap: 30px;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--accent-gold);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}
.lang-btn {
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 168, 0, 0.3);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 140, 0, 0.2);
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 168, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    min-width: 120px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    animation: slideDown 0.2s ease-out;
}
.lang-dropdown a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 15px;
    transition: background 0.2s;
    font-size: 0.9rem;
}
.lang-dropdown a:hover {
    background: var(--accent-gold-dim);
}

/* New GSAP Animation classes */
.scale-up { transform: scale(0.9); }
.fade-left { transform: translateX(-30px); }
.fade-right { transform: translateX(30px); }

@media (max-width: 768px) {
    .nav { display: none; }
    .nav-btn { display: none; }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    max-width: 800px;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}
.hero-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-image: 
        linear-gradient(rgba(255, 140, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
    z-index: -1;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
}

/* Section Common */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
}
section {
    padding: 100px 0;
}

/* Stats Section Widget */
.simulator-widget {
    background: var(--bg-card);
    border: 1px solid rgba(184, 41, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-mono);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,140,0,0.05);
    backdrop-filter: blur(10px);
}
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.pair { font-size: 1.2rem; font-weight: 700; }
.price.pos { color: var(--success); }
.price.neg { color: var(--danger); }
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 0.9rem;
}
.dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
}
.pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}
.log-container {
    height: 150px;
    overflow-y: hidden;
    position: relative;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    padding: 15px;
}
.log-item {
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 15px;
    opacity: 0.8;
}
.log-item.new-log {
    animation: slideDown 0.5s ease-out forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.timestamp { color: var(--text-secondary); }
.action.long { color: var(--success); }
.action.short { color: var(--danger); }
.result.success { color: var(--success); }

@media (max-width: 768px) {
    .widget-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .log-item { flex-wrap: wrap; gap: 5px; }
}

/* Audience Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.neo-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.neo-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}
.neo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.3);
}
.neo-card:hover::before { transform: scaleX(1); }
.card-icon { margin-bottom: 20px; }
.card-title { font-size: 1.5rem; margin-bottom: 15px; }
.card-text { color: var(--text-secondary); }

/* Program Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px; top: 0; height: 100%; width: 2px;
    background: rgba(255,168,0,0.2);
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}
.timeline-dot {
    position: absolute;
    left: 0; top: 0;
    width: 42px; height: 42px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-gold-dim);
}
.timeline-title { font-size: 1.4rem; margin-bottom: 10px; color: #fff; }
.timeline-content p { color: var(--text-secondary); }

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.hologram-cube {
    width: 300px; height: 300px;
    margin: 0 auto;
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 50px inset var(--accent-purple-dim), 0 0 50px var(--accent-purple-dim);
    animation: rotateSlowly 20s linear infinite;
    position: relative;
    transform-style: preserve-3d;
    border-radius: 20px;
}
@keyframes rotateSlowly {
    to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .hologram-cube { width: 200px; height: 200px; }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-cta { text-align: center; margin-bottom: 60px; }
.footer-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
.footer-subtitle { color: var(--text-secondary); font-size: 1.2rem; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
}
.footer-links a:hover { color: #fff; }
.social-icon { color: var(--text-secondary); transition: var(--transition); }
.social-icon:hover { color: var(--accent-purple); }

@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* Chatbot Styles */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}
.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), #d45d00);
    border: none;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: var(--transition);
}
.chat-toggle:hover {
    transform: scale(1.05);
}
.chat-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--danger);
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-main);
}
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    transform-origin: bottom right;
}
@keyframes slideUp {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-header {
    background: rgba(0,0,0,0.3);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.chat-manager-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.manager-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-gold));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.manager-name { font-weight: 600; font-size: 0.95rem; }
.manager-status { font-size: 0.8rem; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; opacity: 0.5; }
.chat-close:hover { opacity: 1; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}
.chat-bubble.bot {
    background: rgba(255,255,255,0.05);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.chat-bubble.user {
    background: var(--accent-purple);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.chat-time {
    font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 5px; text-align: right;
}

.chat-input-area {
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 10px;
}
#chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}
#chat-input:focus { border-color: var(--accent-purple); }
#chat-input:disabled { opacity: 0.5; cursor: not-allowed; }
#chat-send {
    background: var(--accent-purple);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
#chat-send:disabled {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
}
#chat-send:not(:disabled):hover {
    background: #d45d00;
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 60vh;
        bottom: 80px;
        right: 20px;
    }
}
