/* --- VARIABLES & RESET --- */
/* Lucid Computing Design System - Synced from Figma */
:root {
    /* Brand Colors */
    --c-brand: #f8d648;
    --c-brand-medium: #ebde9f;
    --c-brand-light: #e9e2c5;

    /* Neutral Palette (Dark Theme) */
    --c-neutral-800: #111111;
    --c-neutral-700: #232323;
    --c-neutral-600: #373737;
    --c-neutral-500: #727272;
    --c-neutral-400: #bbbcbf;
    --c-neutral-300: #f2f2f2;
    --c-neutral-200: #d9d9d9;
    --c-neutral-100: #ffffff;

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

    /* Legacy Aliases (for backward compatibility) */
    --c-black: var(--c-neutral-800);
    --c-dark: #1a1a1a;
    --c-card: var(--c-neutral-800);
    --c-white: var(--c-neutral-100);
    --c-gray: var(--c-neutral-400);
    --c-gray-dark: var(--c-neutral-600);
    --c-border: rgba(255, 255, 255, 0.15);
    --c-border-button: #6d6d6d;
    --c-yellow: var(--c-brand);
    --c-yellow-dim: var(--c-brand-medium);
    --c-green: var(--c-success-alt);
    --c-red: var(--c-error-alt);
    --c-accent: #8a38f5;

    /* Typography - Figma Design System */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-accent: 'Space Grotesk', sans-serif;

    /* Font Sizes (from Figma) */
    --fs-h1: 72px;
    --fs-h2: 32px;
    --fs-h3: 24px;
    --fs-body-lg: 18px;
    --fs-body: 16px;
    --fs-body-sm: 14px;
    --fs-caption: 12px;
    --fs-button: 16px;

    /* Layout & Spacing (Base-8 from Figma) */
    --w-container: 1400px;
    --nav-dot-size: 10px;
    --space-xs: 8px;   /* A - related texts, closely related elements */
    --space-s: 16px;   /* B - related elements, components */
    --space-m: 24px;   /* C - related elements, grid items */
    --space-l: 32px;   /* D - unrelated elements */
    --space-xl: 48px;  /* E - unrelated elements, section gaps */
    --space-xxl: 80px; /* Large section spacing */
    --space-gutter: 40px; /* Side gutters on desktop */

    /* Brutalist Defaults */
    --radius-none: 0px;
    --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 mandatory;
    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: 1.5rem;
    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(3.5rem, 7vw, 6rem);
    line-height: 1.1;
    color: var(--c-white);
    white-space: nowrap;
    text-align: left;
}

.hero-container .hero-title-suffix {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    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;
}

/* duplicate .passport-card removed — defined above */

.passport-card-popup {
    background: var(--c-dark);
    border-radius: var(--radius-none);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--c-yellow);
    position: relative;
    /* Reuse styles from .passport-card but ensure they work here */
}

/* Passport Internal Elements */
.header-logo {
    width: 24px;
    height: 24px;
    color: var(--c-yellow);
}

.header-sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.header-title {
    letter-spacing: 0.15em;
    font-size: 0.85rem;
}

.passport-list {
    display: flex;
    flex-direction: column;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.row-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--c-gray);
}

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

.row-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-white);
}

.check-icon {
    width: 16px;
    height: 16px;
    color: var(--c-green);
}

.table-container {
    padding: 0 2rem 2rem;
    margin-top: 1.5rem;
}

.score-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.5fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.score-row:last-child {
    border-bottom: none;
}

.score-row.header {
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding-bottom: 0.5rem;
}

.bench-name {
    display: block;
    font-weight: 600;
    color: var(--c-white);
}

.bench-desc {
    display: block;
    font-size: 0.75rem;
    color: #666;
}

.progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-track {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-none);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--c-yellow);
    border-radius: var(--radius-none);
}

.score-val {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--c-yellow);
}

.badge-pass {
    background: rgba(74, 222, 128, 0.1);
    color: var(--c-green);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-none);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(74, 222, 128, 0.2);
    display: inline-block;
}

/* 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;
}

/* duplicate .passport-overlay removed — defined above */
.sovereign-chat-card.dimmed {
    filter: blur(4px) brightness(0.5);
    pointer-events: none;
    transition: filter 0.4s;
}

.passport-card-popup {
    background: var(--c-dark);
    border-radius: var(--radius-none);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--c-yellow);
    position: relative;
    /* Reuse styles from .passport-card but ensure they work here */
}

.close-passport {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--c-gray);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-none);
    padding: 4px;
    transition: color 0.2s;
}

.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,
#sovereign-container-group.highlighted path {
    stroke: var(--c-yellow) !important;
    marker-end: url(#arrowhead-yellow) !important;
}

#verification-group.highlighted .arrow-text,
#sovereign-container-group.highlighted .arrow-text {
    fill: var(--c-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 {
    position: relative;
}

.line-alignment-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--w-container);
    pointer-events: none;
    z-index: 5;
}

.v-line-accent {
    position: absolute;
    left: 0.5rem;
    top: 5rem;
    bottom: 5rem;
    width: 2px;
    background-color: var(--c-gray-dark);
    box-shadow: none;
}

.section-header .pill-dark {
    position: relative;
    align-self: flex-start;
}

.section-header .pill-dark::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    width: 1.5rem;
    height: 2px;
    background-color: var(--c-gray-dark);
    transform: translateY(-50%);
}


@media (max-width: 1400px) {
    .line-alignment-container {
        left: 0;
        transform: none;
        width: 100%;
    }
}

/* --- 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 CAROUSEL (New) --- */
.marketplace-carousel-section {
    position: relative;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marketplace-track-container {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marketplace-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.marketplace-card {
    flex: 0 0 360px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.marketplace-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(250, 204, 21, 0.3);
    transform: translateY(-4px);
}

.marketplace-card h4 {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--c-white);
    margin: 0 0 0.5rem 0;
}

.marketplace-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #a1a1aa;
    margin: 0;
    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: 1rem;
}

.carousel-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-nav:hover {
    background: var(--c-yellow);
    color: black;
    border-color: var(--c-yellow);
}

@media (max-width: 768px) {
    .marketplace-carousel-section {
        flex-direction: column;
    }

    .carousel-nav {
        display: none;
    }

    .marketplace-track-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .marketplace-track-container::-webkit-scrollbar {
        display: none;
    }
}


/* --- 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;
    }

    .insight-card {
        flex: 0 0 280px;
    }
}