/* ============================================
   FeedOracle Relaunch V2 — Opus Build
   Design: Bloomberg Terminal × Modern Enterprise
   ============================================ */

/* === FONTS === */
/* Self-hosted Google Fonts — eliminates render-blocking chain */

/* DM Sans (body) — Variable: 400-600, normal + italic */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit (display/headings) — Variable: 400-800 */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono (code) — Variable: 400-700 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/jbmono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/jbmono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    /* Palette */
    --bg-deep: #060A14;
    --bg-primary: #0B0F19;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --bg-elevated: #1F2937;
    --border-subtle: #1E293B;
    --border-hover: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-glow-strong: rgba(59, 130, 246, 0.25);
    --green: #10B981;
    --green-glow: rgba(16, 185, 129, 0.12);
    --orange: #F59E0B;
    --red: #EF4444;
    
    /* Typography */
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    
    /* Layout */
    --max-w: 1280px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease);
    --transition: 250ms var(--ease);
    --transition-slow: 400ms var(--ease);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === GLOBAL TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; }

p { color: var(--text-secondary); font-size: 1.0625rem; }

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

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.625rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 0 var(--accent-glow), 0 1px 2px rgba(0,0,0,0.3);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 24px 4px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
}
.btn-ghost:hover { color: var(--text-primary); }

/* Small variant */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

/* === NAVIGATION === */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 10, 20, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

nav {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}
.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}
.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}

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

/* Mobile hamburger */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
}
.mobile-toggle svg { display: block; }

/* === HERO === */
.hero {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 7.5rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    min-height: 92vh;
}

/* Subtle background grid */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 50% at 20% 40%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 30%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.hero h1 {
    margin-bottom: 1.25rem;
}
.hero h1 .accent-line {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, #60A5FA 50%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
}

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

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.hero-trust .check {
    color: var(--green);
    font-size: 0.875rem;
}

/* === EVIDENCE WIDGET === */
.evidence-widget {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(59, 130, 246, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

.widget-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}
.widget-chrome-title {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}
.widget-chrome-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.widget-chrome-status::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s ease infinite;
}

.widget-body {
    padding: 1.25rem;
}

.protocol-selector {
    margin-bottom: 1rem;
}
.protocol-selector label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.protocol-selector select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8'%3E%3Cpath d='M6 8.825c-.2 0-.4-.075-.55-.225l-3-3a.776.776 0 01.55-1.325c.2 0 .4.075.55.225L6 6.95l2.45-2.45a.776.776 0 011.1 0c.15.15.225.35.225.55 0 .2-.075.4-.225.55l-3 3A.776.776 0 016 8.825z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}
.protocol-selector select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.report-output {
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

/* Widget inner elements */
.report-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.risk-score-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.risk-score-num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.risk-score-max {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}
.risk-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.risk-low {
    background: var(--green-glow);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.risk-medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--orange);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.risk-high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.report-metrics {
    padding: 0.25rem 0;
}
.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5625rem 1.25rem;
    transition: background var(--transition-fast);
}
.metric-row:hover {
    background: rgba(255, 255, 255, 0.02);
}
.metric-row + .metric-row {
    border-top: 1px solid rgba(30, 41, 59, 0.5);
}
.metric-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.metric-value {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.report-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.signature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.03em;
}
.signature-badge svg {
    width: 14px; height: 14px;
}

.verify-btn {
    padding: 0.4375rem 0.875rem;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.verify-btn:hover {
    background: var(--accent-glow);
    box-shadow: 0 0 12px var(--accent-glow);
}

.widget-note {
    text-align: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    border-top: 1px solid var(--border-subtle);
}
.widget-note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Loading state */
.widget-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 320px;
    gap: 1rem;
}
.spinner {
    width: 32px; height: 32px;
    border: 2.5px solid var(--border-subtle);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.widget-loading p {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* === TRUST BAR === */
.trust-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
}
.trust-bar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.trust-bar-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.trust-stat {
    text-align: center;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* === SECTION LAYOUT === */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 5rem 2rem;
}
.section-dark {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.section-dark > .section {
    padding: 5rem 2rem;
}
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}
.section-header p {
    margin-top: 0.75rem;
}
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* === PROBLEM SECTION === */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.problem-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.problem-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.problem-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    color: var(--accent);
}
.problem-card h3 {
    margin-bottom: 0.75rem;
}
.problem-card p {
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* === PRODUCT CARDS === */
.product-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5rem;
}
.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--transition);
}
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.product-card:hover::before {
    background: linear-gradient(90deg, var(--accent), #60A5FA);
}
.product-card.core {
    border-color: rgba(59, 130, 246, 0.3);
}
.product-card.core::before {
    background: linear-gradient(90deg, var(--accent), #60A5FA);
}

.card-badge {
    display: inline-block;
    padding: 0.1875rem 0.625rem;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.product-card h3 { margin-bottom: 0.75rem; }
.product-card > p { font-size: 0.9375rem; margin-bottom: 1.25rem; }
.product-card ul {
    list-style: none;
}
.product-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.375rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}
.product-card li::before {
    content: '';
    flex-shrink: 0;
    width: 4px; height: 4px;
    margin-top: 0.5rem;
    background: var(--accent);
    border-radius: 50%;
}

/* === PERSONA TILES === */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.persona-tile {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}
.persona-tile:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.persona-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    color: var(--accent);
}
.persona-tile h3 { margin-bottom: 0.75rem; }
.persona-tile p { 
    font-size: 0.9375rem; 
    margin-bottom: 1.5rem; 
    min-height: 3.5rem;
}

/* === CODE SECTION === */
.code-section {
    margin-top: 2rem;
    position: relative;
}
.code-tabs {
    display: flex;
    gap: 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}
.code-tab {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-bottom: 1px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.code-tab.active {
    color: var(--text-primary);
    background: var(--bg-deep);
    border-bottom-color: var(--bg-deep);
}
.code-block {
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    overflow-x: auto;
    color: var(--text-secondary);
}
.code-block .cm { color: var(--text-muted); }
.code-block .kw { color: #C084FC; }
.code-block .fn { color: #60A5FA; }
.code-block .st { color: #34D399; }
.code-block .nb { color: var(--orange); }
.code-block .op { color: var(--text-secondary); }

/* === FINAL CTA === */
.final-cta {
    text-align: center;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 4.5rem 2rem;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(ellipse 40% 30% at 50% 0%, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}
.final-cta > * { position: relative; }
.final-cta h2 { margin-bottom: 0.75rem; }
.final-cta p {
    max-width: 520px;
    margin: 0 auto 2rem;
    font-size: 1.0625rem;
}
.final-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.final-cta-note {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 2rem 2rem;
    margin-top: 5rem;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* === VERIFICATION MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 200ms ease;
}
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 560px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 300ms var(--ease);
}
.modal-content h3 {
    margin-bottom: 1.5rem;
}
.modal-field {
    margin-bottom: 1rem;
}
.modal-field-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.375rem;
}
.modal-field-value {
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    word-break: break-all;
    line-height: 1.5;
}
.modal-field-value a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.modal-valid {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: var(--green-glow);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}
.modal-valid-icon {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    color: var(--green);
    flex-shrink: 0;
}
.modal-valid-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.modal-valid-text strong {
    display: block;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 0.125rem;
}
.modal-actions {
    display: flex;
    gap: 0.75rem;
}
.modal-actions .btn { flex: 1; text-align: center; }

/* === ANIMATIONS === */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        min-height: auto;
        padding-top: 6rem;
    }
    .product-grid { grid-template-columns: 1fr; }
    .product-card.core { order: -1; }
    .trust-stats { grid-template-columns: repeat(2, 1fr); }
    .persona-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    nav { padding: 0 1.25rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    
    /* Mobile menu */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-subtle);
        padding: 1rem;
        gap: 0.25rem;
    }
    .nav-links.open a {
        padding: 0.75rem 1rem;
    }
    
    .hero { padding: 5.5rem 1.25rem 3rem; }
    .section { padding: 3.5rem 1.25rem; }
    .problem-grid { grid-template-columns: 1fr; }
    .trust-stats { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .final-cta { padding: 3rem 1.5rem; }
    .final-cta-buttons { flex-direction: column; align-items: center; }
    .code-tabs { overflow-x: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .modal-content { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .stat-value { font-size: 2.25rem; }
    .nav-actions .btn-ghost { display: none; }
}

/* === WIDGET V4: 9 RISK VECTORS === */

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

.risk-grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Stats row under header */
.report-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border-subtle);
}
.report-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.625rem 0.5rem;
    border-right: 1px solid rgba(30, 41, 59, 0.4);
}
.report-stat:last-child { border-right: none; }
.stat-key {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.125rem;
}
.stat-val {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}
.type-tag {
    font-size: 0.6875rem;
    color: var(--accent);
}

/* Vector bars */
.report-vectors {
    padding: 0.625rem 1.25rem 0.5rem;
}
.vectors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.4);
}
.vectors-header span:first-child {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.vectors-source {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.vector-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}
.vector-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    width: 110px;
    flex-shrink: 0;
}
.vector-track {
    flex: 1;
    height: 6px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 3px;
    overflow: hidden;
}
.vector-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s var(--ease);
}
.vector-val {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}
/* Vector tooltip hint */
.vector-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    margin-left: 3px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    font-size: 0.55rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: help;
    vertical-align: middle;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.vector-row:hover .vector-hint { opacity: 1; }
.vector-row[title] {
    position: relative;
    cursor: help;
}
.vector-row[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 100;
    background: #1e293b;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.65rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: normal;
    width: max(200px, 100%);
    max-width: 320px;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    animation: fadeInTooltip 0.15s ease;
}
@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Meta row (jurisdiction, deltas) */
.report-meta-row {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.375rem;
    border-right: 1px solid rgba(30, 41, 59, 0.4);
}
.meta-item:last-child { border-right: none; }
.meta-key {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.125rem;
}
.meta-val {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}
.val-pos { color: var(--green); }
.val-neg { color: var(--red); }

/* Reason code summary */
.report-reason {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(59, 130, 246, 0.04);
}
.reason-icon {
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.reason-text {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Timestamp + manifest row */
.report-ts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4375rem 1.25rem;
    border-top: 1px solid rgba(30, 41, 59, 0.3);
}
.report-ts span {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
}
.manifest-id {
    opacity: 0.7;
}

/* Responsive for widget */
@media (max-width: 600px) {
    .report-stats { grid-template-columns: repeat(2, 1fr); }
    .report-meta-row { flex-wrap: wrap; }
    .meta-item { min-width: 33%; }
    .vector-label { width: 80px; font-size: 0.625rem; }
}

/* Persona outcomes */
.persona-outcome{font-size:0.82rem;color:var(--text-secondary);margin-top:0.25rem;padding-top:0.5rem;border-top:1px solid var(--border-subtle)}
.persona-outcome strong{color:var(--accent-primary);font-weight:600}
