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

:root {
    --color-bg: #ffffff;
    --color-surface: #f8fafc;
    --color-surface-alt: #f1f5f9;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-primary: #1a365d;
    --color-primary-light: #2b6cb0;
    --color-accent: #2563eb;
    --color-accent-light: #3b82f6;
    --color-success: #059669;
    --color-hero-bg: #0f172a;
    --color-hero-text: #f8fafc;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.site-header.scrolled {
    background: rgba(15, 23, 42, .95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-hero-text);
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-accent-light);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}

.header-nav a:hover {
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    color: #cbd5e1;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .2s;
    border: 2px solid transparent;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: .85rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, .4);
}

.btn-outline {
    background: transparent;
    color: #cbd5e1;
    border-color: #475569;
}

.btn-outline:hover {
    color: #fff;
    border-color: #94a3b8;
    background: rgba(255,255,255,.05);
}

/* === Hero === */
.hero {
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, .15);
    color: var(--color-accent-light);
    border: 1px solid rgba(37, 99, 235, .3);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero card (mock UI) */
.hero-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.hero-card-title {
    margin-left: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hero-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-msg {
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: .9rem;
    line-height: 1.6;
}

.chat-msg.user {
    background: rgba(37, 99, 235, .15);
    border: 1px solid rgba(37, 99, 235, .25);
    color: #bfdbfe;
    align-self: flex-end;
    max-width: 90%;
}

.chat-msg.assistant {
    background: #0f172a;
    border: 1px solid #334155;
    color: #cbd5e1;
}

.chat-msg.assistant p {
    margin-bottom: 8px;
}

.chat-msg.assistant p:last-of-type {
    margin-bottom: 12px;
}

.chat-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.source-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(5, 150, 105, .15);
    color: #6ee7b7;
    border: 1px solid rgba(5, 150, 105, .25);
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 500;
}

/* === Section styling === */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* === Audience === */
.audience {
    padding: 100px 0;
    background: var(--color-bg);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.audience-card {
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    transition: box-shadow .2s, transform .2s;
    min-width: 0;
    overflow: hidden;
}

.audience-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.audience-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(37, 99, 235, .08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.audience-icon svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    color: var(--color-accent);
}

.audience-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* === Features === */
.features {
    padding: 100px 0;
    background: var(--color-surface);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, .1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: .95rem;
    line-height: 1.6;
}

/* === Coverage === */
.coverage {
    padding: 100px 0;
    background: var(--color-surface);
}

.coverage-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.stat {
    text-align: center;
    padding: 32px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 8px;
}

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

.coverage-sources {
    text-align: center;
}

.coverage-sources h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.source-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.source-list span {
    padding: 8px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: .9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* === How It Works === */
.how-it-works {
    padding: 100px 0;
    background: var(--color-bg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 24px;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step p {
    color: var(--color-text-muted);
    font-size: .95rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

/* === CTA === */
.cta {
    padding: 100px 0;
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* === Request Form === */
.request-form {
    max-width: 640px;
    margin: 36px auto 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #f87171;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group select option {
    background: #1e293b;
    color: #f1f5f9;
}

.form-group textarea {
    resize: vertical;
    min-height: 72px;
}

.form-actions {
    text-align: center;
    margin-top: 8px;
}

.form-status {
    text-align: center;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-status-success {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.form-status-error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* === Footer === */
.site-footer {
    background: #0a0f1a;
    color: #94a3b8;
    padding: 64px 0 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid #1e293b;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    color: #e2e8f0;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom p {
    font-size: .85rem;
    color: #475569;
}

/* === Hero "See More" Link === */
.demo-see-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-accent-light);
    text-decoration: none;
    transition: color .2s;
}

.demo-see-more:hover {
    color: #93c5fd;
}

.demo-see-more svg {
    width: 14px;
    height: 14px;
    transition: transform .2s;
}

.demo-see-more:hover svg {
    transform: translateX(3px);
}

/* Feature card link variant */
a.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-see-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-accent);
}

.feature-see-more svg {
    width: 14px;
    height: 14px;
    transition: transform .2s;
}

a.feature-card-link:hover .feature-see-more svg {
    transform: translateX(3px);
}

/* === Interactive Chat Demo === */
#chat-demo {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 520px;
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-dots span:nth-child(1) { background: #ef4444; }
.demo-dots span:nth-child(2) { background: #eab308; }
.demo-dots span:nth-child(3) { background: #22c55e; }

.demo-title {
    margin-left: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.demo-messages {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.demo-messages::-webkit-scrollbar { width: 6px; }
.demo-messages::-webkit-scrollbar-track { background: transparent; }
.demo-messages::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

.demo-user-msg {
    align-self: flex-end;
    max-width: 88%;
    padding: 12px 18px;
    background: rgba(37, 99, 235, .18);
    border: 1px solid rgba(37, 99, 235, .3);
    border-radius: var(--radius);
    color: #bfdbfe;
    font-size: .88rem;
    line-height: 1.6;
}

.demo-ai-msg {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: var(--radius);
    padding: 16px 18px;
    color: #cbd5e1;
    font-size: .85rem;
    line-height: 1.65;
    overflow: hidden;
}

.demo-h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.demo-ai-msg br { display: block; content: ""; margin-top: 6px; }

.demo-chart {
    margin: 12px 0;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.demo-chart svg {
    display: block;
}

/* Demo tables */
.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
    margin: 4px 0;
}

.demo-table th {
    background: #1e293b;
    color: #94a3b8;
    font-weight: 600;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #334155;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.demo-table td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(51, 65, 85, .5);
    color: #cbd5e1;
}

.demo-table tbody tr:hover { background: rgba(37, 99, 235, .06); }

/* Citation tags */
.demo-citations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.demo-citation {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(5, 150, 105, .15);
    color: #6ee7b7;
    border: 1px solid rgba(5, 150, 105, .25);
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 500;
}

/* Thinking indicator */
.demo-thinking {
    padding: 10px 18px;
}

.thinking-dots {
    display: inline-flex;
    gap: 5px;
}

.thinking-dots span {
    width: 7px;
    height: 7px;
    background: #64748b;
    border-radius: 50%;
    animation: thinkBounce 1.4s infinite;
}

.thinking-dots span:nth-child(2) { animation-delay: .2s; }
.thinking-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes thinkBounce {
    0%, 60%, 100% { opacity: .3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

/* === Audience card links === */
.audience-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.audience-card-link .audience-card {
    cursor: pointer;
}

.audience-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-accent);
}

.audience-card .learn-more svg {
    width: 14px;
    height: 14px;
    transition: transform .2s;
}

.audience-card:hover .learn-more svg {
    transform: translateX(3px);
}

/* === Detail Pages === */
.page-hero {
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
    padding: 130px 0 70px;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: #64748b;
    margin-bottom: 20px;
}

.page-hero .breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
}

.page-hero .breadcrumb a:hover {
    color: #fff;
}

.page-hero .breadcrumb .sep {
    color: #475569;
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -.025em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.page-hero .page-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 640px;
}

/* Detail content sections */
.detail-section {
    padding: 80px 0;
}

.detail-section:nth-child(even) {
    background: var(--color-surface);
}

.detail-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.detail-section .section-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.7;
}

/* Example cards for detail pages */
.example-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.example-card {
    padding: 28px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: box-shadow .2s;
}

.example-card:hover {
    box-shadow: var(--shadow-lg);
}

.example-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-card .card-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(37, 99, 235, .1);
    color: var(--color-accent);
}

.example-card p {
    color: var(--color-text-muted);
    font-size: .93rem;
    line-height: 1.6;
}

.example-card .meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.example-card .meta-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: .78rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Mock UI preview */
.mock-preview {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 32px;
}

.mock-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.mock-preview-header .dot {
    width: 10px;
    height: 10px;
}

.mock-preview-header span:last-child {
    margin-left: 6px;
    font-size: .78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

.mock-preview-body {
    padding: 20px;
    color: #cbd5e1;
    font-size: .88rem;
    line-height: 1.65;
}

.mock-preview-body .q {
    background: rgba(37, 99, 235, .15);
    border: 1px solid rgba(37, 99, 235, .25);
    color: #bfdbfe;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: .88rem;
}

.mock-preview-body .a {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.mock-preview-body .a h4 {
    font-size: .95rem;
    color: #e2e8f0;
    margin-bottom: 8px;
    font-weight: 700;
}

.mock-preview-body .a p {
    color: #94a3b8;
    margin-bottom: 8px;
}

.mock-preview-body .a ul {
    margin: 8px 0;
    padding-left: 20px;
    color: #94a3b8;
}

.mock-preview-body .a li {
    margin-bottom: 4px;
}

.mock-preview-body .source-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

/* Data table for detail pages */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 24px;
}

.data-table th {
    background: var(--color-surface-alt);
    padding: 12px 16px;
    text-align: left;
    font-size: .85rem;
    font-weight: 700;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border);
}

.data-table td {
    padding: 12px 16px;
    font-size: .9rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table .highlight {
    color: var(--color-accent);
    font-weight: 600;
}

/* Stat banner for detail pages */
.stat-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-banner .stat-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.stat-banner .stat-item .num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-banner .stat-item .label {
    font-size: .85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Detail CTA */
.detail-cta {
    padding: 80px 0;
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
    text-align: center;
}

.detail-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.detail-cta p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Map legend for MCO page */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--color-text-muted);
}

.map-legend .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.green { background: #22c55e; }
.legend-dot.blue { background: #3b82f6; }
.legend-dot.orange { background: #f97316; }
.legend-dot.red { background: #ef4444; }
.legend-dot.dark-green { background: #16a34a; }

/* === Research Assistant Showcase Page === */
.showcase-hero {
    padding-bottom: 50px;
}

.showcase-stats-row {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.showcase-stat {
    display: flex;
    flex-direction: column;
}

.showcase-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent-light);
    line-height: 1;
}

.showcase-stat-label {
    font-size: .8rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

.showcase-section {
    padding: 80px 0;
}

.showcase-section-alt {
    background: var(--color-surface);
}

.showcase-label {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(37, 99, 235, .1);
    color: var(--color-accent);
    border: 1px solid rgba(37, 99, 235, .2);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 16px;
}

.showcase-heading {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.showcase-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 32px;
}

/* Showcase chat container */
.showcase-chat {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.showcase-chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.showcase-chat-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-user-msg {
    align-self: flex-end;
    max-width: 85%;
    padding: 14px 20px;
    background: rgba(37, 99, 235, .18);
    border: 1px solid rgba(37, 99, 235, .3);
    border-radius: var(--radius);
    color: #bfdbfe;
    font-size: .92rem;
    line-height: 1.6;
}

.showcase-ai-msg {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: var(--radius);
    padding: 20px 24px;
    color: #cbd5e1;
    font-size: .9rem;
    line-height: 1.7;
}

.showcase-ai-msg p {
    margin-bottom: 12px;
}

.showcase-ai-msg p:last-of-type {
    margin-bottom: 8px;
}

.showcase-ai-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}

/* Showcase tables */
.showcase-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    margin: 16px 0;
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
}

.showcase-table th {
    background: #1e293b;
    color: #94a3b8;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #334155;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.showcase-table td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(51, 65, 85, .5);
    color: #cbd5e1;
}

.showcase-table tbody tr:hover {
    background: rgba(37, 99, 235, .06);
}

.showcase-table .hl-green { color: #34d399; font-weight: 600; }
.showcase-table .hl-blue { color: #60a5fa; font-weight: 600; }
.showcase-table .hl-yellow { color: #fbbf24; font-weight: 600; }

/* Showcase charts */
.showcase-chart-wrapper {
    margin: 20px 0;
    background: #1e1e2e;
    border-radius: 8px;
    overflow: hidden;
}

.showcase-chart-title {
    padding: 10px 16px 0;
    font-size: .8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.showcase-svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Showcase citations */
.showcase-citations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #334155;
}

.showcase-cite {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(5, 150, 105, .15);
    color: #6ee7b7;
    border: 1px solid rgba(5, 150, 105, .25);
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 500;
}

/* Showcase blockquotes */
.showcase-blockquote {
    margin: 16px 0;
    padding: 16px 20px;
    background: rgba(37, 99, 235, .08);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    color: #94a3b8;
    font-size: .88rem;
    line-height: 1.7;
}

.showcase-blockquote strong {
    color: #e2e8f0;
}

.showcase-blockquote ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.showcase-blockquote li {
    margin-bottom: 4px;
}

/* Showcase feature grid */
.showcase-features {
    padding: 100px 0;
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
}

.showcase-features .section-header h2 {
    color: var(--color-hero-text);
}

.showcase-features .section-header p {
    color: #94a3b8;
}

.showcase-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.showcase-feature-card {
    padding: 28px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    transition: box-shadow .2s, transform .2s;
}

.showcase-feature-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    transform: translateY(-2px);
}

.showcase-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, .15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.showcase-feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent-light);
}

.showcase-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.showcase-feature-card p {
    color: #94a3b8;
    font-size: .9rem;
    line-height: 1.6;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-visual {
        max-width: 600px;
    }

    .audience-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coverage-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .example-grid {
        grid-template-columns: 1fr;
    }

    .stat-banner {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .showcase-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-stats-row {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, .98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-top: 1px solid #334155;
    }

    .header-nav.open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .audience-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .coverage-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-banner {
        grid-template-columns: 1fr 1fr;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .hero-card-body {
        min-height: 260px;
    }

    .showcase-feature-grid {
        grid-template-columns: 1fr;
    }

    .showcase-user-msg {
        max-width: 95%;
    }

    .showcase-ai-msg {
        padding: 16px;
    }

    .showcase-table {
        font-size: .75rem;
    }

    .showcase-table th,
    .showcase-table td {
        padding: 7px 8px;
    }

    .showcase-stats-row {
        gap: 16px;
    }

    .showcase-stat-num {
        font-size: 1.4rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .audience,
    .features,
    .coverage,
    .how-it-works,
    .cta {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .detail-section,
    .detail-cta {
        padding: 64px 0;
    }

    .showcase-section,
    .showcase-section-alt {
        padding: 64px 0;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .showcase-chart-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    /* Chat demo: flexible height on small screens */
    #chat-demo {
        height: auto;
        min-height: 350px;
        max-height: 55vh;
    }

    /* Reduce section spacing */
    .hero {
        padding: 100px 0 48px;
    }

    .audience,
    .features,
    .coverage,
    .how-it-works,
    .cta {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .detail-section,
    .detail-cta {
        padding: 40px 0;
    }

    .showcase-section,
    .showcase-section-alt {
        padding: 40px 0;
    }

    /* Heading sizes */
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-header h2,
    .cta-content h2 {
        font-size: 1.5rem;
    }

    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Buttons: full-width stacked */
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-lg {
        padding: 12px 24px;
        justify-content: center;
    }

    /* Grids collapse to single column */
    .coverage-stats {
        grid-template-columns: 1fr;
    }

    .stat-banner {
        grid-template-columns: 1fr;
    }

    /* Cards: tighter padding */
    .audience-card,
    .feature-card,
    .example-card,
    .showcase-feature-card {
        padding: 20px;
    }

    .stat {
        padding: 20px 12px;
    }

    /* Form: compact on mobile */
    .request-form {
        margin-top: 24px;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    /* Showcase page: compact */
    .showcase-user-msg {
        max-width: 100%;
        padding: 12px 16px;
    }

    .showcase-ai-msg {
        padding: 14px 16px;
    }

    .showcase-label {
        font-size: 0.7rem;
    }

    .showcase-stats-row {
        gap: 12px;
    }

    /* Breadcrumbs */
    .page-hero .breadcrumb {
        font-size: 0.8rem;
        gap: 4px;
    }

    /* Footer */
    .footer-brand {
        max-width: 100%;
    }

    .footer-inner {
        gap: 28px;
    }

    .footer-links {
        gap: 28px;
    }
}

/* === Legal Pages === */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

.legal-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: var(--color-text-muted);
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-accent-light);
}

.legal-meta {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.legal-highlight {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    line-height: 1.7;
    color: #92400e;
}

.legal-critical {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    line-height: 1.7;
    color: #991b1b;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.legal-table th {
    background: var(--color-surface-alt);
    padding: 10px 14px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border);
}

.legal-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    vertical-align: top;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* === Footer Disclaimer === */
.mle-footer-disclaimer {
    font-size: 12px;
    color: #718096;
    line-height: 1.6;
    padding: 16px 0;
    border-top: 1px solid #1e293b;
    margin-top: 16px;
}

.mle-footer-disclaimer p {
    margin-bottom: 8px;
}

.mle-footer-disclaimer p:last-child {
    margin-bottom: 0;
}

.mle-footer-disclaimer a {
    color: inherit;
    text-decoration: underline;
}

.mle-footer-disclaimer strong {
    color: #94a3b8;
}

/* === AI Badge === */
.mle-ai-badge {
    background: rgba(255, 255, 255, .06);
    border-left: 3px solid #3b82f6;
    padding: 12px 16px;
    font-size: 13px;
    color: #94a3b8;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
}

.mle-ai-badge strong {
    color: #e2e8f0;
}

/* === Cookie Consent Banner === */
#mleCookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a202c;
    color: #e2e8f0;
    padding: 16px 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}

#mleCookieBanner.mle-hidden { display: none !important; }

.mle-cookie-text { flex: 1; min-width: 260px; }
.mle-cookie-text a { color: #90cdf4; text-decoration: underline; }

.mle-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.mle-btn-accept-all {
    background: #1B4F8C; color: white; border: none;
    padding: 8px 18px; border-radius: 4px; cursor: pointer;
    font-size: 13px; font-weight: 600; white-space: nowrap;
}
.mle-btn-accept-all:hover { background: #2E6DA4; }

.mle-btn-necessary-only {
    background: transparent; color: #a0aec0; border: 1px solid #4a5568;
    padding: 8px 18px; border-radius: 4px; cursor: pointer;
    font-size: 13px; white-space: nowrap;
}
.mle-btn-necessary-only:hover { border-color: #90cdf4; color: #e2e8f0; }

.mle-btn-manage {
    background: transparent; color: #a0aec0; border: none;
    padding: 8px 4px; cursor: pointer; font-size: 12px;
    text-decoration: underline; white-space: nowrap;
}

/* === Cookie Preferences Modal === */
#mleCookieModal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 10000; display: flex; align-items: center; justify-content: center;
}
#mleCookieModal.mle-hidden { display: none !important; }

.mle-modal-box {
    background: white; border-radius: 8px; padding: 32px;
    max-width: 520px; width: 100%; margin: 16px;
    max-height: 80vh; overflow-y: auto;
}
.mle-modal-box h2 { font-size: 1.2rem; color: #1B4F8C; margin: 0 0 8px; }
.mle-modal-box p { font-size: 13px; color: #4a5568; margin: 0 0 24px; line-height: 1.6; }

.mle-pref-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; padding: 14px 0; border-bottom: 1px solid #e2e8f0;
}
.mle-pref-row:last-of-type { border-bottom: none; }
.mle-pref-label { font-weight: 600; font-size: 14px; color: #1a202c; }
.mle-pref-desc { font-size: 12px; color: #718096; margin-top: 2px; line-height: 1.5; }

.mle-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.mle-toggle input { opacity: 0; width: 0; height: 0; }
.mle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #cbd5e0; border-radius: 24px; transition: 0.2s;
}
.mle-slider:before {
    content: ""; position: absolute; height: 18px; width: 18px;
    left: 3px; bottom: 3px; background: white;
    border-radius: 50%; transition: 0.2s;
}
.mle-toggle input:checked + .mle-slider { background: #1B4F8C; }
.mle-toggle input:checked + .mle-slider:before { transform: translateX(20px); }
.mle-toggle input:disabled + .mle-slider { opacity: 0.6; cursor: not-allowed; }

.mle-modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.mle-btn-save {
    background: #1B4F8C; color: white; border: none;
    padding: 10px 20px; border-radius: 4px; cursor: pointer;
    font-size: 14px; font-weight: 600;
}
.mle-btn-save:hover { background: #2E6DA4; }
.mle-btn-cancel {
    background: transparent; color: #4a5568; border: 1px solid #cbd5e0;
    padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 14px;
}

/* === Signup Consent Checkbox === */
.mle-signup-consent {
    margin: 16px 0 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
}
.mle-signup-consent label {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
}
.mle-signup-consent input[type="checkbox"] {
    margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px;
    accent-color: var(--color-accent);
}
.mle-signup-consent a { color: var(--color-accent-light); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   v8 ADDITIONS — Phase 4 / Platform Preview / What's New
   ═══════════════════════════════════════════════════════════════ */

/* DM Serif Display for hero h1 */
.hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    font-weight: 400;
    margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--color-accent-light); }

/* Section eyebrow label */
.section-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

/* Hero eyebrow row */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.hero-badge-pill {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(37,99,235,.15);
    color: var(--color-accent-light);
    border: 1px solid rgba(37,99,235,.3);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}
.hero-badge-new {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(16,185,129,.12);
    color: #34d399;
    border: 1px solid rgba(16,185,129,.3);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

/* Hero stats row */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 36px;
    flex-wrap: wrap;
    gap: 8px;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; padding: 0 20px 0 0; }
.hero-stat-n { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-l { font-size: .75rem; color: #94a3b8; font-weight: 500; }
.hero-stat-div { width: 1px; height: 32px; background: rgba(255,255,255,.15); margin: 0 16px 0 0; }

/* Hero bg grid */
.hero { position: relative; }
.hero-bg-grid {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
    background-image: linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ── Platform Preview Section ─────────────────────────────── */
.platform-preview {
    background: #060e1a;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.platform-preview::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(37,99,235,.08) 0%, transparent 70%);
    pointer-events: none;
}
.platform-preview .section-header { margin-bottom: 48px; }
.platform-preview .section-header h2 { color: #f1f5f9; }
.platform-preview .section-header p { color: #94a3b8; }
.platform-preview .section-eyebrow { color: #60a5fa; }

/* App window chrome */
.app-window {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.06);
}
.app-window-bar {
    background: #1a2332;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.app-window-dots { display: flex; gap: 6px; }
.app-window-dots span { width: 11px; height: 11px; border-radius: 50%; }
.wd-red { background: #ff5f57; }
.wd-yellow { background: #ffbd2e; }
.wd-green { background: #28c840; }
.app-window-url {
    flex: 1; text-align: center;
    font-size: .78rem; color: #64748b;
    background: rgba(255,255,255,.04);
    padding: 4px 12px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,.06);
}
.app-window-actions { display: flex; align-items: center; min-width: 120px; justify-content: flex-end; }
.theme-indicator { display: flex; align-items: center; gap: 6px; }
.theme-dot { width: 10px; height: 10px; border-radius: 50%; transition: background .4s ease; display: inline-block; }
.theme-name { font-size: .75rem; color: #94a3b8; font-weight: 500; min-width: 80px; transition: all .3s; }

/* App UI mockup */
.app-ui {
    display: flex;
    height: 440px;
    background: #0d1829;
    transition: background .4s ease;
}
.ui-sidebar {
    width: 190px;
    flex-shrink: 0;
    background: #1a3350;
    border-right: 1px solid #1e3a5f;
    padding: 0;
    overflow: hidden;
    transition: background .4s, border-color .4s;
}
.ui-brand {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px;
    font-size: .85rem; font-weight: 700;
    border-bottom: 1px solid #1e3a5f;
    color: #e2e8f0;
    transition: all .4s;
}
.ui-nav-section {
    font-size: .62rem; font-weight: 700; letter-spacing: .1em;
    color: #475569; padding: 14px 16px 4px;
    transition: color .4s;
}
.ui-nav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; font-size: .78rem;
    color: #64748b; cursor: pointer;
    border-radius: 6px; margin: 1px 8px;
    transition: background .2s, color .2s;
}
.ui-nav-item:hover { background: rgba(59,130,246,.1); color: #93c5fd; }
.ui-nav-active { color: #3b82f6 !important; background: rgba(59,130,246,.15) !important; }

.ui-main {
    flex: 1; display: flex; flex-direction: column;
    background: #0d1829; overflow: hidden;
    transition: background .4s;
}
.ui-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; height: 44px;
    background: #111f33; border-bottom: 1px solid #1e3a5f;
    transition: background .4s, border-color .4s;
}
.ui-topbar-title { font-size: .85rem; font-weight: 600; color: #e2e8f0; }
.ui-topbar-right { display: flex; align-items: center; gap: 8px; }
.ui-theme-btn {
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #1e3a5f; background: #111f33;
    color: #64748b; cursor: pointer; transition: all .3s;
}
.ui-search-bar {
    display: flex; align-items: center; gap: 10px;
    margin: 14px 16px 10px;
    padding: 9px 14px; border-radius: 8px;
    background: #111f33; border: 1px solid #1e3a5f;
    color: #475569; font-size: .78rem;
    transition: all .4s;
}
.ui-search-placeholder { color: inherit; }
.ui-results { flex: 1; overflow-y: auto; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.ui-result-card {
    padding: 12px 14px; border-radius: 8px;
    background: #111f33; border: 1px solid #1e3a5f;
    transition: all .4s;
}
.ui-result-active { border-color: rgba(59,130,246,.4) !important; }
.ui-result-badge {
    display: inline-block; font-size: .67rem; font-weight: 700;
    padding: 2px 8px; border-radius: 4px; margin-bottom: 6px;
    background: rgba(59,130,246,.15); color: #60a5fa;
    border: 1px solid rgba(59,130,246,.3);
    transition: all .4s;
}
.ui-result-title { font-size: .78rem; font-weight: 600; color: #e2e8f0; margin-bottom: 4px; transition: color .4s; }
.ui-result-text { font-size: .7rem; color: #64748b; line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ui-result-meta { display: flex; gap: 6px; font-size: .65rem; color: #475569; transition: color .4s; }

/* Theme showcase */
.theme-showcase { margin-top: 28px; text-align: center; }
.theme-showcase-label { font-size: .8rem; color: #64748b; margin-bottom: 14px; }
.theme-swatches-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ts-swatch {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: #94a3b8; font-size: .75rem; font-weight: 500;
    cursor: pointer; transition: all .2s;
}
.ts-swatch:hover { border-color: rgba(255,255,255,.2); color: #e2e8f0; }
.ts-active { border-color: rgba(59,130,246,.5) !important; background: rgba(59,130,246,.12) !important; color: #93c5fd !important; }
.ts-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── What's New Section ───────────────────────────────────── */
.whats-new {
    background: #f8fafc;
    padding: 100px 0;
    border-top: 1px solid #e2e8f0;
}
.whats-new .section-header h2 em { font-style: italic; color: var(--color-primary); font-family: 'DM Serif Display', serif; }
.whats-new-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.wn-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    transition: transform .25s, box-shadow .25s;
}
.wn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.wn-featured {
    grid-column: span 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-color: #1e3a5f;
    color: #e2e8f0;
}
.wn-featured h3 { color: #f1f5f9; }
.wn-featured p { color: #94a3b8; }
.wn-featured .wn-tag { background: rgba(59,130,246,.2); color: #60a5fa; border-color: rgba(59,130,246,.3); }
.wn-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.wn-icon svg { width: 20px; height: 20px; }
.wn-icon-blue { background: rgba(37,99,235,.1); color: #2563eb; }
.wn-icon-purple { background: rgba(139,92,246,.1); color: #8b5cf6; }
.wn-icon-green { background: rgba(16,185,129,.1); color: #059669; }
.wn-icon-amber { background: rgba(245,158,11,.1); color: #d97706; }
.wn-tag {
    display: inline-block; font-size: .68rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 999px;
    background: var(--color-surface); color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    margin-bottom: 10px;
}
.wn-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--color-text); }
.wn-card p { font-size: .875rem; color: var(--color-text-muted); line-height: 1.65; }
.wn-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.wn-list li { font-size: .8rem; color: #94a3b8; padding-left: 16px; position: relative; }
.wn-list li::before { content: '✓'; position: absolute; left: 0; color: #34d399; font-weight: 700; }

/* ── Scroll-in animation ──────────────────────────────────── */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
.animate-in.visible { opacity: 1; transform: none; }

/* Stagger children */
.whats-new-grid .wn-card:nth-child(1) { transition-delay: 0s; }
.whats-new-grid .wn-card:nth-child(2) { transition-delay: .08s; }
.whats-new-grid .wn-card:nth-child(3) { transition-delay: .16s; }
.whats-new-grid .wn-card:nth-child(4) { transition-delay: .24s; }
.whats-new-grid .wn-card:nth-child(5) { transition-delay: .32s; }
.whats-new-grid .wn-card:nth-child(6) { transition-delay: .40s; }
.feature-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.feature-grid .feature-card:nth-child(2) { transition-delay: .06s; }
.feature-grid .feature-card:nth-child(3) { transition-delay: .12s; }
.feature-grid .feature-card:nth-child(4) { transition-delay: .18s; }
.feature-grid .feature-card:nth-child(5) { transition-delay: .24s; }
.feature-grid .feature-card:nth-child(6) { transition-delay: .30s; }
.steps .step:nth-child(1) { transition-delay: 0s; }
.steps .step:nth-child(2) { transition-delay: .1s; }
.steps .step:nth-child(3) { transition-delay: .2s; }

/* ── Responsive for new sections ─────────────────────────── */
@media (max-width: 900px) {
    .whats-new-grid { grid-template-columns: 1fr 1fr; }
    .wn-featured { grid-column: span 2; }
    .app-ui { height: 360px; }
    .ui-sidebar { width: 140px; }
    .hero-stats { gap: 4px; }
    .hero-stat { padding-right: 12px; }
    .hero-stat-div { margin-right: 8px; }
}
@media (max-width: 600px) {
    .whats-new-grid { grid-template-columns: 1fr; }
    .wn-featured { grid-column: span 1; }
    .app-ui { height: 300px; }
    .ui-sidebar { display: none; }
    .theme-swatches-row { gap: 6px; }
    .ts-swatch span:last-child { display: none; }
    .hero-stats { flex-wrap: wrap; }
    .hero-stat-div { display: none; }
    .hero-stat { padding: 4px 0; width: calc(50% - 4px); }
}

/* ═══════════════════════════════════════════════════════════════
   SAMPLE REPORTS SECTION
   ═══════════════════════════════════════════════════════════════ */

.sample-reports {
    background: #0a1220;
    padding: 100px 0 80px;
    border-top: 1px solid rgba(255,255,255,.06);
    position: relative;
    overflow: hidden;
}
.sample-reports::before {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, rgba(37,99,235,.05) 0%, transparent 70%);
    pointer-events: none;
}
.sample-reports .section-header h2 { color: #f1f5f9; }
.sample-reports .section-header p  { color: #94a3b8; }
.sample-reports .section-eyebrow   { color: #60a5fa; }

/* Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* Card */
.report-card {
    background: #0f1c2e;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0,0,0,.5);
    border-color: rgba(59,130,246,.3);
}

/* Card header */
.report-card-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255,255,255,.02);
}
.report-type-badge {
    display: inline-flex;
    align-items: center;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    width: fit-content;
}
.report-badge-comparison { background: rgba(37,99,235,.15);  color: #60a5fa;  border: 1px solid rgba(37,99,235,.3); }
.report-badge-federal    { background: rgba(192,57,43,.12);  color: #f87171;  border: 1px solid rgba(192,57,43,.3); }
.report-badge-state      { background: rgba(0,119,182,.15);  color: #38bdf8;  border: 1px solid rgba(0,119,182,.3); }
.report-company-logo {
    display: flex;
    align-items: center;
    min-height: 40px;
    opacity: .9;
}

/* Card body */
.report-card-body {
    padding: 20px;
    flex: 1;
}
.report-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 2px;
    line-height: 1.3;
}
.report-subtitle {
    font-size: .8rem;
    color: #60a5fa;
    font-weight: 500;
    margin-bottom: 12px !important;
}
.report-excerpt {
    font-size: .82rem;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 14px !important;
}
.report-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.report-highlights span {
    font-size: .68rem;
    font-weight: 600;
    color: #64748b;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    padding: 3px 9px;
    border-radius: 999px;
}

/* Card footer */
.report-card-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.report-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    color: #475569;
}
.report-meta-item svg { opacity: .6; }
.report-meta-size { margin-left: auto; color: #334155; }

/* Action buttons */
.report-actions {
    display: flex;
    gap: 10px;
}
.btn-report-preview,
.btn-report-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}
.btn-report-preview {
    background: rgba(255,255,255,.05);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,.1);
    flex: 0 0 auto;
}
.btn-report-preview:hover {
    background: rgba(255,255,255,.09);
    color: #e2e8f0;
    border-color: rgba(255,255,255,.2);
}
.btn-report-download {
    background: #1d4ed8;
    color: #fff;
    border: 1px solid #2563eb;
    flex: 1;
    justify-content: center;
}
.btn-report-download:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37,99,235,.4);
    transform: translateY(-1px);
}

/* Disclaimer */
.reports-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 32px;
    padding: 14px 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    font-size: .78rem;
    color: #475569;
    line-height: 1.6;
}
.reports-disclaimer svg { flex-shrink: 0; margin-top: 2px; opacity: .5; }

/* Responsive */
@media (max-width: 1000px) {
    .reports-grid { grid-template-columns: 1fr 1fr; }
    .reports-grid .report-card:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
    .reports-grid { grid-template-columns: 1fr; }
    .reports-grid .report-card:last-child { grid-column: span 1; }
    .report-actions { flex-direction: column; }
    .btn-report-preview { justify-content: center; }
}

/* === Video Showcase === */
.video-showcase {
    padding: 80px 0;
    background: var(--color-surface);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 0;
}

.video-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.video-wrapper {
    position: relative;
    background: #0f172a;
    line-height: 0;
}

.video-wrapper video {
    width: 100%;
    display: block;
    border-radius: 0;
    max-height: 200px;
    object-fit: cover;
}

.video-card-body {
    padding: 20px 22px 22px;
}

.video-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.video-card-body p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0 0 14px;
}

.full-demo-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

.full-demo-link:hover {
    color: var(--color-accent-light);
}

.full-demo-link-note {
    display: inline-block;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .video-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .video-grid { grid-template-columns: 1fr; }
    .video-showcase { padding: 56px 0; }
}

/* Video expand button & modal */
.video-expand-btn {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.6); border: none; color: white;
    width: 36px; height: 36px; border-radius: 6px;
    cursor: pointer; font-size: 18px; z-index: 10;
    opacity: 0; transition: opacity 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.video-wrapper:hover .video-expand-btn { opacity: 1; }

.video-modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 10000;
    justify-content: center; align-items: center;
}
.video-modal.active { display: flex; }
.video-modal-content {
    position: relative; width: 80vw; max-width: 1280px;
}
.video-modal-content video {
    width: 100%; border-radius: 8px;
}
.video-modal-close {
    position: absolute; top: -40px; right: 0;
    background: none; border: none; color: white;
    font-size: 32px; cursor: pointer; line-height: 1;
}

/* Video gallery (full demos on videos.html) */
.video-gallery-full .video-wrapper video {
    max-height: none;
    object-fit: contain;
}
