:root {
    --bg-color-hero: #f1f1ee;
    /* Warm Stone */
    --bg-color-scroll: #ebeae6;
    /* Deeper Warm Stone (Transparency Engine) */
    --bg-color-lab: #1a2c26;
    /* Deep Forest/Slate (Audit Lab) */
    --text-color: #0f172a;
    /* Dark Slate (Hero) */
    --text-color-dark: #0f172a;
    /* Dark Slate (Transparency) */
    --accent-color: #ebaf37;
    /* Amber/Gold */
}

/* Re-introducing the Curved Organic Blade (Silk Veil) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%232d4a3e' fill-opacity='0.05' d='M0,192L80,181.3C160,171,320,149,480,165.3C640,181,800,235,960,234.7C1120,235,1280,181,1360,154.7L1440,128L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    transition: opacity 1.5s ease;
    opacity: 0.5;
}

body.lab-active::before {
    opacity: 0;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    /* Allow scrolling */
    overflow-x: hidden;
    background-color: var(--bg-color-hero);
    transition: background-color 1.5s ease;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    /* Default dark text */
}

body.scrolled {
    background-color: var(--bg-color-scroll);
    color: #1a1a1a;
}

/* Section 3 State - Lab now maintains the forest theme light background per new request */
body.lab-active {
    background-color: var(--bg-color-scroll) !important;
    color: #1a1a1a !important;
}

body.lab-active header {
    color: #1a1a1a !important;
}

/* Scrolled State Overrides */
body.scrolled header {
    color: var(--text-color-dark);
}

body.scrolled .logo,
body.scrolled nav a {
    text-shadow: none;
    opacity: 1;
}

/* Hide Hero Elements on Scroll */
body.scrolled .hero-title,
body.scrolled .hero-subtitle,
body.scrolled .cta-button,
body.scrolled .footer-locations,
body.scrolled .hero-perimeter,
body.scrolled .log-stream-sidebar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Transparency Engine Section */
#transparency-engine {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 20;
    /* Above hero canvas interaction */
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease 0.5s;
}

body.scrolled #transparency-engine,
body.scrolled #audit-lab {
    /* Living Canopy Gradient: Light Sage (#f8f9f4) to Pale Amber (#e8ebd1) */
    background: linear-gradient(to bottom, #f8f9f4 0%, #f0f2eb 50%, #e8ebd1 100%) !important;
    opacity: 1;
}

body.scrolled #transparency-engine {
    pointer-events: auto;
}

/* Dappled Shadows Mask Layer */
.dappled-shadows {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Subtle leaf silhouettes SVG pattern */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 100 100'%3E%3Cpath d='M30,20 Q40,10 50,20 T70,20 Q80,30 70,40 T50,40 T30,40 Q20,30 30,20' fill='rgba(40, 60, 20, 1)'/%3E%3Cpath d='M10,60 Q20,50 30,60 T50,60 Q60,70 50,80 T30,80 T10,80 Q0,70 10,60' fill='rgba(40, 60, 20, 1)'/%3E%3Cpath d='M70,70 Q80,60 90,70 T110,70 Q120,80 110,90 T90,90 T70,90 Q60,80 70,70' fill='rgba(40, 60, 20, 1)'/%3E%3C/svg%3E");
    background-size: 600px 600px;
    opacity: 0.06;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
    animation: dappledPulse 20s ease-in-out infinite;
}

@keyframes dappledPulse {

    0%,
    100% {
        opacity: 0.04;
        transform: scale(1) translate(0, 0);
    }

    50% {
        opacity: 0.08;
        transform: scale(1.05) translate(-1%, -1%);
    }
}

/* Dependency Graph Background */
.dependency-graph {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.engine-content {
    text-align: center;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.engine-header {
    margin-bottom: 4rem;
}

.engine-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    width: 100%;
}

.engine-specs {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.engine-specs.left {
    align-items: flex-end;
    text-align: right;
}

.engine-specs.right {
    align-items: flex-start;
    text-align: left;
}

.spec-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #64748b;
    position: relative;
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-weight: 700;
    color: #1a1918;
    /* Deep Stone */
    margin-bottom: 0.2rem;
}

.spec-line {
    position: absolute;
    height: 1px;
    background: #64748b;
    opacity: 0.3;
    width: 100px;
    top: 50%;
}

.left .spec-line {
    right: -120px;
}

.right .spec-line {
    left: -120px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #1a1918;
    /* Deep Stone */
    margin-bottom: 1rem;
    transition: color 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    /* drop-shadow-sm equivalent */
}

body.lab-active .section-title {
    color: #1c1917;
    /* Maintain high contrast in Lab too */
}

.gradient-text {
    background: linear-gradient(to right, #b07318, #eea02b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    color: #1a1918;
    /* Deep Stone */
    margin-bottom: 4rem;
}

/* Glass Stack Container */
.glass-stack-container {
    position: relative;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.visual-audit-group {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    /* Cards are absolutely positioned within dashboard-unit */
}

/* Dashboard Unit (The Cohesive Group) */
.dashboard-unit {
    position: relative;
    width: 500px;
    height: 400px;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    /* Optional boundary */
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    /* Increased opacity */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.doc-card {
    position: absolute;
    width: 320px;
    height: 400px;
    z-index: 1;
    transform: translate(-60px, -40px) rotate(-3deg);
    backdrop-filter: blur(12px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    left: 50%;
    top: 50%;
    margin-left: -160px;
    margin-top: -200px;
    background: rgba(255, 255, 255, 0.6);
    /* Increased opacity */
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1918;
    /* Deep Stone */
    margin-bottom: 1rem;
}

.line {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    margin-bottom: 0.8rem;
    border-radius: 4px;
}

.l1 {
    width: 100%;
}

.l2 {
    width: 80%;
}

.l3 {
    width: 60%;
}

.insight-core {
    position: absolute;
    width: 360px;
    height: 240px;
    z-index: 5;
    transform: translate(60px, 40px);
    background: rgba(255, 255, 255, 0.8);
    /* Even more opaque for core */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 2.5rem;
    text-align: left;
    left: 50%;
    top: 50%;
    margin-left: -180px;
    margin-top: -120px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.dashboard-status-bar {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 5px #4ade80;
    animation: blink 2s infinite;
}

.core-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ebaf37, #ff8c00);
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(235, 175, 55, 0.4);
}

.insight-core h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #1a1918;
    /* Deep Stone */
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.score {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    color: #1a1918;
    /* Deep Stone */
    font-weight: 700;
}

.status {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* Oracle FAB - The Liquid Life Orb */
.oracle-fab {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* 3D Glass Sphere Effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.5),
        /* Inner glass glow */
        inset 0 -10px 20px rgba(0, 0, 0, 0.2),
        /* Bottom shadow */
        0 10px 30px rgba(0, 0, 0, 0.2);
    /* Outer drop shadow */
    z-index: 100;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: scale(0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Contain the liquid pseudo-element */
}

/* The Liquid Light (Pseudo-element inside the button) */
.oracle-fab::after {
    content: '';
    position: absolute;
    inset: -20%;
    /* Slightly larger than button to allow for distortion */
    background: radial-gradient(circle at 30% 30%, rgba(238, 160, 43, 0.4), rgba(45, 74, 62, 0.6));
    z-index: -1;
    /* Lava Lamp Distortion & Hue Rotate Animation */
    animation: liquidLava 10s infinite linear;
    mix-blend-mode: color-dodge;
}

@keyframes liquidLava {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }

    33% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: rotate(120deg) scale(1.1);
    }

    66% {
        border-radius: 30% 70% 30% 70% / 50% 60% 30% 60%;
        transform: rotate(240deg) scale(0.9);
        filter: hue-rotate(30deg);
        /* Hue rotate requested */
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(360deg) scale(1);
        filter: hue-rotate(0deg);
    }
}

.oracle-fab.toggle-open {
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.6),
        inset 0 -10px 20px rgba(0, 0, 0, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(1) rotate(90deg);
}

.oracle-fab.toggle-open .fab-icon {
    opacity: 0;
    transform: scale(0);
}

.oracle-fab.toggle-open .fab-close {
    opacity: 1;
    transform: scale(1) rotate(-90deg);
}

.oracle-fab.toggle-closed {
    transition: all 0.5s ease-in-out;
}

.oracle-fab.toggle-closed.closing {
    transform: scale(0.95);
    opacity: 0;
}

body.scrolled .oracle-fab {
    opacity: 1;
    transform: scale(1);
}

.oracle-fab:hover {
    transform: scale(1.1);
}

.fab-icon {
    width: 20px;
    height: 20px;
    background: #ebaf37;
    /* Gold */
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
    transition: all 0.3s ease;
    position: absolute;
}

.fab-close {
    width: 24px;
    height: 24px;
    background: #ebaf37;
    /* Gold */
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    position: absolute;
}

/* Background Bokeh */
.background-bokeh {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bokeh {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    /* 10% opacity per request */
}

.b1 {
    width: 600px;
    height: 600px;
    background: #eea02b;
    top: -10%;
    left: -10%;
    animation: float-1 25s infinite ease-in-out;
}

.b2 {
    width: 550px;
    height: 550px;
    background: #eea02b;
    bottom: 5%;
    right: -5%;
    animation: float-2 30s infinite ease-in-out;
}

.b3 {
    width: 500px;
    height: 500px;
    background: #eea02b;
    top: 30%;
    left: 15%;
    animation: float-1 22s infinite ease-in-out reverse;
}

.b4 {
    width: 580px;
    height: 580px;
    background: #eea02b;
    bottom: 20%;
    left: 40%;
    animation: float-2 28s infinite ease-in-out;
}

.b5 {
    width: 520px;
    height: 520px;
    background: #eea02b;
    top: 10%;
    right: 20%;
    animation: float-1 35s infinite ease-in-out;
}

#sovereign-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background: #fdfcfb;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(238, 160, 43, 0.08) 0%, transparent 70%);
    filter: blur(80px);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(45, 74, 62, 0.05) 0%, transparent 70%);
    filter: blur(120px);
}

#oracleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#shardContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Above canvas */
    pointer-events: none;
    overflow: hidden;
}

.canvas-dimmer {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.7) 100%);
    pointer-events: none;
    z-index: 5;
    /* Between canvas/shards and text */
}

.shard {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    will-change: transform;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 3rem;
    /* py-8 equivalent is ~2rem, px-12 is 3rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-sizing: border-box;
    color: #ffffff;
    gap: 3rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: auto;
    /* Push to right if nav is center, or just ensure spacing */
}

.lang-option {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-option.active,
.lang-option:hover {
    opacity: 1;
    font-weight: 700;
}

.separator {
    opacity: 0.3;
}

body.scrolled .lang-switcher {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-color-dark);
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: inherit;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

main {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    font-style: normal;
    color: #ffffff;
    pointer-events: auto;
    transition: all 0.1s ease-out;
    /* Fast response for Lampa gleam */
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    max-width: 600px;
    margin-top: 1.5rem;
    opacity: 0.9;
    /* Per request */
    line-height: 1.6;
    color: #ffffff;
    pointer-events: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-button {
    margin-top: 3rem;
    padding: 1.2rem 2.5rem;
    background: #1a2c26;
    /* Deep Forest Green */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    /* White text */
    pointer-events: auto;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #233b33;
    box-shadow: 0 0 25px rgba(235, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* Command Center Perimeter */
.hero-perimeter {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 8;
}

.data-block {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
}

.tl {
    top: 2rem;
    left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 1rem;
}

.tr {
    top: 2rem;
    right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 1rem;
    text-align: right;
}

.bl {
    bottom: 2rem;
    left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 1rem;
}

.br {
    bottom: 2rem;
    right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 1rem;
    text-align: right;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #4ade80;
    border-radius: 50%;
    margin-left: 0.5rem;
    box-shadow: 0 0 5px #4ade80;
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 5px #4ade80;
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 12px #4ade80, 0 0 20px rgba(74, 222, 128, 0.4);
        opacity: 1;
    }
}

/* Log Stream Sidebar */
.log-stream-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 150px;
    height: 100vh;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.log-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.15);
    /* Very faint */
    line-height: 2;
    padding: 2rem;
    text-align: right;
    animation: streamUp 20s linear infinite;
}

.footer-locations {
    display: none;
    /* Moved to perimeter */
}

.content-spacer {
    height: 100vh;
    /* Just enough to scroll past */
}

.stitch-green-section {
    height: 100vh;
}

/* "Lampa" Text Interaction Class */
.lampa-gleam {
    text-shadow: 0 0 10px rgba(255, 191, 0, 0.8), 0 0 20px rgba(255, 140, 0, 0.6);
    color: #fff;
    /* Ensure it stays white but glows */
    /* Could also try mix-blend-mode if supported well, but text-shadow is safer for 'gleam' */
}

/* Split Screen RAG Visual */
.chunking-visual.split-screen {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.visual-col {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.chaos-col {
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.structure-col {
    background: rgba(15, 23, 42, 0.5);
}

.col-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.chaos-cloud {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chaos-cloud span {
    display: inline-block;
    transform: rotate(calc(var(--r) * 1deg));
}

.chaos-cloud span:nth-child(odd) {
    --r: 2;
    color: rgba(255, 255, 255, 0.2);
}

.chaos-cloud span:nth-child(even) {
    --r: -3;
}

.chaos-cloud span:nth-child(3n) {
    --r: 1;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.visual-separator {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.arrow-flow {
    font-size: 1.5rem;
    color: #ebaf37;
    opacity: 0.8;
}

.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #a3b8cc;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 0.5rem;
}

.code-line.indent {
    padding-left: 1.5rem;
}

.tag {
    color: #4ade80;
}

/* --- GOVERNANCE MODELS (Bento) --- */
#governance-models {
    position: relative;
    width: 100%;
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #1a2c26 0%, #0f172a 100%);
    display: flex;
    justify-content: center;
    z-index: 20;
}

.model-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #ebaf37;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.1em;
}

.models-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.model-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.model-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.model-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.model-card p {
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Glass Depth Effect */
.card-depth {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* Sector Icons */
.sector-icon {
    color: #2b6a6c;
    /* Muted Teal */
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    opacity: 0.8;
}

/* Panel Watermark */
.panel-watermark {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M30,50 Q50,20 70,50 T110,50' fill='none' stroke='%23ffffff' stroke-width='2' opacity='0.1'/%3E%3Cpath d='M-10,50 Q10,80 30,50 T70,50' fill='none' stroke='%23ffffff' stroke-width='2' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.03;
    /* 3% opacity */
    pointer-events: none;
    z-index: 0;
}

.sandbox {
    border-top: 4px solid #4ade80;
    /* Mint */
    box-shadow: 0 -10px 20px rgba(74, 222, 128, 0.1);
}

.guardian {
    border-top: 4px solid #ebaf37;
    /* Gold */
    box-shadow: 0 -10px 20px rgba(235, 175, 55, 0.1);
}

.sovereign {
    border-top: 4px solid #e2e8f0;
    /* Silver */
    box-shadow: 0 -10px 20px rgba(226, 232, 240, 0.1);
}

/* Split Screen RAG Visual */
.chunking-visual.split-screen {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.visual-col {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.chaos-col {
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.structure-col {
    background: rgba(15, 23, 42, 0.5);
}

.col-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.chaos-cloud {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chaos-cloud span {
    display: inline-block;
    transform: rotate(calc(var(--r) * 1deg));
}

.chaos-cloud span:nth-child(odd) {
    --r: 2;
    color: rgba(255, 255, 255, 0.2);
}

.chaos-cloud span:nth-child(even) {
    --r: -3;
}

.chaos-cloud span:nth-child(3n) {
    --r: 1;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.visual-separator {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.arrow-flow {
    font-size: 1.5rem;
    color: #ebaf37;
    opacity: 0.8;
}

.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #a3b8cc;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 0.5rem;
}

.code-line.indent {
    padding-left: 1.5rem;
}

.tag {
    color: #4ade80;
}

/* --- GOVERNANCE MODELS (Bento) --- */
#governance-models {
    position: relative;
    width: 100%;
    padding: 6rem 2rem;
    background: #0f172a;
    /* Match RAG section or slightly lighter */
    display: flex;
    justify-content: center;
    z-index: 20;
}

.models-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.model-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.model-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.model-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.model-card p {
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Glass Depth Effect */
.card-depth {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.sandbox {
    border-top: 4px solid #94a3b8;
}

.guardian {
    border-top: 4px solid #ebaf37;
}

.sovereign {
    border-top: 4px solid #4ade80;
}

/* --- ACCESS PORTAL (LOGIN) --- */
.portal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.portal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.portal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.neural-ring {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(235, 175, 55, 0.3);
    border-radius: 50%;
    animation: pulseRing 3s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
        border-color: rgba(235, 175, 55, 0.1);
    }

    50% {
        transform: scale(1.0);
        opacity: 1;
        border-color: rgba(235, 175, 55, 0.5);
    }

    100% {
        transform: scale(0.9);
        opacity: 0.5;
        border-color: rgba(235, 175, 55, 0.1);
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(40px);
    width: 100%;
}

.security-airlook {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.portal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

.glass-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: #ebaf37;
}

.scan-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: #ebaf37;
    animation: scanInput 2s linear infinite;
    display: none;
}

.glass-input:focus+.scan-line {
    display: block;
}

@keyframes scanInput {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.portal-btn {
    background: #ebaf37;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.portal-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* --- ORACLE CHAT INTERFACE --- */
#oracle-chat {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #0b1120;
    /* Deep Obsidian */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease-in-out;
    clip-path: circle(0% at calc(100% - 60px) calc(100% - 60px));
}

#oracle-chat.active {
    opacity: 1;
    pointer-events: auto;
    clip-path: circle(150% at calc(100% - 60px) calc(100% - 60px));
}

.chat-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.chat-sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* Slim Sidebar inside Oracle */
.oracle-slim-sidebar {
    width: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    gap: 2rem;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s;
    color: #2d4a3e;
    /* Deep Moss Green */
}

.sidebar-icon:hover {
    opacity: 1;
}

.sidebar-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.audit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    scrollbar-width: none;
}

.audit-list::-webkit-scrollbar {
    display: none;
}

.audit-list li {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.audit-list li:hover,
.audit-list li.active-audit {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.status-dot.orange {
    background-color: #f97316;
    box-shadow: 0 0 5px #f97316;
}

.chat-main {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.dna-watermark {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnPjxwYXRoIGQ9J00wLDUwIFE1MCwwIDEwMCw1MCBUMjAwLDUwJyBzdHJva2U9J3JnYmEoMjU1LDI1NSwyNTUsMC4wMiknIGZpbGw9J25vbmUnIHN0cm9rZS13aWR0aD0nNScvPjwvc3ZnPg==');
    background-size: 200px 100px;
    opacity: 0.1;
    pointer-events: none;
}

.chat-stream {
    flex: 1;
    padding: 4rem 10rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    scrollbar-width: none;
}

.chat-stream::-webkit-scrollbar {
    display: none;
}

.message {
    max-width: 80%;
    padding: 1.5rem;
    border-radius: 12px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.ai-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    color: #e2e8f0;
}

.citation-chips {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    background: rgba(74, 222, 128, 0.2);
}

.input-area {
    padding: 2rem 10rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 30px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: #ebaf37;
}

.send-btn {
    background: #ebaf37;
    border: none;
    border-radius: 8px;
    padding: 0 1.5rem;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.secure-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    color: #4ade80;
    cursor: help;
}

.hidden {
    display: none !important;
}

/* NEW FRONTIERS SECTION */
#new-frontiers {
    position: relative;
    width: 100%;
    padding: 6rem 2rem;
    background: #1a2c26;
    /* Deep Forest matching Lab */
    display: flex;
    justify-content: center;
    z-index: 20;
}

.frontiers-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.shard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.frontier-shard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.frontier-shard:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(235, 175, 55, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.shard-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(235, 175, 55, 0.05), transparent 60%);
    pointer-events: none;
}

.shard-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.shard-content p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #ebaf37;
    margin-bottom: 2rem;
}

/* Jurisdictions */
.jurisdiction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.j-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.j-item:hover {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.j-icon {
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.j-text {
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    font-size: 1rem;
    flex-grow: 1;
}

/* Tech Stack Diagram */
.stack-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #fff;
}

.stack-node {
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
}

.stack-node small {
    display: block;
    color: #64748b;
    margin-top: 0.5rem;
}

.stack-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.stack-arrow {
    color: #ebaf37;
    opacity: 0.8;
}

.stack-link {
    color: #4ade80;
    font-size: 1.2rem;
}

.db-node {
    border-color: #ebaf37;
}

.ai-node {
    border-color: #3b82f6;
}

.secure-node {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Express Audit Zone (Lead Magnet) */
.express-audit-zone {
    margin: 2rem 10rem 0 10rem;
    padding: 3rem 2rem;
    border: 1px dashed rgba(15, 118, 110, 0.3);
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.express-audit-zone:hover {
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.6);
    box-shadow: 0 0 20px rgba(15, 118, 110, 0.2);
}

.express-audit-zone.minimized {
    margin: 0;
    padding: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    border: 1px solid rgba(235, 175, 55, 0.5);
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.express-audit-zone.minimized .upload-text,
.express-audit-zone.minimized .upload-subtext,
.express-audit-zone.minimized .processing-dna {
    display: none;
}

.express-audit-zone.minimized .upload-icon {
    margin: 0;
    animation: none;
    transform: scale(0.6);
}

.express-audit-zone.dragover {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.upload-icon {
    margin-bottom: 1rem;
    animation: bounce 2s infinite ease-in-out;
}

.upload-icon svg {
    stroke: #0f766e;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.upload-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.upload-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes pulse-emerald {
    0% { box-shadow: 0 0 0 0 rgba(16, 183, 72, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 183, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 183, 72, 0); }
}

.animate-pulse-emerald {
    animation: pulse-emerald 2s infinite;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* DNA Processing Loader */
.processing-dna {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.dna-strand {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ebaf37, #4ade80);
    margin: 4px 0;
    border-radius: 2px;
    animation: dnaSequence 1s infinite ease-in-out alternate;
}

.dna-strand:nth-child(2) {
    animation-delay: 0.2s;
    width: 40px;
}

.dna-strand:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dnaSequence {
    0% {
        transform: scaleX(0.2) translateX(-50px);
        opacity: 0.3;
    }

    100% {
        transform: scaleX(1) translateX(50px);
        opacity: 1;
    }
}

.dna-text {
    margin-top: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #4ade80;
    letter-spacing: 0.2em;
    animation: blink 1.5s infinite;
}

/* Fast-Track Nodes */
.fast-track-nodes {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.fast-track-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fast-track-btn:hover {
    background: rgba(235, 175, 55, 0.1);
    border-color: #ebaf37;
    color: #ebaf37;
}

/* Credit Engine */
.credit-engine {
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: help;
}

.credit-engine:hover {
    border-color: rgba(74, 222, 128, 0.8);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.credit-value {
    color: #4ade80;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.credit-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    cursor: pointer;
}

body.scrolled .mobile-menu-btn {
    color: var(--text-color-dark);
    border-color: rgba(0, 0, 0, 0.1);
}

/* --- AUDIT LAB --- */
#audit-lab {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    overflow: hidden;
}

/* Blueprint Grid Background */
.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.lab-content {
    text-align: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.lab-header-group {
    margin-bottom: 4rem;
}

.elegant-lab-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    margin: 0 auto;
}

.lab-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.lab-status-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.status-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #4ade80;
    border: 1px solid #4ade80;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(74, 222, 128, 0.1);
}

.gradient-text-lab {
    background: linear-gradient(to right, #4ade80, #166534);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
    opacity: 0.05;
    filter: url(#noiseFilter);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    width: 100%;
}

.bento-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(235, 175, 55, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pulse-module {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stream-module {
    grid-column: span 1;
    grid-row: span 2;
}

.compass-module {
    grid-column: span 1;
}

.forensics-module {
    grid-column: span 2;
}

.module-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #4A3525;
    /* Walnut Wood — high-contrast premium feel */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Pulse Graph */
.pulse-graph {
    width: 100%;
    height: 60px;
    position: relative;
}

.pulse-line {
    fill: none;
    stroke: #ebaf37;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 200;
    animation: dash 3s linear infinite;
}

.gap-line {
    fill: none;
    stroke: #ef4444;
    stroke-width: 2;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: repairGap 4s ease-in-out infinite;
    opacity: 0;
}

@keyframes repairGap {
    0% {
        stroke-dashoffset: 100;
        opacity: 1;
        stroke: #ef4444;
    }

    50% {
        stroke-dashoffset: 0;
        opacity: 1;
        stroke: #ef4444;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
        stroke: #4ade80;
    }

    /* Heals to green */
}

@keyframes dash {
    to {
        stroke-dashoffset: -400;
    }
}

.live-tag {
    font-size: 0.7rem;
    color: #4ade80;
    font-weight: 700;
    margin-top: 1rem;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Document Stream */
.text-stream {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #a3b8cc;
    line-height: 1.8;
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.dense-stream {
    font-size: 0.7rem;
    line-height: 1.6;
}

.text-stream p {
    margin: 0.5rem 0;
    color: #d97706;
    /* Vibrant Amber/Gold */
    opacity: 1;
    animation: streamUp 10s linear infinite;
}

@keyframes streamUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-300%);
    }
}

/* Moral Compass */
.compass-ui {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
}

.compass-ring {
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 2px;
    background: #ebaf37;
    transform-origin: left center;
    animation: swing 4s ease-in-out infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(-45deg);
    }

    50% {
        transform: rotate(45deg);
    }
}

/* Forensics */
.forensics-module h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 0.5rem 0;
}

.forensics-module p {
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    /* Increased legibility from rgba(255, 255, 255, 0.6) */
    font-size: 0.9rem;
}

.pillar-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pillar-icon::after {
    content: '';
    width: 50%;
    height: 50%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* --- BEYOND NAIVE RAG --- */
#beyond-rag {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    background-color: #0f172a;
    /* Even deeper slate */
    color: #fff;
    overflow: hidden;
}

.rag-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
}

.rag-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 0.1em;
}

.rag-subtitle {
    font-family: 'Inter', sans-serif;
    color: #ebaf37;
    /* Gold-Silk for emphasis and contrast */
    margin-bottom: 4rem;
}

.magnifying-glass-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    height: 300px;
    overflow: hidden;
    cursor: crosshair;
}

.raw-data-layer,
.structured-law-layer {
    position: absolute;
    inset: 0;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.raw-data-layer p {
    font-family: 'Courier New', monospace;
    color: #e2e8f0;
    /* Increased legibility */
    font-size: 1.2rem;
    line-height: 1.8;
}

.structured-law-layer {
    background: #ebaf37;
    clip-path: circle(0px at 50% 50%);
    /* Start hidden, updated by JS */
    transition: clip-path 0.1s ease-out;
}

.structured-law-layer .code-block {
    color: #000;
    font-weight: 600;
}

.structured-law-layer .tag {
    color: #0f172a;
}

.magnifier-lens {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease, top 0.1s ease-out, left 0.1s ease-out;
    mix-blend-mode: hard-light;
}

.magnifying-glass-container:hover .magnifier-lens {
    opacity: 1;
}

.col-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 0.5rem;
}

.code-line.indent {
    padding-left: 1.5rem;
}

.manual-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.manual-copy p {
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    /* Increased legibility */
    line-height: 1.6;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

.manual-copy strong {
    color: #ebaf37;
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

/* --- MOBILE ARCHITECTURE --- */
@media (max-width: 768px) {

    /* HERO MOBILE */
    #oracleCanvas {
        transform: scale(0.5) translateY(-30%);
        transform-origin: top center;
    }

    .hero-title {
        font-size: 2.5rem;
        /* ~text-4xl */
        line-height: 1.1;
    }

    main {
        justify-content: flex-start;
        padding-top: 40vh;
        /* Move text down below the scaled DNA */
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .hero-perimeter {
        display: none;
        /* Simplify for mobile, remove data noise */
    }

    header nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .log-stream-sidebar {
        display: none;
        /* Remove distraction on mobile */
    }

    /* GLASS CARDS - VERTICAL STACK */
    .engine-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .engine-specs {
        display: none;
        /* Hide side specs on mobile to focus on the cards */
    }

    .glass-stack-container {
        height: auto;
        min-height: auto;
        margin: 2rem 0;
    }

    .visual-audit-group {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
        /* Padding between stacked cards */
    }

    /* Dashboard Unit Mobile */
    .dashboard-unit {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .doc-card,
    .insight-core {
        position: relative;
        left: auto;
        top: auto;
        margin: 0;
        transform: none;
    }

    .dashboard-status-bar {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    /* BENTO GRID MOBILE */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .pulse-module,
    .stream-module,
    .compass-module,
    .forensics-module {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* RAG SECTION MOBILE */
    .chunking-visual.split-screen {
        flex-direction: column;
    }

    .visual-separator {
        width: 100%;
        height: 40px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .arrow-flow {
        transform: rotate(90deg);
    }

    .manual-copy {
        grid-template-columns: 1fr;
    }

    .rag-title {
        font-size: 1.8rem;
    }

    /* Governance Models Mobile */
    .models-grid {
        grid-template-columns: 1fr;
    }

    /* Header Mobile Fix */
    header {
        flex-wrap: wrap;
        /* Allow wrapping if needed */
        justify-content: center;
        /* Center items on very small screens */
        padding: 1rem;
        gap: 1rem;
    }

    .lang-switcher {
        margin-left: 0;
        /* Reset margin on mobile */
    }
}

.diagnostic-cockpit {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.glass-terminal {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    width: 400px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.model-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.glass-tier {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(5px) saturate(120%) !important;
    /* This allows the dappled light background animation to show through more clearly */
}

.glass-tier::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* --- CONTACT SANCTUARY (The Glass Forest) --- */
#contact-sanctuary {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #000000;
}

.sanctuary-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(40vw circle at 90% 10%, #eea02b15, transparent),
        radial-gradient(50vw circle at 10% 90%, #2d4a3e15, transparent),
        #f1f1ee;
}

.monolithic-glass-panel {
    position: relative;
    width: 85%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 6rem 5rem;
    z-index: 10;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.sanctuary-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    color: #000000;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.sanctuary-subtitle {
    font-family: 'Inter', sans-serif;
    color: #000000;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 420px;
    font-weight: 400;
}

.sanctuary-status {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: inline-flex;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.minimal-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.4rem;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    outline: none;
    transition: all 0.3s ease;
}

.minimal-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.minimal-input:focus {
    border-color: #2d4a3e;
    background: rgba(255, 255, 255, 0.8);
}

.btn-center-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.heavy-forest-btn {
    padding: 1.2rem 3.5rem;
    background: #1a2c26;
    /* Deep Green */
    color: #ffffff;
    border: 2px solid #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.4s ease;
    text-transform: uppercase;
}

.heavy-forest-btn:hover {
    background: #2d4a3e;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 44, 38, 0.3);
}

.sanctuary-gears {
    display: none;
    /* Removed as per cleanup/monolithic focus */
}

@media (max-width: 1024px) {
    .monolithic-glass-panel {
        width: 95%;
        padding: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sanctuary-title {
        font-size: 2.5rem;
    }
}

/* =========================================================
   PHARMA-GRADE SOVEREIGN GATEWAY
   ========================================================= */

.pharma-gateway-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background-color: #0b1120;
    /* Deep Obsidian */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.pharma-gateway-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.pharma-bg-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.pharma-orb {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-emerald {
    background-color: #0f766e;
    top: -10%;
    left: -10%;
}

.orb-cyan {
    background-color: #06b6d4;
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-deepblue {
    background-color: #1e3a8a;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(5%, 5%);
    }
}

.pharma-grid-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem;
    align-items: center;
}

.pharma-left-col {
    color: #ffffff;
}

.pharma-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(15, 118, 110, 0.2);
    border: 1px solid rgba(15, 118, 110, 0.5);
    color: #4ade80;
    border-radius: 9999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.pharma-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.pharma-gradient-text {
    background: linear-gradient(to right, #0f766e, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-weight: 700;
}

.pharma-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.pharma-compliance-badges {
    display: flex;
    gap: 1.5rem;
}

.p-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
}

.p-badge svg {
    color: #0f766e;
}

.pharma-glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2.5rem;
    overflow: hidden;
}

.pharma-card-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #0f766e, #06b6d4);
}

.pharma-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.pharma-tab {
    background: none;
    border: none;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
}

.pharma-tab:hover {
    color: #cbd5e1;
}

.pharma-tab.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.pharma-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pharma-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pharma-input-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #cbd5e1;
    font-weight: 500;
}

.pharma-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.pharma-input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.pharma-input::placeholder {
    color: #64748b;
}

.pharma-btn {
    background: #0f766e;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.pharma-btn:hover {
    background: #115e59;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.4);
}

.pharma-error {
    color: #ef4444;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    text-align: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.pharma-close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1.5rem;
    transition: color 0.3s ease;
}

.pharma-close-btn:hover {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .pharma-grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .pharma-title {
        font-size: 2.5rem;
    }

    .pharma-bg-orbs {
        display: none;
        /* Improve performance on mobile */
    }
}

/* =========================================================
   THE 'OPAQUE SILK' CONTRAST SHIELD & IDENTITY WALL FIXES
   ========================================================= */

/* 1. The 'Opaque Silk' Contrast Shield for Light Mode Sections */
.glass-card,
.doc-card,
.insight-core,
.elegant-lab-container {
    background: rgba(253, 252, 251, 0.95) !important;
    border: 1px solid rgba(45, 74, 62, 0.1) !important;
    color: #1a2e1a !important;
}

/* =========================================================
   SLICK CHAT INPUT AREA — Flexbox Layout
   ========================================================= */
#oracle-chat .input-area {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 7rem 1.2rem 1.5rem;
    gap: 0.75rem;
}

#oracle-chat .legal-shield {
    position: static;
    width: 100%;
    text-align: center;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    order: -1;
}

#oracle-chat .chat-input-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

#oracle-chat .chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px;
    padding: 0.85rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#oracle-chat .chat-input:focus {
    border-color: #0f766e !important;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.3);
}

#oracle-chat .chat-input::placeholder {
    color: #94a3b8 !important;
}

#oracle-chat .send-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0f766e;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#oracle-chat .send-btn:hover {
    background: #115e59;
    box-shadow: 0 0 15px rgba(15, 118, 110, 0.5);
    transform: scale(1.05);
}

#oracle-chat .send-btn svg {
    color: #ffffff !important;
    stroke: #ffffff;
    width: 18px;
    height: 18px;
}

#oracle-chat .secure-link-icon {
    flex-shrink: 0;
    color: #4ade80 !important;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

#oracle-chat .upgrade-btn-inline {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

#oracle-chat .upgrade-btn-inline:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

#oracle-chat .fast-track-nodes {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   MESSAGE BUBBLES - SLICK ENTERPRISE GLASSMORPHISM
   ========================================================= */
#oracle-chat .sidebar-header,
#oracle-chat .audit-list li {
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* SLICK WEAVER AI BUBBLES (Oracle) */
#oracle-chat .ai-message,
#oracle-chat .message.oracle {
    background: rgba(15, 118, 110, 0.15) !important;
    /* Deep Emerald glass */
    color: #e2e8f0 !important;
    border: 1px solid rgba(15, 118, 110, 0.3) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border-radius: 16px 16px 16px 4px;
    padding: 1.2rem 1.5rem;
    max-width: 75%;
    align-self: flex-start;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

/* SLICK USER BUBBLES */
#oracle-chat .user-message,
#oracle-chat .message.user {
    background: rgba(255, 255, 255, 0.05) !important;
    /* Soft dark slate effect */
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 16px 16px 4px 16px;
    padding: 1.2rem 1.5rem;
    max-width: 75%;
    align-self: flex-end;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

#oracle-chat .chat-stream {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#oracle-chat .chip {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #4ade80 !important;
}

#oracle-chat .fast-track-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

#oracle-chat .sidebar-icon {
    color: #cbd5e1 !important;
}

#oracle-chat .sidebar-icon:hover {
    color: #ffffff !important;
}

/* Modal Inputs dark text override */
.glass-input.dark-text {
    color: #1a2e1a !important;
    border-color: rgba(45, 74, 62, 0.2) !important;
    background: rgba(0, 0, 0, 0.02) !important;
}

.glass-input.dark-text::placeholder {
    color: #78716c !important;
}

.sso-btn {
    background: #ffffff;
    border: 1px solid rgba(45, 74, 62, 0.2);
    color: #1a2e1a;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.sso-btn:hover {
    background: rgba(45, 74, 62, 0.05);
}