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

:root {
    --primary: #1a1a1a;
    --dark: #0a0a0a;
    --gray: #4a4a4a;
    --light: #FEFDFB;
    --cream: #FEFDFB;
    --cream-dark: #FCFBF8;
    --border: #F0EDE8;
    --muted: #6b6b6b;
    --card-dark: #5C4D3F;
    --accent: #6B5B4D;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--cream);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254,252,251,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.logo-by {
    font-size: 0.75rem;
    color: var(--gray);
}

.logo-icon svg {
    width: 44px;
    height: 44px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--dark);
    background: rgba(26,26,26,0.05);
}

.nav-links a.btn-primary {
    color: #fff !important;
}

.nav-links a.nav-tab.active:not(.btn) {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1.5px;
}
.nav-links, .navbar, .navbar .container {
    overflow: visible !important;
}
@keyframes drawOval {
    from { stroke-dashoffset: var(--len); }
    to { stroke-dashoffset: 0; }
}

/* Tab-based section visibility */
.content-section {
    display: none !important;
}

.content-section.active {
    display: block !important;
}

/* Hero uses flex when active */
.hero.content-section.active {
    display: flex !important;
}

/* Blog section needs padding like other sections */
#blog.content-section.active {
    display: block !important;
    padding: 100px 0;
}

button.btn {
    font-family: inherit;
    background: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #333333;
}

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

.btn-secondary:hover {
    border-color: var(--dark);
}

.mobile-menu-btn {
    display: none;
}

/* Hamburger Menu in Navbar */
.nav-hamburger {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(254, 253, 251, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Only show hamburger on mobile */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
}

.nav-hamburger:hover {
    background: rgba(254, 253, 251, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero - Light Theme */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 130px 0 40px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

/* Knowledge Sketch - Hand-drawn Style Animation */
.knowledge-sketch {
    display: inline-block;
    vertical-align: middle;
}

.sketch-svg {
    overflow: visible;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

/* Hand sketch subtle movement */
.hand-sketch {
    animation: sketchWobble 4s ease-in-out infinite;
}

/* Finger lines draw effect */
.finger-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 3s ease-out forwards, fingerFloat 4s ease-in-out infinite 3s;
}

/* Sketch balls float and pulse */
.sketch-ball {
    transform-origin: center;
}

.ball-1 { animation: sketchFloat 3s ease-in-out infinite 0s; }
.ball-2 { animation: sketchFloat 2.8s ease-in-out infinite 0.3s; }
.ball-3 { animation: sketchFloat 2.5s ease-in-out infinite 0.5s; }
.ball-4 { animation: sketchFloat 2.7s ease-in-out infinite 0.7s; }
.ball-5 { animation: sketchFloat 3.2s ease-in-out infinite 0.9s; }

/* Ball text follows ball */
.ball-text {
    transform-origin: center;
}

.ball-text.ball-1 { animation: textFloat 3s ease-in-out infinite 0s; }
.ball-text.ball-2 { animation: textFloat 2.8s ease-in-out infinite 0.3s; }
.ball-text.ball-3 { animation: textFloat 2.5s ease-in-out infinite 0.5s; }
.ball-text.ball-4 { animation: textFloat 2.7s ease-in-out infinite 0.7s; }
.ball-text.ball-5 { animation: textFloat 3.2s ease-in-out infinite 0.9s; }

/* Particles sparkle */
.particle {
    animation: particleTwinkle 2s ease-in-out infinite;
}

.p1 { animation-delay: 0s; }
.p2 { animation-delay: 0.5s; }
.p3 { animation-delay: 1s; }
.p4 { animation-delay: 1.5s; }

@keyframes sketchWobble {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(1px) rotate(0.5deg); }
    75% { transform: translateX(-1px) rotate(-0.5deg); }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fingerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes sketchFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-8px) scale(1.05);
        opacity: 1;
    }
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes particleTwinkle {
    0%, 100% { opacity: 0.3; r: 2; }
    50% { opacity: 0.8; r: 3; }
}

.hero-headline {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 28px;
    color: var(--dark);
    perspective: 1200px;
    transform-style: preserve-3d;
}

.hero-line-1,
.hero-line-2 {
    display: block;
    animation: elegantFloat 8s ease-in-out infinite;
    transform-style: preserve-3d;
    position: relative;
}

.hero-line-1 {
    animation-delay: 0s;
    font-weight: 400;
    color: #4a4a4a;
}

.hero-line-2 {
    animation-delay: 0.3s;
    font-weight: 800;
    letter-spacing: -2px;
}

@keyframes elegantFloat {
    0%, 100% {
        transform: translateZ(0) translateY(0) rotateX(0deg);
        text-shadow:
            0 1px 0 rgba(0,0,0,0.05),
            0 2px 0 rgba(0,0,0,0.04),
            0 3px 0 rgba(0,0,0,0.03),
            0 4px 0 rgba(0,0,0,0.02),
            0 5px 10px rgba(0,0,0,0.05);
    }
    50% {
        transform: translateZ(40px) translateY(-3px) rotateX(2deg);
        text-shadow:
            0 1px 0 rgba(0,0,0,0.1),
            0 2px 0 rgba(0,0,0,0.08),
            0 4px 0 rgba(0,0,0,0.06),
            0 6px 0 rgba(0,0,0,0.04),
            0 8px 0 rgba(0,0,0,0.02),
            0 12px 20px rgba(0,0,0,0.1),
            0 20px 40px rgba(0,0,0,0.08);
    }
}

.highlight-gradient {
    color: var(--primary);
}

.hero-subtitle-bold {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
}

/* Hero Value Grid */
.hero-value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    max-width: 1000px;
    width: 100%;
}

.hero-value-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(100,100,100,0.04);
    border-radius: 10px;
    border: 1px solid rgba(100,100,100,0.1);
}

.hero-value-check {
    color: #1a1a1a;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-value-title {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.85rem;
}

.hero-value-desc {
    color: #4a4a4a;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Flow Animation - Clean SVG Canvas */
.flow-animation-wrapper {
    max-width: 950px;
    margin: 20px auto 30px;
    padding: 0 20px;
}

.flow-canvas {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .flow-animation-wrapper {
        overflow-x: auto;
    }

    .flow-canvas {
        min-width: 700px;
    }

    /* Transform comparison - stack on mobile */
    .transform-comparison {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .transform-comparison > div:nth-child(2) {
        order: -1;
        flex-direction: row !important;
        justify-content: center !important;
        padding: 16px 0 !important;
    }

    .transform-comparison > div:nth-child(2) > div:first-child {
        flex-direction: row !important;
    }

    .transform-comparison > div:nth-child(2) > div:first-child > div {
        height: 40px !important;
        width: auto !important;
        min-width: 16px;
    }
}

.stat {
    text-align: left;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.stat-unit {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 4px;
}

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

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

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Bracket Style Buttons */
.bracket-btn {
    position: relative;
    padding: 16px 32px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.bracket-btn-text {
    position: relative;
    z-index: 1;
}

.bracket-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.bracket-corner::before,
.bracket-corner::after {
    content: '';
    position: absolute;
    background: currentColor;
}

.bracket-corner.tl { top: 0; left: 0; }
.bracket-corner.tr { top: 0; right: 0; }
.bracket-corner.bl { bottom: 0; left: 0; }
.bracket-corner.br { bottom: 0; right: 0; }

.bracket-corner.tl::before { top: 0; left: 0; width: 12px; height: 2px; }
.bracket-corner.tl::after { top: 0; left: 0; width: 2px; height: 12px; }

.bracket-corner.tr::before { top: 0; right: 0; width: 12px; height: 2px; }
.bracket-corner.tr::after { top: 0; right: 0; width: 2px; height: 12px; }

.bracket-corner.bl::before { bottom: 0; left: 0; width: 12px; height: 2px; }
.bracket-corner.bl::after { bottom: 0; left: 0; width: 2px; height: 12px; }

.bracket-corner.br::before { bottom: 0; right: 0; width: 12px; height: 2px; }
.bracket-corner.br::after { bottom: 0; right: 0; width: 2px; height: 12px; }

/* Outline variant */
.bracket-btn-outline {
    color: var(--dark);
}

.bracket-btn-outline:hover {
    color: var(--primary);
}

.bracket-btn-outline:hover .bracket-corner {
    width: 16px;
    height: 16px;
}

/* Filled variant */
.bracket-btn-filled {
    color: #FBFAF7;
    background: #1a1a1a;
}

.bracket-btn-filled:hover {
    background: #2d2d2d;
}

.bracket-btn-filled .bracket-corner {
    border-color: #3a3a3a;
}

.bracket-btn-filled:hover .bracket-corner {
    width: 16px;
    height: 16px;
}

.scroll-indicator {
    display: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Hero background - clean */

/* Vanta/Particles Side Containers */
.vanta-side {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 494px; /* 30% larger (was 380px) */
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.vanta-left {
    left: 0;
}

.vanta-right {
    right: 0;
}

#tsparticles {
    display: none; /* Hidden - using side particles instead */
}

/* ═══════════════════════════════════════════════════════════════
   LINE ART SECTIONS - HyperMind Knowledge Terrain Visualizations
═══════════════════════════════════════════════════════════════ */

/* Simple Section Divider */
.section-divider {
    width: 100%;
    max-width: 600px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent 0%, #d1d5db 20%, #9ca3af 50%, #d1d5db 80%, transparent 100%);
}

/* Hypergraph Terrain Divider */
.hypergraph-terrain {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream) 0%, #f5f4f1 100%);
}

.hypergraph-terrain svg {
    width: 100%;
    height: 100%;
}

.hypergraph-terrain .terrain-lines path {
    fill: none;
    stroke: #6b7280;
}

.hypergraph-terrain .terrain-lines path:nth-child(1) { stroke-width: 1.5; opacity: 0.5; }
.hypergraph-terrain .terrain-lines path:nth-child(2) { stroke-width: 1.4; opacity: 0.45; }
.hypergraph-terrain .terrain-lines path:nth-child(3) { stroke-width: 1.3; opacity: 0.4; }
.hypergraph-terrain .terrain-lines path:nth-child(4) { stroke-width: 1.2; opacity: 0.35; }
.hypergraph-terrain .terrain-lines path:nth-child(5) { stroke-width: 1.1; opacity: 0.3; }
.hypergraph-terrain .terrain-lines path:nth-child(6) { stroke-width: 1; opacity: 0.25; }
.hypergraph-terrain .terrain-lines path:nth-child(7) { stroke-width: 0.9; opacity: 0.2; }
.hypergraph-terrain .terrain-lines path:nth-child(8) { stroke-width: 1.6; opacity: 0.55; }
.hypergraph-terrain .terrain-lines path:nth-child(9) { stroke-width: 1.7; opacity: 0.6; }

.hypergraph-terrain .terrain-verticals line {
    stroke: #9ca3af;
    stroke-width: 0.8;
    opacity: 0.3;
}

.hypergraph-terrain .terrain-nodes circle {
    fill: #4b5563;
    opacity: 0.5;
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

/* Only apply overflow hidden where needed, not on research section */
.section:not(#research) {
    overflow: hidden;
}

#research.section {
    overflow: visible;
}

#research .container {
    overflow: visible;
}

#research .concepts-layout {
    overflow: visible;
}

.section-dark {
    background: var(--cream-dark);
    color: var(--dark);
}

.section-dark .section-header h2 {
    color: var(--dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.text-gradient {
    color: var(--primary);
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    padding: 32px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.why-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.why-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

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

.product-card {
    padding: 32px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,102,255,0.1);
}

.product-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.product-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 10px;
    color: #fff;
}

.product-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-tagline {
    font-size: 0.875rem;
    color: var(--gray);
}

.product-features {
    list-style: none;
    font-size: 0.9rem;
    color: var(--gray);
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features strong {
    color: var(--dark);
}

.product-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(0,102,255,0.2), rgba(0,198,255,0.1));
    border-color: rgba(0,102,255,0.3);
}

/* Team Section */
#team {
    background: var(--cream);
}

#team .section-header h2 {
    color: var(--dark);
}

/* Team Section - Featured Profile */
.team-featured {
    max-width: 900px;
    margin: 0 auto;
}

.team-profile-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    background: linear-gradient(135deg, #FEFDFB 0%, #FCFBF8 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.team-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dark) 0%, #64748b 100%);
}

.profile-visual {
    position: relative;
}

.profile-image-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 4px solid #fff;
    margin: 0 auto;
}

.profile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.profile-accent {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--border);
    border-radius: 12px;
    bottom: -20px;
    right: 20px;
    z-index: -1;
    opacity: 0.5;
}

.profile-content {
    display: flex;
    flex-direction: column;
}

.profile-header {
    margin-bottom: 16px;
}

.profile-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.profile-role {
    display: inline-block;
    background: var(--dark);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.profile-bio {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 24px;
}

.profile-credentials {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.credential-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.credential-label {
    flex-shrink: 0;
    width: 70px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding-top: 6px;
}

.credential-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.credential-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
}

.credential-tag.highlight {
    background: linear-gradient(135deg, #F5F1E8 0%, #F5F1E8 100%);
    border-color: #E0DCD2;
    font-weight: 600;
}

.credential-note {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.8rem;
}

.profile-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid var(--dark);
    border-radius: 8px;
    transition: all 0.2s ease;
    width: fit-content;
}

.profile-linkedin:hover {
    background: var(--dark);
    color: #fff;
}

/* Advisory Board */
.team-advisors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.advisor-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.advisor-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.advisor-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.advisor-content {
    flex: 1;
}

.advisor-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.advisor-role {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.advisor-bio {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
}

.advisor-company {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #F5F1E8;
    border-radius: 8px;
    width: fit-content;
}

.advisor-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.advisor-linkedin:hover {
    color: var(--dark);
}

.vision-quote {
    max-width: 700px;
    margin: 60px auto 0;
    text-align: center;
}

.vision-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray);
}

/* Contact */
.contact-section {
    text-align: center;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.875rem;
}

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

.footer-links a {
    color: var(--gray);
    font-size: 0.875rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--dark);
}

/* Solution Section */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.solution-card {
    padding: 32px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.solution-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.solution-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.tech-highlights {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.tech-highlights h3 {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

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

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

.tech-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.tech-item span {
    font-size: 0.8rem;
    color: var(--gray);
}

@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hide heavy elements */
.section-tag,
.innovation-showcase,
.math-foundations,
.industries-grid,
.section-blog,
.knowledge-loss-visual,
.problem-stats,
.problem-highlight,
.problems-grid {
    display: none;
}

/* Section subtitle - clean */
.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 12px;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.7);
}

/* Architecture */
#architecture {
    background: var(--dark);
    color: #fff;
}

.architecture-diagram {
    max-width: 900px;
    margin: 0 auto;
}

.arch-layer {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 16px 0;
}

.arch-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
    min-width: 140px;
}

.arch-item-large {
    background: linear-gradient(135deg, rgba(0,102,255,0.2), rgba(0,198,255,0.1));
    border: 1px solid rgba(0,102,255,0.3);
    padding: 24px 40px;
    border-radius: 12px;
    text-align: center;
}

.arch-item-full {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px 40px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
}

.arch-label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.arch-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.arch-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.arch-features {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}

.arch-features span {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.arch-connector {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.connector-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary), rgba(0,102,255,0.3));
}

.connector-line.dashed {
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.3) 4px, transparent 4px, transparent 8px);
}

.connector-pulse {
    display: none;
}

.data-sources-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.data-sources-bar span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.data-sources-bar .more {
    color: var(--primary);
    font-weight: 500;
}

/* HyperFederate Section */
.section-federate {
    display: block;
    background: var(--cream);
}

.federate-visual {
    max-width: 1000px;
    margin: 0 auto 60px;
}

.federate-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.data-source-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.data-source {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.data-source-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.federate-hub {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 20px 40px rgba(26,26,26,0.3);
}

.federate-hub-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.federate-hub-name {
    font-size: 1rem;
}

.query-output {
    text-align: center;
}

.query-result-box {
    padding: 20px 30px;
    background: var(--dark);
    border-radius: 8px;
    color: #fff;
}

.query-result-box span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.query-result-box strong {
    font-size: 1.25rem;
}

.connection-lines {
    display: none;
}

/* Code Example */
.code-example {
    max-width: 900px;
    margin: 0 auto;
}

.code-block {
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.code-dot:nth-child(1) { background: #666666; }
.code-dot:nth-child(2) { background: #888888; }
.code-dot:nth-child(3) { background: #aaaaaa; }

.code-title {
    margin-left: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.code-block pre {
    padding: 24px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.code-block code {
    color: #e2e8f0;
}

.code-block .keyword { color: #c792ea; }
.code-block .function { color: #82aaff; }
.code-block .string { color: #c3e88d; }
.code-block .comment { color: #546e7a; }
.code-block .number { color: #f78c6c; }

/* HyperGraphDB Section */
#kgdb {
    display: block;
    background: var(--light);
}

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

.kgdb-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.kgdb-content p {
    color: var(--gray);
    margin-bottom: 24px;
}

.kgdb-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.kgdb-stat {
    padding: 20px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.kgdb-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

/* HyperGraphDB Features */
.kgdb-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.kgdb-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
}

.feature-icon-small {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kgdb-feature strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.kgdb-feature p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

/* HyperGraphDB Architecture */
.kgdb-architecture {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.arch-title {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.25rem;
}

.deploy-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.deploy-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 200px;
}

.deploy-icon {
    color: var(--primary);
}

.deploy-info {
    display: flex;
    flex-direction: column;
}

.deploy-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.deploy-desc {
    font-size: 0.8rem;
    color: var(--gray);
}

.deploy-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.deploy-badge.local {
    background: #f0f0f0;
    color: #1a1a1a;
}

.deploy-badge.scalable {
    background: #e5e5e5;
    color: #1a1a1a;
}

.deploy-connector {
    flex-shrink: 0;
}

/* Standards Grid */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.standard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--light);
    border-radius: 8px;
}

.standard-icon {
    color: var(--primary);
}

.standard-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

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

    .deploy-options {
        flex-direction: column;
    }

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

.kgdb-stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.kgdb-visual {
    display: flex;
    justify-content: center;
}

.cta-badges {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.badge-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--dark);
    text-decoration: none;
    font-family: monospace;
}

.badge-link:hover {
    background: rgba(0,0,0,0.1);
}

.badge-link svg {
    width: 16px;
    height: 16px;
}

/* Core Concepts Section */
#concepts {
    background: var(--light);
}

/* Concepts Layout with Sidebar */
.concepts-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    max-width: 1200px;
}

.concepts-nav {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    z-index: 10;
}

.concepts-nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.concept-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--gray);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.concept-link:hover {
    background: var(--light);
    color: var(--primary);
}

.concepts-content {
    min-width: 0;
}

/* Formula Discovery Styles */
.formula-example {
    display: flex;
    align-items: stretch;
    gap: 24px;
    flex-wrap: wrap;
}

.formula-before, .formula-after {
    flex: 1;
    min-width: 260px;
    padding: 20px;
    border-radius: 12px;
}

.formula-before {
    background: var(--cream-dark);
    border: 1px solid #d0d0d0;
}

.formula-after {
    background: var(--cream);
    border: 1px solid #1a1a1a;
}

.formula-before strong, .formula-after strong {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.formula-data, .formula-graph {
    background: var(--dark);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.formula-data code, .formula-graph code {
    display: block;
    font-size: 0.75rem;
    color: #e2e8f0;
    padding: 3px 0;
}

.formula-problem {
    font-size: 0.8rem;
    color: #666666;
}

.formula-benefit {
    font-size: 0.8rem;
    color: #1a1a1a;
}

.formula-arrow {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--gray);
}

@media (max-width: 1024px) {
    .hero-value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .concepts-nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .concepts-nav-title {
        width: 100%;
    }

    .concept-link {
        margin-bottom: 0;
    }
}

.concept-block {
    background: #FEFDFB;
    border: 1px solid #E8E4DA;
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.concept-header {
    margin-bottom: 24px;
}

.concept-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.concept-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
}

.concept-value {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #F5F1E8, #F5F1E8);
    border-left: 3px solid #6B5B4D;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
}

.concept-detail {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--light);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--gray);
}

/* Dynamic Proxy vs MCP */
.concept-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.compare-card {
    padding: 20px;
    border-radius: 8px;
}

.compare-card.bad {
    background: var(--cream-dark);
    border: 1px solid #d0d0d0;
}

.compare-card.good {
    background: var(--cream);
    border: 1px solid #1a1a1a;
}

.compare-label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.compare-flow {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.compare-points {
    list-style: none;
    font-size: 0.85rem;
}

.compare-points li {
    padding: 4px 0;
}

/* Thinking Events Flow */
.thinking-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.thinking-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--light);
    padding: 16px;
    border-radius: 8px;
    min-width: 200px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #3a3a3a;
    color: #FCFBF8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.step-content code {
    font-size: 0.75rem;
    background: #3a3a3a;
    color: #FCFBF8;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.thinking-arrow {
    font-size: 1.5rem;
    color: var(--gray);
}

/* Memory Grid */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.memory-card {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #FEFDFB, #F8F6F2);
    border: 1px solid #E8E4DA;
    border-radius: 12px;
}

.memory-icon {
    width: 44px;
    height: 44px;
    background: #3a3a3a;
    color: #FCFBF8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 12px;
}

.memory-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.memory-card p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Runtime Grid */
.runtime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.runtime-card {
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
}

.runtime-card strong {
    display: block;
    margin-bottom: 8px;
}

.runtime-card p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.runtime-use {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

/* Pattern Flow */
.pattern-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.pattern-step {
    text-align: center;
}

.pattern-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.pattern-box {
    padding: 16px 20px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    min-width: 140px;
}

.pattern-arrow {
    font-size: 1.25rem;
    color: var(--gray);
}

/* LTN Diagram */
.ltn-diagram {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.ltn-side {
    flex: 1;
    padding: 24px;
    background: linear-gradient(135deg, #FEFDFB, #F8F6F2);
    border: 1px solid #E8E4DA;
    border-radius: 12px;
}

.ltn-side strong {
    display: block;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: #4A4A4A;
}

.ltn-side code {
    display: block;
    padding: 14px 16px;
    background: #3a3a3a;
    color: #FCFBF8;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 14px;
    border: 1px solid #4a4a4a;
}

.ltn-problem {
    font-size: 0.8rem;
    color: #8B7355;
}

.ltn-solution {
    font-size: 0.8rem;
    color: #5C4D3F;
    font-weight: 500;
}

.ltn-vs {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--gray);
}

/* RAG Comparison */
.rag-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.rag-card {
    padding: 20px;
    border-radius: 8px;
}

.rag-card.problem {
    background: var(--cream-dark);
    border: 1px solid #d0d0d0;
}

.rag-card.solution {
    background: var(--cream);
    border: 1px solid #1a1a1a;
}

.rag-card strong {
    display: block;
    margin-bottom: 8px;
}

.rag-card > p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 12px;
    font-style: italic;
}

.rag-result {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.rag-result.bad {
    background: rgba(229,62,62,0.1);
}

.rag-result.good {
    background: rgba(56,161,105,0.1);
}

.rag-result span {
    display: block;
    font-size: 0.75rem;
    padding: 4px 0;
    font-family: monospace;
}

.rag-issue {
    font-size: 0.8rem;
    color: #666666;
}

.rag-success {
    font-size: 0.8rem;
    color: #1a1a1a;
}

/* Architecture Flow Visual */
.concept-visual {
    margin-bottom: 24px;
}

.arch-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    background: var(--light);
    border-radius: 8px;
}

.flow-box {
    padding: 12px 24px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: monospace;
}

.flow-box.highlight {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

.flow-arrow {
    color: var(--gray);
    font-size: 1.25rem;
}

/* Neuro-Symbolic Visual */
.neuro-symbolic {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ns-side {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.ns-side.neural {
    background: var(--cream-dark);
    border: 1px solid #6b6b6b;
}

.ns-side.symbolic {
    background: #f0f0f0;
    border: 1px solid #4a4a4a;
}

.ns-side.result {
    background: var(--cream);
    border: 1px solid #1a1a1a;
}

.ns-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.ns-side strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.ns-side p {
    font-size: 0.75rem;
    color: var(--gray);
    margin: 4px 0;
}

.ns-combine, .ns-equals {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray);
}

/* Tribal Knowledge */
.tribal-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tribal-card {
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.tribal-card.problem {
    background: var(--cream-dark);
    border: 1px solid #fed7d7;
}

.tribal-card.solution {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
}

.tribal-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.tribal-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 12px;
}

.tribal-card p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 6px 0;
    font-style: italic;
}

.tribal-risk {
    margin-top: 12px;
    padding: 8px;
    background: rgba(229,62,62,0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #e53e3e;
    font-style: normal !important;
}

.tribal-benefit {
    margin-top: 12px;
    padding: 8px;
    background: rgba(56,161,105,0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #38a169;
}

.tribal-graph {
    text-align: left;
    background: var(--dark);
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
}

.tribal-graph code {
    display: block;
    font-size: 0.7rem;
    color: #e2e8f0;
    padding: 2px 0;
}

.tribal-arrow {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--gray);
}

/* HDRF Distributed Architecture */
.hdrf-diagram {
    background: var(--light);
    border-radius: 12px;
    padding: 24px;
}

.hdrf-layer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hdrf-box {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    padding: 16px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
}

.hdrf-box.wide {
    max-width: 100%;
    flex: 1 1 100%;
}

.hdrf-box strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.hdrf-box p {
    font-size: 0.8rem;
    color: var(--gray);
}

.hdrf-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.hdrf-stats span {
    font-size: 0.85rem;
}

.hdrf-stats strong {
    color: var(--primary);
}

/* Federated Query Example */
.federated-example {
    background: var(--dark);
    border-radius: 8px;
    overflow: hidden;
}

.federated-example pre {
    padding: 20px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
}

.federated-example code {
    color: #e2e8f0;
}

/* SDK Tabs */
.sdk-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sdk-tab {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--cream);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sdk-tab:hover {
    border-color: var(--primary);
}

.sdk-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.sdk-code {
    background: var(--dark);
    border-radius: 8px;
    overflow: hidden;
}

.sdk-code.hidden {
    display: none;
}

.sdk-code pre {
    padding: 20px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
}

.sdk-code code {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Syntax highlighting for SDK code */
.sdk-code .keyword {
    color: #c792ea;
    font-weight: 500;
}
.sdk-code .string {
    color: #c3e88d;
}
.sdk-code .comment {
    color: #7c8896;
    font-style: italic;
}
.sdk-code .function {
    color: #82aaff;
}
.sdk-code .number {
    color: #f78c6c;
}
.sdk-code .property {
    color: #89ddff;
}
.sdk-code .class-name {
    color: #ffcb6b;
}

/* Lego Architecture */
.lego-architecture {
    max-width: 900px;
    margin: 40px auto;
    background: var(--cream);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.lego-layer {
    margin-bottom: 8px;
}

.lego-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 8px;
    padding-left: 8px;
}

.lego-blocks {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.lego-blocks.sources {
    flex-wrap: wrap;
}

.lego-block {
    padding: 16px 20px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    max-width: 200px;
    font-size: 0.85rem;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.lego-block:hover {
    transform: translateY(-2px);
}

.lego-block.wide {
    max-width: 100%;
    flex: 1 1 100%;
}

.lego-block strong {
    display: block;
    margin-bottom: 4px;
}

.lego-block span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.lego-block.user {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #fff;
}

.lego-block.product {
    background: linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 100%);
    color: #fff;
}

.lego-block.engine {
    background: linear-gradient(135deg, #3a3a3a 0%, #555555 100%);
    color: #fff;
}

.lego-block.data {
    background: linear-gradient(135deg, #4a4a4a 0%, #666666 100%);
    color: #fff;
}

.lego-block.source {
    background: #F5F1E8;
    color: var(--dark);
    border: 1px solid var(--border);
    flex: 0 1 auto;
    padding: 12px 16px;
}

/* Runtime Section */
.runtime-section {
    margin-top: 60px;
    text-align: center;
    background: var(--cream-dark);
    padding: 40px 32px;
    border-radius: 16px;
}

.runtime-section h3 {
    color: var(--dark);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.runtime-options {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.runtime-option {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    flex: 1;
    max-width: 250px;
    text-align: center;
}

.runtime-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.runtime-option strong {
    display: block;
    color: var(--dark);
    margin-bottom: 8px;
}

.runtime-option p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* HyperFederate Section */
.section-federate {
    background: var(--cream);
}

.federation-canvas-wrap {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 40px 0;
}

#federation-canvas {
    width: 100%;
    height: 100%;
}

.federation-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fed-label {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--cream);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fed-snowflake { top: 20%; left: 10%; color: #29B5E8; }
.fed-bigquery { top: 20%; right: 10%; color: #4285F4; }
.fed-databricks { bottom: 30%; left: 5%; color: #FF3621; }
.fed-postgres { bottom: 30%; right: 5%; color: #336791; }
.fed-s3 { bottom: 10%; left: 25%; color: #FF9900; }
.fed-kg { bottom: 10%; right: 25%; color: #10B981; }

.fed-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: linear-gradient(135deg, var(--primary), #0052cc);
    color: #fff;
    padding: 16px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,102,255,0.4);
    border: 2px solid rgba(255,255,255,0.2);
}

.fed-brand {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.fed-latency {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

.federation-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.fed-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
}

.fed-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fed-feature strong {
    display: block;
    margin-bottom: 4px;
}

.fed-feature p {
    font-size: 0.85rem;
    color: var(--gray);
}

.federation-code {
    margin-top: 40px;
}

.federation-code pre {
    background: var(--dark);
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
}

.federation-code code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

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

    .federation-canvas-wrap {
        height: 300px;
    }

    .fed-label {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

/* Problem Cards - Problems We Solve Section */
.problem-card {
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #1a1a1a;
}

.use-case-card {
    display: block;
    padding: 24px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s;
}

.use-case-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,255,0.1);
}

.use-case-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.use-case-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.use-case-card p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

.use-case-link {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .hero-value-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .why-grid,
    .products-grid,
    .use-cases-grid,
    .approach-grid,
    .problem-flow {
        grid-template-columns: 1fr;
    }

    .product-card.featured {
        grid-column: span 1;
    }

    .team-profile-card {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 32px;
        text-align: center;
    }

    .profile-visual {
        display: flex;
        justify-content: center;
    }

    .profile-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .profile-accent {
        display: none;
    }

    .profile-header {
        text-align: center;
    }

    .profile-header h3 {
        font-size: 1.5rem;
    }

    .profile-bio {
        text-align: center;
    }

    .credential-group {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .credential-label {
        width: auto;
    }

    .credential-items {
        justify-content: center;
    }

    .profile-linkedin {
        margin: 0 auto;
    }

    .team-advisors {
        grid-template-columns: 1fr;
    }

    .advisor-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .advisor-company {
        margin: 0 auto 16px;
    }

    /* nav-links hidden via media query in mobile section above */

    /* Concepts responsive */
    .concept-comparison,
    .rag-comparison,
    .runtime-grid,
    .ltn-diagram {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

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

    .thinking-flow {
        flex-direction: column;
    }

    .thinking-arrow {
        transform: rotate(90deg);
    }

    .pattern-flow {
        flex-direction: column;
    }

    .pattern-arrow {
        transform: rotate(90deg);
    }
}

/* Products Layout - Horizontal single-line nav */
.products-layout {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
}

.products-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 32px;
    overflow-x: auto;
    background: none;
    border-bottom: 1px solid #E8E4DA;
}

.products-nav-title {
    display: none;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 0.8rem;
    color: #8a8078;
    text-decoration: none;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.product-link .nav-item-icon {
    color: #b0a89e;
    transition: color 0.2s;
}

.product-link:hover {
    color: #1a1a1a;
    background: none;
}

.product-link:hover .nav-item-icon {
    color: #6B5B4D;
}

.product-link.active {
    color: #1a1a1a;
    font-weight: 600;
    border-bottom: 2px solid #1a1a1a;
    background: none;
}

.product-link.active .nav-item-icon {
    color: #1a1a1a;
}

.products-content {
    min-width: 0;
}

/* Product Detail Card */
.product-detail {
    background: linear-gradient(135deg, #FCFBF8, #F5F1E8);
    border: 1px solid #E8E4DA;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: none;
}

/* JavaScript handles switching - only show active */
.product-detail.active {
    display: block;
}

.product-diagram {
    background: #F5F1E8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.product-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.product-info h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.product-info > p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-stat {
    text-align: center;
    padding: 12px 16px;
    background: #F5F1E8;
    border-radius: 8px;
    min-width: 100px;
}

.product-stat strong {
    display: block;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.product-stat span {
    font-size: 0.75rem;
    color: var(--gray);
}

.product-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-features-list li {
    padding: 8px 0;
    color: var(--gray);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.product-features-list li:last-child {
    border-bottom: none;
}

.product-features-list strong {
    color: var(--dark);
}

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

    .products-nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .products-nav-title {
        width: 100%;
    }

    .product-link {
        margin-bottom: 0;
    }

    .product-link.active {
        background: rgba(100,100,100,0.1);
    }
}

/* Ontology Diagram */
.ontology-diagram {
    background: #F5F1E8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.concept-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ontology-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.ontology-feature {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.ontology-feature strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
}

.ontology-feature p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

/* Explainable AI Flow */
.explainable-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.explain-step {
    text-align: center;
    padding: 16px;
}

.explain-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.25rem;
    border: 2px solid;
}

.explain-step strong {
    display: block;
    margin-bottom: 4px;
}

.explain-step p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

.explain-arrow {
    font-size: 1.5rem;
    color: var(--gray);
}

/* Proof Chain Example */
.proof-example {
    background: #F5F1E8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.proof-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray);
    font-size: 0.85rem;
}

.proof-chain {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.85rem;
}

.proof-step {
    padding: 8px 12px;
    border-left: 2px solid var(--border);
    margin-left: 12px;
    color: var(--dark);
}

.proof-source {
    color: var(--primary);
    font-size: 0.75rem;
}

.proof-result {
    padding: 12px;
    background: rgba(26,26,26,0.05);
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    color: #1a1a1a;
    font-weight: 600;
    margin-top: 12px;
}

/* Human in the Loop Diagram */
.human-loop-diagram {
    background: #F5F1E8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

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

    .explainable-flow {
        flex-direction: column;
    }

    .explain-arrow {
        transform: rotate(90deg);
    }
}

/* ============================================
   BLOG FRAMEWORK STYLES
   ============================================ */

.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    min-height: 600px;
}

/* Blog Navigation */
.blog-nav {
    background: var(--cream-dark);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.blog-nav-header {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-nav-year {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.blog-nav-year:first-child {
    margin-top: 0;
}

.blog-nav-month {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-nav-link {
    display: block;
    padding: 10px 12px;
    margin: 4px 0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.blog-nav-link:hover {
    background: rgba(0, 102, 255, 0.08);
    border-left-color: var(--primary);
}

.blog-nav-link.active {
    background: rgba(0, 102, 255, 0.12);
    border-left-color: var(--primary);
}

.blog-nav-title {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
    line-height: 1.4;
}

.blog-nav-date {
    display: block;
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 4px;
}

.blog-nav-empty,
.blog-loading {
    color: var(--gray);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
}

/* Blog Content */
.blog-content {
    background: var(--cream);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border);
    min-height: 500px;
}

.blog-welcome {
    text-align: center;
    padding: 60px 20px;
}

.blog-welcome h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.blog-welcome p {
    color: var(--gray);
    margin-bottom: 24px;
}

.blog-latest-link {
    display: inline-block;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.blog-latest-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

.blog-latest-link strong {
    display: block;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.blog-latest-link span {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Blog Post */
.blog-post-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.blog-post-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-post-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.blog-post-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-post-author {
    color: var(--gray);
    font-size: 0.9rem;
}

.blog-post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

/* Blog Post Content Typography */
.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.blog-post-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.blog-post-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin: 36px 0 16px;
}

.blog-post-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 28px 0 12px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 255, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.blog-post-content a:hover {
    text-decoration-color: var(--primary);
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4b5563;
}

.blog-post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code Blocks */
.blog-post-content pre {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
}

.blog-post-content pre code {
    display: block;
    padding: 20px 24px;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.blog-post-content code:not(pre code) {
    background: var(--cream-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e11d48;
}

/* ASCII Art */
.ascii-art {
    background: #7D6B5D;
    color: #FCFBF8;
    padding: 24px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-x: auto;
    white-space: pre;
}

/* Mermaid Diagrams */
.mermaid {
    margin: 32px 0;
    padding: 24px;
    background: var(--cream-dark);
    border-radius: 12px;
    text-align: center;
}

.mermaid svg {
    max-width: 100%;
    height: auto;
}

/* Blog Error */
.blog-error {
    text-align: center;
    padding: 60px 20px;
}

.blog-error h3 {
    color: #e11d48;
    margin-bottom: 12px;
}

.blog-error p {
    color: var(--gray);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-nav {
        position: static;
        max-height: none;
        margin-bottom: 24px;
    }

    .blog-content {
        padding: 24px;
    }

    .blog-post-header h1 {
        font-size: 1.6rem;
    }

    .blog-post-content {
        font-size: 1rem;
    }
}

/* Blog Tree Navigation */
.blog-tree {
    font-size: 0.9rem;
}

.tree-year {
    margin-bottom: 8px;
}

.tree-year-label,
.tree-month-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    user-select: none;
}

.tree-year-label {
    font-weight: 700;
    color: var(--dark);
    background: var(--cream-dark);
}

.tree-year-label:hover {
    background: #e2e8f0;
}

.tree-month-label {
    font-weight: 600;
    color: var(--gray);
    margin-left: 12px;
    font-size: 0.85rem;
}

.tree-month-label:hover {
    background: var(--cream-dark);
}

.tree-icon {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.tree-year.collapsed .tree-year-label .tree-icon,
.tree-month.collapsed .tree-month-label .tree-icon {
    transform: rotate(-90deg);
}

.tree-year-content,
.tree-month-content {
    overflow: hidden;
    transition: max-height 0.3s;
}

.tree-year.collapsed .tree-year-content,
.tree-month.collapsed .tree-month-content {
    display: none;
}

.tree-month {
    margin: 4px 0;
}

.tree-month-content {
    margin-left: 20px;
}

.tree-post {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin: 4px 0 4px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.tree-post:hover {
    background: rgba(100, 100, 100, 0.08);
    border-left-color: var(--primary);
}

.tree-post.active {
    background: rgba(100, 100, 100, 0.12);
    border-left-color: var(--primary);
}

.tree-post-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.tree-post-title {
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 500;
}

.tree-empty {
    color: var(--gray);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* 3D Cube Display - Static */
.cube-3d-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    padding: 20px 0;
}

.cube-3d-wrapper {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

.cube-3d-wrapper:hover {
    transform: scale(1.02);
}

/* Amplified state */
.cube-3d-wrapper.amplified {
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.2));
}

/* ========================================
   FLOATING LEFT SIDE NAVIGATION
   Works on Desktop, Laptop, Tablet, Mobile
   ======================================== */

.floating-nav {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    z-index: 1000;
    display: none;
    align-items: center;
    transition: transform 0.3s ease;
}

.floating-nav:hover,
.floating-nav.open {
    transform: translateY(-50%) translateX(0);
}

.floating-nav-toggle {
    display: none;
}

.floating-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #64748b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.floating-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.floating-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.floating-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.floating-nav-menu {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 0 12px 12px 0;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.floating-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.floating-nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1e293b;
}

.floating-nav-item.active {
    background: #1a1a1a;
    color: #FBFAF7;
}

.floating-nav-item.contact {
    background: #1a1a1a;
    color: #FCFBF8;
    margin-top: 4px;
}

.floating-nav-item.contact:hover {
    background: #2d2d2d;
}

.nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.nav-label {
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.floating-nav-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 8px 10px;
}

/* Small desktop: tighten nav further */
@media (min-width: 1024px) and (max-width: 1280px) {
    .nav-links {
        gap: 10px !important;
    }
    .nav-links a {
        font-size: 0.75rem !important;
    }
    .nav-links .btn {
        padding: 8px 14px !important;
        font-size: 0.72rem !important;
    }
}

/* Desktop: Hide floating nav entirely, show top navbar */
@media (min-width: 1024px) {
    .floating-nav {
        display: none !important;
    }

    .floating-nav-toggle {
        display: none;
    }

    .floating-nav-menu {
        display: none;
    }

    /* Show top navbar links on desktop */
    .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Tablet: Hide floating nav, hide top nav links */
@media (min-width: 769px) and (max-width: 1023px) {
    .floating-nav {
        display: none !important;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile: Toggle button + slide out menu */
@media (max-width: 768px) {
    .floating-nav {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .floating-nav-toggle {
        display: flex;
    }

    .floating-nav-menu {
        position: absolute;
        left: 0;
        bottom: 54px;
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
        border-radius: 0 12px 12px 0;
        max-height: 70vh;
        overflow-y: auto;
    }

    .floating-nav.open .floating-nav-menu {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    /* Push logo right so floating hamburger doesn't overlap */
    .navbar .logo {
        margin-left: 48px;
    }

    .navbar .logo img {
        height: 24px !important;
    }

    /* Adjust main content for floating nav */
    .hero {
        padding-left: 0;
    }

    /* Tighten hero vertical spacing on mobile */
    .hero-headline {
        margin-bottom: 8px !important;
    }

    .hero-content {
        padding-top: 16px !important;
    }
}

/* ============================================
   CONTACT FORM - SIMPLE & APPEALING
   ============================================ */

.contact-wrapper {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

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

.contact-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 12px 0;
}

.contact-header p {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* Simple Form */
.contact-simple-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: left;
}

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

.form-field {
    margin-bottom: 16px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--dark);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--dark);
    background: #fff;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #888;
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.contact-submit:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.contact-submit svg {
    transition: transform 0.2s ease;
}

.contact-submit:hover svg {
    transform: translateX(4px);
}

/* Human Verification Check */
.human-check {
    margin-top: 8px;
}

.human-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.human-check-label svg {
    color: #1a1a1a;
}

.human-check-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8f7f5;
    border: 2px solid #e8e5e0;
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.human-check-box:focus-within {
    border-color: #1a1a1a;
}

.math-question {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.human-check-box input[type="number"] {
    width: 60px;
    padding: 10px 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid #d8d5d0;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
    -moz-appearance: textfield;
}

.human-check-box input[type="number"]::-webkit-outer-spin-button,
.human-check-box input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.human-check-box input[type="number"]:focus {
    outline: none;
    border-color: #1a1a1a;
}

.human-check-box input[type="number"].error {
    border-color: #dc2626;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Hero CTA Button Hover */
.pilot-cta-btn:hover {
    background: #6B5B4D !important;
    color: #FCFBF8 !important;
}

/* ================================
   VERTICAL LINE TRANSFORMATION (FiveOneFour Style)
   ================================ */

.vertical-transform {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 0;
    width: 100%;
    max-width: 900px;
    margin: 50px auto;
    min-height: 280px;
}

.vt-side {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vt-chaos {
    text-align: right;
    padding-right: 40px;
}

.vt-clarity {
    text-align: left;
    padding-left: 40px;
}

.vt-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.vt-chaos .vt-label {
    color: #C4BEB0;
}

.vt-clarity .vt-label {
    color: #1e293b;
}

.vt-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.vt-bar {
    height: 12px;
    background: #D8D2C4;
    border-radius: 6px;
    opacity: 0.7;
}

.vt-chaos .vt-bar {
    animation: chaos-jitter 3s ease-in-out infinite;
}

.vt-chaos .vt-bar:nth-child(1) { animation-delay: 0s; }
.vt-chaos .vt-bar:nth-child(2) { animation-delay: 0.2s; }
.vt-chaos .vt-bar:nth-child(3) { animation-delay: 0.4s; }
.vt-chaos .vt-bar:nth-child(4) { animation-delay: 0.6s; }
.vt-chaos .vt-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes chaos-jitter {
    0%, 100% { transform: translateX(0); opacity: 0.5; -webkit-transform: translateX(0); }
    25% { transform: translateX(-5px); opacity: 0.7; -webkit-transform: translateX(-5px); }
    75% { transform: translateX(5px); opacity: 0.4; -webkit-transform: translateX(5px); }
}

@-webkit-keyframes chaos-jitter {
    0%, 100% { -webkit-transform: translateX(0); opacity: 0.5; }
    25% { -webkit-transform: translateX(-5px); opacity: 0.7; }
    75% { -webkit-transform: translateX(5px); opacity: 0.4; }
}

.vt-bars-unified .vt-bar {
    width: 100% !important;
    margin-left: 0 !important;
    background: #C8C2B4;
    opacity: 0.9;
    animation: unified-pulse 2s ease-in-out infinite;
}

.vt-bars-unified .vt-bar:nth-child(1) { animation-delay: 0s; }
.vt-bars-unified .vt-bar:nth-child(2) { animation-delay: 0.1s; }
.vt-bars-unified .vt-bar:nth-child(3) { animation-delay: 0.2s; }
.vt-bars-unified .vt-bar:nth-child(4) { animation-delay: 0.3s; }
.vt-bars-unified .vt-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes unified-pulse {
    0%, 100% { opacity: 0.7; transform: scaleX(0.95); -webkit-transform: scaleX(0.95); }
    50% { opacity: 1; transform: scaleX(1); -webkit-transform: scaleX(1); }
}

@-webkit-keyframes unified-pulse {
    0%, 100% { opacity: 0.7; -webkit-transform: scaleX(0.95); }
    50% { opacity: 1; -webkit-transform: scaleX(1); }
}

.vt-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* Center Vertical Line */
.vt-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.vt-line {
    width: 3px;
    flex: 1;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.vt-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #6B5B4D 0%, #A09A8D 100%);
    animation: line-flow 2s ease-in-out infinite;
}

@keyframes line-flow {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

.vt-line-bottom .vt-line-progress {
    animation-delay: 1s;
}

.vt-engine {
    background: #1a1a1a;
    color: #FCFBF8;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .vertical-transform {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vt-center {
        flex-direction: row;
        padding: 20px 0;
    }

    .vt-line {
        width: 100%;
        height: 3px;
        flex: 1;
    }

    .vt-line-progress {
        animation: line-flow-h 2s ease-in-out infinite;
    }

    @keyframes line-flow-h {
        0% { transform: translateX(-100%); }
        50% { transform: translateX(0); }
        100% { transform: translateX(100%); }
    }

    .vt-chaos, .vt-clarity {
        text-align: center;
        padding: 20px;
    }

    .vt-bars {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        max-width: 250px !important;
        width: 100% !important;
        margin: 16px auto 20px !important;
    }

    .vt-bar {
        height: 10px !important;
        min-height: 10px !important;
        background: #cbd5e1 !important;
        border-radius: 5px !important;
        min-width: 40px !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        will-change: transform, opacity !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }

    .vt-bars-unified .vt-bar {
        background: #6B5B4D !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* Enable animations on mobile with webkit prefixes */
    .vt-chaos .vt-bar {
        -webkit-animation: chaos-jitter 3s ease-in-out infinite !important;
        animation: chaos-jitter 3s ease-in-out infinite !important;
    }

    .vt-chaos .vt-bar:nth-child(1) { -webkit-animation-delay: 0s !important; animation-delay: 0s !important; }
    .vt-chaos .vt-bar:nth-child(2) { -webkit-animation-delay: 0.2s !important; animation-delay: 0.2s !important; }
    .vt-chaos .vt-bar:nth-child(3) { -webkit-animation-delay: 0.4s !important; animation-delay: 0.4s !important; }
    .vt-chaos .vt-bar:nth-child(4) { -webkit-animation-delay: 0.6s !important; animation-delay: 0.6s !important; }
    .vt-chaos .vt-bar:nth-child(5) { -webkit-animation-delay: 0.8s !important; animation-delay: 0.8s !important; }

    .vt-bars-unified .vt-bar {
        -webkit-animation: unified-pulse 2s ease-in-out infinite !important;
        animation: unified-pulse 2s ease-in-out infinite !important;
    }

    .vt-bars-unified .vt-bar:nth-child(1) { -webkit-animation-delay: 0s !important; animation-delay: 0s !important; }
    .vt-bars-unified .vt-bar:nth-child(2) { -webkit-animation-delay: 0.1s !important; animation-delay: 0.1s !important; }
    .vt-bars-unified .vt-bar:nth-child(3) { -webkit-animation-delay: 0.2s !important; animation-delay: 0.2s !important; }
    .vt-bars-unified .vt-bar:nth-child(4) { -webkit-animation-delay: 0.3s !important; animation-delay: 0.3s !important; }
    .vt-bars-unified .vt-bar:nth-child(5) { -webkit-animation-delay: 0.4s !important; animation-delay: 0.4s !important; }
}

/* Alternative contact */
.contact-alt {
    margin-top: 24px;
}

.contact-alt p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.contact-alt a {
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
}

.contact-alt a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-simple-form {
        padding: 24px;
    }

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

/* ================================
   MOBILE RESPONSIVE - Global Overrides
   ================================ */

/* Tablet */
@media (max-width: 900px) {
    .hero-value-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    /* Hero section */
    .hero-headline {
        font-size: 1.8rem !important;
    }

    .hero-value-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .hero-value-item {
        padding: 12px !important;
    }

    /* Container padding */
    .container {
        padding: 0 16px;
    }

    /* Section padding */
    .section {
        padding: 40px 0;
    }

    /* Headings */
    h1, .hero-line-1 {
        font-size: 1.6rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    /* Profile section */
    .featured-profile {
        flex-direction: column !important;
        text-align: center;
    }

    .profile-image-container {
        margin: 0 auto 20px !important;
    }

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

    .credential-group {
        text-align: left;
    }

    /* Tables */
    table {
        font-size: 0.8rem !important;
    }

    th, td {
        padding: 10px 8px !important;
    }

    /* Buttons */
    .cta-contact-btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Inline 4-column grids - force responsive via CSS attribute selector */
@media (max-width: 768px) {
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    [style*="grid-template-columns: repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    /* Stats row */
    [style*="flex-wrap: nowrap"] {
        flex-wrap: wrap !important;
    }
}

/* Mobile Hero Section Fix */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }

    .hero-section,
    .hero-content,
    #hero {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Hide hero background hypergraph animation on mobile */
    .hero-bg {
        display: none !important;
    }

    .vanta-left,
    .vanta-right,
    .vanta-side {
        display: none !important;
    }

    .hero-headline {
        font-size: 1.8rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 0 16px !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .hero-line-1 {
        font-size: inherit !important;
        white-space: normal !important;
        animation: none !important;
        transform: none !important;
        -webkit-transform: none !important;
        text-shadow: none !important;
        letter-spacing: -0.5px !important;
        display: block !important;
        margin-bottom: 8px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .hero-line-2 {
        font-size: inherit !important;
        white-space: normal !important;
        animation: none !important;
        transform: none !important;
        -webkit-transform: none !important;
        text-shadow: none !important;
        letter-spacing: -0.5px !important;
        display: inline-block !important;
        margin-bottom: 8px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .hero-subheadline,
    .hero-description {
        font-size: 0.95rem !important;
        padding: 0 16px !important;
        word-wrap: break-word !important;
    }

    /* Hero animation container */
    .hero-visual,
    .knowledge-sphere-container,
    .sketch-container {
        max-width: 100% !important;
        transform: scale(0.75) !important;
        margin: 0 auto !important;
    }

    /* Hero canvas — compact on mobile */
    #heroSourceCanvas {
        height: 200px !important;
        min-height: 200px !important;
        display: block !important;
    }

    /* Shrink canvas wrapper */
    .hero-split > div:last-child {
        max-width: 100% !important;
    }

    /* Top bar — one line on mobile */
    #topBar p {
        font-size: 0.55rem !important;
        padding: 0 8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #topBar p span {
        display: none !important;
    }

    #topBar {
        padding: 6px 0 !important;
    }

    /* Push navbar down to clear top bar */
    .navbar {
        top: 34px !important;
    }

    /* Push hero content down to clear both bars */
    .hero {
        padding-top: 110px !important;
    }

    /* Tighten vision strip on mobile */
    .hero-content [style*="padding: 48px 0 32px"] {
        padding: 24px 0 16px !important;
    }

    /* Step indicator pills — allow wrapping */
    [style*="inline-flex"][style*="gap: 6px"] {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Proof chain card — fit within mobile padding */
    [style*="max-width: 480px"][style*="margin: 0 auto"] {
        max-width: 100% !important;
    }

    /* Prevent any horizontal overflow */
    .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    section {
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.5rem !important;
        padding: 0 12px !important;
        letter-spacing: 0 !important;
        line-height: 1.25 !important;
    }

    .hero-line-1 {
        font-size: 1.5rem !important;
        animation: none !important;
        transform: none !important;
        -webkit-transform: none !important;
        text-shadow: none !important;
        letter-spacing: 0 !important;
        display: block !important;
        margin-bottom: 6px !important;
    }

    .hero-line-2 {
        font-size: 1.5rem !important;
        animation: none !important;
        transform: none !important;
        -webkit-transform: none !important;
        text-shadow: none !important;
        letter-spacing: 0 !important;
        display: inline-block !important;
        margin-bottom: 6px !important;
    }

    .hero-subheadline,
    .hero-description {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        padding: 0 12px !important;
    }

    .hero-visual,
    .knowledge-sphere-container,
    .sketch-container {
        transform: scale(0.65) !important;
    }

    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Canvas smaller on tiny screens */
    #heroSourceCanvas {
        height: 160px !important;
    }

    /* Step pills — hide arrows, stack vertically */
    [style*="inline-flex"][style*="gap: 6px"] svg {
        display: none !important;
    }

    /* Proof chain inner padding */
    .proof-step3 {
        padding: 4px 6px !important;
    }

    /* Step pill text smaller */
    [style*="inline-flex"][style*="gap: 6px"] span {
        font-size: 0.45rem !important;
        padding: 2px 6px !important;
    }

    /* Typewriter compact */
    #heroTypewriter {
        padding: 0 4px !important;
        min-height: 28px !important;
    }

    #heroTypewriter span:first-child {
        font-size: 0.5rem !important;
    }

    #heroTypewriter p {
        font-size: 0.6rem !important;
    }

    /* Proof chain card fit */
    [style*="max-width: 480px"][style*="margin: 0 auto"] {
        padding: 0 4px !important;
        max-width: calc(100% - 8px) !important;
    }

    /* Inline max-width elements need padding */
    [style*="max-width: 540px"],
    [style*="max-width: 560px"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* ============================================
   iPad Portrait (768px - 1024px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Hero canvas — medium size for iPad */
    #heroSourceCanvas {
        height: 300px !important;
    }

    /* Top bar text — prevent wrap */
    #topBar p {
        font-size: 0.75rem !important;
        letter-spacing: 0 !important;
    }

    /* Hero grid — single column on iPad portrait */
    .hero-split {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 16px !important;
    }

    /* Center the canvas wrapper on iPad */
    .hero-split > div:last-child {
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    /* Typewriter centered on iPad */
    #heroTypewriter {
        justify-content: center !important;
    }

    /* CTA buttons centered */
    .hero-split [style*="display: flex"][style*="gap: 12px"] {
        justify-content: center !important;
    }
}

/* ============================================
   Small phones (375px and below)
   ============================================ */
@media (max-width: 375px) {
    .hero-headline {
        font-size: 1.3rem !important;
        padding: 0 8px !important;
    }

    .hero-line-1,
    .hero-line-2 {
        font-size: 1.3rem !important;
    }

    #heroSourceCanvas {
        height: 140px !important;
    }

    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Hide step arrows and shrink pills */
    [style*="inline-flex"][style*="gap: 6px"] {
        gap: 3px !important;
    }

    [style*="inline-flex"][style*="gap: 6px"] svg {
        display: none !important;
    }
}

/* ============================================
   Global responsive helpers
   ============================================ */
/* Prevent ALL horizontal overflow on mobile */
@media (max-width: 768px) {
    * {
        max-width: 100vw;
    }

    img, svg, video {
        max-width: 100% !important;
        height: auto;
    }

    canvas {
        max-width: 100% !important;
    }

    /* Force inline grids to be responsive */
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }

    /* Inline flex rows — allow wrapping */
    [style*="display: flex"][style*="gap"] {
        flex-wrap: wrap !important;
    }

    /* Large inline text — cap it */
    [style*="font-size: 2.5rem"],
    [style*="font-size: 2rem"] {
        font-size: 1.4rem !important;
    }

    [style*="font-size: 1.8rem"] {
        font-size: 1.2rem !important;
    }
}

/* Nav Item Icons for Research & Products */
.nav-item-icon {
    display: inline-block;
    width: 18px;
    min-width: 18px;
    text-align: center;
    margin-right: 6px;
    font-size: 0.8rem;
    opacity: 0.7;
    color: #4a4a4a;
    flex-shrink: 0;
}

.concept-link,
.product-link {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.concept-link:hover .nav-item-icon,
.product-link:hover .nav-item-icon,
.concept-link.active .nav-item-icon,
.product-link.active .nav-item-icon {
    opacity: 1;
    color: #1e293b;
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 900px) {
    /* Research & Products Layout - Stack sidebar on top */
    .concepts-layout,
    .products-layout {
        flex-direction: column !important;
        display: flex !important;
    }

    .concepts-nav,
    .products-nav {
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        top: auto !important;
        margin-bottom: 24px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 16px !important;
    }

    .concepts-nav-title,
    .products-nav-title {
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .concept-link,
    .product-link {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        white-space: nowrap !important;
    }

    .concepts-content,
    .products-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
    }
}

@media (max-width: 768px) {
    /* Section headers */
    .section-header h2 {
        font-size: 1.8rem !important;
    }

    .section-subtitle {
        font-size: 0.95rem !important;
        padding: 0 12px !important;
    }

    /* Product/Research content blocks */
    .concept-block,
    .product-detail {
        padding: 16px !important;
    }

    .concept-header h3,
    .product-info h3 {
        font-size: 1.2rem !important;
    }

    /* SVG diagrams */
    .product-diagram,
    .concept-diagram {
        max-width: 100% !important;
        overflow-x: auto !important;
    }

    .product-svg,
    .concept-svg {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Product stats */
    .product-stats {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .product-stat {
        flex: 1 1 45% !important;
        min-width: 120px !important;
    }

    /* Comparison tables */
    .comparison-table {
        overflow-x: auto !important;
        display: block !important;
    }

    .comparison-table table {
        min-width: 500px !important;
    }

    /* Cards grid */
    .use-case-cards,
    .trust-grid,
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Team section */
    .team-grid,
    .advisors-grid {
        grid-template-columns: 1fr !important;
    }

    .featured-profile {
        flex-direction: column !important;
        text-align: center !important;
        padding: 24px 16px !important;
    }

    .profile-image-container {
        margin: 0 auto 20px !important;
        width: 120px !important;
        height: 120px !important;
    }

    .credential-tag {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }

    /* Blog section */
    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .blog-card {
        padding: 16px !important;
    }

    /* Benchmarks */
    .benchmark-chart {
        overflow-x: auto !important;
    }

    /* Contact form */
    .contact-form {
        padding: 24px 16px !important;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Floating nav - keep visible on mobile with toggle */
    .floating-nav {
        display: flex !important;
        z-index: 9999 !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 24px !important;
    }

    .footer-links {
        justify-content: center !important;
    }

    /* Code blocks */
    pre, code {
        font-size: 0.75rem !important;
        overflow-x: auto !important;
    }

    /* Vertical transformation section - Clean Mobile Layout */
    .vertical-transform {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        background: linear-gradient(180deg, #F5F1E8 0%, #FCFBF8 100%) !important;
        border-radius: 16px !important;
        padding: 24px 16px !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    .vt-side {
        width: 100% !important;
        padding: 16px !important;
        text-align: center !important;
    }

    .vt-chaos {
        order: 1 !important;
        padding-right: 16px !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .vt-center {
        order: 2 !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 20px 0 !important;
    }

    .vt-clarity {
        order: 3 !important;
        padding-left: 16px !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    .vt-line {
        display: none !important;
    }

    .vt-line-bottom {
        display: none !important;
    }

    .vt-engine {
        margin: 0 auto !important;
        padding: 14px 28px !important;
        font-size: 0.95rem !important;
    }

    .vt-bars {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        max-width: 220px !important;
        margin: 16px auto !important;
        width: 100% !important;
    }

    .vt-bar {
        height: 10px !important;
        background: #cbd5e1 !important;
        border-radius: 5px !important;
        opacity: 0.8 !important;
        min-width: 30px !important;
    }

    .vt-bars-unified .vt-bar {
        background: #6B5B4D !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .vt-label {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }

    .vt-desc {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    /* Fix "From Raw Data to Reasoning Engine" section */
    .raw-data-section {
        overflow: visible !important;
        padding: 20px 16px !important;
        margin: 0 12px 30px !important;
    }

    .raw-data-section svg {
        display: none !important;
    }

    .raw-data-section h3 {
        font-size: 1.3rem !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
    }

    .raw-data-section p {
        font-size: 0.9rem !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* Value grid */
    .hero-value-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* CTA buttons */
    .cta-contact-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
    }

    /* Modal */
    .modal-content {
        width: 95% !important;
        max-height: 90vh !important;
        margin: 5vh auto !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    .section-header h2 {
        font-size: 1.5rem !important;
    }

    .concept-link,
    .product-link {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }

    .nav-item-icon {
        font-size: 0.7rem !important;
        width: 14px !important;
        min-width: 14px !important;
        margin-right: 4px !important;
    }

    .product-stat {
        flex: 1 1 100% !important;
    }

    .credential-items {
        flex-direction: column !important;
        gap: 6px !important;
    }

    .credential-tag {
        font-size: 0.7rem !important;
    }

    /* Very small text adjustments */
    p, li {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    h4 {
        font-size: 1rem !important;
    }

    /* Fix inline styled headings visibility */
    h3[style*="font-size: 2rem"] {
        font-size: 1.3rem !important;
        padding: 0 12px !important;
        word-wrap: break-word !important;
    }
}

/* Problems We Solve Section - Mobile Responsive */
@media (max-width: 768px) {
    #problems-we-solve [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    #solution [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    #products [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    .problem-card {
        padding: 24px !important;
    }

    .problem-card h3 {
        font-size: 1.05rem !important;
    }

    /* How It Works - Video + Steps Layout */
    #solution [style*="grid-template-columns: 45% 55%"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}
