/* ========================================
   Quant Terminal Design System
   Based on references from /quantterminal
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    /* 
    Color Palette 
    ----------------------------------------
    Backgrounds: Deep dark blue-black to slightly lighter panel blues
    */
    --bg-primary: #0a0a0b;
    /* Main Background */
    --bg-elevated: #161b22;
    /* Cards / Panels */
    --bg-input: #0d1117;
    /* Inputs */

    /* 
    Accents
    ----------------------------------------
    */
    --primary: #2b6cee;
    /* Tech Blue - Main Action */
    --accent-cyan: #00f5ff;
    /* Neon Cyan - Highlights/Data */
    --accent-pink: #ff007f;
    /* Neon Pink - Alerts/Special */

    /* 
    Typography 
    ----------------------------------------
    */
    --text-primary: #f1f5f9;
    /* Slate 100 */
    --text-secondary: #cbd5e1;
    /* Slate 300 */
    --text-muted: #64748b;
    /* Slate 500 */

    --font-headline: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    --font-mono: 'JetBrains Mono', 'Noto Sans SC', monospace;

    /* 
    Borders & Effects 
    ----------------------------------------
    */
    --border-color: rgba(69, 87, 112, 0.4);
    --border-hover: rgba(43, 108, 238, 0.6);
    --radius-sm: 2px;
    --radius-md: 4px;
    --shadow-glow: 0 0 10px rgba(43, 108, 238, 0.2);

    /* Functional */
    --success: #00f5ff;
    /* Cyan for success in this theme */
    --warning: #ff9f43;
    --danger: #ff007f;
    /* Pink/Red for danger */

    --transition-fast: 0.1s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Base Reset
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    /* Default to mono for terminal feel */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

/* ========================================
   Layout Utilities
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Common Components
   ======================================== */

/* Header */
.header {
    height: 64px;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 10px rgba(43, 108, 238, 0.4);
}

.logo-text {
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

/* Navigation */
.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    background: #1a5cde;
    /* Slightly Darker/Richer blue */
    box-shadow: 0 0 15px rgba(43, 108, 238, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-cta {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    transition: var(--transition-normal);
}

.btn-cta:hover {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 40px 20px;
    background: var(--bg-primary);
    margin-top: auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand-text {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col-title {
    display: block;
    margin-bottom: 20px;
    font-family: var(--font-headline);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-col-link {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col-link:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social-link {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-social-link:hover {
    color: var(--primary);
}

/* ========================================
   Landing Page Specifics
   ======================================== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 24px;
    background: radial-gradient(circle at 50% 10%, rgba(43, 108, 238, 0.08) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(43, 108, 238, 0.1);
    border: 1px solid rgba(43, 108, 238, 0.3);
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-cyan);
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.platform-preview {
    width: 100%;
    height: 400px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.platform-preview::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Feature Grid */
.features-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent-cyan);
    font-family: var(--font-headline);
    /* Text icon replacement */
}

.feature-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-muted);
    font-size: 14px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 80px 0 40px;
}

.section-label {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: 32px;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .nav {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}