/* ============================================================
   global.css — Axiom Capital Design System
   Dark fintech theme. Import this on every page.
   ============================================================ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-base:        #080d1a;
    --bg-surface:     #0d1526;
    --bg-elevated:    #111c35;
    --bg-hover:       #162040;

    /* Brand */
    --accent-blue:    #3b82f6;
    --accent-blue-dk: #2563eb;
    --accent-purple:  #8b5cf6;
    --accent-green:   #10b981;
    --accent-red:     #ef4444;
    --accent-amber:   #f59e0b;

    /* Text */
    --text-primary:   #f1f5f9;
    --text-muted:     #94a3b8;
    --text-subtle:    #64748b;

    /* Borders */
    --border:         rgba(255, 255, 255, 0.08);
    --border-hover:   rgba(59, 130, 246, 0.35);

    /* Gradients */
    --gradient-hero:  linear-gradient(135deg, #080d1a 0%, #0f1f4a 50%, #1a2f6e 100%);
    --gradient-blue:  linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    --gradient-green: linear-gradient(135deg, #047857 0%, #059669 100%);

    /* Shadows (dark-theme aware) */
    --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.4);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.6);
    --glow-blue:  0 0 20px rgba(59, 130, 246, 0.2);
    --glow-purple:0 0 20px rgba(139, 92, 246, 0.2);

    /* Radius — single curvature scale used across the entire site */
    --radius-xs:  6px;
    --radius-sm:  10px;
    --radius-md:  14px;
    --radius-lg:  18px;
    --radius-xl:  24px;
    --radius-pill: 999px;

    /* Spacing — consistent rhythm between sections, blocks, and inner elements */
    --space-section: 6rem;       /* top/bottom of full-width sections */
    --space-block:   3rem;       /* between subsections inside a section */
    --space-stack:   1.5rem;     /* between stacked cards/items */
    --space-inner:   2rem;       /* horizontal page padding */

    /* Transitions */
    --ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1rem; }
p  { color: var(--text-muted); line-height: 1.7; }
a  { color: var(--accent-blue); text-decoration: none; transition: color var(--ease); }
a:hover { color: #93c5fd; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-inner);
}

.section-pad {
    padding: var(--space-section) var(--space-inner);
}

section {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-section) var(--space-inner);
    scroll-margin-top: 90px;
}

.full-bleed {
    max-width: 100% !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--glow-blue);
    border-color: var(--border-hover);
}

.card-sm {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    transition: transform var(--ease), border-color var(--ease);
}

.card-sm:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

/* Site-wide image / preview corner rounding — keeps photos in step with cards */
img.rounded,
.rounded-img { border-radius: var(--radius-lg); }

/* ─── Buttons (shared shape for every variant) ──────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-blue);
    color: #fff;
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    color: #fff;
}

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

.btn-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.22);
}

.btn-ghost:hover {
    background: rgba(59, 130, 246, 0.18);
    transform: translateY(-2px);
    color: var(--accent-blue);
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
}

.badge-blue   { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.badge-purple { background: rgba(139,92,246,0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.25); }
.badge-green  { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.badge-amber  { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }

/* ─── Section Headers ────────────────────────────────────── */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 0.85rem;
}

.section-title h2 {
    margin-bottom: 0.85rem;
}

.section-title p {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ─── Stat Blocks ────────────────────────────────────────── */
.stat-block {
    text-align: center;
    padding: 1.75rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform var(--ease), border-color var(--ease);
}

.stat-block:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.stat-block .stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
}

.stat-block .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── Code Callout ───────────────────────────────────────── */
.code-callout {
    background: #040810;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.875rem;
    color: #c4b5fd;
    line-height: 1.8;
    overflow-x: auto;
}

.code-callout .comment { color: #475569; }
.code-callout .keyword { color: #60a5fa; }
.code-callout .value   { color: #6ee7b7; }
.code-callout .formula { color: #fcd34d; }

/* ─── Table ──────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:hover td { background: var(--bg-elevated); }
.data-table tbody tr:last-child td { border-bottom: none; }

.check { color: var(--accent-green); font-weight: 700; }
.cross  { color: var(--accent-red);   font-weight: 700; }

/* ─── Divider ────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-section) 0;
}

/* ─── Scroll Fade-in ─────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Glow Dot / Live Indicator ──────────────────────────── */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --space-section: 3.5rem; }
    .card  { padding: 1.5rem; }
    h1     { font-size: clamp(1.75rem, 6vw, 2.5rem); }
}

@media (max-width: 480px) {
    .btn { padding: 0.65rem 1.25rem; font-size: 0.875rem; }
}
