/* JUDGMENT DECAY DEMO — Styles */
/* Dark, clean, professional — designed to impress Anthropic/investors */

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

:root {
    --bg: #050505;
    --surface: #0d0d0d;
    --surface-2: #161616;
    --surface-3: #1a1a1a;
    --border: #222;
    --text: #e8e8e8;
    --text-muted: #999;
    --accent: #8C9B76;
    --accent-glow: rgba(140, 155, 118, 0.15);
    --red: #ef4444;
    --amber: #f59e0b;
    --green: #22c55e;
    --blue: #3b82f6;
    --purple: #8b5cf6;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* SCREENS */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* INTRO SCREEN */
.intro-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 15vh 24px 10vh;
    text-align: center;
    animation: introFade 1.2s ease forwards;
}

@keyframes introFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.intro-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.intro-container h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.7;
}

.intro-detail {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.intro-detail strong { color: var(--text); }

.intro-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 40px;
}

.note-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.primary-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* SCENARIO SCREEN */
.scenario-header {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    z-index: 100;
}

.progress-bar-container {
    width: 100%;
    height: 3px;
    background: var(--surface-2);
    border-radius: 2px;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.scenario-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.timer {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--text-muted);
}

.scenario-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.scenario-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.scenario-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

.scenario-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.scenario-content {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

.scenario-content blockquote {
    background: var(--surface-2);
    border-left: 3px solid var(--border);
    padding: 20px 24px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}

.scenario-content p { margin-bottom: 12px; }

/* AI RECOMMENDATION */
.ai-rec {
    background: var(--surface);
    border: 1px solid rgba(140, 155, 118, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.ai-rec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #6b7a5a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #000;
}

.ai-rec-title {
    font-size: 14px;
    font-weight: 600;
}

.ai-rec-confidence {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.ai-rec-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

.split-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.split-option {
    background: var(--surface-2);
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

/* NO AI NOTICE */
.no-ai-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.no-ai-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--amber);
}

.no-ai-notice strong {
    font-size: 14px;
    color: var(--amber);
}

.no-ai-notice p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* DECISION AREA */
.decision-area {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.decision-area h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.decision-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}

.option-btn:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.option-btn.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow);
}

.override-area {
    margin-top: 16px;
}

.override-area textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
}

.override-area textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ANALYZING SCREEN */
.analyzing-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20vh 24px;
    text-align: center;
}

.analyzing-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--surface-3);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.analyzing-container h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

#analyzing-status {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.analyzing-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    opacity: 0.4;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
    border-color: var(--accent);
    color: var(--text);
}

/* DASHBOARD */
.dashboard-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px 120px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 48px;
}

.reveal-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 20px;
}

.dashboard-header h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.dashboard-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* SCORE HERO */
.score-hero {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 48px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.score-circle svg {
    transform: rotate(-90deg);
    width: 200px;
    height: 200px;
}

.score-bg {
    fill: none;
    stroke: var(--surface-3);
    stroke-width: 8;
}

.score-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease, stroke 0.3s;
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
}

.score-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 30%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

.score-interpretation {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* METRICS GRID */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.metric-card.critical {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.03);
}

.metric-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.metric-detail {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* TIMELINE */
.timeline-section {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.timeline-section h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.timeline-bars {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 120px;
    margin-bottom: 20px;
}

.timeline-bar {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.bar-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    min-height: 4px;
}

.bar-fill.accept { background: var(--text-muted); }
.bar-fill.modified { background: var(--amber); }
.bar-fill.override { background: var(--green); }
.bar-fill.independent { background: var(--blue); }
.bar-fill.missed { background: var(--red); }

.bar-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.timeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-item { display: flex; align-items: center; gap: 6px; }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.dot.accept { background: var(--text-muted); }
.dot.modified { background: var(--amber); }
.dot.override { background: var(--green); }
.dot.independent { background: var(--blue); }
.dot.missed { background: var(--red); }

/* DECAY CHART */
.decay-section {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.decay-section h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.decay-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

#decay-chart {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.decay-warning {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.decay-warning.critical {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.decay-warning.warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.decay-warning.positive {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
}

/* REVEAL SECTION */
.reveal-section {
    margin-bottom: 48px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 20px;
}

.reveal-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.reveal-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

/* FRAMEWORK SECTION */
.framework-section {
    margin-bottom: 48px;
}

.framework-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.framework-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fw-point {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.fw-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
    flex-shrink: 0;
    width: 50px;
}

.fw-point h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.fw-point p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA */
.cta-section { text-align: center; }

.cta-box {
    padding: 48px 40px;
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 20px;
    box-shadow: 0 0 60px var(--accent-glow);
}

.cta-box h2 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.cta-tagline {
    font-size: 16px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
}

.cta-box > p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.cta-contact {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cta-contact p {
    font-size: 14px;
    color: var(--text-muted);
}

.cta-contact strong { color: var(--text); }

/* NEXT BUTTON */
.next-btn {
    margin-top: 20px;
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* TRANSITIONS */
.screen.fade-out { animation: fadeOut 0.25s ease forwards; }
.screen.fade-in { animation: fadeIn 0.35s ease forwards; }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* SCENARIO BREAKDOWN */
.breakdown-section {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.breakdown-section h3 { font-size: 18px; margin-bottom: 4px; }
.breakdown-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.breakdown-list { display: flex; flex-direction: column; gap: 12px; }

.breakdown-item {
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.breakdown-item.incorrect { border-color: rgba(239, 68, 68, 0.3); }
.breakdown-item.correct { border-color: rgba(34, 197, 94, 0.2); }

.breakdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.breakdown-number {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.breakdown-title { font-size: 14px; font-weight: 600; flex: 1; }

.breakdown-result {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
}

.breakdown-result.correct { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.breakdown-result.incorrect { background: rgba(239, 68, 68, 0.15); color: var(--red); }

.breakdown-explanation {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ENTERPRISE SECTION */
.enterprise-section {
    margin-bottom: 48px;
}

.enterprise-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

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

.enterprise-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.enterprise-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.enterprise-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.enterprise-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* SDK SECTION */
.sdk-section {
    margin-bottom: 48px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 20px;
}

.sdk-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.sdk-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.sdk-content strong { color: var(--text); }

.sdk-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.sdk-list li {
    padding: 10px 0 10px 24px;
    position: relative;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.sdk-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.sdk-list li strong { color: var(--text); }

/* CITATIONS */
.citations-section {
    margin-bottom: 48px;
}

.citations-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.citations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.citation {
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.citation strong {
    font-size: 13px;
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
}

.citation p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA EXTRAS */
.cta-constraint {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 20px;
}

.cta-links a {
    color: var(--accent);
    text-decoration: none;
}

.cta-links a:hover { text-decoration: underline; }

/* ACTION BUTTONS */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.action-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    background: var(--accent);
    color: #000;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.action-btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.action-btn.secondary:hover {
    border-color: var(--text-muted);
    color: var(--text);
    box-shadow: none;
}

/* SCROLL ANIMATIONS */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* BENCHMARK BAR */
.benchmark-bar {
    margin-bottom: 24px;
    padding: 16px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.benchmark-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.benchmark-inner strong { color: var(--text); font-size: 18px; }
.benchmark-sep { color: var(--border); }

/* SESSION STATS */
.session-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.stat-item {
    text-align: center;
    padding: 16px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.stat-detail {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ANALYZING PERCENTAGE */
.analyzing-pct {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -2px;
    margin-bottom: 8px;
}

/* ENTERPRISE CTA */
.enterprise-cta {
    text-align: center;
    padding: 48px 40px;
    background: linear-gradient(135deg, rgba(140, 155, 118, 0.08) 0%, rgba(140, 155, 118, 0.02) 100%);
    border: 2px solid var(--accent);
    border-radius: 20px;
    margin-bottom: 32px;
}

.enterprise-cta h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.enterprise-cta p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.enterprise-cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: #000;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.enterprise-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* ANALYTICS DIVIDER */
.analytics-divider {
    text-align: center;
    padding: 40px 0 24px;
    margin-top: 48px;
    border-top: 1px solid var(--border);
}

.analytics-divider h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.analytics-divider p {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* SECTOR SECTION */
.sector-section {
    margin-bottom: 48px;
}

.sector-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.sector-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sector-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.sector-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 8px;
}

.sector-stat {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.sector-card > p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.sector-application {
    font-size: 12px;
    padding: 12px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(140, 155, 118, 0.2);
    border-radius: 8px;
    color: var(--text);
    line-height: 1.6;
}

.sector-application strong { color: var(--accent); }

/* EU AI ACT SECTION */
.euai-section {
    margin-bottom: 48px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--red);
    border-radius: 20px;
}

.euai-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--red);
}

.euai-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.euai-content strong { color: var(--text); }

.euai-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.euai-cat {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* ARCHITECTURE DIAGRAM */
.arch-diagram {
    margin: 24px 0;
    padding: 24px;
    background: var(--surface-2);
    border-radius: 12px;
}

.arch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.arch-row.outputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
}

.arch-box {
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--border);
    background: var(--surface-3);
}

.arch-box.highlight {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--text);
}

.arch-box.highlight span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 4px;
}

/* .arch-box.user and .arch-box.ai inherit from .arch-box */

.arch-arrow {
    font-size: 20px;
    color: var(--text-muted);
}

.arch-output {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--accent);
}

/* HERO METRICS (2-col that stacks on mobile) */
.metrics-grid-hero {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 32px;
}

.metrics-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

/* GLOBAL RESETS */
button, textarea, input, select { font-family: inherit; }

/* GLOBAL INTERACTIVE */
* { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* RESPONSIVE — TABLET */
@media (max-width: 768px) {
    .intro-container h1 { font-size: 32px; }
    .score-hero { flex-direction: column; gap: 24px; padding: 24px; }
    .metrics-grid { grid-template-columns: 1fr; }
    .metrics-grid-hero { grid-template-columns: 1fr; }
    .metrics-grid-3col { grid-template-columns: 1fr; }
    .dashboard-header h1 { font-size: 28px; }
    .scenario-card { padding: 20px; }
    .fw-point { flex-direction: column; gap: 8px; }
    .enterprise-grid { grid-template-columns: 1fr; }
    .citations-grid { grid-template-columns: 1fr; }
    .session-stats { grid-template-columns: repeat(2, 1fr); }
    .benchmark-inner { flex-direction: column; gap: 8px; }
    .benchmark-sep { display: none; }
    .sector-grid { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; }
    #decay-chart { max-width: 100%; }
    .arch-row { flex-direction: column; gap: 8px; }
    .arch-row.outputs { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .arch-arrow { transform: rotate(90deg); }
    .euai-section { padding: 24px; }
    .sdk-section { padding: 24px; }
    .reveal-section { padding: 24px; }
    .cta-box { padding: 32px 20px; }
    .enterprise-cta { padding: 32px 20px; }
    .enterprise-cta-btn { display: block; width: 100%; text-align: center; }
}

/* RESPONSIVE — PHONE */
@media (max-width: 480px) {
    .intro-container h1 { font-size: 26px; }
    .intro-container { padding: 32px 20px; }
    .primary-btn { width: 100%; }
    .score-circle { width: 160px; height: 160px; }
    .score-circle svg { width: 160px; height: 160px; }
    .score-number { font-size: 44px; }
    .score-label { font-size: 10px; }
    .dashboard-container { padding: 20px 16px; }
    .metric-card { padding: 20px; }
    .metric-value { font-size: 28px; }
    .sector-card { padding: 20px; }
    .fw-number { font-size: 28px; min-width: 40px; }
    .timeline-bars { gap: 4px; }
    .bar-label { font-size: 9px; }
    .session-stats { gap: 8px; }
    .stat-value { font-size: 20px; }
    #decay-chart { aspect-ratio: 1.5 / 1; }
    .next-btn { width: 100%; }
}

/* TOUCH DEVICES — prevent stuck hover states */
@media (hover: none) {
    .primary-btn:hover,
    .next-btn:hover,
    .action-btn:hover,
    .enterprise-cta-btn:hover,
    .option-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ============ DASHBOARD TABS ============ */
.dash-tabs {
    position: sticky;
    top: 0;
    z-index: 50;
    display: none; /* Hidden by default, shown via JS when dashboard active */
    background: #1A1A1A;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 1rem;
    gap: 0;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tabs.visible { display: flex; }

.dash-tab {
    flex: 0 0 auto;
    padding: 0.875rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255,255,255,0.5);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.dash-tab:hover { color: rgba(255,255,255,0.8); }
.dash-tab.active {
    color: #8C9B76;
    border-bottom-color: #8C9B76;
}

/* Tab content sections */
[id^="tab-"] {
    scroll-margin-top: 52px; /* Height of tab bar */
}

/* Mobile tab adjustments */
@media (max-width: 768px) {
    .dash-tabs { padding: 0 0.5rem; }
    .dash-tab { padding: 0.75rem 1rem; font-size: 0.8rem; }
}
