:root {
    --primary: #d4af37;
    --primary-glow: rgba(212, 175, 55, 0.5);
    --secondary: #f9d423;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animations */
@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes iconPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0px var(--primary)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--primary)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--primary)); }
}

@keyframes circuitPulse {
    0% { opacity: 0.3; stroke-width: 1; }
    50% { opacity: 1; stroke-width: 2; }
    100% { opacity: 0.3; stroke-width: 1; }
}

@keyframes dataFlow {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

.ani-icon {
    display: inline-block;
    animation: iconPulse 3s infinite ease-in-out;
}

.card:hover i {
    animation: iconBounce 0.5s ease-in-out infinite;
}

/* Bot Animation Area */
.bot-container {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
}

.bot-core {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: iconPulse 2s infinite ease-in-out;
}

.circuit-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 var(--primary-glow); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

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

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Components */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    width: 110%;
    max-width: 600px;
    mask-image: linear-gradient(to bottom, black 80%, transparent);
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
}

/* Features */
.section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

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

.card {
    padding: 40px;
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

/* Dashboard UI */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--bg-card);
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    margin-top: 50px;
    list-style: none;
    flex: 1;
}

.sidebar-nav li {
    margin-bottom: 15px;
}

.sidebar-nav a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    transition: var(--transition);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--glass);
    color: var(--primary);
}

.main-content {
    flex: 1;
    padding: 30px 40px;
    background: #050505;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 1), rgba(30, 30, 30, 0.5));
    border: 1px solid var(--glass-border);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .change {
    font-size: 0.85rem;
    margin-top: 5px;
}

.change.up { color: #00ff88; }
.change.down { color: #ff4444; }

/* Chart Mockup */
.chart-container {
    height: 400px;
    margin-bottom: 30px;
    padding: 30px;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Animations for lines */
.chart-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 3s forwards ease-in-out;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

/* FAQ Accordion */
.faq-item {
    margin-bottom: 15px;
    padding: 0;
    overflow: hidden;
}

.faq-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-header:hover {
    background: rgba(212, 175, 55, 0.05);
}

.faq-header span {
    font-weight: 600;
}

.faq-header i {
    font-size: 0.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-content {
    padding: 0 30px 30px;
    max-height: 200px;
}

.faq-item.active .faq-header i {
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding-top: 140px; /* Increased padding to avoid collision with fixed header */
        text-align: center;
        height: auto; /* Allow content to flow naturally on small screens */
        min-height: 100vh;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-image img {
        max-width: 100%;
        margin-top: 50px;
    }
    .nav-links {
        display: none;
    }
    
    #mobile-menu-btn {
        display: block !important;
    }
    
    #side-menu.active {
        left: 0 !important;
    }

    #mobile-cta {
        display: none !important;
    }
    
    /* Dashboard Mobile Settings */
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100vh;
        z-index: 2000;
        width: 250px;
        transition: var(--transition);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        padding: 20px;
        padding-top: 80px; /* Space for mobile header */
    }
    
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 15px 20px;
        z-index: 1500;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .glass {
        grid-column: span 1 !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
