/* ═══════════════════════════════════════════════════
   AEU Push Landing — Centralized Theme System
   Shares same variable names as dashboard.css
   ZERO hardcoded colors outside :root blocks.
   ═══════════════════════════════════════════════════ */

/* ─── Dark Theme (default) ─────────────────────── */
:root,
:root[data-theme="dark"] {
    --bg:             #0a0e17;
    --bg-card:        #111827;
    --bg-input:       #1a2235;
    --bg-hover:       #1e293b;
    --border:         #1e293b;
    --text:           #e2e8f0;
    --text-dim:       #94a3b8;
    --text-on-accent: #000000;
    --accent:         #06b6d4;
    --accent-hover:   #22d3ee;
    --accent-dim:     rgba(6, 182, 212, 0.10);
    --accent-subtle:  rgba(6, 182, 212, 0.05);
    --success:        #22c55e;
    --danger:         #ef4444;
    --radius:         12px;
    --radius-sm:      8px;
    --shadow:         0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg:      0 4px 12px rgba(0, 0, 0, 0.4);
    /* Landing-specific */
    --hero-gradient:  linear-gradient(135deg, #0a0e17 0%, #111827 100%);
    --code-bg:        #0d1117;
    --code-comment:   #6e7681;
    --code-kw:        #ff7b72;
    --code-str:       #a5d6ff;
}

/* ─── Light Theme ──────────────────────────────── */
:root[data-theme="light"] {
    --bg:             #f8fafc;
    --bg-card:        #ffffff;
    --bg-input:       #f1f5f9;
    --bg-hover:       #e2e8f0;
    --border:         #cbd5e1;
    --text:           #1e293b;
    --text-dim:       #64748b;
    --text-on-accent: #ffffff;
    --accent:         #0891b2;
    --accent-hover:   #0e7490;
    --accent-dim:     rgba(8, 145, 178, 0.10);
    --accent-subtle:  rgba(8, 145, 178, 0.05);
    --success:        #16a34a;
    --danger:         #dc2626;
    --shadow:         0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg:      0 4px 12px rgba(0, 0, 0, 0.12);
    --hero-gradient:  linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --code-bg:        #f6f8fa;
    --code-comment:   #6a737d;
    --code-kw:        #cf222e;
    --code-str:       #0a3069;
}

/* ─── Auto (OS preference) ─────────────────────── */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg:             #f8fafc;
        --bg-card:        #ffffff;
        --bg-input:       #f1f5f9;
        --bg-hover:       #e2e8f0;
        --border:         #cbd5e1;
        --text:           #1e293b;
        --text-dim:       #64748b;
        --text-on-accent: #ffffff;
        --accent:         #0891b2;
        --accent-hover:   #0e7490;
        --accent-dim:     rgba(8, 145, 178, 0.10);
        --accent-subtle:  rgba(8, 145, 178, 0.05);
        --success:        #16a34a;
        --danger:         #dc2626;
        --shadow:         0 1px 3px rgba(0, 0, 0, 0.08);
        --shadow-lg:      0 4px 12px rgba(0, 0, 0, 0.12);
        --hero-gradient:  linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        --code-bg:        #f6f8fa;
        --code-comment:   #6a737d;
        --code-kw:        #cf222e;
        --code-str:       #0a3069;
    }
}

/* ═══════════════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════════════ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════ */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    transition: background 0.3s;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════ */

.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: var(--hero-gradient);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-sub {
    font-size: 20px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ═══════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn.primary {
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
}

.btn.primary:hover {
    background: var(--accent-hover);
}

.btn.secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn.secondary:hover {
    background: var(--bg-hover);
}

/* ═══════════════════════════════════════════════════
   Features Grid
   ═══════════════════════════════════════════════════ */

.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: background 0.3s, border-color 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   How It Works
   ═══════════════════════════════════════════════════ */

.how-it-works {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.how-it-works h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
}

.flow {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.flow-step {
    flex: 1;
    text-align: center;
    padding: 0 12px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-on-accent);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}

.flow-step h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.flow-step p {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
}

.flow-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 2px;
    background: var(--border);
    margin-top: 20px;
}

/* ═══════════════════════════════════════════════════
   Code Example
   ═══════════════════════════════════════════════════ */

.code-example {
    padding: 80px 0;
}

.code-example h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 32px;
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 32px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: auto;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    transition: background 0.3s, color 0.3s;
}

.code-comment { color: var(--code-comment); }
.code-kw { color: var(--code-kw); }
.code-str { color: var(--code-str); }

/* ═══════════════════════════════════════════════════
   Comparison Table
   ═══════════════════════════════════════════════════ */

.comparison {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.comparison h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 32px;
}

.table-container {
    overflow-x: auto;
    max-width: 700px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

th {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td.yes { color: var(--success); font-weight: 600; }
td.no { color: var(--danger); }

/* ═══════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════ */

.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-dim);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 14px;
}

.footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .flow { flex-direction: column; align-items: center; }
    .flow-arrow { width: 2px; height: 24px; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
