@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Base Backgrounds - Deep navy / Charcoal */
    --bg-dark: #0b0f1a;
    --bg-panel: #121826;
    --bg-panel-hover: #161f30;
    
    /* Borders & Dividers */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(255, 255, 255, 0.15);
    
    /* Core Branding Colors */
    --primary: #0ea5e9;       /* Electric Blue / Sky */
    --primary-dark: #0284c7;  /* Darker interactive state */
    --accent-purple: #8b5cf6; /* Soft purple */
    --accent-green: #10b981;  /* Soft green for AI feel */
    
    /* Status Colors */
    --success: #22c55e;
    --risk: #ef4444;
    --warning: #f59e0b;
    
    /* Typography Colors */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1; /* Brighter Slate (was #94a3b8) */
    --text-muted: #94a3b8;    /* Muted Slate (was #64748b) */
    
    /* Fonts */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-data: 'JetBrains Mono', monospace; /* Bloomberg/Data feel */
}

/* Base Styles & Source Protection */
body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    
    /* Content Protection - Disable selection & dragging */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Re-enable selection for inputs and specific interactive areas */
input, textarea, [contenteditable="true"], .allow-select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Protect Branding */
img, .logo {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* General Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

a {
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.aivest-section {
    padding: 5rem 0;
    position: relative;
}

/* SaaS Panels (Clean, flat, bordered) */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Clean, modern SaaS corners */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.glass-panel:hover {
    transform: translateY(-2px);
    border-color: var(--border-active);
    background: var(--bg-panel-hover);
}

/* Subdued Accents - Less is More */
.glow-text-blue {
    color: var(--primary);
    text-shadow: none;
}

.glow-text-purple {
    color: var(--accent-purple);
    text-shadow: none;
}

.glow-text-green {
    color: var(--accent-green);
    text-shadow: none;
}

/* Data Numbers - Bloomberg Terminal Feel */
.data-metric {
    font-family: var(--font-data);
    font-weight: 500;
    letter-spacing: -0.05em;
}

/* Buttons */
.aivest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.aivest-btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.aivest-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.aivest-btn-outline {
    background: transparent;
    border-color: var(--border-active);
    color: var(--text-primary);
}

.aivest-btn-outline:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Section Slider */
.aivest-hero {
    position: relative;
    padding: 12rem 0 10rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.slider-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 10s ease-out;
    transform: scale(1.05); /* Slight zoom for ken burns effect */
    z-index: 0;
}

.slider-bg.active {
    opacity: 1;
    transform: scale(1);
}

.slider-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11, 15, 26, 0.6), var(--bg-dark));
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Key Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    text-align: left;
}

.feature-card i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.feature-icon-blue { color: var(--primary); }
.feature-icon-purple { color: var(--accent-purple); }
.feature-icon-green { color: var(--accent-green); }

/* Investment Categories Grid */
.category-badges {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-data);
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-stable {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-growth {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-risk {
    background: rgba(239, 68, 68, 0.1);
    color: var(--risk);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.category-card {
    padding: 2rem;
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.category-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.category-card ul li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.category-card ul li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--border-active);
    border-radius: 50%;
    margin-right: 12px;
}

/* Crypto & Auto Trading */
.trading-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trading-content {
    padding-right: 2rem;
}

.trading-visual {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
}

/* How It Works List */
.how-it-works-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
}

.step-number {
    font-family: var(--font-data);
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Adjustments for Trust & Metrics */
.data-metric {
    font-size: 2.5rem;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 992px) {
    .trading-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .aivest-btn {
        width: 100%;
    }
}


/* FontAwesome 6 & 5 Fixes - Force correct weight and family to prevent inheritance */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

.fa-regular, .far {
    font-weight: 400 !important;
}

.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
}

/* Footer */
#footer {
    background: #0a0b10;
    color: #ffffff;
}

#footer h4 {
    color: #ffffff;
    font-weight: 600;
}

#footer p, #footer li, #footer .copyright-text {
    color: #ffffff;
    opacity: 0.9;
    font-size: 0.95rem;
}

#footer i {
    color: var(--primary);
    margin-right: 10px;
}

#footer a {
    color: #ffffff;
    transition: all 0.2s ease;
}

#footer a:hover {
    color: var(--primary);
    opacity: 1;
}

#footer .footer-links {
    padding-left: 0 !important;
    list-style: none;
}

#footer .footer-links li {
    margin-bottom: 0.75rem;
}

#footer .footer-links li a {
    display: block;
    padding: 0;
}

/* End of Theme Styles */
