/* ============================================
   INTELLIGENCE WAREHOUSE — Refined Dark Theme
   Inspired by o9 Solutions + Palantir AIP
   ============================================ */

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

:root {
    --bg: #f5f7fa;
    --bg-elevated: #edf0f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fc;
    --surface: #e8ecf2;
    --border: rgba(0,0,0,0.08);
    --border-light: rgba(0,0,0,0.12);
    --text: #1a1d26;
    --text-secondary: #4a5068;
    --text-dim: #7a8299;
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --accent-glow: rgba(79,70,229,0.1);
    --gradient-1: #4f46e5;
    --gradient-2: #7c3aed;
    --gradient-3: #a855f7;
    --blue: #2563eb;
    --green: #059669;
    --amber: #d97706;
    --purple: #7c3aed;
    --red: #dc2626;
    --teal: #0d9488;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.4s var(--ease);
    background: transparent;
}

.nav.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 8px;
}

.logo-text { white-space: nowrap; color: var(--text); }

.nav.scrolled .logo-text { color: var(--text); }
.nav.scrolled .logo-mark svg rect { fill: white; }
.nav.scrolled .nav-links a { color: var(--text-secondary); }
.nav.scrolled .nav-links a:hover { color: var(--text); }
.nav.scrolled .btn-ghost { color: var(--text-secondary); }
.nav.scrolled .btn-ghost:hover { color: var(--text); }
.nav.scrolled .nav-toggle span { background: var(--text); }
.nav.scrolled .btn-primary { background: var(--accent); color: #fff; }
.nav.scrolled .btn-primary:hover { background: var(--accent-light); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    font-weight: 450;
}

.nav-links a:hover { color: var(--text); }

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.graph-section .nav-toggle span {
    background: var(--text);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--text); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.btn-outline {
    border: 1px solid var(--border-light);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(79,70,229,0.06);
    color: var(--accent);
}

/* hero button overrides removed — using .btn-hero-primary / .btn-hero-outline */

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

.btn-ghost:hover { color: var(--text); }

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
}

/* =========================================
   HERO: Light Premium Landing Section
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: #fafbfe;
    color: var(--text);
}

/* Soft accent glows on light bg */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(140px);
    z-index: 0;
}

.hero-glow-1 {
    width: 700px;
    height: 700px;
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, transparent 70%);
    animation: glowDrift1 12s ease-in-out infinite;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    bottom: -15%;
    right: -5%;
    background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 70%);
    animation: glowDrift2 15s ease-in-out infinite;
}

.hero-glow-3 {
    width: 400px;
    height: 400px;
    top: 30%;
    left: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    animation: glowDrift3 18s ease-in-out infinite;
}

@keyframes glowDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes glowDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(1.05); }
    66% { transform: translate(30px, -20px) scale(0.9); }
}

@keyframes glowDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(-50px, 30px) scale(1.15); opacity: 1; }
}

/* Subtle grid overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 820px;
    padding: 7rem 2rem 4rem;
    margin-left: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
}

/* =========================================
   GRAPH SECTION: Full-Width Interactive
   ========================================= */
.graph-section {
    position: relative;
    width: 100%;
    background: #f0f2f7;
    padding: 4rem 0 0;
    overflow: hidden;
    color: var(--text);
}

.graph-section-header {
    text-align: center;
    padding: 0 2rem 2.5rem;
}

.graph-container {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.graph-container > canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Floating Legend Bar */
.graph-legend {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 100px;
    max-width: 95vw;
    overflow-x: auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.legend-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: none;
}

@media (min-width: 1100px) {
    .legend-title { display: block; }
}

.legend-items {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: nowrap;
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
    font-family: var(--font);
}

.legend-chip:hover {
    color: var(--text-secondary);
    background: rgba(0,0,0,0.04);
}

.legend-chip.active {
    color: var(--text);
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.12);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot-ring {
    background: transparent !important;
    border: 2px solid var(--teal);
    width: 8px;
    height: 8px;
}

.legend-dot-triangle {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 9px solid #e11d48;
    border-radius: 0;
    background: transparent;
}

/* Hero eyebrow */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem 0.45rem 0.65rem;
    border-radius: 100px;
    border: 1px solid rgba(79,70,229,0.2);
    background: rgba(79,70,229,0.06);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 2rem;
    font-family: var(--mono);
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-light);
    border-radius: 50%;
    animation: eyebrowPulse 2.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(99,102,241,0.4);
}

@keyframes eyebrowPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(99,102,241,0.4); }
    50% { opacity: 0.5; box-shadow: 0 0 16px rgba(99,102,241,0.2); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(99,102,241,0); }
}

.hero-title {
    font-size: clamp(3.2rem, 7.5vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.045em;
    margin-bottom: 1.75rem;
    color: #0f1117;
}

.text-gradient {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-dim { color: var(--text-dim); }

.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 0 2.5rem 0;
    line-height: 1.85;
}

.hero-subtitle em {
    color: var(--text);
    font-style: normal;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Hero-specific buttons */
.btn-hero-primary {
    background: var(--accent);
    color: #ffffff;
    border: 1px solid transparent;
    font-weight: 600;
}

.btn-hero-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(79,70,229,0.3);
}

.btn-hero-outline {
    border: 1px solid var(--border-light);
    color: var(--text);
    background: transparent;
}

.btn-hero-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(79,70,229,0.04);
}

/* Hero visual (right side graph) */
.hero-visual {
    position: absolute;
    top: 50%;
    right: max(2rem, calc((100vw - 1200px) / 2));
    transform: translateY(-50%);
    width: 480px;
    height: 480px;
    z-index: 2;
    pointer-events: none;
}

.hero-visual canvas {
    width: 100%;
    height: 100%;
}

.hero-visual-label {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.6s var(--ease);
}

.hero-visual-label.connected {
    border-color: rgba(79,70,229,0.3);
    background: rgba(79,70,229,0.06);
    color: var(--accent);
}

.hvl-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    transition: background 0.6s var(--ease);
}

.hero-visual-label.connected .hvl-dot {
    background: var(--green);
}

@media (max-width: 1200px) {
    .hero-visual {
        width: 380px;
        height: 380px;
        right: 1rem;
    }
}

@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
}

/* Hero trust strip */
.hero-trust {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.hero-trust-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 600;
    white-space: nowrap;
}

.hero-trust-items {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-trust-items span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.trust-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-light);
    flex-shrink: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    right: max(3rem, calc((100vw - 1200px) / 2 + 3rem));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* === NODE DETAIL PANEL (Palantir-inspired) === */
.node-detail-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    z-index: 20;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    color: var(--text);
}

.node-detail-panel.open {
    transform: translateX(0);
}

.ndp-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    background: none;
    border: none;
    font-family: var(--font);
}

.ndp-close:hover {
    color: var(--text);
    background: rgba(0,0,0,0.06);
}

.ndp-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.ndp-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}

.ndp-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.ndp-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ndp-badge {
    font-family: var(--mono);
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ndp-badge-id {
    background: rgba(0,0,0,0.06);
    color: var(--text-secondary);
}

.ndp-badge-type {
    color: white;
}

.ndp-section {
    margin-bottom: 1.25rem;
}

.ndp-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ndp-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ndp-formula {
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text);
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    white-space: pre-wrap;
    overflow-x: auto;
}

.ndp-formula-section,
.ndp-rule-section {
    display: none;
}

.ndp-formula-section.visible,
.ndp-rule-section.visible {
    display: block;
}

.ndp-meta-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.ndp-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ndp-meta-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    font-weight: 600;
}

.ndp-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.ndp-meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

.ndp-grain {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ndp-components {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ndp-comp-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.ndp-comp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ndp-comp-info {
    display: flex;
    flex-direction: column;
}

.ndp-comp-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.ndp-comp-group {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.ndp-dimensions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ndp-dim-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.ndp-dim-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* === TRAVERSAL REASONING PANEL === */
.traversal-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    z-index: 25;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    color: var(--text);
}

.traversal-panel.open {
    transform: translateX(0);
}

.tp-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    background: none;
    border: none;
    font-family: var(--font);
}

.tp-close:hover {
    color: var(--text);
    background: rgba(0,0,0,0.06);
}

.tp-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--accent);
    border-radius: 12px;
    margin-bottom: 1rem;
    margin-right: 2rem;
}

.tp-question-badge {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.tp-question-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.35rem;
}

.tp-question-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.tp-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tp-iteration {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(99,102,241,0.15);
    color: var(--accent-light);
}

.tp-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 500;
}

.tp-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}

.tp-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tp-step {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    animation: stepFadeIn 0.4s ease forwards;
    opacity: 0;
    transform: translateY(8px);
}

@keyframes stepFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tp-step-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.tp-step-num {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-light);
}

.tp-step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.tp-step-reasoning {
    padding: 0.75rem 1rem;
    background: rgba(245,158,11,0.06);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
    font-style: italic;
    border-left: 3px solid rgba(245,158,11,0.3);
}

.tp-step-nodes {
    padding: 0.75rem 1rem;
}

.tp-step-nodes-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.tp-step-node-chips {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.tp-node-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--mono);
}

.tp-node-chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tp-step-fetch {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.02);
}

.tp-fetch-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.tp-fetch-icon {
    font-size: 0.85rem;
}

.tp-fetch-nodes {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.tp-fetch-result {
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.04);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}

/* === Ontology Tooltip === */
.ontology-tooltip {
    position: absolute;
    display: none;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text);
    pointer-events: none;
    z-index: 15;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    white-space: nowrap;
    font-family: var(--mono);
    min-width: 170px;
    max-width: 220px;
}

.ontology-tooltip.visible {
    display: block;
}

.ont-source-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.ont-badge {
    position: absolute;
    padding: 0.3rem 0.7rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    pointer-events: none;
}

/* === SECTIONS === */
.section {
    padding: 7rem 0;
    position: relative;
}

.section-dark {
    background: var(--bg-elevated);
    color: var(--text);
}

.section-dark .section-label {
    color: var(--accent-light);
    font-size: 0.85rem;
}

.section-dark .section-title {
    color: var(--text);
}

.section-dark .section-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

/* Section background images */
.section-bg-img {
    position: relative;
    overflow: hidden;
}

.section-bg-img::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.section-bg-img > * {
    position: relative;
    z-index: 1;
}

.section-bg-process::after {
    background: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1920&q=80') center center / cover no-repeat;
    opacity: 0.03;
}

.section-bg-domains::after {
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80') center center / cover no-repeat;
    opacity: 0.06;
}

.section-bg-thesis::after {
    background: url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?w=1920&q=80') center center / cover no-repeat;
    opacity: 0.03;
}

.section-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
}

/* === THESIS SECTION === */
.thesis-block {
    margin-bottom: 5rem;
}

.thesis-comparison {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 3rem;
}

.thesis-era {
    flex: 1;
    padding: 2.5rem;
}

.era-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-weight: 600;
}

.era-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.era-node {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
    max-width: 280px;
}

.era-highlight {
    border-color: var(--border-light);
    color: var(--text);
    font-weight: 600;
    background: rgba(79,70,229,0.04);
}

.era-glow {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--text);
    box-shadow: 0 0 30px rgba(99,102,241,0.1);
}

.era-dim { color: var(--text-dim); font-size: 0.85rem; }

.era-bright {
    color: var(--accent-light);
    font-weight: 500;
}

.era-arrow {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.thesis-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    min-width: 2px;
}

.divider-line {
    flex: 1;
    width: 1px;
    background: var(--border-light);
}

.divider-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
}

.thesis-statement {
    text-align: center;
}

.thesis-statement h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.4;
    color: var(--text-secondary);
}

.thesis-statement .text-dim { color: var(--text-dim); }

/* === PROBLEM SECTION === */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s var(--ease);
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.problem-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.problem-icon {
    color: var(--red);
    margin-bottom: 1.25rem;
    opacity: 0.8;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.problem-card em {
    color: var(--text);
    font-style: normal;
    font-weight: 500;
}

/* === ARCHITECTURE SECTION === */
.architecture-compare {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 3rem;
}

.arch-col {
    flex: 1;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.arch-col:first-child { border-radius: 12px 0 0 12px; }
.arch-col:last-child { border-radius: 0 12px 12px 0; }

.arch-col-highlight {
    background: rgba(79,70,229,0.03);
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(79,70,229,0.06);
}

.arch-header {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent-light);
}

.arch-header-dim { color: var(--text-dim); }

.arch-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.arch-item {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.arch-item:last-child { border-bottom: none; }

.arch-detail {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 400;
    margin-top: 0.25rem;
}

.arch-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    gap: 0.75rem;
}

.arch-vs span {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    font-family: var(--mono);
}

.arch-vs-line {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

.arch-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--mono);
}

/* === HOW IT WORKS — Vertical Timeline === */
.section-hiw {
    background: var(--bg);
    position: relative;
}

.hiw-timeline {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hiw-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0 2rem;
}

/* Timeline marker (number + vertical line) */
.hiw-step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hiw-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(99,102,241,0.25);
}

.hiw-step-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
    min-height: 2rem;
}

.hiw-step-last .hiw-step-marker {
    /* no line after last step */
}

/* Content area */
.hiw-step-content {
    padding-bottom: 3.5rem;
}

.hiw-step-last .hiw-step-content {
    padding-bottom: 0;
}

.hiw-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hiw-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
}

.hiw-icon-extract {
    background: rgba(99,102,241,0.08);
    color: var(--accent);
    border: 1px solid rgba(99,102,241,0.15);
}

.hiw-icon-build {
    background: rgba(16,185,129,0.08);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.15);
}

.hiw-icon-deploy {
    background: rgba(245,158,11,0.08);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.15);
}

.hiw-step-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

.hiw-step-desc {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* Example box (Step 1) */
.hiw-step-example {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.hiw-example-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.hiw-example-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    padding-left: 1rem;
    border-left: 2px solid var(--border-light);
    margin-bottom: 1rem;
}

.hiw-example-arrow {
    text-align: center;
    color: var(--accent-light);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.hiw-example-output {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 500;
}

/* Graph visual (Step 2) */
.hiw-step-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.hiw-graph-nodes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1rem;
}

.hiw-gnode {
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hiw-gnode-ont {
    background: rgba(99,102,241,0.08);
    color: var(--accent);
    border: 1px solid rgba(99,102,241,0.2);
}

.hiw-gnode-met {
    background: rgba(16,185,129,0.08);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.2);
}

.hiw-gnode-dec {
    background: rgba(245,158,11,0.08);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.2);
}

.hiw-gnode-connector {
    width: 32px;
    height: 2px;
    background: var(--border-light);
    flex-shrink: 0;
}

.hiw-graph-caption {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
}

/* Stats row (Step 3) */
.hiw-step-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.hiw-stat {
    flex: 1;
    padding: 1.5rem;
    text-align: center;
}

.hiw-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.hiw-stat-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.hiw-stat-divider {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
}

/* === STACK DIAGRAM === */
.stack-diagram {
    max-width: 900px;
    margin: 0 auto;
}

.stack-tier {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.stack-tier-top { background: var(--bg-card); box-shadow: 0 1px 8px rgba(0,0,0,0.04); }

.stack-tier-bottom {
    background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(124,58,237,0.03));
    border-color: rgba(79,70,229,0.25);
    box-shadow: 0 2px 12px rgba(79,70,229,0.06);
}

.stack-tier-badge {
    position: absolute;
    top: -0.6rem;
    left: 2rem;
    padding: 0.2rem 0.75rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-dim);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.stack-tier-badge-primary {
    background: var(--accent);
    color: white;
}

.stack-tier h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.stack-tier-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.stack-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.stack-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stack-feature svg { color: var(--accent-light); flex-shrink: 0; }

.stack-buyer {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.stack-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stack-col-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.stack-connector {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    justify-content: center;
}

.connector-line {
    height: 1px;
    flex: 1;
    max-width: 100px;
    background: var(--border-light);
}

.connector-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.stack-tier-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 10px;
}

.cmd-visual {
    position: relative;
    width: 220px;
    height: 220px;
}

.cmd-node {
    position: absolute;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    font-family: var(--mono);
}

.cmd-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    z-index: 2;
}

.cmd-orbit {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.6rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    z-index: 1;
}

.cmd-orbit-1 { top: -4px; left: 50%; transform: translateX(-50%); }
.cmd-orbit-2 { top: 50%; right: -4px; transform: translateY(-50%); }
.cmd-orbit-3 { bottom: -4px; left: 50%; transform: translateX(-50%); }
.cmd-orbit-4 { top: 50%; left: -4px; transform: translateY(-50%); }

.stack-analogy {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
}

.stack-analogy p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

/* === DOMAINS LAYOUT (Palantir sidebar style) === */
.domains-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    align-items: start;
}

.domains-sidebar {
    position: sticky;
    top: 6rem;
}

.domains-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.domains-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.section-dark .domains-title {
    color: var(--text);
}

.domains-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.domain-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-light);
    border-radius: 0 12px 12px 0;
    padding: 1.75rem 2rem;
    transition: all 0.3s var(--ease);
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.domain-card:hover {
    border-left-color: var(--accent-light);
    background: var(--bg-card-hover);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.domain-card:nth-child(1) { border-left-color: #3b82f6; }
.domain-card:nth-child(2) { border-left-color: #10b981; }
.domain-card:nth-child(3) { border-left-color: #8b5cf6; }
.domain-card:nth-child(4) { border-left-color: #f59e0b; }
.domain-card:nth-child(5) { border-left-color: #ef4444; }

.domain-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.domain-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79,70,229,0.06);
    border: 1px solid var(--border);
    color: var(--domain-color, var(--accent-light));
    flex-shrink: 0;
}

.domain-num {
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    vertical-align: super;
    margin-right: 0.25rem;
}

.domain-card-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.domain-card p {
    font-size: 1.0rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.section-dark .domain-card-header h4 {
    color: var(--text);
}

.domain-agents {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.agent-tag {
    font-family: var(--mono);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
    background: rgba(79,70,229,0.04);
    transition: all 0.2s var(--ease);
}

.agent-tag:hover {
    border-color: var(--accent-light);
    color: var(--accent);
    background: rgba(99,102,241,0.08);
}

/* Domain Economics */
.domain-economics {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.econ-item { text-align: center; }

.econ-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.econ-label {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

.econ-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* === PARTNERS === */
.partner-engagement {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.partner-engagement::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: var(--border-light);
}

.engage-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem 0;
    position: relative;
}

.engage-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(79,70,229,0.08);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
    flex-shrink: 0;
    z-index: 1;
}

.engage-text strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.engage-text span {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* === POSITIONING === */
.positioning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.pos-card {
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.pos-them {
    background: var(--bg-card);
    opacity: 0.8;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.pos-us {
    background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(124,58,237,0.03));
    border-color: rgba(79,70,229,0.3);
    box-shadow: 0 2px 12px rgba(79,70,229,0.06);
}

.pos-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pos-them .pos-label { color: var(--text-dim); }
.pos-us .pos-label { color: var(--accent-light); }

.pos-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.pos-approach {
    font-family: var(--mono);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
}

.pos-us .pos-approach { color: var(--accent-light); }

/* === QUOTE === */
.section-quote {
    padding: 6rem 0;
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
    color: var(--text);
}

.section-quote::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80') center center / cover no-repeat;
    opacity: 0.04;
    pointer-events: none;
}

.quote-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    font-size: 6rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.25;
    font-family: Georgia, serif;
    margin-bottom: -1rem;
}

.quote-block blockquote {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 500;
    line-height: 1.55;
    color: var(--text);
    letter-spacing: -0.015em;
}

.quote-line {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 2rem auto 0;
    opacity: 0.4;
}

/* === CTA === */
.section-cta {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text);
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12), transparent 60%),
        url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?w=1920&q=80') center center / cover no-repeat;
    opacity: 0.04;
    pointer-events: none;
}

.section-cta .section-label {
    color: var(--accent-light);
}

.section-cta .section-title {
    color: var(--text);
}

.section-cta .section-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.section-cta .btn-outline {
    border-color: var(--border-light);
    color: var(--text);
}

.section-cta .btn-outline:hover {
    border-color: var(--accent);
    background: rgba(79,70,229,0.06);
    color: var(--accent);
}

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

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.95rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-dim);
    transition: color 0.2s;
}

.footer-legal a:hover { color: var(--text); }

/* === TEAM SECTION === */
.section-team {
    background: #f5f7fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Bottom row: 3 cards centered */
.team-grid .team-card:nth-child(n+3) {
    /* handled by grid */
}

/* When 5 cards: first 2 in row 1, last 3 in row 2 */
.team-grid {
    grid-template-columns: repeat(6, 1fr);
}

.team-grid .team-card:nth-child(1) {
    grid-column: 1 / 4;
}

.team-grid .team-card:nth-child(2) {
    grid-column: 4 / 7;
}

.team-grid .team-card:nth-child(3) {
    grid-column: 1 / 3;
}

.team-grid .team-card:nth-child(4) {
    grid-column: 3 / 5;
}

.team-grid .team-card:nth-child(5) {
    grid-column: 5 / 7;
}

.team-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    transition: all 0.3s var(--ease);
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: rgba(79,70,229,0.15);
}

.team-card-featured {
    border-color: rgba(79,70,229,0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f8f6ff 100%);
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    position: relative;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.team-role {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: var(--mono);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.team-bio {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.team-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.team-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.2s;
    background: #f8f9fc;
}

.team-link:hover {
    border-color: #0a66c2;
    color: #0a66c2;
    background: rgba(10,102,194,0.06);
}

/* === INVESTORS SECTION === */
.section-investors {
    background: #ffffff;
}

.investors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.investor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
    background: #f5f7fa;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    min-width: 180px;
    min-height: 70px;
    transition: all 0.3s var(--ease);
}

.investor-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: rgba(79,70,229,0.12);
}

.investor-logo span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.investor-logo .investor-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-top: 0.2rem;
    letter-spacing: 0.02em;
}

.investors-note {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(79,70,229,0.04);
    border: 1px solid rgba(79,70,229,0.1);
    border-radius: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.investors-note p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.investors-note strong {
    color: var(--accent);
}

/* === CONVERGENCE SECTION === */
.convergence-section {
    background: #ffffff;
    padding: 7rem 0;
    overflow: hidden;
}

.convergence-section em {
    font-style: normal;
    color: var(--text);
    font-weight: 600;
}

.convergence-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

.conv-panel-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

/* --- LEFT: Architecture Funnel --- */
.conv-architecture {
    padding: 0 2rem 0 0;
}

.conv-funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.conv-sources {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.conv-source-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    background: white;
    border: 1px solid var(--border);
    border-left: 3px solid var(--src-color, var(--border-light));
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}

.conv-source-card svg {
    color: var(--src-color, var(--text-dim));
    flex-shrink: 0;
}

.conv-source-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.conv-arrows,
.conv-arrows-down {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0;
}

/* Data Warehouse row with BI branching off to the side */
.conv-dw-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conv-dw-node {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    white-space: nowrap;
}

.conv-dw-node svg { color: var(--text-dim); }

.conv-bi-branch-side {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.conv-bi-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: rgba(139,92,246,0.06);
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--purple);
    white-space: nowrap;
}

.conv-bi-chip svg { color: var(--purple); }

/* Intelligence Warehouse Hub */
.conv-hub {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conv-hub-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, transparent 70%);
    animation: hubPulse 3s ease-in-out infinite;
}

@keyframes hubPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.conv-hub-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--gradient-2));
    border-radius: 14px;
    color: white;
    box-shadow: 0 4px 24px rgba(79,70,229,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
    z-index: 1;
}

.conv-hub-inner svg { stroke: white; opacity: 0.9; }

.conv-hub-inner span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.3;
}

/* Feeds into Intelligence Warehouse */
.conv-iw-feeds {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.conv-iw-feed {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: var(--mono);
    color: var(--feed-color, var(--text-dim));
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--border);
    white-space: nowrap;
}

.conv-iw-feed svg {
    color: var(--feed-color, var(--text-dim));
    flex-shrink: 0;
}

/* Hub row: side feeds → hub ← side feeds via MORRIE */
.conv-hub-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.conv-side-feed {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.conv-side-feed-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.conv-side-arrow {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.conv-hub-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.conv-morrie-label {
    font-family: var(--mono);
    font-size: 0.56rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.conv-output-arrow {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0;
}

/* Outcome Agents chip */
.conv-agents-output {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: rgba(5,150,105,0.06);
    border: 1px solid rgba(5,150,105,0.2);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--green);
    font-family: var(--mono);
    white-space: nowrap;
}

.conv-agents-output svg { color: var(--green); }

/* --- Vertical Divider --- */
.conv-divider {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0 2rem;
}

.conv-divider-line {
    width: 1px;
    min-height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border-light) 15%, var(--border-light) 85%, transparent);
}

/* --- RIGHT: Traversal Power --- */
.conv-traversal {
    padding: 0 0 0 2rem;
}

.conv-traversal-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

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

/* Before: Isolated Decisions */
.conv-before {
    margin-bottom: 1.75rem;
}

.conv-before-label,
.conv-after-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.conv-before-label {
    color: var(--text-dim);
}

.conv-after-label {
    color: var(--accent-light);
}

.conv-silo-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.conv-silo {
    flex: 1;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.conv-silo-tag {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--silo-color, var(--text-dim));
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.conv-silo-decision {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.conv-decision-triangle {
    font-size: 0.6rem;
    line-height: 1;
}

.conv-silo-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.conv-silo-gap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    padding: 0 0.25rem;
}

.conv-silo-gap span {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    opacity: 0.5;
}

/* After: Combined Traversal */
.conv-after {
    margin-bottom: 1.5rem;
}

.conv-combined {
    background: linear-gradient(135deg, rgba(79,70,229,0.03), rgba(124,58,237,0.02));
    border: 1px solid rgba(79,70,229,0.15);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(79,70,229,0.04);
}

.conv-combined-path {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    justify-content: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(79,70,229,0.1);
}

.conv-path-node {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.conv-metric-ring {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    flex-shrink: 0;
}

.conv-path-edge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}

.conv-edge-label {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.conv-combined-insight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.conv-insight-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.conv-insight-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.35rem;
    font-family: var(--mono);
    letter-spacing: 0.02em;
}

.conv-insight-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.conv-traversal-footer {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.conv-traversal-footer strong {
    color: var(--text);
}

/* Whitepaper CTA */
.conv-whitepaper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 3.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(79,70,229,0.04), rgba(124,58,237,0.02));
    border: 1px solid rgba(79,70,229,0.12);
    border-radius: 14px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.conv-wp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(79,70,229,0.08);
    flex-shrink: 0;
}

.conv-wp-icon svg {
    color: var(--accent);
}

.conv-wp-text {
    flex: 1;
}

.conv-wp-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.conv-wp-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.conv-wp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s var(--ease);
    text-decoration: none;
}

.conv-wp-link:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.25);
}

.conv-wp-link svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .conv-whitepaper {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }
}

/* Convergence responsive */
@media (max-width: 1024px) {
    .convergence-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .conv-architecture {
        padding: 0;
    }

    .conv-divider {
        display: none;
    }

    .conv-traversal {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .conv-silo-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .conv-silo-gap {
        flex-direction: row;
        padding: 0.25rem 0;
    }

    .conv-combined-path {
        flex-wrap: wrap;
    }

    .conv-sources {
        flex-direction: column;
        align-items: center;
    }

    .conv-iw-feeds {
        flex-direction: column;
        align-items: center;
    }
}

/* === MORRIE SECTION === */
.section-morrie {
    background: var(--text);
    color: #e2e4eb;
    overflow: hidden;
}

.morrie-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.morrie-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.morrie-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #a0a5b8;
    margin-bottom: 1rem;
}

.morrie-desc strong {
    color: #c4b5fd;
    font-weight: 700;
}

.morrie-capabilities {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.morrie-cap {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.morrie-cap svg {
    color: #a78bfa;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.morrie-cap strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.morrie-cap span {
    font-size: 0.82rem;
    color: #8b90a5;
    line-height: 1.5;
}

/* MORRIE CTA row */
.morrie-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.morrie-wp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #c4b5fd;
    background: rgba(167,139,250,0.08);
    border: 1px solid rgba(167,139,250,0.2);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}

.morrie-wp-link:hover {
    background: rgba(167,139,250,0.15);
    border-color: rgba(167,139,250,0.35);
    transform: translateY(-1px);
}

.morrie-wp-link svg {
    color: #a78bfa;
    flex-shrink: 0;
}

/* MORRIE Video / GIF placeholder */
.morrie-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.morrie-video-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.morrie-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1830;
}

.morrie-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.morrie-video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1e1b3a 0%, #2a2650 40%, #1a1830 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.morrie-video-placeholder:hover {
    background: linear-gradient(135deg, #252148 0%, #322d5e 40%, #211e3e 100%);
}

.morrie-video-bg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.morrie-pulse-ring {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(167,139,250,0.2);
    animation: morriePulse 2.5s ease-in-out infinite;
}

@keyframes morriePulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.25); opacity: 0; }
}

.morrie-play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(79,70,229,0.4);
    transition: all 0.3s var(--ease);
}

.morrie-video-placeholder:hover .morrie-play-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(79,70,229,0.55);
}

.morrie-play-icon svg {
    margin-left: 3px;
    width: 24px;
    height: 24px;
}

.morrie-video-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}

.morrie-demo-caption {
    font-size: 0.88rem;
    color: #8b90a5;
    text-align: center;
    line-height: 1.6;
}

.morrie-demo-caption strong {
    color: #c4b5fd;
}

/* MORRIE responsive */
@media (max-width: 1024px) {
    .morrie-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .morrie-capabilities {
        gap: 1rem;
    }
}

/* === IMPACT SECTION === */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.impact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s var(--ease);
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.impact-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.impact-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: rgba(79,70,229,0.06);
    border: 1px solid var(--border);
    color: var(--impact-color, var(--accent-light));
}

.impact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

.impact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

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

/* === ANIMATIONS === */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

.problem-grid [data-animate]:nth-child(2),
.domains-content [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.problem-grid [data-animate]:nth-child(3),
.domains-content [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.domains-content [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.domains-content [data-animate]:nth-child(5) { transition-delay: 0.4s; }

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .domains-layout {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }

    .node-detail-panel {
        width: 340px;
    }

    .traversal-panel {
        width: 380px;
    }
}

@media (max-width: 1024px) {
    .thesis-comparison { flex-direction: column; }
    .thesis-divider {
        flex-direction: row;
        padding: 1rem 0;
        writing-mode: initial;
    }
    .divider-label {
        writing-mode: initial;
        transform: none;
    }
    .divider-line { flex: 1; height: 1px; width: auto; }
    .positioning-grid { grid-template-columns: 1fr; }
    .stack-tier { grid-template-columns: 1fr; }
    .stack-tier-visual { display: none; }

    .domains-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .domains-sidebar {
        position: static;
        text-align: center;
    }

    .domains-sidebar .section-label {
        text-align: center !important;
    }

    .node-detail-panel,
    .traversal-panel {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: flex; }
    .section { padding: 4rem 0; }
    .container { padding: 0 1.25rem; }
    .container-wide { padding: 0 1.25rem; }
    .problem-grid { grid-template-columns: 1fr; }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .team-grid .team-card:nth-child(1),
    .team-grid .team-card:nth-child(2),
    .team-grid .team-card:nth-child(3),
    .team-grid .team-card:nth-child(4) {
        grid-column: auto;
    }
    .team-grid .team-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 300px;
        margin: 0 auto;
    }
    .investors-grid { gap: 1.5rem; }
    .investor-logo { min-width: 150px; padding: 1rem 1.5rem; }
    .architecture-compare { flex-direction: column; }
    .arch-col:first-child { border-radius: 12px 12px 0 0; }
    .arch-col:last-child { border-radius: 0 0 12px 12px; }
    .arch-vs {
        flex-direction: row;
        padding: 1rem;
        gap: 1rem;
    }
    .arch-vs-line {
        width: 40px;
        height: 1px;
    }
    .stack-two-col { grid-template-columns: 1fr; }
    .domain-economics { flex-direction: column; gap: 1.5rem; }
    .econ-divider { width: 40px; height: 1px; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

    /* HIW responsive - tablet */
    .hiw-step { grid-template-columns: 44px 1fr; gap: 0 1.5rem; }
    .hiw-step-header h3 { font-size: 1.2rem; }
    .hiw-step-stats { flex-direction: column; }
    .hiw-stat-divider { width: 100%; height: 1px; }
    .hiw-graph-nodes { gap: 0; flex-wrap: wrap; justify-content: center; }
    .hiw-gnode { font-size: 0.82rem; padding: 0.5rem 1rem; }

    .domain-card { padding: 1.5rem; }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-content {
        margin-left: 1.25rem;
        padding: 5rem 1.25rem 3rem;
    }

    .hero-subtitle br { display: none; }

    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero-trust-items { flex-wrap: wrap; gap: 0.5rem; }

    .scroll-indicator { left: 50%; right: auto; transform: translateX(-50%); }

    .graph-legend {
        top: 10px;
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
    }

    .legend-chip {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .node-detail-panel,
    .traversal-panel {
        width: 100%;
        max-width: 100%;
    }

    .graph-container {
        height: 70vh;
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; justify-content: center; }
    .footer-links { flex-direction: column; }
    .positioning-grid { gap: 1rem; }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-grid .team-card:nth-child(1),
    .team-grid .team-card:nth-child(2),
    .team-grid .team-card:nth-child(3),
    .team-grid .team-card:nth-child(4),
    .team-grid .team-card:nth-child(5) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }
    .investor-logo { min-width: 140px; }

    /* HIW responsive - mobile */
    .hiw-step { grid-template-columns: 36px 1fr; gap: 0 1rem; }
    .hiw-step-num { width: 36px; height: 36px; font-size: 0.85rem; }
    .hiw-icon-wrap { width: 40px; height: 40px; }
    .hiw-icon-wrap svg { width: 20px; height: 20px; }
    .hiw-step-content { padding-bottom: 2.5rem; }
    .hiw-step-header h3 { font-size: 1.1rem; }
    .hiw-step-desc { font-size: 0.95rem; }
    .hiw-stat-value { font-size: 1.4rem; }
    .hiw-example-text { font-size: 0.88rem; }
    .hiw-gnode-connector { width: 20px; }

    .domain-card-header { flex-wrap: wrap; }

    .graph-legend {
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
