/* tanso.market :: Fintech Trust Blue Carbon Credits Exchange */

:root {
    --white: #ffffff;
    --dark: #0f172a;
    --text: #334155;
    --trust-blue: #1d4ed8;
    --up: #16a34a;
    --down: #dc2626;
    --border: #e2e8f0;
    --surface: #f8fafc;

    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Roboto Mono', 'Menlo', 'Consolas', monospace;

    --radius: 6px;
    --radius-lg: 10px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);

    --max-width: 1200px;
}

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

html, body {
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
}

/* ==================== TICKER BAR ==================== */
.ticker-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    background: var(--dark);
    color: var(--white);
    border-bottom: 1px solid #1e293b;
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: inline-flex;
    gap: 2.25rem;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
    padding-left: 1rem;
    will-change: transform;
}

.ticker-item {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.ticker-symbol {
    color: #cbd5e1;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.ticker-price {
    color: var(--white);
    font-weight: 500;
}

.ticker-change.up { color: #4ade80; }
.ticker-change.down { color: #f87171; }
.ticker-change::before {
    content: '';
    display: inline-block;
    margin-right: 4px;
    transform: translateY(-1px);
}
.ticker-change.up::before { content: '\25B2'; }
.ticker-change.down::before { content: '\25BC'; }

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
    }
}

/* ==================== HEADER ==================== */
.site-header {
    position: sticky;
    top: 36px;
    z-index: 80;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-mark {
    display: inline-flex;
    line-height: 0;
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--dark);
    letter-spacing: -0.01em;
}

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

.primary-nav {
    display: flex;
    gap: 1.5rem;
    justify-self: center;
}

.primary-nav a {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.18s ease;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--trust-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.primary-nav a:hover {
    color: var(--trust-blue);
}

.primary-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.market-state {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.75rem;
}

.market-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--up);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
    70%  { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.market-label {
    color: var(--dark);
    font-weight: 500;
}

.market-time {
    font-family: var(--font-mono);
    color: var(--text);
}

/* ==================== BUTTONS ==================== */
.btn {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.55rem 1.05rem;
    border-radius: var(--radius);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn.lg {
    padding: 0.85rem 1.5rem;
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--trust-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.28);
}

.btn-ghost {
    color: var(--dark);
    border-color: var(--border);
    background: var(--white);
}

.btn-ghost:hover {
    background: var(--surface);
    border-color: var(--trust-blue);
    color: var(--trust-blue);
}

.btn-secondary {
    background: var(--surface);
    color: var(--dark);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--trust-blue);
    color: var(--trust-blue);
}

.btn.block {
    width: 100%;
    margin-top: 0.85rem;
}

/* ==================== HERO ==================== */
.hero {
    max-width: var(--max-width);
    margin: 2.5rem auto 3rem;
    padding: 0 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--trust-blue);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 1.1rem;
    font-weight: 700;
    max-width: 30ch;
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--text);
    max-width: 60ch;
    margin-bottom: 1.75rem;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}

.hero-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-num {
    font-family: var(--font-mono);
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 500;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text);
}

/* ==================== INDEX CARD ==================== */
.index-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 120px;
}

.index-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.index-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9375rem;
}

.index-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
    margin-top: 0.2rem;
    letter-spacing: 0.02em;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.badge.live {
    background: rgba(22, 163, 74, 0.12);
    color: var(--up);
    position: relative;
}

.badge.live::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--up);
    margin-right: 5px;
    transform: translateY(-1px);
    animation: pulseDot 1.8s ease-in-out infinite;
}

.index-price {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.index-value {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 2rem;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.index-change {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
}

.index-change.up { color: var(--up); }
.index-change.down { color: var(--down); }

.sparkline {
    height: 100px;
    margin: 0.25rem -0.25rem 0.85rem;
}

.sparkline svg {
    width: 100%;
    height: 100%;
    display: block;
}

.index-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}

.index-meta div {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.index-meta dt {
    color: var(--text);
}

.index-meta dd {
    color: var(--dark);
    font-weight: 500;
}

/* ==================== FEATURED ==================== */
.featured {
    max-width: var(--max-width);
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.section-sub {
    color: var(--text);
    font-size: 0.9375rem;
}

.filter-group, .range-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.chip {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip:hover {
    color: var(--trust-blue);
    border-color: var(--trust-blue);
}

.chip.active {
    background: var(--trust-blue);
    color: var(--white);
    border-color: var(--trust-blue);
}

.credit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
    gap: 1rem;
}

.credit-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: var(--white);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.credit-card:hover {
    border-color: var(--trust-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.credit-card[data-hidden="true"] {
    display: none;
}

.credit-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.credit-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.credit-tag.forestry { color: #15803d; background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.25); }
.credit-tag.removal  { color: var(--trust-blue); background: rgba(29, 78, 216, 0.08); border-color: rgba(29, 78, 216, 0.25); }
.credit-tag.renewable{ color: #b45309; background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.25); }
.credit-tag.agri     { color: #7c2d12; background: rgba(234, 88, 12, 0.08); border-color: rgba(234, 88, 12, 0.25); }

.credit-vintage {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
}

.credit-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.credit-region {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.credit-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}

.credit-price {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--dark);
}

.credit-change {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
}

.credit-change.up { color: var(--up); }
.credit-change.down { color: var(--down); }

.credit-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
}

/* ==================== MARKET BOARD ==================== */
.market-board {
    max-width: var(--max-width);
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.board-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

.data-pane {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
}

.pane-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pane-head h2 {
    font-size: 1.0625rem;
    font-weight: 600;
}

.pane-tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px;
}

.tab {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    color: var(--text);
    transition: background 0.18s ease, color 0.18s ease;
}

.tab:hover {
    color: var(--trust-blue);
}

.tab.active {
    background: var(--trust-blue);
    color: var(--white);
}

.table-wrap {
    overflow-x: auto;
    max-height: 520px;
    overflow-y: auto;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.market-table thead th {
    background: var(--surface);
    font-weight: 600;
    color: var(--dark);
    font-family: var(--font-display);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: background 0.15s ease;
}

.market-table thead th.num { text-align: right; }

.market-table thead th:hover {
    background: #f1f5f9;
    color: var(--trust-blue);
}

.market-table thead th.sort-asc::after,
.market-table thead th.sort-desc::after {
    margin-left: 0.35rem;
    color: var(--trust-blue);
    font-size: 0.7em;
}

.market-table thead th.sort-asc::after  { content: '\25B2'; }
.market-table thead th.sort-desc::after { content: '\25BC'; }

.market-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.market-table tbody tr:nth-child(even) {
    background: var(--surface);
}

.market-table tbody tr:hover {
    background: rgba(29, 78, 216, 0.05);
}

.market-table td {
    padding: 0.7rem 1rem;
    color: var(--text);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.market-table td.num { text-align: right; }
.market-table td.sym { color: var(--dark); font-weight: 500; }
.market-table td.up  { color: var(--up); }
.market-table td.down{ color: var(--down); }

.market-table td.proj {
    font-family: var(--font-body);
    color: var(--dark);
}

.spark-cell {
    width: 80px;
}

.spark-cell svg {
    display: block;
    width: 80px;
    height: 24px;
}

/* ==================== SIDE PANE ==================== */
.side-pane {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.depth-card, .movers-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 1.1rem;
}

.depth-card h3, .movers-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    font-family: var(--font-display);
}

.depth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.depth-side {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.depth-head {
    display: flex;
    justify-content: space-between;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.35rem;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.depth-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0.3rem 0.5rem;
    background: var(--white);
    z-index: 1;
}

.depth-row .px {
    font-weight: 500;
    z-index: 2;
}

.depth-row .px.up   { color: var(--up); }
.depth-row .px.down { color: var(--down); }

.depth-row > span:nth-child(2) {
    text-align: right;
    color: var(--dark);
    z-index: 2;
}

.depth-row .bar {
    position: absolute;
    top: 0; bottom: 0;
    right: 0;
    width: var(--w, 50%);
    background: rgba(22, 163, 74, 0.08);
    border-radius: 3px;
    z-index: 0;
}

.depth-side.asks .depth-row .bar {
    background: rgba(220, 38, 38, 0.08);
}

.movers-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.movers-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    transition: background 0.15s ease;
}

.movers-list li:hover {
    background: rgba(29, 78, 216, 0.06);
}

.mover-sym {
    color: var(--dark);
    font-weight: 500;
    min-width: 80px;
}

.mover-name {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mover-pct {
    font-weight: 500;
    text-align: right;
}

.mover-pct.up { color: var(--up); }
.mover-pct.down { color: var(--down); }

/* ==================== CHARTS ==================== */
.charts {
    max-width: var(--max-width);
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.chart-frame {
    display: grid;
    grid-template-columns: 56px 1fr;
    height: 360px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}

.chart-axis-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    border-right: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text);
    background: var(--surface);
}

.chart-area {
    position: relative;
    overflow: hidden;
}

.chart-area svg {
    width: 100%;
    height: 100%;
    display: block;
}

#mainPoints circle {
    cursor: pointer;
    transition: r 0.15s ease, fill 0.15s ease;
}

.chart-tooltip {
    position: absolute;
    background: var(--dark);
    color: var(--white);
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    transform: translate(-50%, -120%);
    white-space: nowrap;
    z-index: 4;
    box-shadow: var(--shadow-md);
}

.chart-tooltip.visible {
    opacity: 1;
}

.chart-tooltip .tt-date {
    display: block;
    color: #cbd5e1;
    font-size: 0.6875rem;
    margin-bottom: 2px;
}

.chart-tooltip .tt-price {
    display: block;
    color: var(--white);
    font-weight: 500;
}

.chart-axis-x {
    margin-left: 56px;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.volume-row {
    margin-top: 1.25rem;
}

.volume-row h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.6rem;
    font-family: var(--font-display);
}

.volume-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 60px;
    padding: 0.25rem 0;
    margin-left: 56px;
    border-bottom: 1px solid var(--border);
}

.volume-bar {
    display: inline-block;
    flex: 1;
    background: var(--trust-blue);
    border-radius: 1px 1px 0 0;
    transition: opacity 0.15s ease, background 0.15s ease;
    opacity: 0.45;
    min-height: 2px;
}

.volume-bar:hover {
    opacity: 1;
}

.volume-bar.up { background: var(--up); opacity: 0.55; }
.volume-bar.down { background: var(--down); opacity: 0.55; }

/* ==================== RESEARCH ==================== */
.research {
    max-width: var(--max-width);
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.research-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.research-card:hover {
    border-color: var(--trust-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.research-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--trust-blue);
    align-self: flex-start;
    padding: 0.2rem 0.55rem;
    background: rgba(29, 78, 216, 0.08);
    border-radius: 4px;
}

.research-card h3 {
    font-size: 1rem;
    line-height: 1.35;
}

.research-card p {
    font-size: 0.875rem;
    color: var(--text);
    flex: 1;
}

.research-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
    margin-top: auto;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    margin-top: 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.foot-cols h4 {
    font-size: 0.8125rem;
    color: var(--white);
    margin-bottom: 0.85rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.foot-cols a {
    display: block;
    font-size: 0.875rem;
    color: #cbd5e1;
    padding: 0.25rem 0;
    transition: color 0.15s ease;
}

.foot-cols a:hover {
    color: var(--white);
}

.footer-base {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-meta {
    font-family: var(--font-mono);
}

/* ==================== ENTRY ANIMATION ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
    .hero-grid, .board-grid {
        grid-template-columns: 1fr;
    }
    .index-card {
        position: static;
    }
    .header-inner {
        grid-template-columns: auto auto;
    }
    .primary-nav {
        display: none;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 720px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .credit-grid { grid-template-columns: 1fr 1fr; }
    .foot-cols { grid-template-columns: repeat(2, 1fr); }
    .header-actions .btn-ghost { display: none; }
    .market-state { display: none; }
    .pane-head { flex-direction: column; align-items: flex-start; }
    .pane-tabs { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .credit-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
}
