/* =============================================================================
   DedInvest SEO Pages — Investment Terminal Aesthetic
   Public pages for search engine indexing.
   Inherits design language from landing.css.
   ============================================================================= */

/* ── Reset & Base ────────────────────────────────────────────────────────────── */
:root {
    --bg-primary: #14141c;
    --bg-secondary: #1c1c26;
    --bg-tertiary: #252532;
    --bg-elevated: #2e2e3e;
    --bg-hover: #38384a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-tertiary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.45);
    --accent: #0d9488;
    --accent-light: #14b8a6;
    --accent-dark: #0f766e;
    --accent-glow: rgba(13, 148, 136, 0.4);
    --accent-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
    --accent-2: #d97706;
    --accent-2-glow: rgba(217, 119, 6, 0.4);
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --success-glow: rgba(34, 197, 94, 0.3);
    --warning: #eab308;
    --warning-bg: rgba(234, 179, 8, 0.1);
    --warning-glow: rgba(234, 179, 8, 0.3);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-glow: rgba(239, 68, 68, 0.3);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --font-sans: 'Onest', system-ui, sans-serif;
    --font-display: 'Unbounded', system-ui, sans-serif;
}

[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f2;
    --bg-elevated: #ffffff;
    --bg-hover: #e8e8ec;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #1d1d1f;
    --text-secondary: rgba(0, 0, 0, 0.75);
    --text-tertiary: rgba(0, 0, 0, 0.55);
    --text-muted: rgba(0, 0, 0, 0.35);
    --accent: #0f766e;
    --accent-light: #0d9488;
    --accent-glow: rgba(15, 118, 110, 0.15);
    --accent-gradient: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
    --accent-2: #b45309;
    --success: #16a34a;
    --success-bg: rgba(22, 163, 74, 0.1);
    --warning: #ca8a04;
    --warning-bg: rgba(202, 138, 4, 0.1);
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* ── Animated Background ─────────────────────────────────────────────────────── */
.bg-animation { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35; animation: orbFloat 20s ease-in-out infinite; }
.bg-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); top: -200px; left: -100px; }
.bg-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%); bottom: -150px; right: -100px; animation-delay: -7s; }
.bg-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #3b82f6 0%, transparent 70%); top: 40%; left: 50%; transform: translate(-50%, -50%); animation-delay: -13s; opacity: 0.15; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.08); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.03); }
}

.noise-overlay {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.03; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 256px 256px;
}

[data-theme="light"] .bg-orb { opacity: 0.1; }
[data-theme="light"] .noise-overlay { opacity: 0.02; mix-blend-mode: multiply; }

/* ── Navigation ──────────────────────────────────────────────────────────────── */
.seo-nav {
    position: sticky; top: 0; z-index: 100;
    padding: 14px 40px;
    display: flex; align-items: center; gap: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
}

.nav-logo-icon { width: 32px; height: 32px; flex-shrink: 0; }

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

.nav-link {
    padding: 6px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 500;
    color: var(--text-tertiary);
    transition: all 0.2s var(--ease-out);
}

.nav-link:hover { color: var(--text-primary); background: var(--glass-bg-hover); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn-ghost {
    padding: 8px 18px; border-radius: 10px;
    font-family: var(--font-sans); font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
    background: transparent; border: 1px solid var(--glass-border);
    transition: all 0.25s var(--ease-out);
    display: inline-flex; align-items: center;
}
.btn-ghost:hover { border-color: var(--glass-border-hover); background: var(--glass-bg); color: var(--text-primary); transform: translateY(-1px); }

.btn-primary-sm {
    padding: 8px 18px; border-radius: 10px;
    font-family: var(--font-sans); font-size: 13px; font-weight: 600;
    color: white; background: var(--accent-gradient); border: none;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: all 0.25s var(--ease-out);
    display: inline-flex; align-items: center;
}
.btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow); }

/* ── Main ────────────────────────────────────────────────────────────────────── */
.seo-main {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto;
    padding: 32px 40px 80px;
    min-height: 60vh;
}

/* ── Glass Card ──────────────────────────────────────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    transition: border-color 0.3s var(--ease-out);
}

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

[data-theme="light"] .glass-card { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }

/* ── Breadcrumbs ─────────────────────────────────────────────────────────────── */
.breadcrumbs {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted);
    margin-bottom: 28px;
}

.breadcrumbs a { color: var(--text-tertiary); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent-light); }
.breadcrumbs .sep { opacity: 0.4; }
.breadcrumbs span:last-child { color: var(--text-secondary); }

/* ── Page Headers ────────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 36px; }

.page-header h1 {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 700;
    letter-spacing: -0.03em; line-height: 1.2;
    margin-bottom: 8px;
}

.page-subtitle { font-size: 15px; color: var(--text-tertiary); }

/* =============================================================================
   COMPANY PAGE
   ============================================================================= */

.company-page { animation: fadeUp 0.5s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.company-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 24px; margin-bottom: 32px;
    flex-wrap: wrap;
}

.company-title { display: flex; align-items: center; gap: 16px; }

.company-logo {
    width: 56px; height: 56px; border-radius: 14px;
    object-fit: cover; background: var(--bg-tertiary);
}

.company-title h1 {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 700;
    letter-spacing: -0.03em; line-height: 1.2;
    margin-bottom: 6px;
}

.company-meta { display: flex; align-items: center; gap: 10px; }

.ticker-badge {
    font-family: var(--font-display);
    font-size: 12px; font-weight: 600;
    padding: 3px 10px; border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--accent-light);
    letter-spacing: 0.04em;
}

.sector-tag {
    font-size: 12px; color: var(--text-muted);
    transition: color 0.2s;
}
.sector-tag:hover { color: var(--accent-light); }

.price-block { text-align: right; flex-shrink: 0; }

.price-value {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 700;
    letter-spacing: -0.02em;
}

.price-change {
    font-size: 14px; font-weight: 600; margin-top: 2px;
}
.price-change.positive { color: var(--success); }
.price-change.negative { color: var(--danger); }

/* Analysis Section */
.analysis-section { margin-bottom: 28px; }
.analysis-section h2 {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 600;
    margin-bottom: 12px; letter-spacing: -0.01em;
}
.analysis-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.analysis-counters { display: flex; gap: 16px; margin-top: 16px; }
.counter {
    font-size: 13px; font-weight: 600;
    padding: 4px 12px; border-radius: 8px;
}
.counter.green { background: var(--success-bg); color: var(--success); }
.counter.yellow { background: var(--warning-bg); color: var(--warning); }
.counter.red { background: var(--danger-bg); color: var(--danger); }

/* Metrics Grid */
.metrics-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px; margin-bottom: 32px;
}

.metric-category { padding: 24px; }

.metric-category h2 {
    font-family: var(--font-display);
    font-size: 15px; font-weight: 600;
    margin-bottom: 16px; letter-spacing: -0.01em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.metrics-list { display: flex; flex-direction: column; gap: 0; }

.metric-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.metric-row:last-child { border-bottom: none; }

.metric-name { font-size: 13px; color: var(--text-tertiary); }

.metric-value {
    font-family: var(--font-display);
    font-size: 15px; font-weight: 600;
    letter-spacing: -0.02em;
    text-align: right;
    min-width: 60px;
}

.metric-rating {
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 6px;
    text-align: center; min-width: 90px;
    white-space: nowrap;
}

/* Color classes */
.color-green { color: var(--success); }
.color-yellow { color: var(--warning); }
.color-red { color: var(--danger); }
.color-gray { color: var(--text-muted); }

.metric-row:has(.color-green) .metric-rating { background: var(--success-bg); color: var(--success); }
.metric-row:has(.color-yellow) .metric-rating { background: var(--warning-bg); color: var(--warning); }
.metric-row:has(.color-red) .metric-rating { background: var(--danger-bg); color: var(--danger); }
.metric-row:has(.color-gray) .metric-rating { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* CTA Inline */
.cta-inline {
    text-align: center; padding: 40px 32px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(217, 119, 6, 0.06) 100%);
    border-color: rgba(13, 148, 136, 0.2);
}

.cta-inline h3 {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: 8px;
}

.cta-inline p { font-size: 14px; color: var(--text-tertiary); margin-bottom: 20px; }

.btn-cta {
    display: inline-flex; align-items: center;
    padding: 14px 36px; border-radius: 14px;
    font-family: var(--font-sans); font-size: 15px; font-weight: 600;
    color: white; background: var(--accent-gradient); border: none;
    box-shadow: 0 6px 24px var(--accent-glow);
    transition: all 0.3s var(--ease-out);
    position: relative; overflow: hidden;
}

.btn-cta::after {
    content: ''; position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s var(--ease-out);
}

.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 36px var(--accent-glow); }
.btn-cta:hover::after { left: 100%; }

/* =============================================================================
   COMPANIES CATALOG
   ============================================================================= */

.catalog-page { animation: fadeUp 0.5s var(--ease-out) both; }

.sector-nav {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 32px;
}

.sector-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 10px;
    font-size: 13px; font-weight: 500;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all 0.25s var(--ease-out);
}

.sector-chip:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.sector-count {
    font-size: 11px; font-weight: 600;
    padding: 1px 6px; border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--accent-light);
}

.sector-block { margin-bottom: 24px; }

.sector-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}

.sector-header h2 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600;
    letter-spacing: -0.01em;
}

.sector-header h2 a { transition: color 0.2s; }
.sector-header h2 a:hover { color: var(--accent-light); }

.company-count { font-size: 13px; color: var(--text-muted); }

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.company-card-mini {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    transition: all 0.25s var(--ease-out);
}

.company-card-mini:hover {
    background: var(--bg-tertiary);
    border-color: var(--glass-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.company-logo-sm {
    width: 32px; height: 32px; border-radius: 8px;
    object-fit: cover; background: var(--bg-tertiary);
    flex-shrink: 0;
}

.company-card-info { display: flex; flex-direction: column; min-width: 0; }

.company-card-name {
    font-size: 13px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.company-card-ticker {
    font-size: 11px; color: var(--text-muted);
    font-family: var(--font-display); font-weight: 600;
    letter-spacing: 0.04em;
}

/* Ratings Promo */
.ratings-promo { margin-top: 32px; text-align: center; }
.ratings-promo h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.ratings-promo p { font-size: 14px; color: var(--text-tertiary); margin-bottom: 20px; }

.ratings-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.rating-link {
    padding: 8px 16px; border-radius: 10px;
    font-size: 13px; font-weight: 500;
    background: var(--bg-secondary); color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    transition: all 0.25s var(--ease-out);
}
.rating-link:hover { background: var(--bg-tertiary); color: var(--accent-light); border-color: var(--accent); transform: translateY(-1px); }

/* =============================================================================
   SECTOR PAGE
   ============================================================================= */

.sector-page { animation: fadeUp 0.5s var(--ease-out) both; }

.companies-list { padding: 8px; }

.company-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 12px;
    transition: all 0.25s var(--ease-out);
}

.company-row:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.company-row-info { flex: 1; min-width: 0; }
.company-row-name { font-size: 14px; font-weight: 500; display: block; }
.company-row-ticker { font-size: 12px; color: var(--text-muted); font-family: var(--font-display); letter-spacing: 0.04em; }

.arrow-icon { color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s; }
.company-row:hover .arrow-icon { transform: translateX(4px); color: var(--accent-light); }

.other-sectors { margin-top: 28px; }
.other-sectors h2 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.sector-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* =============================================================================
   RATINGS PAGE
   ============================================================================= */

.ratings-page { animation: fadeUp 0.5s var(--ease-out) both; }

.ratings-table-wrapper { padding: 0; overflow-x: auto; }

.ratings-table {
    width: 100%; border-collapse: collapse;
    font-size: 14px;
}

.ratings-table thead th {
    font-family: var(--font-display);
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 16px 16px 12px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    position: sticky; top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
}

.ratings-table tbody tr {
    transition: background 0.15s;
}

.ratings-table tbody tr:hover { background: var(--bg-secondary); }

.ratings-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.col-rank {
    width: 48px; text-align: center;
    font-family: var(--font-display);
    font-weight: 600; color: var(--text-muted);
}

.col-value {
    font-family: var(--font-display);
    font-weight: 600; font-size: 15px;
    letter-spacing: -0.02em;
    text-align: right;
}

.col-sector { color: var(--text-muted); font-size: 13px; }

.company-link {
    display: inline-flex; align-items: center; gap: 10px;
    transition: color 0.2s;
}
.company-link:hover .company-name { color: var(--accent-light); }

.company-logo-xs {
    width: 24px; height: 24px; border-radius: 6px;
    object-fit: cover; background: var(--bg-tertiary);
    flex-shrink: 0;
}

.company-name { font-weight: 500; }
.company-ticker-sm { font-size: 11px; color: var(--text-muted); margin-left: 4px; }

.rating-badge {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 6px;
    white-space: nowrap;
}

.rating-badge.color-green { background: var(--success-bg); color: var(--success); }
.rating-badge.color-yellow { background: var(--warning-bg); color: var(--warning); }
.rating-badge.color-red { background: var(--danger-bg); color: var(--danger); }
.rating-badge.color-gray { background: rgba(255,255,255,0.05); color: var(--text-muted); }

.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }

.other-metrics { margin-top: 28px; }
.other-metrics h2 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.metrics-links { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-link {
    padding: 6px 14px; border-radius: 8px;
    font-size: 12px; font-weight: 500;
    background: var(--bg-secondary); color: var(--text-tertiary);
    border: 1px solid var(--glass-border);
    transition: all 0.25s var(--ease-out);
}
.metric-link:hover { color: var(--accent-light); border-color: var(--accent); background: var(--bg-tertiary); }

/* =============================================================================
   FOOTER
   ============================================================================= */

.seo-footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: 0 40px;
    max-width: 1100px; margin: 0 auto;
}

.footer-cta-block {
    text-align: center;
    padding: 56px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-cta-block h3 {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: 8px;
}

.footer-cta-block p { font-size: 14px; color: var(--text-tertiary); margin-bottom: 24px; }

.footer-links {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--glass-border);
}

.footer-links a {
    font-size: 12px; color: var(--text-muted);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0;
}

.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-sitemap { font-size: 12px; color: var(--text-muted); transition: color 0.2s; flex-shrink: 0; }
.footer-sitemap:hover { color: var(--accent-light); }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 900px) {
    .seo-nav { padding: 12px 20px; gap: 16px; }
    .seo-main { padding: 24px 20px 60px; }
    .metrics-grid { grid-template-columns: 1fr; }
    .companies-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .page-header h1 { font-size: 26px; }
    .company-title h1 { font-size: 24px; }
    .price-value { font-size: 22px; }
    .seo-footer { padding: 0 20px; }
}

@media (max-width: 640px) {
    .seo-nav { padding: 10px 16px; gap: 8px; }
    .nav-links { display: none; }
    .nav-logo-text { font-size: 14px; }
    .btn-ghost { padding: 6px 12px; font-size: 12px; }
    .btn-primary-sm { padding: 6px 14px; font-size: 12px; }

    .seo-main { padding: 20px 16px 48px; }
    .glass-card { padding: 20px; border-radius: 16px; }
    .page-header h1 { font-size: 22px; }
    .page-header { margin-bottom: 24px; }

    .company-header { flex-direction: column; }
    .price-block { text-align: left; }
    .company-title h1 { font-size: 20px; }
    .price-value { font-size: 20px; }

    .metric-row { grid-template-columns: 1fr auto; gap: 6px; }
    .metric-rating { display: none; }

    .ratings-table { font-size: 13px; }
    .col-sector { display: none; }

    .sector-nav { gap: 6px; }
    .sector-chip { padding: 6px 12px; font-size: 12px; }

    .companies-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .company-card-mini { padding: 10px; }

    .footer-cta-block { padding: 40px 16px; }
    .footer-cta-block h3 { font-size: 18px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .footer-links { gap: 8px; }
}

@media (max-width: 380px) {
    .nav-logo-text { display: none; }
    .companies-grid { grid-template-columns: 1fr; }
    .company-title { flex-direction: column; align-items: flex-start; }
    .company-logo { width: 40px; height: 40px; }
}

/* =============================================================================
   METRICS TEASER (Company Page — gated content)
   ============================================================================= */

.metrics-teaser {
    text-align: center;
    padding: 48px 32px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06) 0%, rgba(217, 119, 6, 0.04) 100%);
    border-color: rgba(13, 148, 136, 0.15);
}

.teaser-icon { margin-bottom: 20px; }

.metrics-teaser h2 {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: 12px;
}

.teaser-description {
    font-size: 14px; color: var(--text-tertiary);
    line-height: 1.7; max-width: 540px;
    margin: 0 auto 24px;
}

.teaser-summary {
    display: flex; justify-content: center;
    gap: 24px; margin-bottom: 28px;
}

.summary-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    padding: 12px 20px; border-radius: 12px;
}

.summary-green { background: var(--success-bg); }
.summary-yellow { background: var(--warning-bg); }
.summary-red { background: var(--danger-bg); }

.summary-count {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 700;
    letter-spacing: -0.02em;
}

.summary-green .summary-count { color: var(--success); }
.summary-yellow .summary-count { color: var(--warning); }
.summary-red .summary-count { color: var(--danger); }

.summary-label {
    font-size: 12px; font-weight: 500;
    color: var(--text-muted);
}

.teaser-features {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 12px;
    margin-bottom: 28px;
}

.teaser-feature {
    display: inline-flex; align-items: center;
    gap: 6px; padding: 8px 16px;
    border-radius: 10px; font-size: 13px; font-weight: 500;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.feature-icon { font-size: 16px; }

.teaser-note {
    font-size: 12px; color: var(--text-muted);
    margin-top: 12px;
}

/* =============================================================================
   RATINGS — Locked State
   ============================================================================= */

.col-locked { text-align: center; }

.locked-value {
    display: inline-flex; align-items: center;
    justify-content: center;
    width: 32px; height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: default;
}

.ratings-cta {
    text-align: center; padding: 40px 32px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(217, 119, 6, 0.06) 100%);
    border-color: rgba(13, 148, 136, 0.2);
}

.ratings-cta h3 {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: 8px;
}

.ratings-cta p {
    font-size: 14px; color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* ── Teaser & Ratings Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .metrics-teaser { padding: 32px 20px; }
    .metrics-teaser h2 { font-size: 18px; }
    .teaser-summary { gap: 12px; }
    .summary-item { padding: 10px 14px; }
    .summary-count { font-size: 22px; }
    .teaser-features { gap: 8px; }
    .teaser-feature { padding: 6px 12px; font-size: 12px; }
    .ratings-cta { padding: 32px 20px; }
    .ratings-cta h3 { font-size: 18px; }
}

/* ── Reduced Motion ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bg-orb { animation: none !important; }
}

/* ── Focus States ────────────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
