/* Global Styles - Engage AI */

* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;

    /* Colors */
    --color-bg: #ffffff;
    --color-bg-alt: #fafafa;
    --color-surface: #ffffff;
    --color-surface-alt: #f5f5f5;
    --color-surface-strong: #0a0a0a;
    --color-surface-strong-hover: #262626;
    --color-on-strong: #ffffff;
    --color-text: #0a0a0a;
    --color-text-secondary: #525252;
    --color-text-tertiary: #737373;
    --color-text-muted: #a3a3a3;
    --color-border: #e5e5e5;
    --color-border-strong: #d4d4d4;
    --color-border-subtle: #f4f4f5;
    --color-highlight: #f0f9ff;
    --color-info-bg: #e0f2fe;
    --color-info-text: #0284c7;
    --color-success-bg: #dcfce7;
    --color-success-text: #16a34a;
    --color-glass-bg: rgba(255, 255, 255, 0.9);
    --color-glass-border: #f0f0f0;
    --color-accent-start: #0066ff;
    --color-accent-end: #00d4ff;
    --color-brand-start: #8b5cf6;
    --color-brand-end: #d946ef;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 60px;
    --spacing-4xl: 80px;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.875rem;
    --font-size-sm: 0.9375rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 4.5rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 100px;

    /* Transitions */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
}

:root[data-theme='dark'] {
    color-scheme: dark;
    --color-bg: #0b0d10;
    --color-bg-alt: #121620;
    --color-surface: #141924;
    --color-surface-alt: #1b2230;
    --color-surface-strong: #f8fafc;
    --color-surface-strong-hover: #e2e8f0;
    --color-on-strong: #0b0d10;
    --color-text: #f8fafc;
    --color-text-secondary: #cbd5f5;
    --color-text-tertiary: #94a3b8;
    --color-text-muted: #64748b;
    --color-border: #243041;
    --color-border-strong: #334155;
    --color-border-subtle: #1f2937;
    --color-highlight: #0f1a2b;
    --color-info-bg: #0b1f33;
    --color-info-text: #38bdf8;
    --color-success-bg: #052e1a;
    --color-success-text: #4ade80;
    --color-glass-bg: rgba(9, 12, 18, 0.85);
    --color-glass-border: #1f2937;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme='auto'] {
        color-scheme: dark;
        --color-bg: #0b0d10;
        --color-bg-alt: #121620;
        --color-surface: #141924;
        --color-surface-alt: #1b2230;
        --color-surface-strong: #f8fafc;
        --color-surface-strong-hover: #e2e8f0;
        --color-on-strong: #0b0d10;
        --color-text: #f8fafc;
        --color-text-secondary: #cbd5f5;
        --color-text-tertiary: #94a3b8;
        --color-text-muted: #64748b;
        --color-border: #243041;
        --color-border-strong: #334155;
        --color-border-subtle: #1f2937;
        --color-highlight: #0f1a2b;
        --color-info-bg: #0b1f33;
        --color-info-text: #38bdf8;
        --color-success-bg: #052e1a;
        --color-success-text: #4ade80;
        --color-glass-bg: rgba(9, 12, 18, 0.85);
        --color-glass-border: #1f2937;
    }

    /* Fallback: if data-theme not set, use system preference */
    :root:not([data-theme]) {
        color-scheme: dark;
        --color-bg: #0b0d10;
        --color-bg-alt: #121620;
        --color-surface: #141924;
        --color-surface-alt: #1b2230;
        --color-surface-strong: #f8fafc;
        --color-surface-strong-hover: #e2e8f0;
        --color-on-strong: #0b0d10;
        --color-text: #f8fafc;
        --color-text-secondary: #cbd5f5;
        --color-text-tertiary: #94a3b8;
        --color-text-muted: #64748b;
        --color-border: #243041;
        --color-border-strong: #334155;
        --color-border-subtle: #1f2937;
        --color-highlight: #0f1a2b;
        --color-info-bg: #0b1f33;
        --color-info-text: #38bdf8;
        --color-success-bg: #052e1a;
        --color-success-text: #4ade80;
        --color-glass-bg: rgba(9, 12, 18, 0.85);
        --color-glass-border: #1f2937;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* Utility Classes */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (min-width: 769px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* Buttons */
.btn-primary {
    padding: 14px 28px;
    background: var(--color-surface-strong);
    color: var(--color-on-strong);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: -0.01em;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--color-surface-strong-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 14px 28px;
    background: var(--color-surface-alt);
    color: var(--color-text);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: -0.01em;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--color-border);
    transform: translateY(-1px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-accent-start) 0%, var(--color-accent-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0066ff;
}