/* =============================================================
   Sigtrip Design System — shared.css
   Single source of truth for tokens + shared components.
   Loaded by all main pages. Keep page-specific CSS inline.
   ============================================================= */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg:           #09090b;   /* zinc-950 */
    --bg-card:      #18181b;   /* zinc-900 */
    --bg-muted:     #27272a;   /* zinc-800 */

    /* Borders */
    --border:        #27272a;
    --border-subtle: #1f1f22;

    /* Text */
    --text:        #fafafa;
    --text-muted:  #a1a1aa;
    --text-subtle: #71717a;

    /* Accent palette (7 colors, semantic roles) */
    --lime:   #B8FE50;   /* Primary CTA / active states     */
    --red:    #FB1150;   /* Alerts / emphasis                */
    --purple: #A091DD;   /* AI / Protocol / secondary accent */
    --yellow: #FFE51E;   /* Metrics / highlights             */
    --cyan:   #3CE9EA;   /* Technical / code / data          */
    --orange: #EF8731;   /* Partnerships / AI platforms      */
    --pink:   #ED528B;   /* Community / blog                 */

    /* Radius scale */
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-pill: 999px;

    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* Layout */
    --container: 1200px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ───────────────────────────────────────────────── */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9,9,11,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
}
.nav-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.5rem 0.875rem;
    transition: color 0.15s;
    text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-divider {
    color: var(--border);
    padding: 0 0.125rem;
    pointer-events: none;
    user-select: none;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.125rem;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}
.btn-sm  { font-size: 0.8rem; padding: 0.375rem 0.875rem; }
.btn-lg  { font-size: 0.95rem; padding: 0.75rem 1.5rem; }
.btn-primary { background: var(--lime); color: #000; }
.btn-primary:hover { background: #c8ff6a; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-muted); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }

/* ── HERO ───────────────────────────────────────────────── */
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* ── SECTION BASE ───────────────────────────────────────── */
section { padding: 5rem 0; }

.section-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-subtle);
    display: block;
    margin-bottom: 0.75rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 1.5rem;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; }

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 3rem;
}

/* ── BENTO GRID ─────────────────────────────────────────── */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.bento-cell {
    background: var(--bg-card);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}
.bento-cell.dark { background: #0e0e10; }
.bento-cell:hover { background: #1c1c1f; }
.bento-cell.dark:hover { background: #111114; }

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-card);
}
.stats-bar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
    padding: 1.75rem 2rem;
    border-right: 1px solid var(--border-subtle);
}
.stat-cell:last-child { border-right: none; }
.stat-cell-val {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-cell-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-subtle);
}

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    color: var(--text-muted);
}
.footer-logo span { color: var(--lime); }
.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-subtle);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    font-size: 0.8rem;
    color: var(--text-subtle);
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-muted); }

/* ── SCROLL REVEAL ──────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
                transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .col-8, .col-6, .col-4 { grid-column: span 12; }
    .col-3 { grid-column: span 6; }
    .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-cell:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    section { padding: 3.5rem 1.5rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .col-3 { grid-column: span 12; }
    .stat-cell { padding: 1.25rem 1rem; }
    .stats-bar-inner { grid-template-columns: 1fr 1fr; }
    .bento-cell { padding: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}
