/* --- VARIABLES & RESET --- */
/* Lucid Computing Design System — Editorial / Cream theme.
   Legacy token names (--c-white, --c-black, --c-neutral-*) are preserved for
   backwards-compatibility but their values now encode their semantic role in
   the editorial palette: --c-white = primary foreground (ink), --c-black =
   page background (cream). */
:root {
    /* Editorial palette */
    --c-cream: #FAF8F4;
    --c-cream-mid: #F2EDE6;
    --c-cream-dark: #E8E0D5;
    --c-ink: #1C1917;
    --c-ink-mid: #4A433D;
    --c-ink-light: #8C7F74;
    --c-amber: #C9A227;
    --c-amber-pale: #FAF4DC;

    /* Brand */
    --c-brand: var(--c-amber);
    --c-brand-medium: #d9b85a;
    --c-brand-light: var(--c-amber-pale);

    /* Neutrals — remapped from dark palette to editorial cream/ink scale */
    --c-neutral-800: var(--c-cream);     /* was page bg #111 → cream */
    --c-neutral-700: var(--c-cream-mid); /* was #232323 → light surface */
    --c-neutral-600: var(--c-cream-dark);/* was #373737 → border/divider */
    --c-neutral-500: var(--c-ink-light); /* was #727272 → muted text */
    --c-neutral-400: var(--c-ink-mid);   /* was #bbbcbf → secondary text */
    --c-neutral-300: var(--c-cream-mid); /* was #f2f2f2 → subtle surface */
    --c-neutral-200: var(--c-cream-dark);/* was #d9d9d9 → light border */
    --c-neutral-100: var(--c-ink);       /* was #ffffff → primary text */

    /* Feedback Colors */
    --c-error: #7f1d1d;
    --c-error-alt: #991b1b;
    --c-success: #13532c;
    --c-success-alt: #166433;

    --c-black: var(--c-cream);           /* was page bg → cream */
    --c-dark: var(--c-cream-mid);        /* was #1a1a1a accent surface */
    --c-card: var(--c-cream-mid);
    --c-white: var(--c-ink);             /* was foreground white → ink */
    --c-gray: var(--c-ink-mid);
    --c-gray-dark: var(--c-cream-dark);
    --c-border: rgba(28, 25, 23, 0.12);
    --c-border-button: var(--c-ink);
    --c-yellow: var(--c-amber);
    --c-yellow-dim: var(--c-brand-medium);
    --c-green: var(--c-success-alt);
    --c-red: var(--c-error-alt);
    --c-accent: #8a38f5;

    /* Typography — editorial (DM Sans + Cormorant Garamond) */
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'DM Sans', system-ui, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;

    /* Font Sizes — editorial likes larger display */
    --fs-h1: 88px;
    --fs-h2: 48px;
    --fs-h3: 26px;
    --fs-body-lg: 18px;
    --fs-body: 16px;
    --fs-body-sm: 14px;
    --fs-caption: 12px;
    --fs-button: 14px;

    /* Layout & Spacing (Base-8) */
    --w-container: 1400px;
    --nav-dot-size: 10px;
    --space-xs: 8px;
    --space-s: 16px;
    --space-m: 24px;
    --space-l: 32px;
    --space-xl: 48px;
    --space-xxl: 80px;
    --space-gutter: 40px;

    --radius-none: 4px;
    --transition-mechanical: 0.2s cubic-bezier(0.2, 0, 0, 1);
}

/* Page Specific Overrides */
.page-home {
    --w-container: 1400px;
    background-color: var(--c-black);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--c-white);
    line-height: 1.5;
    min-height: 100vh;
}

/* Background Pattern for Non-Home Pages */
body:not(.page-home) {
    background-color: var(--c-black);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Home Page Body */
body.page-home {
    overflow-y: scroll;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    height: 100vh;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: var(--w-container);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.page-home .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

section {
    position: relative;
    width: 100%;
}

/* Home Page Sections */
.page-home section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Background Variants (Home) */
.bg-black {
    /* background-color: var(--c-black); */
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, var(--c-black) 70%);
    color: var(--c-white);
    text-align: center;
}

.bg-gradient {
    background: radial-gradient(circle at 50% 50%, #373737 0%, var(--c-black) 50%);
    background-color: var(--c-black);
    color: var(--c-white);
    text-align: center;
}

.bg-gradient h2 {
    color: var(--c-white);
}

.bg-gradient p {
    color: var(--c-gray);
}



/* Grids (Home & General) */
.grid-3,
.grid-4 {
    display: grid;
    gap: 0;
    width: 100%;
    margin-top: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    background-color: transparent;
    overflow: hidden;
}

/* Subpage Specific Grid Adjustments (Avoid fused look if desired, or add internal breathing room) */
.page-solution .grid-3,
.page-solution .grid-4 {
    gap: 1px;
    /* Subtle line between cards */
}

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-top: 2rem;
}

.grid-33-66 {
    display: grid;
    grid-template-columns: 33% 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-66-33 {
    display: grid;
    grid-template-columns: 1fr 33%;
    gap: 4rem;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {

    .grid-3-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid-33-66,
    .grid-66-33 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* Subpage Grid Alignment Fix */
.page-solution .industry-grid,
.page-solution .solution-grid,
.page-industry .industry-grid,
.page-industry .solution-grid {
    text-align: left;
}

/* --- TYPOGRAPHY - Figma Design System --- */

/* H1 - Page Titles (Space Mono, 72px) */
h1 {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 6vw, var(--fs-h1));
    font-weight: 400;
    margin-bottom: var(--space-m);
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--c-white);
}

/* H2 - Section Titles (Space Mono, 32px, Bold) */
h2 {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 4vw, var(--fs-h2));
    font-weight: 700;
    margin-bottom: var(--space-s);
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--c-white);
}

/* H3 - Subsection Titles (Space Mono, 24px, Bold) */
h3 {
    font-family: var(--font-mono);
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    line-height: 1.5;
    color: var(--c-white);
}

/* H4-H6 - Minor Headings */
h4,
h5,
h6 {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--c-white);
}

/* Body Text (Inter, 16px) */
p {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    margin-bottom: var(--space-s);
    color: var(--c-gray);
    font-weight: 400;
    line-height: 1.8;
}

/* Large Body Text (Inter, 18px) */
.text-lg,
.lead {
    font-family: var(--font-sans);
    font-size: var(--fs-body-lg);
    line-height: 1.8;
    color: var(--c-gray);
}

/* Small Body Text (Inter, 14px) */
.text-sm,
.small {
    font-family: var(--font-sans);
    font-size: var(--fs-body-sm);
    line-height: 1.7;
}

/* Caption Text (Inter, 12px) */
.text-xs,
.caption {
    font-family: var(--font-sans);
    font-size: var(--fs-caption);
    line-height: 1.5;
}

.subtitle {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.highlight {
    color: var(--c-yellow);
}

.blocked-text {
    color: #a1a1aa;
    /* Grey */
    text-decoration: line-through;
    text-decoration-color: var(--c-red);
    text-decoration-thickness: 3px;
}

.mono {
    font-family: var(--font-mono);
}

/* Pills/Tags - Figma Design System */
.pill {
    display: inline-block;
    padding: var(--space-xs) var(--space-s);
    margin-bottom: var(--space-s);
    border-radius: var(--radius-none);
    font-family: var(--font-mono);
    font-size: var(--fs-body-sm);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: center;
}

.pill-dark {
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-brand);
    border: 1px solid rgba(248, 214, 72, 0.2);
}

.pill-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--c-white);
    border: 1px solid var(--c-border);
}

/* --- UTILITY CLASSES: SPACING --- */
.py-120 {
    padding: 120px 0;
}

.py-160 {
    padding: 160px 0;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mt-80 {
    margin-top: 80px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* --- COMPONENTS: CHECKLISTS --- */
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.check-icon {
    color: var(--c-yellow);
    flex-shrink: 0;
    margin-top: 4px;
}

/* --- FAQ SECTION (Accordion) --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

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

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

.faq-accordion {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-white);
    line-height: 1.4;
    transition: background 0.2s ease;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary:hover {
    background: rgba(255, 255, 255, 0.04);
}

.faq-accordion summary span {
    flex: 1;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--c-yellow);
    transition: transform 0.3s ease;
}

.faq-accordion[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-accordion[open] {
    border-color: rgba(250, 204, 21, 0.3);
}

.faq-accordion p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #a1a1aa;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--w-container);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.nav-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 400;
    color: #d4d4d8;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--c-white);
}

/* Navigation CTA Button - Figma Design System */
.nav-cta-btn {
    background: var(--c-white);
    color: var(--c-neutral-800);
    padding: var(--space-xs) var(--space-s);
    border: 1px solid var(--c-border-button);
    border-radius: var(--radius-none);
    font-family: var(--font-mono);
    font-size: var(--fs-button);
    font-weight: 400;
    text-transform: uppercase;
    transition: var(--transition-mechanical);
}

.nav-cta-btn:hover {
    background: transparent;
    color: var(--c-white);
}

/* Highlighted Nav Link (For Developers / For Business) */
.nav-link-highlight {
    color: var(--c-brand) !important;
}

.nav-link-highlight:hover {
    color: var(--c-brand-medium) !important;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--c-border);
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--c-white);
    transition: var(--transition-mechanical);
}

.nav-toggle-icon {
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before {
    top: -6px;
}

.nav-toggle-icon::after {
    top: 6px;
}

/* Hamburger to X animation */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Nav Dots (Home) */
.nav-dots {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.nav-dot {
    width: var(--nav-dot-size);
    height: var(--nav-dot-size);
    border-radius: var(--radius-none);
    background-color: #fff;
    mix-blend-mode: difference;
    transition: transform 0.3s;
}

.nav-dot:hover {
    transform: scale(1.5);
}

/* --- COMPONENTS: CARDS --- */
.card {
    border-radius: var(--radius-none);
}

/* Premium Mechanism Card (Solutions/Industries) */
.mechanism-card {
    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-yellow);
    padding: var(--space-m);
    border-radius: var(--radius-none);
    text-align: left;
    transition: var(--transition-mechanical);
}

.mechanism-card:hover {
    background-image:
        radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.15) 0%, transparent 70%),
        linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border-color: rgba(250, 204, 21, 0.2);
}

.mechanism-card h4 {
    color: var(--c-white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Home Page Cards (Redesigned) */
.card-dark {
    background: #111111;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    padding: var(--space-m);
    text-align: left;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--transition-mechanical);
    position: relative;
}

/* Padding fix for text-only cards */
.card-dark:not(:has(.card-thumb)) {
    padding: 2.5rem 2.5rem;
}

/* Remove right border from last item in the row */
.grid-3 .card-dark:nth-child(3n),
.grid-4 .card-dark:nth-child(4n) {
    border-right: none;
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.icon-mini {
    color: var(--c-yellow);
    width: 40px;
    height: 40px;
    stroke-width: 1.5px;
    flex-shrink: 0;
}

.card-dark h3 {
    color: var(--c-white);
    font-size: 1.25rem;
    margin-bottom: 0;
    font-weight: 600;
}

/* Insights/Blog Cards */
.page-insights .card,
.posts-grid .card {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    height: 100%;
    padding: 0;
    /* Reset padding from generic .card if needed */
}

.page-insights .card:hover {
    border-color: var(--c-gray-dark);
    transform: translateY(-4px);
    background: rgba(24, 24, 24, 0.8);
}

.card-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--c-border);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.page-insights .card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--c-gray);
    text-transform: uppercase;
}

.card-tag {
    color: var(--c-yellow);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.card-desc {
    color: var(--c-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* --- HOME: SPECIFIC SECTIONS --- */
#hero {
    /* Subtle Grid Pattern */
    background-color: #050505;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    box-shadow: inset 0 0 150px 100px #050505;
    position: relative;
    overflow: hidden;
    /* Ensure animation doesn't overflow */
}

#hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    /* Subtle background effect */
}

#hero .container {
    position: relative;
    z-index: 10;
    /* Ensure text is above animation */
}

/* Hero container - left-aligned layout starting at 40% */
.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 35%;
    padding-right: 5%;
    padding-bottom: 10vh;
}

.hero-container .hero-content {
    text-align: left;
}

.hero-container .hero-title {
    font-family: var(--font-mono);
    font-weight: 300;
    letter-spacing: -0.04em;
    text-align: left;
}

.hero-container .hero-title-main {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.1;
    color: var(--c-white);
    white-space: nowrap;
    text-align: left;
}

.hero-container .hero-title-suffix {
    display: block;
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    color: var(--c-brand);
    line-height: 1.1;
    margin-top: 0.25rem;
    transition: opacity 0.3s ease;
    text-align: left;
}

.hero-container .subtitle {
    max-width: 600px;
    margin-top: 1.5rem;
    margin-left: 0;
    margin-right: auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.hero-container .hero-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

@media (max-width: 1200px) {
    .hero-container {
        padding-left: 35%;
    }
}

@media (max-width: 968px) {
    .hero-container {
        padding: 2rem;
        padding-top: 30vh;
        align-items: center;
    }

    .hero-container .hero-content {
        text-align: center;
    }

    .hero-container .hero-title-main {
        white-space: normal;
    }

    .hero-container .subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-container .hero-btns {
        justify-content: center;
    }
}

.hero-logo-container {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-logo-img {
    position: relative;
    display: block;
    margin: 0 auto;
    z-index: 2;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.hero-title {
    color: var(--c-white);
    margin-top: 1rem;
    letter-spacing: -0.04em;
    font-weight: 300;
}

/* Hero title stacked (two lines) */
.hero-title-stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.hero-title-stacked .hero-title-main {
    display: block;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    white-space: nowrap;
}

.hero-title-stacked .hero-title-suffix {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--c-brand);
    line-height: 1.1;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

/* Right-positioned hero layout - content on right side of screen */
#hero .container.hero-right {
    display: flex;
    max-width: none;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    min-height: 80vh;
    text-align: right;
    padding-right: 6rem;
    padding-left: 65%;
}

.hero-right .hero-content {
    max-width: none;
}

.hero-right .hero-title {
    text-align: right;
}

.hero-right .subtitle {
    max-width: 600px;
    margin-top: 1.5rem;
}

.hero-right .hero-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

@media (max-width: 1400px) {
    .hero-right {
        padding-left: 60%;
        padding-right: 4rem;
    }
}

@media (max-width: 1200px) {
    .hero-right {
        padding-left: 55%;
    }
}

@media (max-width: 968px) {
    .hero-right {
        padding-left: 2rem;
        padding-right: 2rem;
        align-items: center;
        text-align: center;
    }

    .hero-right .subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
    }

    .hero-right .hero-btns {
        justify-content: center;
    }

    .hero-title-stacked {
        align-items: center;
    }

    .hero-title-stacked .hero-title-main,
    .hero-title-stacked .hero-title-suffix {
        white-space: normal;
    }
}



.dynamic-text-style {
    text-decoration: underline;
    text-decoration-color: var(--c-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.dynamic-wrapper {
    display: inline-block;
    width: 190px;
    /* Fixed width to prevent layout shift */
    text-align: left;
    vertical-align: bottom;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    margin-top: var(--space-l);
    padding: 1rem 1.5rem;
    background: var(--c-white);
    color: var(--c-black);
    font-family: var(--font-mono);
    font-weight: 700;
    border-radius: var(--radius-none);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-mechanical);
    width: auto;
    min-width: 240px;
    border: 1px solid var(--c-white);
}

.hero-btn:hover {
    background: transparent;
    color: var(--c-white);
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.4s;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-flip-out {
    animation: flip-out 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-flip-in {
    animation: flip-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes flip-out {
    from {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px) rotateX(45deg);
    }
}

@keyframes flip-in {
    from {
        opacity: 0;
        transform: translateY(20px) rotateX(-45deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.stat-box {
    margin-top: 4rem;
    max-width: 800px;
    width: 100%;
    border: 3px solid var(--c-black);
    border-radius: var(--radius-none);
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: rgba(0, 0, 0, 0.03);
    margin-left: auto;
    margin-right: auto;
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--c-red);
    line-height: 1;
}

.stat-text {
    text-align: left;
    padding-left: 2rem;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--c-black);
    font-weight: 600;
}

.tee-viz {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border: 2px solid var(--c-yellow);
    border-radius: var(--radius-none);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
}

.tee-shield {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: var(--c-yellow);
    color: black;
    padding: 0.75rem;
    border-radius: var(--radius-none);
    display: flex;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-item h4 {
    color: var(--c-white);
    margin-bottom: 0.25rem;
}

.passport-card {
    background: var(--c-dark);
    max-width: 500px;
    width: 100%;
    margin: 2rem auto;
    border-radius: var(--radius-none);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    text-align: left;
    position: relative;
}

/* Trustmark Stamp Overlay */
.trustmark-corner-stamp {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--c-yellow);
    border-radius: var(--radius-none);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
    z-index: 20;
    animation: stamp-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.trustmark-shield {
    width: 44px;
    height: 44px;
    fill: black;
}

@keyframes stamp-pop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.passport-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--c-yellow);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.passport-body {
    padding: 1rem 2rem 2rem;
}

.row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.row-val {
    margin-left: auto;
    color: var(--c-green);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.steps-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.step-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.step-text h4 {
    color: var(--c-white);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 800;
}

.step-text p {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--c-gray);
    margin: 0;
}

.step-visual {
    background: #000;
    padding: 1.5rem;
    border-radius: var(--radius-none);
    border: 1px solid #333;
    position: relative;
}

.code-line {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.cta-section {
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, var(--c-black) 70%);
    min-height: 100vh;
}

.form-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-none);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* --- SOVEREIGN CHAT & PASSPORT --- */

.sovereign-chat-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: var(--radius-none);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-sans);
}

.chat-header {
    background: #27272a;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3f3f46;
}

.chat-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-logo-spin {
    animation: slow-spin 10s linear infinite;
}

.chat-title {
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.chat-subtitle {
    font-size: 0.75rem;
    color: #a1a1aa;
}

.help-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-none);
    border: 1px solid #52525b;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: help;
}

.chat-controls-row {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #27272a;
}

.model-select {
    background: #27272a;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-none);
    color: #a1a1aa;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: not-allowed;
}

/* Trustmark Button & Tooltip */
.trustmark-wrapper {
    position: relative;
    /* Anchor for absolute tooltip */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center align if needed */
    margin-left: 1rem;
}

.trustmark-btn {
    background: var(--c-yellow);
    border: none;
    border-radius: var(--radius-none);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    /* Pulse Animation */
    animation: pulse-glow 2s infinite;
}

.trustmark-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
    animation: none;
    /* Stop pulsing on hover */
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(250, 204, 21, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
    }
}

.trustmark-shield-icon {
    width: 24px;
    height: 24px;
}

.tm-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: black;
    letter-spacing: 0.05em;
    line-height: 1;
}

.tm-brand {
    font-size: 0.7rem;
    font-weight: 800;
    color: black;
    line-height: 1;
}

.trustmark-tooltip {
    position: absolute;
    top: 100%;
    /* Below the button */
    left: 50%;
    transform: translateX(-50%);
    /* Center horizontally */
    margin-top: 0.75rem;
    /* Space between button and tooltip */
    background: transparent;
    color: var(--c-yellow);
    white-space: nowrap;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    /* Arrow on top, text below */
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    pointer-events: none;

    /* Animation: Appear from Below (Slide Up) THEN Bounce */
    animation: slide-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        bounce-y 2s infinite ease-in-out;
    animation-delay: 1.5s, 2.5s;
    /* Slide starts at 1.5s, Bounce starts at 2.5s (after slide finishes) */
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
        /* Start lower */
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes bounce-y {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }

    /* Move DOWN a bit and back */
}

.tooltip-arrow {
    width: 24px;
    height: 24px;
    color: var(--c-white);
    transform: rotate(180deg);
    /* Points UP towards the button */
}

/* Passport Overlay */
.passport-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 100%;
    max-width: 500px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.passport-overlay.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.passport-card-popup {
    background: #1a1a1a;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #eab308;
    position: relative;
}

/* --- Passport Header --- */
.pp-header {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(234, 179, 8, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pp-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
}

.pp-title {
    font-weight: 700;
    font-size: 0.8125rem;
    color: #eab308;
    letter-spacing: 0.05em;
    flex: 1;
}

.pp-verified {
    font-size: 0.625rem;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.pp-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.625rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pp-identity-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.pp-qr-link {
    flex-shrink: 0;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(234, 179, 8, 0.2);
    transition: border-color 0.2s;
    line-height: 0;
}

.pp-qr-link:hover {
    border-color: rgba(234, 179, 8, 0.5);
}

.pp-qr-link canvas {
    display: block;
    width: 48px;
    height: 48px;
}

.pp-identity-main {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.pp-model-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.pp-operator {
    font-size: 0.6875rem;
    color: #a1a1aa;
}

.pp-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.pp-meta-sep {
    color: rgba(161, 161, 170, 0.4);
    font-size: 0.625rem;
}

.pp-model-id {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    font-family: var(--font-mono);
    color: #a1a1aa;
    opacity: 0.7;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pp-model-id:hover {
    opacity: 1;
}

.pp-location {
    display: inline-flex;
    align-items: center;
    gap: 0.1875rem;
    font-size: 0.625rem;
    color: #a1a1aa;
    opacity: 0.7;
}

/* --- Pages Container --- */
.pp-pages-container {
    min-height: 480px;
    max-height: 480px;
    overflow-y: auto;
}

.pp-page {
    display: none;
    padding: 0.75rem;
}

.pp-page.active {
    display: block;
}

/* --- Summary Page (Page 0) --- */
.pp-tier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem 0.5rem;
}

.pp-tier-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #a1a1aa;
    letter-spacing: 0.05em;
}

.pp-tier-badge {
    font-size: 0.5625rem;
    padding: 0.1875rem 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 4px;
    font-weight: 600;
}

/* Auditor Cards */
.pp-auditor-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pp-auditor-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.pp-auditor-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.pp-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.pp-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.pp-card-question {
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
}

.pp-card-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.pp-score-bar {
    width: 48px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.pp-score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.pp-score-value {
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 32px;
    text-align: right;
}

.pp-status-check {
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 700;
}

.pp-status-badge {
    font-size: 0.625rem;
    font-weight: 600;
    color: #22c55e;
    letter-spacing: 0.02em;
}

.pp-card-body {
    padding-left: 1.5rem;
}

.pp-card-subtitle {
    display: block;
    font-size: 0.625rem;
    color: #a1a1aa;
    opacity: 0.7;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.pp-card-answer {
    display: block;
    font-size: 0.6875rem;
    color: #a1a1aa;
    margin-bottom: 0.25rem;
}

.pp-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.pp-stat-item {
    font-size: 0.625rem;
    color: #a1a1aa;
    opacity: 0.8;
}

/* Tier 2 Toggle */
.pp-tier2-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.25rem;
    background: none;
    border: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    cursor: pointer;
    margin-top: 0.25rem;
}

.pp-tier2-toggle:hover .pp-tier2-toggle-action {
    color: #fff;
}

.pp-tier2-toggle-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #a1a1aa;
    letter-spacing: 0.05em;
}

.pp-tier2-toggle-action {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: #a1a1aa;
    transition: color 0.2s;
}

.pp-tier2-chevron {
    transition: transform 0.2s;
    font-size: 0.875rem;
}

.pp-tier2-chevron.open {
    transform: rotate(180deg);
}

.pp-tier2-cards {
    animation: ppTier2SlideIn 0.2s ease-out;
}

@keyframes ppTier2SlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Compliance Footer */
.pp-compliance-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.625rem 0.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.25rem;
}

.pp-compliance-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pp-compliance-label {
    font-size: 0.625rem;
    color: #a1a1aa;
    flex-shrink: 0;
}

.pp-compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.pp-framework-badge {
    font-size: 0.5625rem;
    padding: 0.1875rem 0.375rem;
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 4px;
    font-weight: 600;
}

.pp-compliance-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 6px;
    color: #14b8a6;
    font-size: 0.625rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
}

.pp-compliance-link:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.4);
}

/* --- Auditor Detail Pages (1-12) --- */
.pp-auditor-detail-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.pp-auditor-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.pp-auditor-detail-info {
    flex: 1;
    min-width: 0;
}

.pp-auditor-detail-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.pp-auditor-detail-category {
    display: block;
    font-size: 0.6875rem;
    color: #a1a1aa;
}

.pp-passed-badge {
    font-size: 0.5rem;
    padding: 0.125rem 0.375rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.pp-detail-question {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem;
}

.pp-detail-subtitle {
    font-size: 0.6875rem;
    color: #a1a1aa;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.pp-detail-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pp-metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pp-metric-label {
    font-size: 0.625rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.pp-metric-bar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pp-metric-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

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

.pp-metric-value {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    min-width: 40px;
    text-align: right;
}

.pp-detail-stats {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.pp-detail-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: #d4d4d8;
}

.pp-detail-stat-icon {
    color: #22c55e;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* --- Compliance Mappings Page (Page 13) --- */
.pp-compliance-page-header {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.pp-compliance-page-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.pp-compliance-page-subtitle {
    display: block;
    font-size: 0.6875rem;
    color: #a1a1aa;
    margin-top: 0.125rem;
}

.pp-compliance-entries {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.pp-compliance-entry {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.pp-compliance-entry-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pp-compliance-fw-badge {
    padding: 0.125rem 0.375rem;
    font-size: 0.5625rem;
    font-weight: 600;
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border-radius: 4px;
}

.pp-compliance-clause {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: #fff;
}

.pp-compliance-entry-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.pp-compliance-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pp-compliance-section-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a1a1aa;
}

.pp-compliance-section-label-green {
    color: #22c55e;
}

.pp-compliance-original-text {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    padding-left: 1.125rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
    margin: 0;
}

.pp-compliance-how-text {
    font-size: 0.6875rem;
    color: #fff;
    line-height: 1.5;
    padding-left: 1.125rem;
    margin: 0;
}

.pp-compliance-auditor-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.5625rem;
    color: #a1a1aa;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pp-compliance-auditor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* --- Verify Page (Page 14) --- */
.pp-verify-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.pp-verify-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.pp-verify-subtitle {
    display: block;
    font-size: 0.6875rem;
    color: #a1a1aa;
    font-style: italic;
}

.pp-verify-intro {
    font-size: 0.75rem;
    color: #a1a1aa;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.pp-verify-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pp-verify-section-last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pp-verify-step-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.pp-step-number {
    width: 18px;
    height: 18px;
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border-radius: 50%;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pp-step-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.pp-step-desc {
    font-size: 0.6875rem;
    color: #a1a1aa;
    line-height: 1.5;
    margin: 0 0 0.5rem;
    padding-left: 1.625rem;
}

.pp-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: 1.625rem;
    padding: 0.375rem 0.625rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: #22c55e;
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pp-download-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.pp-code-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-left: 1.625rem;
    padding: 0.5rem 0.625rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow-x: auto;
    cursor: pointer;
    transition: all 0.2s;
    width: calc(100% - 1.625rem);
    text-align: left;
}

.pp-code-block:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(165, 243, 252, 0.3);
}

.pp-code-block code {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: #a5f3fc;
    white-space: nowrap;
    flex: 1;
}

.pp-copy-icon {
    color: #a1a1aa;
    flex-shrink: 0;
}

.pp-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1.625rem;
    color: #3b82f6;
    font-size: 0.6875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.pp-text-link:hover {
    color: #60a5fa;
}

.pp-vendor-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-left: 1.625rem;
}

.pp-vendor-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    color: #3b82f6;
    font-size: 0.6875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pp-vendor-link:hover {
    background: rgba(59, 130, 246, 0.2);
}

/* --- Pagination Footer --- */
.pp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.pp-page-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.pp-page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: #eab308;
}

.pp-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pp-page-info {
    font-size: 0.75rem;
    color: #a1a1aa;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

/* Chat Body */
.chat-body {
    padding: 1.5rem;
    min-height: 240px;
    /* Increased slightly for text */
    background: #18181b;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-message {
    padding: 1rem;
    border-radius: var(--radius-none);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.ai-message {
    background: #27272a;
    color: #e4e4e7;
    margin-right: 2rem;
    min-height: 40px;
    /* Prevent collapse */
}

/* Removed Blinking Cursor Styles */
@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.user-cmd-icon {
    align-self: flex-start;
    background: transparent;
    padding: 0;
    color: #71717a;
}

.msg-meta {
    font-size: 0.7rem;
    color: #71717a;
    margin-top: 0.5rem;
    text-align: right;
}

.chat-input-area {
    margin: 0 1.5rem 1.5rem;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: var(--radius-none);
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
}

.chat-input-area.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #18181b;
}

.chat-input-area.disabled .chat-input,
.chat-input-area.disabled .chat-send-btn {
    pointer-events: none;
}

.chat-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem;
    font-size: 0.95rem;
    outline: none;
}

.chat-send-btn {
    background: #3f3f46;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-none);
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: var(--c-white);
    color: black;
}

.chat-footer {
    display: flex;
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #a1a1aa;
}

.sovereign-chat-card.dimmed {
    filter: blur(4px) brightness(0.5);
    pointer-events: none;
    transition: filter 0.4s;
}

.close-passport {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: #a1a1aa;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0;
    padding: 4px;
    transition: color 0.2s;
    border: none;
    cursor: pointer;
}

.close-passport:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Pulse Animation for Tooltip */
@keyframes pulse-x {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.animate-pulse-x {
    animation: pulse-x 2s infinite ease-in-out;
}

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
    padding: 1rem;
    border-radius: var(--radius-none);
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--c-yellow);
    background: rgba(0, 0, 0, 0.5);
}

.btn-submit {
    width: 100%;
    background: var(--c-yellow);
    color: var(--c-black);
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-none);
    transition: 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    background-color: #eab308;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-none);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
    line-height: 1.5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.form-message.success {
    background: rgba(74, 222, 128, 0.2);
    border: 2px solid rgba(74, 222, 128, 0.5);
    color: var(--c-green);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
}

.form-message.success::before {
    content: "✓";
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--c-green);
    flex-shrink: 0;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: var(--c-red);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.form-message.error::before {
    content: "✗";
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--c-red);
    flex-shrink: 0;
}

/* --- INSIGHTS: SPECIFIC --- */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

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

.hero-content {
    padding: 2rem 0;
}

.hero-label {
    color: var(--c-yellow);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--c-gray);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Outline Button - Figma Design System (Secondary variant) */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-m) var(--space-m);
    border: 1px solid var(--c-border-button);
    background: transparent;
    color: var(--c-white);
    font-family: var(--font-mono);
    font-size: var(--fs-button);
    font-weight: 400;
    text-transform: uppercase;
    transition: var(--transition-mechanical);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--c-white);
    color: var(--c-neutral-800);
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-none);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--c-border);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

.filter-section {
    margin: 4rem 0 2rem;
}

.filter-header {
    font-family: var(--font-mono);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.control-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #1a1a1a;
    border: 1px solid var(--c-border);
    padding: 0;
}

.search-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--c-border);
    padding: 0 1.5rem;
    min-width: 250px;
}

.search-icon {
    color: var(--c-yellow);
    margin-right: 1rem;
}

.search-input {
    background: transparent;
    border: none;
    color: var(--c-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    width: 100%;
    padding: 1rem 0;
    outline: none;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    border-right: 1px solid var(--c-border);
    color: var(--c-gray);
    padding: 1rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:last-child {
    border-right: none;
}

.filter-btn:hover {
    color: var(--c-white);
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    color: var(--c-white);
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--c-yellow);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    padding-bottom: 6rem;
}

.hidden {
    display: none !important;
}

.loader {
    padding: 4rem;
    text-align: center;
    color: var(--c-gray);
    font-family: var(--font-sans);
    grid-column: 1 / -1;
}

/* --- ARTICLE: SPECIFIC --- */
.back-btn {
    position: fixed;
    top: 7rem;
    left: 2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--c-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    z-index: 100;
    cursor: pointer;
}

.back-btn:hover {
    color: var(--c-white);
}

.hero-overlay {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 6rem;
}

.hero-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--c-black), transparent);
}

.article-container {
    max-width: var(--w-container);
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    align-items: start;
}

.toc-sidebar {
    position: sticky;
    top: 8rem;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--c-border);
    padding: 2rem;
    border-radius: var(--radius-none);
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
}

.toc-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-yellow);
    margin-bottom: 1.5rem;
}

.toc-list {
    list-style: none;
}

.toc-item {
    margin-bottom: 0.75rem;
}

.toc-item.toc-h3 {
    margin-left: 1rem;
    font-size: 0.85rem;
}

.toc-link {
    color: var(--c-gray);
    font-size: 0.9rem;
    transition: color 0.2s;
    display: block;
    line-height: 1.4;
}

.toc-link:hover,
.toc-link.active {
    color: var(--c-white);
}

.article-content {
    max-width: 800px;
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--c-border);
}

.article-category {
    display: inline-block;
    color: var(--c-yellow);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--c-gray);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-none);
    border: 2px solid var(--c-border);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--c-gray);
}

.article-date {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--c-gray);
    text-transform: uppercase;
}

.social-share {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1.2rem;
}

.share-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--c-gray-dark);
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--c-white);
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    letter-spacing: -0.01em;
    scroll-margin-top: 8rem;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
    scroll-margin-top: 8rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--c-gray);
}

.article-body blockquote {
    border-left: 3px solid var(--c-yellow);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--c-gray);
}

.article-body code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-none);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.article-body pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-none);
    overflow-x: auto;
    margin: 2rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--c-gray);
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* --- SOCIAL PROOF SECTION --- */
#social-proof {
    padding: 3rem 0 !important;
    min-height: auto !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    background: #0a0a0a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    scroll-snap-align: start !important;
    overflow: visible !important;
    flex: none !important;
    justify-content: flex-start !important;
}

.page-home #social-proof .container {
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    flex: none !important;
}

.social-proof-text {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.logo-carousel-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-carousel-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
}

.logo-item {
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.logo-item:hover {
    opacity: 0.7;
}

.logo-item img {
    height: 32px;
    width: auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }

    .back-btn {
        position: static;
    }
}

/* --- HARDWARE ENCLAVE SECTION --- */
.enclave-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.enclave-card {
    position: relative;
    border: 1px solid var(--c-yellow);
    border-radius: var(--radius-none);
    padding: 6rem 2rem;
    background: radial-gradient(circle at center, rgba(250, 204, 21, 0.05) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.1);
}

.enclave-lock-badge {
    position: absolute;
    padding: 2rem;
}

/* --- SCROLLYTELLING SECTION --- */
.scrolly-section {
    min-height: auto !important;
    padding: 0 !important;
    scroll-snap-align: none !important;
    overflow: visible !important;
    display: block !important;
}


.scrolly-section .container {
    max-width: 1400px;
    height: auto;
    display: block;
}


/* Wrapper that creates scroll height - increased for smoother scrolling */
.scrolly-sticky-wrapper {
    position: relative;
    min-height: 300vh;
    margin-top: 0;
    padding-top: 5vh;
    padding-bottom: 15vh;
}

/* Sticky content: header + (diagram & text side by side) */
.scrolly-sticky-content {
    position: sticky;
    top: 5vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    max-height: 90vh;
}

.scrolly-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}




.scrolly-diagram {
    padding: 1.5rem;
}

/* Text area with stacked panels */
.scrolly-text-area {
    position: relative;
    min-height: 300px;
}

.text-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;

    background: linear-gradient(180deg, #121212 0%, #000000 100%);

    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: var(--radius-none);
    /* Match sharp grid look of compliance cards */
    text-align: left;
    overflow: hidden;
}

.text-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.text-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.text-panel .step-num {
    display: block;
    font-family: var(--font-mono);
    color: var(--c-yellow);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 700;
}

.text-panel .step-icon {
    color: var(--c-yellow);
    opacity: 0.8;
}

.text-panel h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--c-white);
    letter-spacing: -0.01em;
}

.text-panel .panel-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--c-yellow);
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.text-panel p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #a1a1aa;
    margin: 0;
}

/* Invisible scroll triggers */
.scroll-triggers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.trigger {
    height: 33.33%;
}



/* --- ARCHITECTURE DIAGRAM (SVG) --- */
.architecture-diagram {
    width: 100%;
    height: auto;
    max-height: 100%;
    color: var(--c-white);
}

.arch-box rect {
    fill: transparent;
    stroke: var(--c-gray-dark);
    stroke-width: 2;
    transition: all 0.5s ease;
}

.arch-box.inner rect {
    fill: transparent;
}

.arch-box.inner-model rect {
    fill: transparent;
}

.arch-text {
    fill: var(--c-white);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
}

.arch-text-header {
    fill: var(--c-gray);
    font-family: var(--font-mono);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.arrow-text {
    fill: var(--c-gray);
    font-family: var(--font-mono);
    font-size: 14px;
}

.arch-arrows path,
.arch-external path {
    stroke: var(--c-gray-dark);
    stroke-width: 2;
    fill: none;
}

/* Highlight State for SVG boxes */
.arch-box.highlighted>rect {
    stroke: var(--c-yellow) !important;
    stroke-width: 3 !important;
    fill: rgba(250, 204, 21, 0.1) !important;
    filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.4));
}

.arch-box.highlighted .arch-text,
.arch-box.highlighted .arch-text-header {
    fill: var(--c-yellow);
}

/* Highlight arrows and their labels */
#verification-group.highlighted path {
    stroke: var(--c-yellow) !important;
    marker-end: url(#arrowhead-yellow) !important;
}

#verification-group.highlighted .arrow-text {
    fill: var(--c-yellow) !important;
}

/* Super Performant section: highlight arrows + labels within groups */
.arch-box.highlighted .arrow-text {
    fill: var(--c-yellow) !important;
}

.arch-box.highlighted line,
.arch-box.highlighted path.va-link {
    stroke: var(--c-yellow) !important;
    marker-end: url(#va-arrow-yellow) !important;
}

.enclave-feature-text p {
    font-size: 0.95rem;
    color: var(--c-gray);
    line-height: 1.5;
    margin: 0;
}


.integration-header {
    margin-bottom: 4rem;
}

.integration-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.workflow-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3rem;
}

.workflow-step:last-child {
    border-bottom: none;
}

.workflow-text {
    text-align: left;
}

.workflow-number {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: 0.5rem;
    display: block;
}

.workflow-title {
    font-family: var(--font-sans);
    /* Or mono, keeping variety */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: 1rem;
}

.workflow-desc {
    font-size: 1rem;
    color: var(--c-gray);
    line-height: 1.6;
}

.workflow-visual {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    padding: 1.5rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #e5e5e5;
    text-align: left;
    height: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.code-prompt {
    color: var(--c-gray);
    margin-right: 0.5rem;
}

.code-cmd {
    color: var(--c-white);
}

.code-keyword {
    color: var(--c-yellow);
}

.code-string {
    color: var(--c-green);
}

.verified-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 0.5rem;
    border: 1px solid var(--c-yellow);
    border-radius: var(--radius-none);
    background: rgba(250, 204, 21, 0.05);
    min-height: 120px;
}

.verified-text {
    color: var(--c-yellow);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.verified-check {
    width: 32px;
    height: 32px;
    color: var(--c-white);
}

/* --- BLOCKED MAJORITY SECTION --- */

.problem-header {
    margin-bottom: 4rem;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
}

/* Compact version for compliance standards */
.stats-row.is-compliance {
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
}

.stats-row.is-compliance .stat-val {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stats-row.is-compliance .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.stats-row.is-compliance .stat-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 180px;
    margin: 0 auto;
}

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

.stat-val {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--c-yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.stat-val.icon-val {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-val.icon-val svg {
    width: 48px;
    height: 48px;
    stroke: var(--c-yellow);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--c-white);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--c-gray);
    line-height: 1.4;
}

/* Problem Stats Grid */
.problem-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.prob-stat-val {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--c-yellow);
}

.prob-stat-label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--c-white);
}

.prob-stat-desc {
    color: var(--c-gray);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Stats Divider */
.stats-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
}

/* Risk Stats Grid */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.risk-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--c-yellow);
    margin-bottom: 0.5rem;
}

.risk-label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--c-white);
    margin-bottom: 0.25rem;
}

.risk-desc {
    color: var(--c-gray);
    font-size: 0.9rem;
}

/* Arrow Next */
.arrow-next {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    transition: opacity 0.3s;
    animation: bounce 2s infinite;
    z-index: 10;
    color: inherit;
    /* Inherit from section color scheme */
}

.arrow-next:hover {
    opacity: 1;
}

/* --- CTA SECTION --- */

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.cta-left {
    text-align: left;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.1;
    color: var(--c-white);
    margin-bottom: 2rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--c-gray);
    line-height: 1.6;
    margin-bottom: 4rem;
    max-width: 450px;
}

.cta-stats {
    display: flex;
    gap: 4rem;
}

.cta-stat-item {
    text-align: left;
}

.cta-stat-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-yellow);
    font-family: var(--font-mono);
    margin-bottom: 0.25rem;
}

.cta-stat-label {
    font-size: 0.8rem;
    color: var(--c-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Form Styles Override/Refinement if needed */
.form-card {
    border: 1px solid var(--c-yellow);
    /* Update border color to match design hint if needed, or keep subtle */
}

/* --- LOGO BANNER SECTION --- */
.logo-banner {
    padding: 4rem 0;
    background: var(--c-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.logo-header {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gray-dark);
    margin-bottom: 3rem;
    font-weight: 700;
}

.logo-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    /* Mask to fade edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
    /* Double the content to loop seamlessly */
}

/* Hover to pause */
.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
    cursor: default;
}

.logo-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--c-white);
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: 150px;
    filter: brightness(0) invert(1);
    object-fit: contain;
    display: block;
}

.logo-text {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--c-white);
    letter-spacing: -0.02em;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- HERO LOGO BANNER INTEGRATION --- */

/* Make arrow relative in hero so it stacks */
#hero .arrow-next {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 2rem auto 1rem;
    display: block;
    width: fit-content;
    animation: bounce 2s infinite;
}

/* Compact Logo Banner for Hero */
#hero .logo-banner {
    padding: 1.5rem 0;
    background: transparent;
    border-bottom: none;
    width: 100%;
    margin-top: auto;
    /* Push to bottom */
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

#hero .logo-header {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

#hero .logo-track {
    gap: 3rem;
}

#hero .logo-item {
    opacity: 0.4;
}

#hero .logo-item:hover {
    opacity: 1;
}

#hero {
    padding-bottom: 0;
    /* Removing bottom padding to let banner sit flush */
    justify-content: flex-start;
    /* Organize manually with margins */
    padding-top: 6rem;
    /* Ensure top space */
}

/* Center the main content */
#hero .container {
    margin-top: auto;
    margin-bottom: auto;
}

/* --- SPACING OPTIMIZATION --- */

/* Reduce generic section padding for these specific data-heavy sections */
#problem,
#solution {
    padding: 2.5rem 2rem;
    min-height: auto;
    /* Allow them to be shorter than full viewport if content demands, or keep 100vh but tighter */
}

/* Blocked Majority Spacing */
.problem-header {
    margin-bottom: 2rem;
    /* Reduced from 4rem */
}

#problem .subtitle {
    margin-bottom: 2rem;
    /* Ensure subtitle doesn't push too hard */
}

#problem .grid-3 {
    margin-top: 1rem;
    /* Reduced generic top margin */
}

/* Hardware Enclave Spacing */
.solution-header-wrapper {
    margin-bottom: 0.5rem !important;
    text-align: center;
}

.solution-header-wrapper h2 {
    margin-bottom: 0.25rem;
}

.solution-header-wrapper .subtitle {
    margin-bottom: 0;
}

.enclave-grid {
    margin-top: 1rem;
    /* Reduced from 4rem */
    gap: 2rem;
    /* Slightly tighter gap */
}

.enclave-card {
    padding: 3rem 2rem;
    /* Slightly more compact card */
}

/* --- SPACING OPTIMIZATION: WORKFLOW --- */

#how-it-works {
    padding: 3rem 2rem;
    /* Reduced from generic 4rem */
}

.integration-header {
    margin-bottom: 2rem;
    /* Reduced from 4rem */
}

.integration-steps {
    gap: 1.5rem;
    /* Reduced from 3rem */
}

.workflow-step {
    gap: 2rem;
    /* Reduced from 4rem */
    padding-bottom: 1.5rem;
    /* Reduced from 3rem */
}

.workflow-visual {
    padding: 1rem 1.5rem;
    /* Slightly more compact code box */
}

/* --- HERO LOGO BANNER: CENTERED --- */

/* Reset/Update Hero Banner for middle placement */
#hero .logo-banner {
    padding: 0.5rem 0 2rem;
    /* reduced top padding, keeping bottom space */
    background: transparent;
    border-bottom: none;
    width: 100%;
    margin: 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

#hero .logo-header {
    margin-bottom: 1rem;
    font-size: 0.75rem;
    opacity: 0.6;
    letter-spacing: 0.15em;
}

#hero .logo-track {
    gap: 3rem;
    /* Adjust animation speed if needed, but keeping same is fine */
}

#hero .logo-item {
    opacity: 0.4;
    transform: scale(0.9);
    /* Slightly smaller logos for hero context */
}

#hero .logo-item:hover {
    opacity: 1;
    transform: scale(1);
}


/* --- TRUSTMARK BADGE --- */

/* Special Override for Trustmark Step Container */
.workflow-visual.visual-trustmark {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    justify-content: center;
    /* Center the badge */
}

.trustmark-badge {
    background-color: var(--c-yellow);
    color: black;
    padding: 1rem 2rem;
    border-radius: var(--radius-none);
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Space Mono', monospace;
    /* Ensure monospace */
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
    border: 2px solid var(--c-yellow);
    /* Keep distinctive */
}

.trustmark-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.trustmark-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.trustmark-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.trustmark-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- WORKFLOW CODE COLORING --- */

/* Specific overrides for the minimalist code style requested */
.code-prompt .code-import {
    color: #ffffff;
    /* White for 'import' and standard text */
}

.code-prompt .code-module {
    color: var(--c-yellow);
    /* Yellow for 'lucid' */
}

.code-prompt .code-comment {
    color: #6b7280;
    /* Gray for comments */
    font-style: italic;
}

.code-prompt .code-plain {
    color: #ffffff;
    /* White for standard code text */
}

.code-prompt .code-string-minimal {
    color: #e2e8f0;
    /* Slightly off-white for strings to differentiate subtly, or just white */
}

/* --- IDE BOX STYLING --- */

.ide-box {
    background-color: #0d1117;
    /* GitHub Dark Mode bg or similar IDE dark */
    border: 1px solid #30363d;
    border-radius: var(--radius-none);
    padding: 1.5rem;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    /* Ensure code is left aligned */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.ide-box .code-import {
    color: #ff7b72;
}

/* Red/Pink for import */
.ide-box .code-module {
    color: #d2a8ff;
}

/* Purple for modules */
.ide-box .code-comment {
    color: #8b949e;
    font-style: italic;
}

/* Gray comment */
.ide-box .code-plain {
    color: #c9d1d9;
}

/* White/Gray text */
.ide-box .code-string-minimal {
    color: #a5d6ff;
}

/* Light blue string */
.ide-box .code-function {
    color: #79c0ff;
}

/* Blue function */

/* Override workflow-visual if needed to let ide-box take over, or nested inside */
.workflow-visual.ide-container {
    padding: 0;
    /* Remove padding from container to let IDE box fill it or just be the box */
    border: none;
    background: transparent;
}

/* --- ARROW POSITIONING FIXES --- */

/* New bounce animation for relative positioning (no horizontal shift needed) */
/* Bounce animation for arrow next */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* Fix overlaps in specific sections by making arrows relative */
#problem .arrow-next,
#solution .arrow-next,
#how-it-works .arrow-next {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 3rem auto 1rem;
    /* Space above and below */
    display: block;
    width: fit-content;
    animation: bounce 2s infinite;
}

/* Ensure container doesn't have excess padding if arrow is now taking space */
#problem,
#solution {
    padding-bottom: 1rem;
    /* Reduced from previous heavy padding since arrow adds its own margin */
}

/* --- ENCLAVE CARD RESIZE --- */
/* User requested 30% less wide, so ~70% width */
.enclave-card {
    max-width: 70%;
    margin: 0 auto;
    /* Enhance centering */
}

/* --- ANIMATIONS: WORKFLOW DIAGRAM --- */
.enclave-anim-box {
    background: #000;
    padding: 1.5rem;
    border-radius: var(--radius-none);
    border: 1px solid #333;
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.anim-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The "Enclave" Target (Lucid Logo inside Box) - CENTERED */
.enclave-target {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border: 2px solid var(--c-yellow);
    border-radius: var(--radius-none);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-yellow);
    z-index: 100;
    /* Use HIGH Z-Index so packets pass BEHIND */
    background: rgb(0, 0, 0);
    /* Semi-transparent background */
    backdrop-filter: blur(2px);
    /* Glassy effect */
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
    transition: all 0.3s;
    overflow: hidden;
}

/* Static Background Package inside Enclave */
.target-bg-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    color: #333;
    opacity: 0.3;
    z-index: 0;
}

.target-logo-img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
    z-index: 10;
}

/* Conveyor Belt Packets (2D Square Boxes) */
.model-packet {
    position: absolute;
    left: -60px;
    width: 44px;
    /* Square Box */
    height: 44px;
    background: #0f0f0f;
    border: 3px solid;
    /* Border color animated */
    border-radius: var(--radius-none);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    /* BEHIND Target (100) */
    animation: conveyor-flow 6s linear infinite, box-verify-color 6s linear infinite;
}

/* Status Badges */
.status-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Icon Swap Animations */
.model-packet .icon-verified {
    animation: badge-swap-verified 6s linear infinite;
}

/* Border Color Animation: Unverified (Red) -> Verified (Green) */
@keyframes box-verify-color {
    0% {
        border-color: #ef4444;
        /* Start with Red (Unverified) */
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.2);
    }

    48% {
        border-color: #ef4444;
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.2);
    }

    52% {
        border-color: var(--c-green);
        /* Swap to Green at center */
        box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
    }

    100% {
        border-color: var(--c-green);
        box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
    }
}

.icon-pending {
    color: var(--c-yellow);
    display: block;
    /* Default visible */
}

.icon-verified {
    color: var(--c-green);
    display: block;
    /* Ensure it is layout-visible so opacity anim works */
    opacity: 0;
    /* Star hidden by opacity */
}

/* Icon Swap Animations */
.model-packet .icon-verified {
    animation: badge-swap-verified 6s linear infinite;
}

@keyframes badge-swap-verified {
    0% {
        opacity: 0;
    }

    49% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

/* Stagger Animations */
.model-packet:nth-child(2),
.model-packet:nth-child(2) .icon-pending,
.model-packet:nth-child(2) .icon-verified {
    animation-delay: 0s;
}

.model-packet:nth-child(3),
.model-packet:nth-child(3) .icon-pending,
.model-packet:nth-child(3) .icon-verified {
    animation-delay: 2s;
}

.model-packet:nth-child(4),
.model-packet:nth-child(4) .icon-pending,
.model-packet:nth-child(4) .icon-verified {
    animation-delay: 4s;
}

@keyframes conveyor-flow {
    0% {
        transform: translateX(0) scale(0.9);
        opacity: 0;
        left: -10%;
    }

    10% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    /* Enter Box at ~40% (Left 30-40%) -> Center is 50%. Width is 100px (~15% width).
       So Center Area is 42% - 58%. */
    42% {
        opacity: 1;
    }

    58% {
        opacity: 1;
    }

    90% {
        left: 110%;
        /* Exit screen right */
        opacity: 1;
        transform: scale(1);
    }

    100% {
        left: 110%;
        opacity: 0;
    }
}

/* Swap Logic: Center is 50%. Animation is 0 to 110%. Duration 6s.
   Midpoint of travel (50% left) is roughly 50% of time?
   Let's approximate:
   Start: -10%. End: 110%. Delta: 120%.
   Center (50%) is 60/120 = 50% of travel.
   So at 50% keyframe, we swap.
*/

@keyframes badge-swap-pending {
    0% {
        opacity: 1;
    }

    49% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* duplicate @keyframes badge-swap-verified removed — defined above */

/* Pulse effect on target constantly to signify processing */
.enclave-target {
    animation: logo-radiate 2s ease-out infinite;
    /* Ensure z-index allows packets to pass over (60) or under.
       If packets are 60, target 50. Packets fly OVER. Good. */
}

@keyframes logo-radiate {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
        border-color: var(--c-yellow);
    }

    50% {
        /* Pulse when packet passes through (every 2s) */
        box-shadow: 0 0 40px rgba(74, 222, 128, 0.5);
        /* Greenish glow for verification? */
        border-color: var(--c-green);
        /* Turn green momentarily to show success */
    }
}

/* --- Bento Grid Layout for Compliance Section --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    /* Explicit gap */
    margin-top: 3rem;
    width: 100%;
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-none);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.bento-span-2 {
    grid-column: span 2;
}

.bento-card .icon-box {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-none);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--c-yellow);
}

.bento-card .icon {
    width: 32px;
    height: 32px;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--c-white);
    font-family: var(--font-mono);
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--c-gray);
    margin-bottom: 0;
    max-width: 90%;
    line-height: 1.6;
}

/* Compliance "Risk Strip" instead of Grid */
.risk-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 4rem;
    /* Wide gap */
}

.risk-item {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.risk-val-large {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--c-yellow);
    font-family: var(--font-mono);
}

.risk-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.risk-label {
    color: var(--c-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.risk-desc {
    color: var(--c-gray);
    font-size: 0.85rem;
}

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

    .bento-span-2 {
        grid-column: span 1;
    }

    .risk-strip {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
}

/* --- Compliance Section Redesign (Fused 2x2 Grid) --- */
.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Cards touch */
    margin-top: 1.5rem;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    overflow: hidden;
    /* Clip corners */
}

.compliance-card {
    background: linear-gradient(180deg, rgba(30, 29, 20, 1) 0%, rgba(10, 10, 10, 1) 100%);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, #121212 0%, #000000 100%);

    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    /* Internal Borders */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    transition: background-color 0.3s ease;
}

/* Remove right borders from the last column */
.compliance-grid .compliance-card:nth-child(2n) {
    border-right: none;
}

/* Remove bottom borders from the last row (2x2 grid = last 2 items) */
.compliance-grid .compliance-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.compliance-card:hover {
    background: linear-gradient(180deg, rgba(40, 38, 25, 1) 0%, rgba(20, 20, 20, 1) 100%);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.25) 0%, transparent 70%),
        linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    transform: none;
    z-index: 2;
    /* Bring above siblings to show borders if we decided to add them later */
    box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.3);
    /* Inner border highlight */
    cursor: default;
}

.compliance-content {
    position: relative;
    z-index: 10;
    max-width: 60%;
    text-align: left;
}

.compliance-card h3 {
    font-family: var(--font-mono);
    color: var(--c-white);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.compliance-card p {
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1.5;
    margin: 0;
}

/* Graphic Container */
.compliance-graphic {
    position: absolute;
    top: 50%;
    right: 2rem;
    /* Adjusted for cleaner look inside grid */
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    z-index: 1;
    opacity: 0.9;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compliance-graphic svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

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

    .compliance-card {
        min-height: auto;
        padding: 3rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        align-items: center;
    }

    .compliance-content {
        max-width: 100%;
        text-align: center;
    }

    .compliance-graphic {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        margin: 2rem auto 0;
        width: 100px;
        height: 100px;
        opacity: 1;
    }

    .compliance-grid .compliance-card:nth-child(n) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .compliance-grid .compliance-card:last-child {
        border-bottom: none;
    }
}

/* --- LANDING PAGE INSIGHTS SECTION --- */
.insights-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.insights-top h2 {
    margin: 0;
    font-size: 3rem;
    font-weight: 500;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: white;
    color: black;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-none);
    transition: all 0.2s;
    text-decoration: none;
}

.view-all-btn:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.insights-grid {
    gap: 1.5rem;
}

.insight-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.insight-card {
    background: #09090b;
    border: 1px solid #18181b;
    border-radius: var(--radius-none);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.insight-card:hover {
    border-color: #3f3f46;
    background: #121214;
    transform: translateY(-4px);
}

.insight-thumb-container {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.insight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.insight-card:hover .insight-img {
    transform: scale(1.05);
    opacity: 0.9;
}

.insight-chip-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    border-radius: var(--radius-none);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    overflow: visible;
}

.insight-chip-overlay::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: repeating-conic-gradient(from 0deg,
            transparent 0deg 10deg,
            rgba(255, 255, 255, 0.15) 10deg 11deg,
            transparent 11deg 20deg);
    border-radius: var(--radius-none);
    animation: slow-rotate 60s linear infinite;
}

@keyframes slow-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.chip-icon-small {
    width: 36px;
    height: 36px;
    color: white;
    position: relative;
    z-index: 3;
}

.insight-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.insight-tag {
    color: #a1a1aa;
    font-weight: 700;
}

.sep {
    color: #3f3f46;
}

.insight-date {
    color: #71717a;
}

.insight-title {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: -0.01em;
    font-family: var(--font-mono);
}

.insight-desc {
    font-size: 1.1rem;
    color: #71717a;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.read-more {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: color 0.3s;
}

.insight-card:hover .read-more {
    color: white;
}

/* --- FINAL RESPONSIVENESS OVERRIDES --- */

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

@media (max-width: 900px) {

    /* Stack all grids and splits */
    .grid-3,
    .grid-split,
    .workflow-step,
    .enclave-grid,
    .scrolly-main,
    .cta-grid,
    .stats-row,
    .problem-stats-grid,
    .risk-grid,
    .hero-layout,
    .grid-33-66,
    .grid-66-33 {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    /* Hero Responsive Adjustments */
    .page-home .container.hero-split {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        padding-top: 8rem !important;
        gap: 2rem !important;
    }

    .hero-content {
        text-align: center !important;
        align-items: center !important;
    }

    .hero-title {
        font-size: 2.25rem !important;
        text-align: center !important;
        line-height: 1.2 !important;
        margin-bottom: 2rem !important;
    }

    .hero-btns {
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100% !important;
        justify-content: center !important;
    }

    .rotator-wrapper {
        display: block !important;
        margin-top: 0.25rem;
        width: 100% !important;
        text-align: center !important;
    }

    .rotator-text {
        font-size: 2.25rem !important;
    }

    .hero-dashboard-container {
        margin-top: 2rem !important;
        transform: none !important;
        perspective: none !important;
        width: 100% !important;
    }

    .hero-flight-deck {
        display: flex !important;
        flex-direction: column !important;
        aspect-ratio: auto !important;
        min-height: 460px !important;
        transform: none !important;
        margin-top: 2rem !important;
    }

    .hero-flight-deck .section-auditors-vertical,
    .hero-flight-deck .footer-stats,
    .hero-flight-deck .deck-footer {
        display: none !important;
    }

    .hero-grid-body.two-col {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 380px !important;
    }

    .section-compliance {
        width: 100% !important;
        padding: 0.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .radar-container-mini {
        height: 400px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Auditor Chain Responsive */
    .chain-viz {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        padding: 2rem 1rem !important;
    }

    .auditor-node {
        width: 100% !important;
        max-width: 340px !important;
    }

    .flow-arrow-mini {
        transform: rotate(90deg) !important;
        margin: 0 !important;
    }

    /* Dashboard/Observability Responsive */
    .dashboard-wrapper {
        flex-direction: column !important;
        height: auto !important;
    }

    .dashboard-sidebar {
        display: none !important;
        /* User asked to show graphs instead */
    }

    .dashboard-main {
        width: 100% !important;
        padding: 1rem !important;
        height: auto !important;
        overflow: visible !important;
    }

    .dashboard-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .span-2 {
        grid-column: span 1 !important;
    }

    .dashboard-header {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .header-filters {
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
    }

    /* Section 03: Passports & Chat */
    .sovereign-chat-card {
        height: auto !important;
        min-height: 400px;
    }

    .chat-header {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
        text-align: center !important;
    }

    .chat-header-brand {
        justify-content: center !important;
    }

    .trustmark-wrapper {
        margin-left: 0 !important;
        transform: scale(0.9);
    }

    .passport-overlay {
        width: 95% !important;
    }

    .passport-card-popup {
        width: 100% !important;
    }

    /* Better Bullets / Check-items on Mobile */
    .check-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.5rem !important;
        margin-bottom: 3.5rem !important;
        padding: 0 1rem;
    }

    .check-icon {
        margin-top: 0 !important;
        width: 48px !important;
        height: 48px !important;
        color: var(--c-green) !important;
        /* Premium green as seen in image */
        filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.3));
    }

    .check-item h4 {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
        font-family: var(--font-mono) !important;
        letter-spacing: 0.05em;
    }

    .check-item p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        opacity: 0.7;
        max-width: 500px;
    }

    /* Centering content for better mobile readability */
    .workflow-text,
    .text-panel,
    .cta-left,
    .enclave-feature-text,
    .solution-header-wrapper,
    .section-header,
    .grid-33-66>div,
    .grid-66-33>div,
    .container.text-left {
        text-align: center !important;
        align-items: center !important;
    }

    .text-panel-header {
        justify-content: center !important;
    }

    /* Section Height and Spacing */
    .page-home section {
        padding: 6rem 1.5rem !important;
        height: auto !important;
        min-height: 100vh !important;
    }

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

    /* Architecture of Trust / Scrolly section mobile fixes */
    .scrolly-sticky-wrapper {
        min-height: auto !important;
        padding-top: 2vh !important;
        padding-bottom: 5vh !important;
    }

    .scrolly-sticky-content {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
    }

    .scrolly-diagram {
        padding: 1rem !important;
    }

    .scrolly-text-area {
        position: relative !important;
        min-height: auto !important;
    }

    .text-panel {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .arch-text {
        font-size: 14px !important;
    }

    .arch-text-header {
        font-size: 13px !important;
    }
}

/* Mobile Navigation Breakpoint */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .navbar {
        justify-content: space-between;
        padding: 0.75rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 2rem 2rem;
        gap: 0;
        border-left: 1px solid var(--c-border);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--c-border);
        font-size: 1rem;
    }

    .nav-links .nav-cta-btn {
        margin-top: 1.5rem;
        width: 100%;
        text-align: center;
        padding: var(--space-s) var(--space-m);
    }

    /* Mobile Dropdown Styles */
    .nav-item-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-item-dropdown .nav-link {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-item-dropdown .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        min-width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0.5rem 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item-dropdown .dropdown-menu::before {
        display: none;
    }

    .nav-item-dropdown.is-open .dropdown-menu {
        max-height: 500px;
    }

    .nav-item-dropdown .dropdown-link {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .nav-item-dropdown .dropdown-link:hover {
        padding-left: 0.5rem;
    }

    .nav-link.has-dropdown::after {
        transition: transform 0.2s ease;
    }

    .nav-item-dropdown.is-open .nav-link.has-dropdown::after {
        transform: rotate(180deg);
    }

    /* Mobile menu overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 998;
    }

    .nav-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 90%;
    }

    .nav-brand {
        gap: 0.5rem;
    }

    .nav-text {
        font-size: 0.8rem;
    }

    .stat-box {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem !important;
    }

    .stat-text {
        padding: 1rem 0 0 0 !important;
        border-left: none !important;
        border-top: 2px solid rgba(0, 0, 0, 0.1) !important;
    }

    .control-bar {
        flex-direction: column !important;
    }

    .search-container {
        border-right: none !important;
        border-bottom: 1px solid var(--c-border) !important;
    }

    .filter-btn {
        flex-grow: 1 !important;
        text-align: center !important;
        border-right: none !important;
        border-bottom: 1px solid var(--c-border) !important;
    }

    .insights-grid {
        grid-template-columns: 1fr !important;
    }

    .insights-top h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr !important;
    }

    .cta-title {
        font-size: 2.5rem !important;
    }
}

/* --- SOLUTIONS & INDUSTRIES SECTIONS --- */
.clickable-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.1);
}

.card-thumb {
    width: calc(100% + 5rem);
    height: 180px;
    /* Slightly taller for better aspect ratio */
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    margin-top: -3rem;
    margin-left: -2.5rem;
}

/* If card-thumb is just a number/indicator (like on subpages) */
.card-thumb:not(img) {
    height: auto;
    width: auto;
    margin-top: 0;
    margin-left: 0;
    border-bottom: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--c-yellow);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.graphic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* --- NAVIGATION DROPDOWNS --- */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0a0a0a;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    padding: 1rem 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #0a0a0a;
    border-top: 1px solid var(--c-border);
    border-left: 1px solid var(--c-border);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--c-gray);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-link:hover {
    color: var(--c-yellow);
    background: rgba(250, 204, 21, 0.05);
    padding-left: 1.75rem;
}

.nav-link.has-dropdown::after {
    content: '▾';
    margin-left: 6px;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .nav-link.has-dropdown::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* --- NEW COMPONENTS: ROTATOR, EDITOR, DASHBOARD --- */

/* Hero Top Left Alignment */
#hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    text-align: left;
    height: auto;
    min-height: 80vh;
}

/* Override for hero-right layout - animation left, text right */
#hero .container.hero-right {
    display: flex !important;
    flex-direction: column;
    max-width: none !important;
    width: 100% !important;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    padding-right: 6rem;
    padding-left: 65%;
    margin: 0 !important;
}

#hero .container.hero-right .hero-content {
    max-width: none;
}

#hero .container.hero-right .hero-title {
    text-align: right;
}

#hero .container.hero-right .subtitle {
    max-width: 600px;
    margin-top: 1.5rem;
}

#hero .container.hero-right .hero-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

@media (max-width: 1400px) {
    #hero .container.hero-right {
        padding-left: 60%;
        padding-right: 4rem;
    }
}

@media (max-width: 1200px) {
    #hero .container.hero-right {
        padding-left: 55%;
    }
}

@media (max-width: 968px) {
    #hero .container.hero-right {
        padding-left: 2rem;
        padding-right: 2rem;
        align-items: center;
        text-align: center;
    }

    #hero .container.hero-right .subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
    }

    #hero .container.hero-right .hero-btns {
        justify-content: center;
    }

    #hero .container.hero-right .hero-title {
        text-align: center;
    }

    #hero .container.hero-right .hero-title-stacked {
        align-items: center;
    }
}

#hero .container .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hero .container .hero-title {
    text-align: left;
    margin-bottom: 2rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* scale down to fit */
}

/* Text Rotator */
.rotator-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: top;
}

.rotator-text {
    background: linear-gradient(90deg, var(--c-yellow) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    white-space: nowrap;
}

.section-header {
    margin-bottom: 1rem;
    text-align: left;
}

/* Dashboard Visual */
.hero-visual {
    position: relative;
    width: 100%;
}

.dashboard-card {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    padding: 1.5rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Code Editor */
.code-editor {
    background: #0d0d0d;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--c-border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-none);
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-content {
    padding: 1.5rem;
    color: #d4d4d4;
    line-height: 1.6;
}

.code-content .key {
    color: #9cdcfe;
}

.code-content .val {
    color: #ce9178;
}

.code-content .comment {
    color: #6a9955;
}

/* Canvas Editor - Drag-Drop Audit Chain Builder */
.canvas-editor {
    background: #0d0d0d;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    overflow: hidden;
}

.canvas-wrapper {
    display: flex;
    min-height: 320px;
}

.canvas-sidebar {
    width: 48px;
    background: #0a0a0a;
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0;
}

.canvas-sidebar-logo {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--c-border);
}

.canvas-logo-img {
    width: 24px;
    height: 24px;
}

.canvas-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.canvas-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.canvas-nav-item:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

.canvas-nav-item.active {
    color: var(--c-brand);
    background: rgba(255, 204, 0, 0.1);
}

.canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--c-border);
    background: #1a1a1a;
}

.canvas-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.canvas-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #666;
}

.status-dot.status-active {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.canvas-grid {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 20px 20px;
}

.canvas-node-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.canvas-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.25rem;
    background: #1a1a1a;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    min-width: 90px;
    transition: all 0.2s ease;
}

.canvas-node:hover {
    border-color: var(--c-brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.1);
}

.node-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 204, 0, 0.1);
    color: var(--c-brand);
}

.canvas-node.sovereignty .node-icon-wrap {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.canvas-node.gdpr .node-icon-wrap {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.canvas-node.eu-ai-act .node-icon-wrap {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.node-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.node-version {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--ff-mono);
}

.canvas-connector {
    display: flex;
    align-items: center;
}

.canvas-footer {
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--c-border);
    background: #0d0d0d;
}

.canvas-hint {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

@media (max-width: 768px) {
    .canvas-node-group {
        flex-direction: column;
    }

    .canvas-connector {
        transform: rotate(90deg);
    }

    .canvas-wrapper {
        min-height: 400px;
    }
}

/* Command Center Zones */
.command-center {
    display: grid;
    grid-template-areas:
        "zone1 zone2"
        "zone3 zone3"
        "zone4 zone4";
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.cc-zone {
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    padding: 1.5rem;
    position: relative;
}

.zone1 {
    grid-area: zone1;
}

.zone2 {
    grid-area: zone2;
}

.zone3 {
    grid-area: zone3;
}

.zone4 {
    grid-area: zone4;
}

/* Terminal */
.terminal-window {
    background: #000;
    color: var(--c-green);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 1rem;
    height: 120px;
    overflow-y: hidden;
    position: relative;
}

.terminal-line {
    margin-bottom: 4px;
    opacity: 0.8;
}

.terminal-line.alert {
    color: var(--c-red);
}

/* Buttons - Figma Design System */

/* Primary Button: White background, dark text */
.btn-primary {
    background: var(--c-white);
    color: var(--c-neutral-800);
    padding: var(--space-m) var(--space-m);
    border: 1px solid var(--c-border-button);
    border-radius: var(--radius-none);
    font-family: var(--font-mono);
    font-size: var(--fs-button);
    font-weight: 400;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    transition: var(--transition-mechanical);
    text-decoration: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--c-white);
    border-color: var(--c-border-button);
}

/* Secondary Button: Transparent background, white text, border */
.btn-secondary {
    background: transparent;
    color: var(--c-white);
    padding: var(--space-m) var(--space-m);
    border: 1px solid var(--c-border-button);
    border-radius: var(--radius-none);
    font-family: var(--font-mono);
    font-size: var(--fs-button);
    font-weight: 400;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    transition: var(--transition-mechanical);
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--c-white);
    color: var(--c-neutral-800);
    border-color: var(--c-border-button);
}

/* Hero Button - Prominent CTA */
.btn-white-hero {
    background: var(--c-white);
    color: var(--c-neutral-800);
    padding: var(--space-m) var(--space-m);
    border: 1px solid var(--c-border-button);
    border-radius: var(--radius-none);
    font-family: var(--font-mono);
    font-size: var(--fs-button);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
    transition: var(--transition-mechanical);
    text-decoration: none;
    cursor: pointer;
}

.btn-white-hero:hover {
    background: transparent;
    color: var(--c-white);
}

/* Navigation Button: Compact size */
.btn-nav {
    background: var(--c-white);
    color: var(--c-neutral-800);
    padding: var(--space-xs) var(--space-s);
    border: 1px solid var(--c-border-button);
    border-radius: var(--radius-none);
    font-family: var(--font-mono);
    font-size: var(--fs-button);
    font-weight: 400;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    transition: var(--transition-mechanical);
    text-decoration: none;
    cursor: pointer;
}

.btn-nav:hover {
    background: transparent;
    color: var(--c-neutral-800);
    border-color: var(--c-border-button);
}

/* Text Link Button: No background, no border */
.btn-text-link {
    background: transparent;
    color: var(--c-white);
    padding: 0;
    border: none;
    font-family: var(--font-mono);
    font-size: var(--fs-button);
    font-weight: 400;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition-mechanical);
    text-decoration: none;
    cursor: pointer;
}

.btn-text-link:hover {
    text-decoration: underline;
}

/* Flow Visualization */
.flow-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.flow-arrow {
    flex-grow: 1;
    height: 2px;
    background: var(--c-border);
    position: relative;
    margin: 0 1rem;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border: 5px solid transparent;
    border-left-color: var(--c-border);
}

/* Auditor Chain Visualization */
.auditor-chain-container {
    margin-top: 2rem;
    padding: 2rem 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-none);
    position: relative;
    overflow: visible;
    backdrop-filter: none;
}

/* Removed pulse animation */

/* Removed radial gradient */

.chain-viz {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    gap: 1rem;
}

.auditor-node {
    background: linear-gradient(180deg, #121212 0%, #000000 100%);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, #121212 0%, #000000 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-none);
    z-index: 2;
    width: 320px;
    /* Increased width */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.auditor-node:hover {
    border-color: var(--c-yellow);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(250, 204, 21, 0.1);
}

.node-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-none);
    background: rgba(250, 204, 21, 0.05);
    color: var(--c-yellow);
    flex-shrink: 0;
}

.node-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    color: var(--c-white);
    margin: 0;
}

.node-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
}

.node-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-none);
    color: var(--c-gray);
}

.flow-arrow-mini {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--c-border), var(--c-yellow-dim), var(--c-border));
    position: relative;
    opacity: 0.5;
}

.flow-arrow-mini::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -4px;
    border: 5px solid transparent;
    border-left-color: var(--c-yellow-dim);
}

/* --- HERO DASHBOARD (New Product Screen) --- */
.hero-dashboard-container {
    margin-top: 4rem;
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    pointer-events: none;
    user-select: none;
    cursor: default;
}

.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.hero-flight-deck {
    width: 680px;
    /* Base width */
    max-width: 95vw;
    /* Never wider than viewport */
    aspect-ratio: 1.2 / 1;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    transform-origin: center top;
    transition: transform 0.5s ease;
}

@media (max-width: 768px) {
    .hero-flight-deck {
        transform: scale(0.85);
        margin-bottom: -100px;
        /* Compensate for scale shrinkage */
    }
}

@media (max-width: 480px) {
    .hero-flight-deck {
        transform: scale(0.65);
        margin-bottom: -180px;
        /* Compensate for scale shrinkage */
    }
}

/* New: Hero Split Layout (Desktop) */
@media (min-width: 1024px) {
    .page-home .container.hero-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Balanced Layout */
        gap: 8rem;
        align-items: center;
        /* Center content vertically in the hero section */
        justify-content: center;
        text-align: left;
        height: 100%;
        position: relative;
    }

    .hero-content {
        max-width: 100%;
        z-index: 10;
        margin: 0;
        text-align: left;
    }
}

/* Mobile Fallback - implicit in default styles, but ensure spacing */
@media (max-width: 1023px) {
    .hero-dashboard-container {
        margin-top: 3rem;
    }
}

/* Ensure Arrow stays at bottom */
.arrow-next {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

/* Dashboard Container updates */
.hero-dashboard-container {
    perspective: 2000px;
    width: 100%;
    margin-top: 0;
    /* Remove top margin from stacked layout */
}

/* .hero-flight-deck:hover {
    transform: rotateX(0deg) scale(1.02);
    border-color: rgba(74, 222, 128, 0.3);
} */

/* Header */
.deck-header {
    display: flex;
    justify-content: flex-start;
    /* Group items to the left to save space */
    gap: 2.5rem;
    /* Gap between Agent ID and Attestations */
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.agent-id {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.agent-id .label {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--c-white);
    font-size: 0.9rem;
}

.agent-id .sub {
    font-size: 0.75rem;
    color: var(--c-gray);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--c-green);
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-none);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--c-green);
    border-radius: var(--radius-none);
}

.pulse-green {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.hash-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-gray-dark);
}

/* Body */
.deck-body {
    display: flex;
    padding: 2rem;
    gap: 3rem;
}

/* Left Col - Visual */
.agent-visual-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.agent-orb-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
}

.agent-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #a1a1aa);
    border-radius: var(--radius-none);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    animation: spin-slow 10s linear infinite;
}

.ring-1 {
    width: 100px;
    height: 100px;
    border-style: dashed;
    animation-duration: 20s;
}

.ring-2 {
    width: 140px;
    height: 140px;
    border-color: rgba(255, 255, 255, 0.05);
    animation-direction: reverse;
}

@keyframes spin-slow {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.live-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2px;
}

.m-label {
    color: var(--c-gray);
}

.m-val {
    color: var(--c-white);
}

/* Right Col - Chain */
.auditor-chain-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chain-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-gray);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.audit-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.audit-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: var(--radius-none);
    border-left: 3px solid transparent;
}

.audit-block.pass {
    border-left-color: var(--c-green);
}

.audit-block.verified {
    border-left-color: var(--c-yellow);
}

.ab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--c-gray-dark);
}

.audit-block.pass .ab-icon {
    color: var(--c-green);
}

.audit-block.verified .ab-icon {
    color: var(--c-yellow);
}

.ab-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ab-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.ab-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-gray);
}

/* Footer */
.deck-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.sg-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-gray);
    margin-bottom: 4px;
}

.sg-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-white);
}

.text-green {
    color: var(--c-green);
}

.text-red {
    color: var(--c-red);
}

/* --- COMPLIANCE OBSERVABILITY (New Product Screen) --- */
.compliance-map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
}

.map-interface {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Top Bar */
.map-top-bar {
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 1rem;
    background: rgba(20, 20, 20, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mtb-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mtb-stat .label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--c-gray);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.mtb-stat .val {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-white);
}

/* Map Visual */
.map-visual {
    flex-grow: 1;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #151515 0%, #050505 100%);
    overflow: hidden;
    min-height: 250px;
}

.map-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.marker-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-none);
    background: var(--c-white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.m-alert .marker-dot {
    background: var(--c-red);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.m-alert .marker-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 1px solid var(--c-red);
    border-radius: var(--radius-none);
    transform: translate(-50%, -50%);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-neutral {
    animation: pulse-white 3s infinite;
}

.pulse-red {
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-white {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}

@keyframes ping {

    75%,
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.marker-tooltip {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: var(--radius-none);
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.map-marker:hover .marker-tooltip {
    opacity: 1;
}

.map-connections {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* Log Panel */
.map-log-panel {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    font-family: var(--font-mono);
    max-height: 120px;
    overflow: hidden;
    /* Mask bottom */
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.log-header {
    font-size: 0.65rem;
    color: var(--c-gray);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.log-entries {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-row {
    font-size: 0.75rem;
    display: flex;
    gap: 8px;
    color: var(--c-gray-dark);
}

.log-row.warning {
    color: var(--c-yellow);
}

.ts {
    color: var(--c-gray-dark);
    opacity: 0.7;
}

.evt {
    color: var(--c-white);
}

.pass {
    color: var(--c-green);
}

.meta {
    color: var(--c-gray-dark);
    margin-left: auto;
}

/* --- HERO FLIGHT DECK (2-COLUMN + HEADER/FOOTER) --- */

/* Header Redesign */
.deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

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

.header-attestations {
    display: flex;
    gap: 1.5rem;
}

.attest-pill {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-gray-light);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-none);
    /* Less pill-like, more tech-badge */
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attest-pill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.attest-pill .val {
    color: var(--c-white);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Body Layout */
.hero-grid-body.two-col {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    /* Increased radar width */
    gap: 0;
    position: relative;
    flex: 1;
    /* Take up available space to fill the square */
    min-height: 200px;
}

/* Vertical Divider Line */
/* Vertical Divider Line Removed */
/* .hero-grid-body.two-col::after {
    content: '';
    position: absolute;
    left: 66%;
    top: 1rem;
    bottom: 1rem;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, rgba(255, 255, 255, 0));
} */

.two-col .dash-section {
    padding: 1.5rem 2rem;
    justify-content: flex-start;
}

.two-col .dash-section.section-compliance,
.two-col .dash-section.section-auditors-vertical {
    padding-top: 1.5rem !important;
    justify-content: flex-start !important;
}

.two-col .dash-section.section-compliance {
    padding-left: 1rem;
    /* keep chart centered */
    padding-right: 1rem;
}

/* Footer Stats Bar */
.footer-stats {
    display: flex;
    width: 100%;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.1);
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 30%;
    bottom: 30%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-item .label {
    font-size: 0.6rem;
    color: var(--c-gray-dark);
    font-family: var(--font-mono);
    margin-bottom: 0.4rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-item .val {
    font-size: 1.1rem;
    color: var(--c-white);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Guardrails Checkbox List */
.manifest-checklist {
    width: 100%;
    /* Removed heavy background/border for cleaner look */
    background: transparent;
    border: none;
    padding: 0.5rem 0;
}

.mc-header {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--c-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.mc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mc-item {
    font-size: 0.85rem;
    color: var(--c-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.2s;
}

.mc-item:hover {
    color: var(--c-white);
}

.mc-item .val {
    color: var(--c-white);
    font-weight: 500;
}

/* Refusal Card Polish */
.refusal-card {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    /* No bg, just text and badge */
    background: transparent;
    padding: 0;
    border: none;
    margin-top: 0;
}

.rc-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.refusal-label {
    font-size: 0.85rem;
    color: var(--c-white);
    font-weight: 500;
}

.refusal-btn {
    font-size: 0.65rem;
    color: var(--c-gray);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
    font-family: var(--font-mono);
}

.refusal-btn:hover {
    color: var(--c-white);
    border-color: var(--c-white);
}

.badge-ghost-red {
    background: transparent;
    color: #f87171;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Guardrails Icons */
.icon-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    /* Smaller */
    background: transparent;
    color: #ef4444;
    font-size: 10px;
    margin-right: 2px;
}

.text-subtle {
    color: var(--c-gray-dark);
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Shared Utilities */
.radar-container-mini {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Updated Glow */
.radar-container-mini::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    /* Warning Glow */
    z-index: 0;
}

.radar-chart {
    overflow: visible;
}

.warning-fill {
    transform-origin: 100px 100px;
    animation: pulse-warning 4s ease-in-out infinite;
}

/* No hover effect requested */
/*
.radar-poly:hover {
   ...
}
*/

@keyframes pulse-warning {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.6;
    }
}

.section-compliance {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1rem;
    width: 100%;
}

/* Tighter stacking for auditors to prevent overflow */
.auditor-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.section-guardrails {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertically */
    gap: 2rem;
    /* Nice gap between list and refusals */
    height: 100%;
    /* Keep height to fill cell */
}

.check-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: transparent;
    color: var(--c-green);
    font-size: 10px;
    margin-right: 2px;
}

/* --- VERTICAL AUDITOR STACK --- */

.section-auditors-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    /* Top align to match Compliance */
    padding-left: 2rem;
    height: 100%;
}

.auditor-chain-header {
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.auditor-node-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

/* Connecting Dots */
.node-dot {
    width: 6px;
    height: 6px;
    background-color: var(--c-green);
    /* Active status */
    border-radius: var(--radius-none);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    position: absolute;
    left: -1.25rem;
    /* Center on the border line */
    top: 50%;
    transform: translateY(-50%);
}

/* Text Styling */
.auditor-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--c-gray-light);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-none);
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

/* --- DASHBOARD: COMPLIANCE MAP --- */
.compliance-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 0;
    /* Border separation */
    height: 650px;
    width: 100%;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* 1. Left Sidebar: Fleet List */
.dash-sidebar {
    background: rgba(20, 20, 20, 0.4);
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
}

.dash-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--c-border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--c-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fleet-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Custom Scrollbar */
.fleet-list::-webkit-scrollbar {
    width: 4px;
}

.fleet-list::-webkit-scrollbar-thumb {
    background: var(--c-gray-dark);
    border-radius: var(--radius-none);
}

.fleet-list::-webkit-scrollbar-track {
    background: transparent;
}

.agent-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.agent-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.agent-item.active {
    background: rgba(250, 204, 21, 0.03);
}

.agent-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--c-yellow);
    box-shadow: 0 0 10px var(--c-yellow);
}

.agent-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.agent-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-name {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--c-white);
    font-weight: 600;
}

.agent-did {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-gray-dark);
    margin-top: 0.2rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-none);
    position: relative;
}

.status-dot.verified {
    background-color: var(--c-green);
    box-shadow: 0 0 5px rgba(74, 222, 128, 0.5);
}

.status-dot.warning {
    background-color: var(--c-yellow);
    box-shadow: 0 0 5px rgba(250, 204, 21, 0.5);
}

.status-dot.failed {
    background-color: var(--c-red);
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

.provider-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: var(--radius-none);
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-gray);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2. Center Stage: Chip Map */
.dash-map {
    position: relative;
    background-color: #080808;
    background-image:
        radial-gradient(circle at 50% 50%, #111 0%, #050505 100%);
    overflow: hidden;
    position: relative;
    display: block;
}

.map-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.map-svg-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    opacity: 0.15;
    pointer-events: none;
    fill: none;
    stroke: var(--c-white);
    stroke-width: 0.5;
}

.chip-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-inner {
    width: 8px;
    height: 8px;
    background: var(--c-gray);
    border-radius: var(--radius-none);
    border: 1px solid #000;
    transition: all 0.3s;
}

.chip-marker.active .chip-inner {
    background: var(--c-yellow);
    box-shadow: 0 0 15px var(--c-yellow);
    transform: scale(1.5);
    border-color: transparent;
}

.chip-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: var(--radius-none);
    border: 1px solid var(--c-yellow);
    opacity: 0;
}

.chip-marker.active .chip-pulse {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Tooltip Custom */
.chip-tooltip {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    font-size: 0.7rem;
    border-radius: var(--radius-none);
    white-space: nowrap;
    border: 1px solid var(--c-border);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    font-family: var(--font-mono);
    z-index: 30;
}

.chip-marker:hover .chip-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.physics-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(5, 20, 5, 0.8);
    border: 1px solid var(--c-green);
    border-radius: var(--radius-none);
    color: var(--c-green);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.physics-badge.visible {
    transform: translateY(0);
    opacity: 1;
}

/* 3. Right Inspector: Deep Dive */
.dash-inspector {
    background: rgba(20, 20, 20, 0.4);
    border-left: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    overflow-y: auto;
}

.inspector-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.insp-title {
    font-size: 1.1rem;
    color: var(--c-white);
    margin-bottom: 0.25rem;
}

.insp-subtitle {
    font-size: 0.8rem;
    color: var(--c-gray);
    font-family: var(--font-mono);
}

.inspector-section {
    margin-bottom: 2.5rem;
}

.radar-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    /* Specific height for Chart.js */
    display: flex;
    align-items: center;
    justify-content: center;
}

.telemetry-row {
    margin-bottom: 1.25rem;
}

.telemetry-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--c-gray);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-none);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--c-white);
    /* Default */
    border-radius: var(--radius-none);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px currentColor;
    /* Glow with current color */
}

.audit-terminal {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-none);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    height: 140px;
    overflow-y: auto;
    position: relative;
}

.terminal-header {
    position: sticky;
    top: -1rem;
    background: #000;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--c-gray);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    display: flex;
    justify-content: space-between;
}

.log-entry {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--c-red);
    display: flex;
    gap: 0.5rem;
}

.log-ts {
    color: var(--c-gray-dark);
    min-width: 50px;
}

@media (max-width: 1024px) {
    .compliance-dashboard {
        grid-template-columns: 1fr;
        height: auto;
    }

    .dash-sidebar {
        height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--c-border);
    }

    .dash-map {
        height: 350px;
        order: -1;
        /* Map on top */
    }

    .dash-inspector {
        border-left: none;
        border-top: 1px solid var(--c-border);
    }
}

/* --- UPDATED DASHBOARD LAYOUT (Bottom List) --- */
.compliance-dashboard {
    /* Override grid for new layout: Map Area | Inspector */
    grid-template-columns: 1fr 320px !important;
    grid-template-rows: 1fr auto !important;
    gap: 0;
}

/* Map takes top-left spot */
.dash-map {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    border-bottom: 1px solid var(--c-border);
}

/* Sidebar (now Bottom List) takes bottom-left spot */
.dash-sidebar {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    height: auto !important;
    /* Reset fixed height */
    max-height: 180px;
    /* Constraint */
    border-right: none !important;
    border-top: 1px solid var(--c-border);
    flex-direction: row !important;
    /* Horizontal layout */
}

/* Make list horizontal */
.fleet-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    align-items: center;
}

.fleet-list::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}

/* Adjust item items for horizontal card look */
.agent-item {
    min-width: 200px;
    border-bottom: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agent-item.active::before {
    /* Change active indicator to top border or bottom */
    width: 100%;
    height: 2px;
    left: 0;
    top: 0;
    bottom: auto;
}

/* Inspector stays on right, spans both rows */
.dash-inspector {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    border-left: 1px solid var(--c-border);
}

/* --- PORTKEY-STYLE DASHBOARD REFACTOR --- */
.compliance-dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    /* Sidebar width fixed */
    grid-template-rows: auto 1fr;
    gap: 0;
    height: 800px;
    /* Increased height for better visibility */
    width: 100%;
    background: #020202;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    overflow: hidden;
    backdrop-filter: blur(40px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

/* Sidebar Refinement */
.dash-sidebar-new {
    grid-row: 1 / 3;
    background: #080808;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--c-white);
}

.sidebar-nav-group {
    margin-bottom: 2rem;
}

.nav-group-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--c-gray-dark);
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-none);
    color: var(--c-gray);
    font-size: 0.85rem;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--c-white);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--c-white);
}

/* Main Content Area */
.dash-main-view {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #050505;
}

.dash-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #080808;
}

.navbar-tabs {
    display: flex;
    gap: 2rem;
}

.nav-tab {
    font-size: 0.85rem;
    color: var(--c-gray);
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
}

.nav-tab.active {
    color: var(--c-white);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--c-white);
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
}

/* KPI Cards */
.kpi-card {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: var(--radius-none);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kpi-label {
    font-size: 0.7rem;
    color: var(--c-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-white);
    font-family: var(--font-mono);
}

.kpi-trend {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: var(--radius-none);
}

.trend-up {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Charts & Widgets */
.chart-card {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-none);
    padding: 1.5rem;
    position: relative;
}

.chart-card.span-2 {
    grid-column: span 2;
}

.chart-card.span-3 {
    grid-column: span 3;
}

.chart-card.span-4 {
    grid-column: span 4;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-white);
}

/* Map Widget Bounded */
#map-widget {
    height: 300px;
    position: relative;
    border-radius: var(--radius-none);
    overflow: hidden;
    background: #000;
}

/* Agent Registry Table Area */
.agent-registry-view {
    grid-column: span 4;
}

/* Floating Dock */
.dash-dock-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.dash-dock {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.dock-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-none);
    color: var(--c-gray);
    transition: all 0.2s;
    cursor: pointer;
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-white);
}

.dock-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--c-white);
}

/* --- COMPLIANCE DASHBOARD --- */
.compliance-map-container {
    width: 100%;
    margin-top: 3rem;
    border-radius: var(--radius-none);
    border: 1px solid var(--c-border);
    overflow: hidden;
    background: #050505;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.dashboard-wrapper {
    display: flex;
    height: 700px;
}

/* Sidebar */
.dashboard-sidebar {
    width: 240px;
    background: #0a0a0a;
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.sidebar-logo-img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.workspace-pill {
    background: #1a1a1a;
    border: 1px solid var(--c-border);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-none);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.workspace-dot {
    width: 8px;
    height: 8px;
    background: #facc15;
    border-radius: var(--radius-none);
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-gray-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-none);
    font-size: 0.85rem;
    color: var(--c-gray);
    transition: all 0.2s;
    margin-bottom: 2px;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-white);
}

.nav-item.active {
    background: rgba(250, 204, 21, 0.1);
    color: var(--c-yellow);
}

/* Main Content */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #050505;
    padding: 1.5rem 2rem;
    overflow-y: auto;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dash-title {
    font-size: 1.25rem;
    margin: 0;
}

.dash-tabs {
    display: flex;
    gap: 0.5rem;
    background: #111;
    padding: 3px;
    border-radius: var(--radius-none);
}

.dash-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: var(--radius-none);
    color: var(--c-gray);
    transition: all 0.2s;
}

.dash-tab.active {
    background: #222;
    color: white;
}

.header-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.search-bar {
    flex: 1;
    background: #111;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--c-gray-dark);
}

.search-bar input {
    background: none;
    border: none;
    color: white;
    font-size: 0.85rem;
    width: 100%;
}

.search-bar input:focus {
    outline: none;
}

.date-picker {
    background: #111;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--c-gray);
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.25rem;
}

.dash-card {
    background: #0d0d0d;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.dash-card.span-2 {
    grid-column: span 2;
}

.card-label {
    font-size: 0.75rem;
    color: var(--c-gray);
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.trend-up {
    color: var(--c-green);
    font-size: 0.7rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.trend-down {
    color: var(--c-red);
    font-size: 0.7rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.card-chart-mini {
    height: 40px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.bar-mini {
    flex: 1;
    background: var(--c-green);
    border-radius: var(--radius-none);
    opacity: 0.6;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-gray);
}

.main-chart-container {
    flex: 1;
    position: relative;
}

.scatter-chart {
    height: 120px;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-none);
    overflow: hidden;
}

.scatter-chart .dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-none);
    transform: translate(-50%, -50%);
}

.stacked-bars {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-top: 1rem;
}

.bar-group {
    width: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bar-segment {
    width: 100%;
    border-radius: var(--radius-none);
    margin-bottom: 1px;
}

.area-chart {
    height: 120px;
    display: flex;
    align-items: flex-end;
}

/* Footer Nav */
.dashboard-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

.footer-nav-pills {
    display: flex;
    gap: 0.5rem;
    background: #111;
    padding: 0.4rem;
    border-radius: var(--radius-none);
    border: 1px solid var(--c-border);
}

.pill-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: var(--radius-none);
    color: var(--c-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.pill-btn.active {
    background: white;
    color: black;
}

/* Animations */
.heart-pulse {
    width: 12px;
    height: 12px;
    background: var(--c-green);
    border-radius: var(--radius-none);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@media (max-width: 900px) {
    .dashboard-wrapper {
        flex-direction: column;
        height: auto;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--c-border);
    }

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

    .dash-card.span-2 {
        grid-column: span 1;
    }
}

/* --- MAP & HISTOGRAM DASHBOARD UPDATES --- */
.map-card {
    grid-row: span 2;
    min-height: 400px;
}

.map-viz-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-none);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-map-img {
    width: 100%;
    height: auto;
    opacity: 0.4;
    filter: invert(1) brightness(0.8) contrast(1.2);
}

.map-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--c-yellow);
    border-radius: var(--radius-none);
    box-shadow: 0 0 12px var(--c-yellow);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
}

.map-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--c-yellow);
    border-radius: var(--radius-none);
    animation: map-pulse 2s infinite;
}

.map-dot:hover {
    transform: scale(1.5);
    box-shadow: 0 0 20px var(--c-yellow);
}

.map-dot:hover::before {
    content: attr(data-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-none);
    font-size: 0.6rem;
    white-space: nowrap;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes map-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Histogram Styles */
.histogram-card {
    grid-row: span 2;
}

.histogram-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.histogram-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hist-label {
    font-size: 0.75rem;
    color: var(--c-gray);
    font-family: var(--font-mono);
}

.hist-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hist-bar {
    height: 8px;
    border-radius: var(--radius-none);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hist-val {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--c-white);
    min-width: 30px;
}

.card-actions-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator.live {
    width: 6px;
    height: 6px;
    background: #ef4444;
    /* Red for live */
    border-radius: var(--radius-none);
    box-shadow: 0 0 8px #ef4444;
    animation: flash 1s infinite alternate;
}

.status-text {
    font-size: 0.6rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.1em;
}

@keyframes flash {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.4;
    }
}

/* --- DASHBOARD LITE UPDATES --- */
.compliance-map-container {
    pointer-events: none;
    /* Make non-interactive */
}

.dashboard-lite {
    height: 540px !important;
    /* Reduced height */
}

.dashboard-lite .dashboard-main {
    padding: 2rem;
    overflow: hidden;
    /* Prevent scrolling */
}

.dashboard-lite .dashboard-grid {
    grid-template-rows: auto 1fr;
    /* Adjust grid for better fit */
    height: 100%;
}

.dashboard-lite .map-card {
    min-height: 300px;
}

.dashboard-lite .histogram-container {
    gap: 1rem;
}

/* --- STATIC DASHBOARD FINAL POLISH --- */
.compliance-map-container {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto 0;
    pointer-events: none;
    /* Disable all interactivity */
    user-select: none;
    cursor: default;
    overflow: hidden;
}

.dashboard-wrapper {
    height: 620px !important;
    /* Fixed height to match image */
    overflow: hidden;
    display: flex;
}

.dashboard-main {
    overflow: hidden !important;
    /* Disable scroll */
}

/* Adjust map for static view */
.map-viz-container {
    background: #080808;
}

.world-map-img {
    opacity: 0.25;
    filter: invert(1) brightness(0.7);
}

/* Tooltip visible statically */
.map-dot[data-label="EU-NORTH-1"]::before {
    content: "EU-NORTH-1";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-none);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    white-space: nowrap;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: block !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Ensure bars match image colors */
.histogram-item:nth-child(1) .hist-bar {
    background: #ef4444 !important;
}

.histogram-item:nth-child(2) .hist-bar {
    background: #facc15 !important;
}

.histogram-item:nth-child(3) .hist-bar {
    background: #facc15 !important;
}

.histogram-item:nth-child(4) .hist-bar {
    background: #ef4444 !important;
}

.histogram-item:nth-child(5) .hist-bar {
    background: #22c55e !important;
}

/* Remove transition for static feel */
.hist-bar {
    transition: none !important;
}

/* --- FINAL STATIC LOCKDOWN --- */
.compliance-map-container {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: none !important;
    user-select: none !important;
}

.dashboard-wrapper {
    height: 620px !important;
    /* Fixed height to cut off lower part as requested */
    overflow: hidden !important;
    display: flex;
}

.dashboard-main {
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Stop internal animations only */
.map-dot::after,
.status-indicator,
.heart-pulse {
    animation: none !important;
}

/* Ensure original premium styles are used by removing the 'lite' overrides */
/* (The index.html structure has been restored to match the original premium dashboard) */

/* Ensure pulse elements are hidden since they shouldn't blink */
.map-dot::after {
    display: none !important;
}

/* Ensure live indicator is solid red as in image, no blinking */
.status-indicator.live {
    opacity: 1 !important;
}

/* Static tooltip should remain anchored and visible as per image */
.map-dot[data-label="EU-NORTH-1"]::before {
    display: block !important;
    opacity: 1 !important;
}


.sidebar-logo {
    font-size: 0.8rem !important;
    margin-bottom: 1.5rem !important;
}

.nav-item {
    font-size: 0.75rem !important;
    padding: 0.5rem !important;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem !important;
}

.header-right-lite {
    display: flex;
    align-items: center;
}

.search-bar-lite {
    background: #111;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    padding: 0.3rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--c-gray-dark);
    min-width: 120px;
}

.dashboard-lite .dashboard-main {
    padding: 1.5rem 2rem !important;
}

/* --- SECTION CONNECTORS (YELLOW LINE) --- */
.line-alignment-wrapper .container {
    z-index: auto !important;
}

.section-header .pill-dark {
    position: relative;
    align-self: flex-start;
}

.section-header .pill-dark::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    width: 2rem;
    height: 1px;
    background-color: var(--c-yellow);
    transform: translateY(-50%);
}



/* --- SYNTAX HIGHLIGHTING (PYTHON) --- */
.code-content .kw {
    color: #c586c0;
}

.code-content .func {
    color: #dcdcaa;
}

.code-content .str {
    color: #ce9178;
}

/* --- MARKETPLACE VERTICAL LAYOUT --- */
.publish-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

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

.marketplace-vertical-wrapper {
    position: relative;
    /* padding: 2.5rem 0 removed to avoid offset */
}

.marketplace-vertical-container {
    position: relative;
    height: 440px;
    /* Reduced from 480 */
    overflow-y: hidden;
    /* Control via buttons or scroll wheel */
    padding: 0 0.5rem;
    margin-top: 2.5rem;
    /* Match terminal top gap */
}

.vertical-control {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-yellow);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.vertical-control:hover {
    background: var(--c-yellow);
    color: black;
}

.vertical-control.up {
    top: -35px;
}

.vertical-control.down {
    bottom: -35px;
}

.vertical-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auditor-market-card.vertical {
    min-width: 100%;
    padding: 1rem 1.25rem;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.card-header-horizontal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auditor-market-card.vertical h4 {
    margin: 0;
    font-size: 0.95rem;
}

.auditor-market-card.vertical p {
    height: auto;
    font-size: 0.8rem;
    line-height: 1.3;
    opacity: 0.7;
    margin: 0;
}

.auditor-market-card.vertical .market-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-none);
    flex-shrink: 0;
}

/* --- MARKETPLACE: Framework Chips --- */
.marketplace-frameworks {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0 0.75rem;
    margin-top: 2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, black 95%, transparent);
    align-items: center;
}

.marketplace-frameworks::-webkit-scrollbar { display: none; }

.framework-chip {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 9999px;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.framework-chip:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.framework-chip.active {
    background: var(--c-yellow);
    color: #000;
    border-color: var(--c-yellow);
    font-weight: 700;
}

/* --- MARKETPLACE: Filter Summary --- */
.mp-filter-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.mp-filter-summary .clear-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mp-filter-summary .clear-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* --- MARKETPLACE: Auditor Carousel (single row) --- */
.marketplace-grid {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 1.25rem;
    margin-top: 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, black 94%, transparent);
}

.marketplace-grid::-webkit-scrollbar { display: none; }

.mp-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: opacity 0.35s ease, filter 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.mp-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.15);
}

.mp-card.dimmed {
    display: none;
}

.mp-card.highlighted {
    border-color: rgba(250,204,21,0.5);
    box-shadow: 0 0 20px rgba(250,204,21,0.08);
}

.mp-card.highlighted:hover {
    border-color: rgba(250,204,21,0.7);
}

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

.mp-card-name {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-white);
    flex: 1;
}

.mp-card-learn-more {
    margin-top: 0.75rem;
    padding: 0.45rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-yellow);
    background: none;
    border: 1px solid rgba(250,204,21,0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.mp-card-learn-more:hover {
    background: var(--c-yellow);
    color: #000;
    border-color: var(--c-yellow);
}

.mp-card-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #a1a1aa;
    margin: 0 0 0.5rem;
    flex: 1;
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-yellow);
    opacity: 0.7;
    margin-top: 0.5rem;
}

.mp-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.mp-pill {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(250,204,21,0.12);
    color: var(--c-yellow);
    white-space: nowrap;
}

/* --- MARKETPLACE: Detail Modal --- */
.mp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mp-modal-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.mp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(680px, 92vw);
    max-height: 85vh;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}

.mp-modal.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.mp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    background: #111;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    z-index: 1;
}

.mp-modal-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--c-white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mp-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.mp-modal-close:hover { color: #fff; }

.mp-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Modal: subtitle + description */
.mp-modal-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin: 0 0 0.75rem;
}

.mp-modal-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #a1a1aa;
    margin: 0 0 1.5rem;
}

/* Modal: section label (for fallback framework grid) */
.mp-modal-section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-yellow);
    margin: 0 0 0.75rem;
}

.mp-modal-fw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
}

.mp-modal-fw-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mp-modal-fw-item strong {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #fff;
}

.mp-modal-fw-desc {
    font-size: 0.65rem;
    color: #a1a1aa;
    line-height: 1.3;
}

.mp-modal-fw-region {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modal: flat compliance detail cards */
.mp-detail-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin-bottom: 0.75rem;
}

.mp-detail-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.mp-detail-fw {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
    background: var(--c-yellow);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mp-detail-clause {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.mp-detail-region {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-left: auto;
}

.mp-detail-section {
    margin-bottom: 0.75rem;
}

.mp-detail-section:last-child {
    margin-bottom: 0;
}

.mp-detail-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.mp-detail-label i { font-size: 0.75rem; }

.mp-detail-label--green {
    color: #4ade80;
}

.mp-detail-quote {
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.55);
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 0.75rem;
    margin: 0;
    font-style: italic;
}

.mp-detail-comply {
    font-size: 0.82rem;
    line-height: 1.55;
    color: #a1a1aa;
    margin: 0;
    padding-left: 0.1rem;
}

@media (max-width: 768px) {
    .mp-card {
        flex: 0 0 280px;
    }

    .mp-modal {
        width: 96vw;
        max-height: 90vh;
    }

    .mp-modal-fw-grid {
        grid-template-columns: 1fr;
    }
}


/* --- MARKETPLACE CAROUSEL --- */
.marketplace-carousel-wrapper {
    position: relative;
    margin-top: 4rem;
}

.marketplace-carousel-container {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-control {
    position: absolute;
    top: calc(50% + 1rem);
    /* Center relative to cards */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-yellow);
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.carousel-control:hover {
    background: var(--c-yellow);
    color: black;
    border-color: var(--c-yellow);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

@media (max-width: 1200px) {
    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }
}

.auditor-market-card {
    min-width: 320px;
    flex: 0 0 auto;
    padding: 2rem;
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-none);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    backdrop-filter: blur(20px);
    text-align: left;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.auditor-market-card:hover {
    background: rgba(25, 25, 25, 0.6);
    border-color: rgba(250, 204, 21, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(250, 204, 21, 0.05);
}

.market-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-none);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    background: rgba(250, 204, 21, 0.1) !important;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.market-icon svg {
    stroke: var(--c-yellow) !important;
}

.auditor-market-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.auditor-market-card p {
    font-size: 0.9rem;
    color: var(--c-gray);
    margin: 0;
    line-height: 1.4;
    height: 3em;
    overflow: hidden;
}

.market-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--c-yellow);
    opacity: 0.8;
}

.btn-market-deploy {
    margin-top: auto;
    background: transparent;
    border: 1px solid var(--c-yellow);
    color: var(--c-yellow);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-none);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-market-deploy:hover {
    background: var(--c-yellow);
    color: black;
}

/* Centered Code Layout */
.centered-code-container {
    max-width: 900px;
    margin: 0 auto;
}

.terminal-header-center {
    text-align: center;
    margin-bottom: 3rem;
}

/* --- INSIGHTS CAROUSEL --- */
.insights-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.insights-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.insights-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: rgba(250, 204, 21, 0.1);
    border-color: var(--c-yellow);
    color: var(--c-yellow);
}

.insight-card {
    flex: 0 0 320px;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-none);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.insight-card:hover {
    border-color: var(--c-gray-dark);
    transform: translateY(-4px);
    background: rgba(24, 24, 24, 0.8);
}

.insight-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid var(--c-border);
}

.insight-card:hover .insight-card-img {
    opacity: 0.9;
}

.insight-card-content {
    padding: 1.25rem;
}

.insight-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    color: var(--c-gray);
    text-transform: uppercase;
}

.insight-card-tag {
    color: var(--c-yellow);
}

.insight-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--c-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-card-desc {
    font-size: 0.9rem;
    color: var(--c-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.insights-cta-row {
    margin-top: 2rem;
    text-align: center;
}

/* Light Outline Button - Figma Design System */
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-m) var(--space-m);
    border: 1px solid var(--c-border-button);
    border-radius: var(--radius-none);
    background: transparent;
    color: var(--c-white);
    font-family: var(--font-mono);
    font-size: var(--fs-button);
    font-weight: 400;
    text-transform: uppercase;
    transition: var(--transition-mechanical);
    text-decoration: none;
    cursor: pointer;
}

.btn-outline-light:hover {
    background: var(--c-white);
    color: var(--c-neutral-800);
    border-color: var(--c-border-button);
}

/* Responsive */
@media (max-width: 768px) {
    .insights-carousel-wrapper {
        flex-direction: column;
    }

    .carousel-arrow {
        display: none;
    }

    /* Show one centered article on mobile instead of a partial-card carousel */
    .insights-carousel {
        overflow: visible;
        padding: 0;
        justify-content: center;
    }
    .insights-carousel .insight-card {
        flex: 0 0 100%;
        max-width: 360px;
        width: 100%;
    }
    .insights-carousel .insight-card:not(:first-of-type) {
        display: none;
    }
}/* ============================================
   CAREERS PAGE
   ============================================ */

.careers-hero {
    padding: 160px 0 100px;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
    text-align: center;
}

.careers-hero .subtitle {
    max-width: 640px;
    margin: 1.5rem auto 0;
    font-size: var(--fs-body-lg);
    color: var(--c-gray);
    line-height: 1.7;
}

/* Phosphor icon support for icon-mini */
i.icon-mini {
    color: var(--c-yellow);
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

/* Values grid override for careers */
.page-careers .grid-4 {
    gap: 1px;
}

/* Filter bar */
.careers-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #1a1a1a;
    border: 1px solid var(--c-border);
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* Job Listings */
.careers-listings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Job Accordion */
.job-accordion {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-none);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.job-accordion[open] {
    border-color: rgba(248, 214, 72, 0.3);
}

.job-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2rem;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease;
}

.job-summary::-webkit-details-marker {
    display: none;
}

.job-summary:hover {
    background: rgba(255, 255, 255, 0.04);
}

.job-summary-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.job-title {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-white);
    margin: 0;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-none);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--c-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-tag i {
    font-size: 14px;
    color: var(--c-gray);
}

.job-tag.tag-dept {
    color: var(--c-yellow);
    border-color: rgba(248, 214, 72, 0.2);
}

.job-tag.tag-dept i {
    color: var(--c-yellow);
}

.job-chevron {
    flex-shrink: 0;
    color: var(--c-yellow);
    transition: transform 0.3s ease;
}

.job-accordion[open] .job-chevron {
    transform: rotate(180deg);
}

/* Job Details (expanded) */
.job-details {
    padding: 0 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.job-section {
    margin-top: 2rem;
}

.job-section h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-yellow);
    margin-bottom: 1rem;
}

.job-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #a1a1aa;
}

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

.job-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a1a1aa;
}

.job-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--c-yellow);
    font-family: var(--font-mono);
    font-weight: 700;
}

.job-note {
    font-style: italic;
    color: var(--c-gray) !important;
    font-size: 0.9rem !important;
    border-left: 2px solid var(--c-yellow);
    padding-left: 1rem;
}

.job-details .btn-white-hero {
    margin-top: 2rem;
}

/* Responsive - Careers */
@media (max-width: 768px) {
    .careers-hero {
        padding: 120px 0 80px;
    }

    .job-summary {
        padding: 1.25rem;
    }

    .job-details {
        padding: 0 1.25rem 1.5rem;
    }

    .job-tags {
        gap: 0.375rem;
    }

    .job-tag {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

@media (max-width: 600px) {
    .page-careers .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .page-careers .grid-4 {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   LABS PAGE
   ============================================ */

.page-labs {
    overflow-x: hidden;
}

.labs-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, var(--c-black) 70%);
    text-align: center;
}

#labs-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
}

.labs-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.labs-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--c-white);
    margin-bottom: 1.5rem;
}

.labs-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--c-gray);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.labs-coming-soon {
    margin-bottom: 2.5rem;
}

.labs-coming-soon span {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--c-yellow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    display: inline-block;
}

.labs-coming-soon span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--c-yellow);
    animation: labs-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes labs-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Labs inline form (inside hero) */
.labs-form-wrap {
    max-width: 480px;
    width: 100%;
    margin-top: 1rem;
}

.labs-form-wrap .labs-cta-subtitle {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    color: var(--c-gray);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.labs-inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.labs-inline-form .input-field {
    width: 100%;
}

.labs-inline-form .btn-submit {
    width: 100%;
}

/* Responsive - Labs */
@media (max-width: 768px) {
    .labs-hero {
        padding: 120px 0 80px;
    }
}

/* =====================================================================
   EDITORIAL REDESIGN OVERRIDES
   Flips dark/brutalist defaults to a cream/serif editorial aesthetic.
   Keep below all earlier rules so cascade order ensures these win.
   ===================================================================== */

/* --- Typography: serif display headings --- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    line-height: 1.08;
}
h2 { font-weight: 300; }
h3 { font-weight: 400; line-height: 1.2; }
h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--c-ink);
    text-transform: none;
    letter-spacing: normal;
}
h1 em, h2 em, h3 em, h4 em {
    font-style: italic;
    color: var(--c-amber);
    font-weight: inherit;
}
p { color: var(--c-ink-mid); font-weight: 400; }
.subtitle, .lead, .text-lg { color: var(--c-ink-mid); }

/* --- Body & page background --- */
body {
    background-color: var(--c-cream);
    color: var(--c-ink);
}
body:not(.page-home) {
    background-color: var(--c-cream);
    background-image:
        linear-gradient(rgba(28, 25, 23, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 25, 23, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* --- Section background variants --- */
.bg-black,
.bg-gradient {
    background: var(--c-cream);
    color: var(--c-ink);
}
.bg-gradient h2 { color: var(--c-ink); }
.bg-gradient p { color: var(--c-ink-mid); }

#hero {
    background-color: var(--c-cream);
    background-image:
        linear-gradient(rgba(28, 25, 23, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 25, 23, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    box-shadow: none;
}
#hero-animation { opacity: 0.18; }

/* --- Navbar: cream glass with subtle border --- */
.navbar {
    background: rgba(250, 248, 244, 0.85);
    border: 1px solid var(--c-cream-dark);
    backdrop-filter: blur(12px);
}
.nav-text { color: var(--c-ink); font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.04em; }
.nav-link {
    color: var(--c-ink-mid);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 400;
}
.nav-link:hover, .nav-link.active { color: var(--c-ink); font-weight: 500; }
.nav-link-highlight { color: var(--c-amber) !important; }
.nav-link-highlight:hover { color: var(--c-ink) !important; }

.nav-cta-btn {
    background: var(--c-ink);
    color: var(--c-cream);
    border: 1px solid var(--c-ink);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 8px 18px;
    border-radius: 3px;
}
.nav-cta-btn:hover {
    background: transparent;
    color: var(--c-ink);
    border-color: var(--c-ink);
}
.nav-logo { filter: none; }
.nav-toggle { border: 1px solid var(--c-cream-dark); }
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after { background-color: var(--c-ink); }

.nav-dot { background-color: var(--c-ink); mix-blend-mode: normal; }

/* --- Pills / Tags --- */
.pill {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    border-radius: 20px;
    padding: 4px 12px;
    text-transform: uppercase;
    font-weight: 500;
}
.pill-dark {
    background: var(--c-amber-pale);
    color: var(--c-amber);
    border: 1px solid var(--c-amber);
}
.pill-light {
    background: var(--c-cream-mid);
    color: var(--c-ink-mid);
    border: 1px solid var(--c-cream-dark);
}

/* --- Hero (homepage) --- */
.hero-container .hero-title,
.hero-title-stacked .hero-title-main,
.hero-title-stacked .hero-title-suffix {
    font-family: var(--font-display);
    font-weight: 300;
    color: var(--c-ink);
}
.hero-container .hero-title-suffix,
.hero-title-stacked .hero-title-suffix {
    color: var(--c-amber);
    font-style: italic;
}
.hero-container .subtitle,
.hero-right .subtitle { color: var(--c-ink-mid); }

.hero-btn {
    background: var(--c-ink);
    color: var(--c-cream);
    border: 1px solid var(--c-ink);
}
.hero-btn:hover { background: transparent; color: var(--c-ink); }

.hero-label {
    color: var(--c-amber);
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.18em;
}
.hero-desc { color: var(--c-ink-mid); }

/* --- Buttons (primary/secondary/outline/white-hero/nav) --- */
.btn-primary,
.btn-white-hero {
    background: var(--c-ink);
    color: var(--c-cream);
    border: 1px solid var(--c-ink);
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.01em;
    border-radius: 4px;
}
.btn-primary:hover,
.btn-white-hero:hover {
    background: transparent;
    color: var(--c-ink);
    border-color: var(--c-ink);
}
.btn-secondary,
.btn-outline,
.btn-nav {
    background: transparent;
    color: var(--c-ink);
    border: 1px solid var(--c-ink);
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.01em;
    border-radius: 4px;
}
.btn-secondary:hover,
.btn-outline:hover,
.btn-nav:hover {
    background: var(--c-ink);
    color: var(--c-cream);
}
.btn-text-link {
    color: var(--c-ink-mid);
    border-bottom: 1px solid var(--c-cream-dark);
    font-family: var(--font-sans);
    font-weight: 400;
}
.btn-text-link:hover { color: var(--c-ink); border-color: var(--c-ink); }

.btn-submit {
    background: var(--c-ink);
    color: var(--c-cream);
    text-transform: none;
    font-weight: 500;
    border-radius: 4px;
    font-family: var(--font-sans);
}
.btn-submit:hover { background-color: var(--c-ink-mid); }

/* --- Form inputs --- */
.input-field {
    background: var(--c-cream);
    border: 1px solid var(--c-cream-dark);
    color: var(--c-ink);
    border-radius: 4px;
}
.input-field:focus {
    border-color: var(--c-amber);
    background: var(--c-cream);
}
.input-field::placeholder { color: var(--c-ink-light); }

/* --- Cards (mechanism / dark / insights) --- */
.card { border-radius: 4px; }

.mechanism-card {
    background: var(--c-cream-mid);
    background-image: none;
    border: 1px solid var(--c-cream-dark);
    border-left: 3px solid var(--c-amber);
}
.mechanism-card:hover {
    background: var(--c-cream-dark);
    background-image: none;
    border-color: var(--c-amber);
}
.mechanism-card h4 {
    color: var(--c-ink);
    font-family: var(--font-display);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.card-dark {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
}
.card-dark h3 {
    color: var(--c-ink);
    font-family: var(--font-display);
    font-weight: 400;
}
.icon-mini { color: var(--c-amber); }

.page-insights .card,
.posts-grid .card {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
}
.page-insights .card:hover,
.posts-grid .card:hover {
    background: var(--c-cream-dark);
    border-color: var(--c-amber);
}
.card-img-container { border-bottom: 1px solid var(--c-cream-dark); }
.card-meta { color: var(--c-ink-light); }
.card-tag { color: var(--c-amber); }
.card-title { color: var(--c-ink); font-family: var(--font-display); font-weight: 400; }
.card-desc { color: var(--c-ink-mid); }

.insight-card,
.insight-card-link .insight-card {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
}
.insight-card:hover { background: var(--c-cream-dark); border-color: var(--c-amber); }
.insight-card-tag { color: var(--c-amber); }
.insight-card-title { color: var(--c-ink); font-family: var(--font-display); font-weight: 400; }
.insight-card-desc, .insight-card-meta { color: var(--c-ink-mid); }

/* --- FAQ accordion --- */
.faq-accordion {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
    border-radius: 4px;
}
.faq-accordion summary {
    background: transparent;
    color: var(--c-ink);
    font-family: var(--font-display);
    font-weight: 400;
}
.faq-accordion summary:hover { background: var(--c-cream-dark); }
.faq-accordion[open] { border-color: var(--c-amber); }
.faq-accordion p { color: var(--c-ink-mid); }
.faq-chevron { color: var(--c-ink-mid); }

/* --- CTA section --- */
.cta-section {
    background: var(--c-cream-mid);
    color: var(--c-ink);
}
.cta-section h2,
.cta-title { color: var(--c-ink); font-family: var(--font-display); font-weight: 300; }
.cta-subtitle, .cta-section p { color: var(--c-ink-mid); }
.cta-stat-val { color: var(--c-amber); }
.cta-stat-label { color: var(--c-ink-mid); }

/* --- Footer --- */
footer {
    background: var(--c-cream-mid);
    color: var(--c-ink-mid);
    border-top: 1px solid var(--c-cream-dark);
}
footer a { color: var(--c-ink-mid); }
footer a:hover { color: var(--c-ink); }
.footer-badge { background: var(--c-cream); color: var(--c-ink-mid); border: 1px solid var(--c-cream-dark); }

/* --- Highlight --- */
.highlight { color: var(--c-amber); font-style: italic; font-weight: inherit; }

/* --- Solution / industry pages --- */
.solution-header-wrapper h2,
.solution-header-wrapper h3 { color: var(--c-ink); }
.solution-header-wrapper .subtitle { color: var(--c-ink-mid); }

/* --- Hero image / shadows on cream --- */
.hero-image-container {
    box-shadow: 0 25px 50px -12px rgba(28, 25, 23, 0.12);
    border: 1px solid var(--c-cream-dark);
}

/* --- Grids: subtle dark dividers --- */
.grid-3, .grid-4 {
    border: 1px solid var(--c-cream-dark);
    background-color: transparent;
}

/* --- Article body --- */
.article-content { color: var(--c-ink); }
.article-content p { color: var(--c-ink-mid); }
.article-content a { color: var(--c-amber); }
.article-content blockquote {
    border-left: 3px solid var(--c-amber);
    color: var(--c-ink-mid);
}

/* --- Table-like rows / partner rows / role rows --- */
.role-item, .partner-item {
    border-color: var(--c-cream-dark);
}

/* --- Dropdown menus (Solutions / Industries) --- */
.dropdown-menu {
    background: var(--c-cream);
    border: 1px solid var(--c-cream-dark);
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(28, 25, 23, 0.08);
}
.dropdown-menu::before {
    background: var(--c-cream);
    border-top: 1px solid var(--c-cream-dark);
    border-left: 1px solid var(--c-cream-dark);
}
.dropdown-link {
    color: var(--c-ink-mid);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 400;
}
.dropdown-link:hover {
    color: var(--c-ink);
    background: var(--c-amber-pale);
}

/* --- Step visual / code blocks (homepage) --- */
.step-visual {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
    color: var(--c-ink);
}

/* --- CTA section: subtle cream gradient instead of dark radial --- */
.cta-section {
    background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-cream-mid) 100%);
    color: var(--c-ink);
}
.form-card {
    background: var(--c-cream);
    border: 1px solid var(--c-cream-dark);
    backdrop-filter: none;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
}
.input-label {
    font-family: var(--font-sans);
    color: var(--c-ink-mid);
}

/* --- Carousel controls --- */
.carousel-control {
    background: var(--c-cream);
    border: 1px solid var(--c-cream-dark);
    color: var(--c-ink);
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.08);
    backdrop-filter: none;
}
.carousel-control:hover {
    background: var(--c-ink);
    color: var(--c-cream);
    border-color: var(--c-ink);
}
.auditor-market-card {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
    backdrop-filter: none;
}

/* --- Mobile nav menu (when expanded) --- */
@media (max-width: 768px) {
    .nav-links {
        background: var(--c-cream);
        border: 1px solid var(--c-cream-dark);
    }
}

/* --- Generic .blocked-text retains red strikethrough but lighter base --- */
.blocked-text { color: var(--c-ink-light); }

/* --- Embedded product mock cards (chat / passport popup):
       intentionally kept dark — they're product-UI screenshots inset on cream.
       Just refine the shadow so they read cleanly against the cream page. --- */
.sovereign-chat-card,
.passport-card-popup {
    box-shadow: 0 24px 60px -12px rgba(28, 25, 23, 0.18);
}

/* --- Misc dark surfaces inside marketing flow that should be cream --- */
.bg-gradient,
.bg-black {
    background: var(--c-cream);
}

/* --- Hero animation backdrop on home: keep the canvas, drop dark ink-shadow --- */
#hero { box-shadow: none; }

/* --- Generic text utility highlights --- */
.highlight-yellow, .text-yellow { color: var(--c-amber); }

/* =====================================================================
   LIGHT VARIANTS — embedded product UI mocks
   The homepage embeds 4 dark product UIs (passport popup, sovereign chat,
   audit chain builder, observability dashboard) plus the numbered scrolly
   text panels. Flip all to cream so they fit the editorial palette.
   ===================================================================== */

/* --- AI Passport popup card --- */
.passport-card-popup {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
    box-shadow: 0 24px 60px -12px rgba(28, 25, 23, 0.12);
}
.passport-card-popup,
.passport-card-popup * {
    --pp-fg: var(--c-ink);
    --pp-fg-mid: var(--c-ink-mid);
    --pp-fg-light: var(--c-ink-light);
}
.pp-card-question,
.pp-card-answer-strong,
.pp-model-name,
.pp-card-question,
.pp-tier2-toggle:hover .pp-tier2-toggle-action,
.pp-auditor-detail-name,
.pp-detail-question,
.pp-compliance-page-title,
.pp-compliance-clause,
.pp-compliance-how-text,
.pp-verify-title,
.pp-step-title { color: var(--c-ink); }
.pp-card-subtitle,
.pp-card-answer,
.pp-operator,
.pp-model-id,
.pp-location,
.pp-tier-title,
.pp-card-stats,
.pp-tier2-toggle-title,
.pp-tier2-toggle-action,
.pp-compliance-label,
.pp-auditor-detail-category,
.pp-detail-subtitle,
.pp-metric-label,
.pp-compliance-page-subtitle,
.pp-compliance-section-label,
.pp-compliance-auditor-tag,
.pp-verify-subtitle,
.pp-verify-intro { color: var(--c-ink-mid); }
.pp-card-header,
.pp-card-body,
.pp-card-footer,
.pp-tier2-toggle,
.pp-section,
.pp-detail-card,
.pp-compliance-section,
.pp-compliance-card,
.pp-compliance-clause-card,
.pp-compliance-how-card,
.pp-verify-card,
.pp-step-card,
.pp-auditor-detail,
.pp-metric-card {
    background: var(--c-cream);
    border-color: var(--c-cream-dark);
    color: var(--c-ink);
}
.pp-status-badge {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.3);
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}
.pp-status-check { color: #16a34a; }
.pp-tier-title { color: var(--c-ink-light); }
.pp-tier-badge {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

/* Each question is a recessed white card on the cream-mid wrapper */
.pp-auditor-card {
    background: var(--c-cream);
    border: 1px solid var(--c-cream-dark);
    box-shadow: 0 1px 0 rgba(28, 25, 23, 0.02);
}
.pp-auditor-card:hover {
    background: var(--c-cream);
    border-color: var(--c-amber);
}
.pp-card-subtitle, .pp-card-answer { opacity: 1; color: var(--c-ink-mid); }
.pp-stat-item { opacity: 1; color: var(--c-ink-light); }
.pp-tier2-toggle { border-top: 1px dashed var(--c-cream-dark); }
.pp-score-bar { background: var(--c-cream-dark); }

/* --- Sovereign Chat card --- */
.sovereign-chat-card {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
    box-shadow: 0 24px 60px -12px rgba(28, 25, 23, 0.12);
}
.chat-header {
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-cream-dark);
}
.chat-title { color: var(--c-ink); }
.chat-subtitle { color: var(--c-ink-mid); }
.help-btn {
    color: var(--c-ink-mid);
    border: 1px solid var(--c-cream-dark);
}
.chat-controls-row {
    border-bottom: 1px solid var(--c-cream-dark);
}
.model-select {
    background: var(--c-cream);
    color: var(--c-ink);
    border: 1px solid var(--c-cream-dark);
}
.chat-message,
.chat-input-area,
.chat-input,
.chat-toolbar,
.chat-footer {
    background: var(--c-cream);
    color: var(--c-ink);
    border-color: var(--c-cream-dark);
}
.chat-input::placeholder { color: var(--c-ink-light); }

/* --- Audit Chain Builder canvas --- */
.canvas-editor {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
    box-shadow: 0 24px 60px -12px rgba(28, 25, 23, 0.12);
}
.canvas-sidebar {
    background: var(--c-cream);
    border-right: 1px solid var(--c-cream-dark);
}
.canvas-sidebar-logo { border-bottom: 1px solid var(--c-cream-dark); }
.canvas-logo-img { filter: none; }
.canvas-nav-item { color: var(--c-ink-light); }
.canvas-nav-item:hover {
    color: var(--c-ink);
    background: var(--c-cream-dark);
}
.canvas-nav-item.active {
    color: var(--c-amber);
    background: var(--c-amber-pale);
}
.canvas-header {
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-cream-dark);
}
.canvas-title { color: var(--c-ink-mid); }
.canvas-status { color: var(--c-ink-light); }
.status-dot { background: var(--c-cream-dark); }
.canvas-grid {
    background:
        radial-gradient(circle at 1px 1px, rgba(28,25,23,0.06) 1px, transparent 0);
    background-size: 20px 20px;
}
.canvas-node {
    background: var(--c-cream);
    border: 1px solid var(--c-cream-dark);
}
.canvas-node:hover {
    border-color: var(--c-amber);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.15);
}
.node-icon-wrap {
    background: var(--c-amber-pale);
    color: var(--c-amber);
}
.node-label { color: var(--c-ink); }
.node-version { color: var(--c-ink-light); }
.canvas-footer {
    background: var(--c-cream);
    border-top: 1px solid var(--c-cream-dark);
}
.canvas-hint { color: var(--c-ink-light); }
.canvas-connector svg path,
.canvas-connector svg line { stroke: var(--c-ink-mid); }

/* --- Observability / Command Center dashboard --- */
.dashboard-card,
.dashboard-wrapper,
.dashboard-main,
.dashboard-grid,
.dashboard-lite,
.dashboard-lite .dashboard-main,
.dashboard-lite .dashboard-grid,
.dashboard-lite .map-card,
.dashboard-lite .histogram-container {
    background: var(--c-cream-mid);
}
.dashboard-wrapper { box-shadow: 0 24px 60px -12px rgba(28, 25, 23, 0.12); border: 1px solid var(--c-cream-dark); }
.dashboard-main { background: var(--c-cream); }
.dashboard-sidebar {
    background: var(--c-cream-mid);
    border-right: 1px solid var(--c-cream-dark);
}
.sidebar-logo-img { filter: none; }
.workspace-pill {
    background: var(--c-cream);
    border: 1px solid var(--c-cream-dark);
    color: var(--c-ink);
}
.workspace-dot {
    background: var(--c-amber);
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.45);
}
.nav-section-title { color: var(--c-ink-light); }
.nav-item { color: var(--c-ink-mid); }
.nav-item:hover, .nav-item.active {
    background: var(--c-cream-dark);
    color: var(--c-ink);
}
.nav-item.active {
    background: var(--c-amber-pale);
    color: var(--c-amber);
}
.dash-title { color: var(--c-ink); }
.dash-tabs {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
}
.dash-tab { color: var(--c-ink-mid); }
.dash-tab.active {
    background: var(--c-cream);
    color: var(--c-ink);
}
.search-bar,
.date-picker {
    background: var(--c-cream);
    border: 1px solid var(--c-cream-dark);
    color: var(--c-ink-mid);
}
.search-bar input { color: var(--c-ink); }
.search-bar input::placeholder { color: var(--c-ink-light); }
.dash-card {
    background: var(--c-cream);
    border: 1px solid var(--c-cream-dark);
}
.card-label { color: var(--c-ink-mid); }
.card-value { color: var(--c-ink); }
.trend-up { color: #16a34a; }
.trend-down { color: #dc2626; }

.map-card,
.map-interface {
    background: var(--c-cream);
    border: 1px solid var(--c-cream-dark);
}
.map-top-bar {
    background: var(--c-cream-mid);
    border-bottom: 1px solid var(--c-cream-dark);
    color: var(--c-ink-mid);
}
.world-map-img {
    filter: invert(0.92) hue-rotate(180deg) saturate(0.6);
    opacity: 0.55;
    mix-blend-mode: multiply;
}
.map-viz-container {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
    border-radius: 6px;
    overflow: hidden;
}

/* --- Scrolly text panels (numbered "01 / Confidential" cards) --- */
.text-panel {
    background: var(--c-cream-mid);
    background-image: none;
    border: 1px solid var(--c-cream-dark);
}
.text-panel.active {
    background: var(--c-cream-mid);
    background-image: none;
    border-color: var(--c-amber);
    box-shadow: 0 12px 32px -8px rgba(28, 25, 23, 0.12);
}
.text-panel .step-num {
    color: var(--c-amber);
    font-family: var(--font-sans);
    font-weight: 600;
}
.text-panel .step-icon { color: var(--c-amber); }
.text-panel h3 {
    color: var(--c-ink);
    font-family: var(--font-display);
    font-weight: 400;
}
.text-panel .panel-subtitle { color: var(--c-amber); font-style: italic; }
.text-panel p { color: var(--c-ink-mid); }

/* =====================================================================
   PAGE-LEVEL HEROES — flip to cream
   The .hero-solution rule lives in inline <style> blocks on each solution
   page (`background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.9))`)
   which load AFTER styles.css and win the cascade — !important overrides
   without editing every solution HTML.
   ===================================================================== */

.hero-solution,
.hero-industry,
.careers-hero,
.labs-hero {
    background: var(--c-cream) !important;
    background-image:
        linear-gradient(rgba(28, 25, 23, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 25, 23, 0.04) 1px, transparent 1px) !important;
    background-size: 80px 80px !important;
    color: var(--c-ink);
}
.hero-solution .hero-title,
.hero-industry .hero-title,
.careers-hero .hero-title,
.labs-hero .labs-title {
    color: var(--c-ink);
    font-family: var(--font-display);
    font-weight: 300;
}
.hero-solution .subtitle,
.hero-industry .subtitle,
.careers-hero .subtitle,
.labs-hero .labs-subtitle { color: var(--c-ink-mid); }
.labs-coming-soon span,
.labs-coming-soon span::after { color: var(--c-amber); background: var(--c-amber); }

/* --- Article TOC sidebar (insights/articles) --- */
.toc-sidebar {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
}
.toc-title {
    color: var(--c-amber);
    font-family: var(--font-sans);
    font-weight: 500;
}
.toc-link { color: var(--c-ink-mid); }
.toc-link:hover, .toc-link.active { color: var(--c-ink); font-weight: 500; }

/* --- Article header / category eyebrow --- */
.article-header { border-bottom: 1px solid var(--c-cream-dark); }
.article-category { color: var(--c-amber); font-family: var(--font-sans); font-weight: 500; }

/* --- Stats bar below solution-page hero (43% / 26% / 87% etc.) --- */
.stats-bar, .stats-bar .stat {
    background: var(--c-cream);
    border-color: var(--c-cream-dark);
}
.stats-bar .stat-value, .stat-value, .stat-num { color: var(--c-amber); }
.stats-bar .stat-label, .stat-label { color: var(--c-ink-mid); }

/* --- Insights search bar + filter pills --- */
.control-bar {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
    border-radius: 4px;
}
.search-container { border-right: 1px solid var(--c-cream-dark); }
.search-icon { color: var(--c-amber); }
.search-input {
    color: var(--c-ink);
    font-family: var(--font-sans);
}
.search-input::placeholder { color: var(--c-ink-light); }
.filter-btn {
    color: var(--c-ink-mid);
    border-right: 1px solid var(--c-cream-dark);
    text-transform: none;
    letter-spacing: 0.01em;
}
.filter-btn:hover {
    color: var(--c-ink);
    background: var(--c-cream-dark);
}
.filter-btn.active {
    color: var(--c-ink);
    background: var(--c-cream);
    font-weight: 500;
}
.filter-btn.active::after { background: var(--c-amber); }
.filter-header { font-family: var(--font-display); font-weight: 300; color: var(--c-ink); }

/* =====================================================================
   MOBILE: product mocks should fill container
   The passport/chat/canvas/dashboard mocks have desktop max-widths and
   inline wrapper constraints. On mobile let them fill the viewport
   gutters; sidebar of the dashboard collapses to a horizontal strip.
   ===================================================================== */

@media (max-width: 768px) {
    .sovereign-chat-card,
    .passport-card-popup,
    .canvas-editor,
    .agent-builder-screen,
    .dashboard-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* The passport sits inside an inline-styled wrapper with max-width:80%
       and margin-left:auto — beat both with !important */
    .passport-card-popup,
    [class*="passport"] > div[style*="max-width"] {
        max-width: 100% !important;
        margin-left: 0 !important;
    }
    .pricing-callout-icon ~ * .passport-card-popup,
    div[style*="max-height:480px"] {
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    /* Dashboard: stack sidebar on top, main content below, allow scrollable
       inner content rather than overflowing the page */
    .dashboard-wrapper {
        flex-direction: column;
        height: auto !important;
    }
    .dashboard-sidebar {
        width: 100% !important;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--c-cream-dark);
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        overflow-x: auto;
    }
    .dashboard-sidebar > * { flex-shrink: 0; }
    .dashboard-main {
        padding: 1rem;
        overflow-x: auto;
    }
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    .dash-card.span-2 { grid-column: span 1 !important; }

    /* Agent builder: stack sidebar above main */
    .agent-builder-wrapper {
        flex-direction: column;
        min-height: auto !important;
    }

    /* Canvas editor: collapse to vertical layout */
    .canvas-wrapper { flex-direction: column; }
    .canvas-sidebar {
        width: 100%;
        flex-direction: row;
        padding: 0.5rem 0.75rem;
        border-right: none;
        border-bottom: 1px solid var(--c-cream-dark);
    }
    .canvas-sidebar-nav { flex-direction: row; gap: 0.5rem; }

    /* Sovereign chat: keep vertical, just full-width */
    .sovereign-chat-card { margin: 0 !important; }

    /* Architecture diagram: hide on mobile.
       The SVG uses fixed viewBox coordinates and even with scale + overflow
       tweaks, labels clip past the viewport. The three numbered text
       panels below carry the same information, so the diagram is
       redundant on small screens. */
    .scrolly-diagram,
    .architecture-diagram {
        display: none !important;
    }
    .scrolly-main { overflow: visible !important; }
    .scrolly-section .container { overflow: visible !important; }

}

/* Use the same 900px breakpoint as the original mobile rules so these
   overrides win regardless of which query a phone hits. */
@media (max-width: 900px) {
    /* Check icons: existing rule blows them up to 48px green-glow.
       Keep reasonable size + switch to amber. */
    .check-icon {
        width: 28px !important;
        height: 28px !important;
        color: var(--c-amber) !important;
        filter: none !important;
    }
    .check-item h4 {
        font-family: var(--font-display) !important;
        font-weight: 400 !important;
        letter-spacing: normal !important;
        font-size: 1.15rem !important;
    }
    .check-item {
        padding: 0 1.25rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .check-item p {
        opacity: 1 !important;
        color: var(--c-ink-mid);
        max-width: 100% !important;
        width: 100% !important;
        font-size: 1rem !important;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }
    .check-item > * { max-width: 100%; box-sizing: border-box; }

    /* Mobile dropdown: force inline submenu, full-width inside the panel,
       and beat the desktop :hover transform which mobile browsers fire on
       tap (was shifting Solutions left by translateX(-50%)). */
    .dropdown-menu,
    .nav-item-dropdown:hover .dropdown-menu,
    .nav-item-dropdown.is-open .dropdown-menu {
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 0.5rem 1rem !important;
    }
    .dropdown-menu::before { display: none !important; }
    .dropdown-link {
        white-space: normal !important;
        text-align: left !important;
        padding-left: 0 !important;
        transform: none !important;
    }
}

/* =====================================================================
   MOBILE FIXES — applied last so they win the cascade.
   Targets the editorial cream/serif theme on phones.
   ===================================================================== */

/* Global safety: never let a stray oversized child cause horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 968px) {
    /* The home page uses scroll-snap with every section forced to 100vh.
       That's a desktop conceit — on phones it cuts content off. Let
       sections flow naturally. */
    body.page-home {
        overflow-y: visible;
        scroll-snap-type: none;
        height: auto;
    }
    .page-home section,
    .page-home section.bg-black,
    .page-home section.bg-gradient {
        min-height: auto !important;
        scroll-snap-align: none;
        padding: 4rem 1.25rem !important;
    }
    .hero-container {
        min-height: auto;
    }

    /* Drop the 34px reservation for an announcement bar that no longer
       exists. Re-anchor the navbar to the top. */
    body { padding-top: 0; }
    .navbar {
        top: 0.75rem;
        width: calc(100% - 1.5rem);
    }

    /* Mobile drawer (768–968px window): editorial cream, dark text.
       The legacy rule paints it rgba(10,10,10,0.98); only the 768px
       override flipped it to cream. Cover the full mobile range. */
    .nav-links {
        background: var(--c-cream) !important;
        border-left: 1px solid var(--c-cream-dark) !important;
        color: var(--c-ink);
    }
    .nav-links .nav-link,
    .nav-links .dropdown-link {
        color: var(--c-ink-mid);
        border-bottom-color: var(--c-cream-dark) !important;
    }
    .nav-links .nav-link.has-dropdown::after { color: var(--c-ink-mid); }
    .nav-links .nav-link:hover,
    .nav-links .nav-link.active { color: var(--c-ink); }
    .nav-links .nav-cta-btn {
        background: var(--c-ink);
        color: var(--c-cream);
        border-color: var(--c-ink);
    }
    .nav-overlay { background: rgba(28, 25, 23, 0.35); }

    /* Larger tap targets on the hamburger / nav links */
    .nav-toggle { width: 40px; height: 40px; }
    .nav-links .nav-link { padding: 0.9rem 0; min-height: 44px; }
}

@media (max-width: 768px) {
    /* Stack 4-up card grids well before 600px */
    .grid-4 {
        grid-template-columns: 1fr 1fr !important;
    }
    .container,
    .page-home .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Editorial display type — keep it elegant but not gigantic on phones */
    h1 { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.12; }
    h2 { font-size: clamp(1.6rem, 7vw, 2.25rem); line-height: 1.15; }
    h3 { font-size: clamp(1.2rem, 5.5vw, 1.5rem); }
    .subtitle, .lead, .text-lg { font-size: 1rem; line-height: 1.7; }

    /* Long words / inline code shouldn't push the layout sideways */
    h1, h2, h3, h4, p, .subtitle, .lead {
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    /* Hero: trim the top reservation and big bottom pad on small screens */
    .hero-container {
        padding-top: 18vh;
        padding-bottom: 4vh;
    }
    .hero-container .subtitle { font-size: 1.05rem; max-width: 100%; }
    .hero-btns .btn-white-hero,
    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* CTA section — tighten the form card */
    .cta-section { padding: 4rem 1.25rem !important; }
    .form-card { padding: 1.5rem !important; }

    /* Dropdowns inside the mobile drawer — keep them readable */
    .nav-links .dropdown-menu { padding-left: 0.75rem; }

    /* Footer: stack columns, give breathing room */
    footer .container { padding: 2rem 1.25rem !important; }

    /* Observability dashboard: trim to filters + 3 stat cards on mobile.
       Sidebar, header tabs, map and histogram are too dense to read at
       phone width. */
    .dashboard-wrapper.dashboard-lite > .canvas-sidebar,
    .dashboard-wrapper.dashboard-lite .dashboard-header .header-top,
    .dashboard-wrapper.dashboard-lite .dash-card.map-card,
    .dashboard-wrapper.dashboard-lite .dash-card.histogram-card {
        display: none !important;
    }
    .dashboard-wrapper.dashboard-lite .dashboard-header {
        padding: 1rem !important;
        border-bottom: none !important;
    }
    .dashboard-wrapper.dashboard-lite .header-filters {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }
    .dashboard-wrapper.dashboard-lite .search-bar,
    .dashboard-wrapper.dashboard-lite .date-picker {
        width: 100% !important;
    }
    .dashboard-wrapper.dashboard-lite .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 1rem 1rem !important;
    }
    .dashboard-wrapper.dashboard-lite .dash-card.stat-card {
        padding: 1.5rem !important;
        text-align: center;
    }

    /* Platform tabs (Verifiable Inference / Confidential Computing /
       Private Fine-Tuning / Policy SDK): keep the desktop figure layout
       intact and just shrink it as one unit. CSS `zoom` (now part of the
       CSS spec, supported across modern browsers) is the cleanest way to
       do this — unlike transform: scale it actually changes layout box
       size so there's no leftover space below. */
    .platform-tab-panel .platform-tab-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .platform-tab-panel .platform-tab-content > div:last-child {
        zoom: 0.55;
        margin: 0 auto !important;
    }

    /* Undo the generic max-width:100% / column-stacking rules from the
       earlier mobile block so these mocks render with their desktop
       dimensions before zoom scales them down. */
    .platform-tab-panel .passport-card-popup,
    .platform-tab-panel .agent-builder-screen,
    .platform-tab-panel .canvas-editor,
    .platform-tab-panel .ptab-visual {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
    }
    .platform-tab-panel .agent-builder-wrapper,
    .platform-tab-panel .canvas-wrapper {
        flex-direction: row !important;
        min-height: 420px !important;
    }
    .platform-tab-panel .canvas-sidebar {
        width: auto !important;
        flex-direction: column !important;
        border-right: 1px solid var(--c-cream-dark) !important;
        border-bottom: none !important;
        padding: 0.75rem 0.5rem !important;
        overflow: visible !important;
    }
    .platform-tab-panel .canvas-sidebar-nav {
        flex-direction: column !important;
    }
    .platform-tab-panel .ab-sidebar {
        width: 52px !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0.75rem 0 !important;
        border-right: 1px solid var(--c-cream-dark) !important;
        border-bottom: none !important;
        flex-shrink: 0 !important;
    }
    .platform-tab-panel .ab-sidebar-logo {
        margin-bottom: 1.25rem !important;
        margin-right: 0 !important;
    }
    .platform-tab-panel .ab-sidebar-nav {
        flex-direction: column !important;
        gap: 0.25rem !important;
    }
    .platform-tab-panel .ab-role-grid {
        overflow-x: visible !important;
        flex-wrap: nowrap !important;
    }
    .platform-tab-panel .ab-role-card {
        min-width: 0 !important;
        flex: 1 1 0 !important;
    }

    /* Inline-styled passport wrapper uses max-width:80% on desktop; let
       it fill its panel before being scaled. */
    .platform-tab-panel .platform-tab-content > div:last-child > div[style*="max-width:80%"] {
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    /* Fine-Tuning metrics: keep the 2x2 desktop grid (the earlier mobile
       rule collapsed it to a single column). */
    .platform-tab-panel .ptab-metrics-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Slightly smaller zoom on the very narrow phones */
@media (max-width: 480px) {
    .platform-tab-panel .platform-tab-content > div:last-child {
        zoom: 0.45;
    }
}

/* =====================================================================
   CAREERS PAGE — editorial overrides
   The careers page kept its dark-theme rules (filter bar + job
   accordions) and they read poorly on cream: black stripe behind the
   filter buttons, near-invisible borders on the role cards.
   ===================================================================== */
.careers-filter-bar {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
    border-radius: 4px;
}
.careers-filter-bar .filter-btn {
    border-right: 1px solid var(--c-cream-dark);
    color: var(--c-ink-mid);
}
.careers-filter-bar .filter-btn:hover {
    background: var(--c-cream-dark);
    color: var(--c-ink);
}
.careers-filter-bar .filter-btn.active {
    background: var(--c-cream);
    color: var(--c-ink);
    font-weight: 500;
}

.job-accordion {
    background: var(--c-cream-mid);
    border: 1px solid var(--c-cream-dark);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}
.job-accordion:hover {
    border-color: var(--c-ink-light);
}
.job-accordion[open] {
    border-color: var(--c-amber);
    background: var(--c-cream);
}
.job-summary:hover {
    background: var(--c-cream-dark);
}
.job-title {
    color: var(--c-ink);
    font-family: var(--font-display);
    font-weight: 400;
}
.job-tag {
    background: var(--c-cream);
    border: 1px solid var(--c-cream-dark);
    color: var(--c-ink-mid);
}
.job-tag i { color: var(--c-ink-mid); }
.job-tag.tag-dept {
    background: var(--c-amber-pale);
    color: var(--c-amber);
    border-color: var(--c-amber);
}
.job-tag.tag-dept i { color: var(--c-amber); }
.job-chevron { color: var(--c-ink-mid); }
.job-accordion[open] .job-chevron { color: var(--c-amber); }
.job-details { border-top: 1px solid var(--c-cream-dark); }
.job-section h4 { color: var(--c-ink); }
.job-section p,
.job-list li { color: var(--c-ink-mid); }

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
    .page-home section,
    section { padding: 3rem 1rem !important; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    .navbar { padding: 0.6rem 1rem; }
    .nav-text { font-size: 0.85rem; }
    .pill { font-size: 0.65rem; padding: 3px 10px; }

    /* Cream-mid card hero label etc shouldn't shrink-wrap awkwardly */
    .hero-label { font-size: 0.7rem; letter-spacing: 0.14em; }
}
