:root {
    /* Light mode - minimal use, site defaults to dark */
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #222222;
    --muted: #94A3B8;
    --border: rgba(255,255,255,0.06);
    --brand: #3B82F6;       /* Bright Fintech Blue */
    --brand-2: #FFB23A;     /* Torch Gold */
    --up: #2e7d32;          /* market green */
    --down: #c62828;        /* market red */
    --code-bg: #2d2d2d;
    --code-fg: #f8f8f2;
    --link: #3B82F6;
    --link-hover: #60A5FA;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --code-collapsed-height: 300px;
    --table-collapsed-height: 400px;
}

:root[data-theme="dark"] {
    /* Dark mode - primary theme */
    --bg: #0A1120;          /* Primary Navy */
    --card: #12192B;        /* Slightly lighter navy for cards */
    --text: #FFFFFF;        /* Primary White */
    --muted: #CBD5E1;       /* Light Gray Text */
    --muted-dark: #94A3B8;  /* Dark Gray Text */
    --border: rgba(255,255,255,0.06);
    --brand: #3B82F6;       /* Bright Fintech Blue */
    --brand-2: #FFB23A;     /* Torch Gold */
    --up: #22c55e;
    --down: #ef4444;
    --code-bg: #0A0E1A;
    --code-fg: #FFFFFF;
    --link: #3B82F6;
    --link-hover: #60A5FA;
    --shadow: 0 4px 12px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

/* Headings - modern, geometric */
h1, h2, h3, h4 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.75em 0;
    color: var(--text);
}
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.875rem; font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; font-weight: 600; }

/* Links */
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* Header - Clean, minimal fintech style */
header.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(10, 17, 32, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 0.2s ease;
}
.brand a:hover {
    text-decoration: none;
    opacity: 0.8;
}
.brand .logo {
    width: 40px;
    height: 40px;
    display: block;
}
.brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand .brand-line-1 {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}
.brand .brand-line-2 {
    font-size: 1rem;
    color: var(--brand);
    font-weight: 600;
}
nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
nav a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
nav a:hover {
    color: var(--text);
    background: rgba(44, 91, 217, 0.08);
    text-decoration: none;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.nav-dropdown-btn:hover {
    color: var(--text);
    background: rgba(44, 91, 217, 0.08);
}

.nav-dropdown-btn svg {
    transition: transform 0.2s ease;
}

.nav-dropdown.active .nav-dropdown-btn svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 200px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    color: var(--text);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
    border-radius: 0;
}

.nav-dropdown-menu a:hover {
    background: rgba(44, 91, 217, 0.12);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* Market strip */
.market-strip {
    background: linear-gradient(90deg, rgba(179,139,0,0.08), transparent 60%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}
.market-strip-inner {
    max-width: 1100px; margin: 0 auto; padding: 0.6rem 1rem;
    display: flex; gap: 1rem; align-items: center;
    color: var(--muted);
}
.badge {
    padding: 0.1rem 0.5rem; border-radius: 999px; border: 1px solid var(--border);
    background: var(--card); color: var(--muted); font-size: 0.85rem;
}
.chg-up { color: var(--up); }
.chg-down { color: var(--down); }

/* Main layout */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
article {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow);
}

/* Chart container card feeling */
#chart-container {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

/* Tables (Signals) */
#signal-table-container,
[id^="signal-table-"] { margin-top: 1rem; }

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
thead th {
    background: rgba(44, 91, 217, 0.08);
    color: var(--text);
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
}
tbody tr:nth-child(even) {
    background: rgba(44, 91, 217, 0.02);
}
tbody tr:hover {
    background: rgba(44, 91, 217, 0.05);
}

/* Profit/Loss row highlighting */
tbody tr.pnl-profit {
    background: color-mix(in oklab, var(--card) 90%, var(--up) 10%);
}
tbody tr.pnl-loss {
    background: color-mix(in oklab, var(--card) 90%, var(--down) 10%);
}

/* Code blocks and tabs */
.code-block-wrapper {
    position: relative;
    margin: 1rem 0;
}

.code-block-wrapper pre {
    background: var(--code-bg);
    color: var(--code-fg);
    padding: 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid var(--border);
    margin: 0;
    box-shadow: var(--shadow);
}

/* Collapsible code blocks */
.code-block-wrapper.collapsible.collapsed pre {
    max-height: var(--code-collapsed-height);
    overflow: hidden;
    position: relative;
}

.code-block-wrapper.collapsible.collapsed pre::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--code-bg));
    pointer-events: none;
}

/* Code controls container */
.code-controls {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
    z-index: 1;
}

/* Collapse toggle button */
.collapse-toggle {
    background: color-mix(in oklab, var(--card) 90%, var(--brand) 10%);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapse-toggle:hover {
    opacity: 1;
    background: color-mix(in oklab, var(--card) 80%, var(--brand) 20%);
}

.collapse-toggle svg {
    transition: transform 0.2s;
}

.collapse-toggle.expanded svg {
    transform: rotate(180deg);
}

/* Copy button */
.copy-button {
    background: color-mix(in oklab, var(--card) 90%, var(--brand) 10%);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.copy-button:hover {
    opacity: 1;
    background: color-mix(in oklab, var(--card) 80%, var(--brand) 20%);
}

.copy-button.copied {
    background: var(--up);
    color: white;
    opacity: 1;
}

/* Fallback for pre without wrapper (shouldn't happen, but just in case) */
pre {
    background: var(--code-bg); color: var(--code-fg);
    padding: 1rem; border-radius: 8px; overflow-x: auto;
    border: 1px solid #00000020;
}

code {
    background: color-mix(in oklab, var(--card) 60%, var(--bg) 40%);
    padding: 0.2rem 0.35rem; border-radius: 4px; font-size: 0.85rem;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
pre code { background: none; padding: 0; }

/* Table wrapper for collapsible tables */
.table-wrapper {
    position: relative;
    margin: 1rem 0;
}

.table-wrapper.collapsible.collapsed {
    max-height: var(--table-collapsed-height);
    overflow: hidden;
    position: relative;
}

.table-wrapper.collapsible.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

.table-collapse-toggle {
    background: var(--brand);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.1s;
}

.table-collapse-toggle:hover {
    background: color-mix(in oklab, var(--brand) 85%, white 15%);
}

.table-collapse-toggle:active {
    transform: scale(0.98);
}

.table-collapse-toggle svg {
    transition: transform 0.2s;
}

.table-collapse-toggle.expanded svg {
    transform: rotate(180deg);
}

.code-tabs .tab {
    display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem;
}
.code-tabs .tab button {
    background: transparent; border: 1px solid var(--border);
    padding: 0.4rem 0.8rem; cursor: pointer; border-radius: 6px 6px 0 0;
    color: var(--muted); font-weight: 600;
}
.code-tabs .tab button:hover { color: var(--text); }
.code-tabs .tab button.active {
    background: var(--card); color: var(--text); border-bottom-color: transparent;
}
.code-tabs .tabcontent { display: none; }

/* Footer - Minimal, clean */
footer {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 2rem 1.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
    text-decoration: none;
}

/* Buttons / toggles */
.button, button, [role="button"] {
    background: var(--brand); color: white; border: none;
    padding: 0.45rem 0.8rem; border-radius: 8px; cursor: pointer;
    box-shadow: var(--shadow); font-weight: 600;
}
.button.secondary { background: var(--brand-2); color: #222; }

/* Utilities */
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.small { font-size: 0.9rem; color: var(--muted); }

/* Responsive heading sizes (override previous sizes) */
h1 {
    font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
}
h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}
h3 {
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
}
h4 {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
    font-weight: 600; /* helps EB Garamond read larger next to body text */
}

/* Spacing above subheadings so they don't hug previous content */
:where(h2, h3, h4):not(:first-child) {
    margin-top: 1.1rem;
}
:where(h4):not(:first-child) {
    margin-top: 0.9rem; /* slightly tighter than h2/h3 */
}

/* --- Stats grid for summaries --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    margin-top: 0.75rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow);
}

.stat-card .label {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.stat-card .value {
    margin-top: 0.35rem;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

/* Key–value stack inside a card (Open Position) */
.kv {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}
.kv li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.12rem 0;
    border-bottom: 1px dashed color-mix(in oklab, var(--border) 85%, var(--bg) 15%);
}
.kv li:last-child { border-bottom: 0; }
.kv li span:first-child { color: var(--muted); }

/* P/L coloring (CSS-only via data attribute) */
.stat-card .value[data-pnl*="-"] { color: var(--down); }  /* contains '-' => loss */
.stat-card .value[data-pnl]:not([data-pnl*="-"]) { color: var(--up); } /* otherwise => profit */
/* Neutral placeholders like '-' or '—' */
.stat-card .value[data-pnl="-"],
.stat-card .value[data-pnl="—"] { color: var(--muted); }

/* Small + muted utility (reuses your .small and .mono utils) */
.muted { color: var(--muted); }

/* ========================================
   Breadcrumb Navigation
   ======================================== */
.breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--muted);
    font-weight: bold;
}

.breadcrumb a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: var(--text);
    font-weight: 500;
}

/* ========================================
   Home Page Styles
   ======================================== */

.home-hero {
    padding: 4rem 2rem;
    background: var(--card);
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-right {
    text-align: left;
}

.hero-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 8px 24px rgba(44, 91, 217, 0.15));
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(44, 91, 217, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(44, 91, 217, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 20% 50%, rgba(44, 91, 217, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 178, 58, 0.05) 0%, transparent 50%);
    background-size: 100px 100px, 100px 100px, 100% 100%, 100% 100%;
    pointer-events: none;
    opacity: 0.5;
}

.home-hero > * {
    position: relative;
    z-index: 1;
}

.home-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.hero-white {
    color: var(--text);
}

.hero-blue {
    color: var(--brand);
}

.hero-tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

/* Hero Value Proposition - Above the Fold */
.hero-value-prop {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.value-prop-headline {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 2rem 0;
    color: var(--text);
    border-bottom: none;
    padding-bottom: 0;
    line-height: 1.2;
}

.value-prop-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.metric-value {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}

.metric-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-divider {
    font-size: 1.5rem;
    color: var(--border);
    font-weight: 300;
}

.value-prop-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    color: var(--muted);
    max-width: 800px;
    margin: 2rem auto;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button-primary,
.cta-button-secondary {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.cta-button-primary {
    background: var(--brand);
    color: #fff;
    border: 2px solid var(--brand);
}

.cta-button-primary:hover {
    background: var(--link-hover);
    border-color: var(--link-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px color-mix(in srgb, var(--brand) 30%, transparent);
    text-decoration: none;
}

.cta-button-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.cta-button-secondary:hover {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    border-color: var(--brand);
    transform: translateY(-2px);
    text-decoration: none;
}

.home-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.home-section h2 {
    margin-top: 0;
}

.home-section ul {
    margin: 1rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: color-mix(in oklab, var(--card) 97%, var(--bg) 3%);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.feature-card code {
    background: color-mix(in oklab, var(--card) 85%, var(--brand) 15%);
    color: var(--text);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.category-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    position: relative;
    display: block;
}

.category-card:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(44, 91, 217, 0.12);
    transform: translateY(-4px);
    text-decoration: none;
}

.category-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 600;
}

.category-card .category-description {
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.category-card .category-count {
    color: var(--muted);
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.category-card .arrow {
    position: absolute;
    right: 1.75rem;
    bottom: 1.75rem;
    font-size: 1.5rem;
    color: var(--brand);
    transition: transform 0.2s ease;
}

.category-card:hover .arrow {
    transform: translateX(6px);
}



.cta-button {
    display: inline-block;
    background: var(--brand);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background: var(--link-hover);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Enhanced Hero Section */
.home-hero h1 {
    font-size: clamp(2.5rem, 2rem + 3vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 800px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-delay-1 { animation: fadeIn 0.6s ease-out 0.1s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeIn 0.6s ease-out 0.2s forwards; opacity: 0; }
.fade-in-delay-3 { animation: fadeIn 0.6s ease-out 0.3s forwards; opacity: 0; }
.fade-in-delay-4 { animation: fadeIn 0.6s ease-out 0.4s forwards; opacity: 0; }
.fade-in-delay-5 { animation: fadeIn 0.6s ease-out 0.5s forwards; opacity: 0; }
.fade-in-delay-6 { animation: fadeIn 0.6s ease-out 0.6s forwards; opacity: 0; }
.fade-in-delay-7 { animation: fadeIn 0.6s ease-out 0.7s forwards; opacity: 0; }
.fade-in-delay-8 { animation: fadeIn 0.6s ease-out 0.8s forwards; opacity: 0; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .fade-in-delay-1, .fade-in-delay-2, .fade-in-delay-3, 
    .fade-in-delay-4, .fade-in-delay-5, .fade-in-delay-6, .fade-in-delay-7, .fade-in-delay-8 {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Value Proposition Section */
.section-intro {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.audience-card {
    background: color-mix(in oklab, var(--card) 97%, var(--bg) 3%);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(44, 91, 217, 0.15);
}

.audience-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.audience-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.audience-card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Library Cards */
.library-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.library-card {
    background: color-mix(in oklab, var(--card) 98%, var(--bg) 2%);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.library-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.library-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.library-icon {
    font-size: 2.5rem;
}

.library-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.library-description {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    min-height: 3rem;
}

.library-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.library-badges img {
    height: 20px;
    display: inline-block;
}

.library-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.meta-item {
    color: var(--muted);
}

.meta-item strong {
    color: var(--text);
}

.library-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.library-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.library-link:hover {
    background: color-mix(in oklab, var(--card) 90%, var(--brand) 10%);
    border-color: var(--brand);
    text-decoration: none;
}

.library-link.secondary {
    background: transparent;
    border-style: dashed;
}

.library-link .arrow {
    color: var(--brand);
    transition: transform 0.3s ease;
}

.library-link:hover .arrow {
    transform: translateX(5px);
}

/* Quick Start Section */
.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.quick-start-step {
    text-align: center;
    padding: 1.5rem;
    background: color-mix(in oklab, var(--card) 97%, var(--bg) 3%);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.quick-start-step:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), #5B92FF);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    font-family: Inter, sans-serif;
    box-shadow: 0 4px 12px rgba(44, 91, 217, 0.25);
}

.quick-start-step h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.quick-start-step p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Popular Indicators */
.popular-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.popular-indicator {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: color-mix(in oklab, var(--card) 97%, var(--bg) 3%);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.popular-indicator:hover {
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    text-decoration: none;
}

.indicator-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    font-family: "EB Garamond", Georgia, serif;
    margin-bottom: 0.25rem;
}

.indicator-desc {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Category Icon */
.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* CTA Center */
.cta-center {
    text-align: center;
    margin-top: 2.5rem;
}

.cta-button-large {
    display: inline-block;
    background: var(--brand);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cta-button-large:hover {
    background: var(--link-hover);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: color-mix(in oklab, var(--card) 97%, var(--bg) 3%);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    border-color: var(--brand);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Community Section */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.community-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: color-mix(in oklab, var(--card) 97%, var(--bg) 3%);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
}

.community-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.community-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.community-card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Related Projects Section */
.related-projects {
    background: linear-gradient(135deg, 
        color-mix(in oklab, var(--card) 97%, var(--brand) 3%),
        color-mix(in oklab, var(--card) 99%, var(--brand-2) 1%)
    );
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.resource-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.resource-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-card li {
    margin-bottom: 0.75rem;
}

.resource-card li:last-child {
    margin-bottom: 0;
}

.resource-card a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.resource-card a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* ========================================
   Section/Indicator Listing Styles
   ======================================== */

.section-intro {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.indicator-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.indicator-card-chart {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    position: relative;
}

.indicator-card-chart::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--card) 100%);
    pointer-events: none;
    opacity: 0.3;
}

.indicator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.indicator-card:hover {
    border-color: var(--brand);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
    transform: translateY(-6px);
    text-decoration: none;
}

.indicator-card:hover::before {
    opacity: 1;
}

.indicator-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.indicator-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.indicator-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.indicator-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.indicator-tag-momentum {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.indicator-tag-trend {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.indicator-tag-volatility {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.indicator-tag-strength {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.indicator-tag-candle {
    background: rgba(255, 178, 58, 0.1);
    color: #FFB23A;
    border: 1px solid rgba(255, 178, 58, 0.2);
}

.indicator-tag-correlation {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.indicator-tag-other {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.indicator-tag-moving-average {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.indicator-tag-trend-indicator {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.indicator-tag-type {
    background: rgba(59, 130, 246, 0.08);
    color: var(--muted);
    border: 1px solid var(--border);
}

.indicator-card-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin: 0;
}

.indicator-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 0.25rem;
}

.indicator-card-link:hover {
    gap: 0.75rem;
    color: var(--link-hover);
}

.indicator-card-link svg {
    transition: transform 0.2s ease;
}

.indicator-card:hover .indicator-card-link svg {
    transform: translateX(2px);
}

/* Legacy support for old indicator-type class */
.indicator-type {
    display: inline-block;
    background: rgba(44, 91, 217, 0.1);
    color: var(--brand);
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    align-self: flex-start;
}

/* ========================================
   Categories Grid
   ======================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.category-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-card:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
    text-decoration: none;
}

.category-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 600;
}

.category-card .category-description {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.category-card .category-count {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

/* ========================================
   Search Bar
   ======================================== */

.indicators-search-section {
    margin: 3rem 0 2rem 0;
}

.indicators-search-section h2 {
    margin-bottom: 1rem;
}

.search-bar {
    position: relative;
    max-width: 600px;
    margin-bottom: 1rem;
}

.search-bar input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-bar input::placeholder {
    color: var(--muted);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-results-count {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 0.5rem 0 0 0;
}

/* ========================================
   Load More Button
   ======================================== */

.load-more-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: var(--link-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-container.hidden {
    display: none;
}

/* ========================================
   Search/Filter Bar (for future use)
   ======================================== */

.search-filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9375rem;
    font-family: Inter, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(44, 91, 217, 0.1);
}

.search-input::placeholder {
    color: var(--muted);
}

.filter-select {
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9375rem;
    font-family: Inter, sans-serif;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:hover {
    border-color: var(--brand);
}

.filter-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(44, 91, 217, 0.1);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    /* Navigation */
    .header-inner {
        padding: 1rem;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    nav a {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .nav-dropdown-btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .nav-dropdown-menu {
        left: auto;
        right: 0;
        min-width: 180px;
    }
    
    .brand .brand-text {
        font-size: 0.875rem;
    }
    
    .brand .logo {
        width: 32px;
        height: 32px;
    }
    
    /* Hero Section */
    .home-hero {
        padding: 2.5rem 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-left {
        order: -1;
    }
    
    .hero-right {
        text-align: center;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    /* Hero Value Proposition */
    .hero-value-prop {
        padding: 2rem 1.5rem;
    }
    
    .value-prop-metrics {
        gap: 1rem;
    }
    
    .metric-divider {
        display: none;
    }
    
    /* Main Content */
    main {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    article {
        padding: 1.5rem 1.25rem;
    }
    
    /* Grids */
    .categories-list,
    .indicators-grid,
    .library-cards,
    .audience-grid,
    .quick-start-grid,
    .features-list,
    .community-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    nav {
        width: 100%;
        justify-content: flex-start;
    }
}
