/* ============================================
   INSIGHTRIX — Premium Light Theme
   Creative Green & White Design
   ============================================ */

/* Language switch pill — stays visible on both dark hero nav
   and light scrolled nav. Placed in the nav and in the mobile menu. */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 8px 14px;
    margin-right: 12px;
    border-radius: 999px;
    background: rgba(110, 231, 183, 0.14);
    border: 1px solid rgba(110, 231, 183, 0.45);
    color: #6ee7b7;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lang-switch:hover {
    background: rgba(110, 231, 183, 0.25);
    border-color: #6ee7b7;
    color: #ffffff;
}
.lang-switch-sep { opacity: 0.45; font-weight: 500; }
.lang-switch-alt { opacity: 0.7; }
.lang-switch:hover .lang-switch-alt { opacity: 1; }
.nav.scrolled .lang-switch {
    background: rgba(13, 159, 110, 0.08);
    border-color: rgba(13, 159, 110, 0.35);
    color: #0d9f6e;
}
.nav.scrolled .lang-switch:hover {
    background: rgba(13, 159, 110, 0.15);
    border-color: #0d9f6e;
    color: #065f46;
}
.mobile-menu-links .lang-switch {
    align-self: flex-start;
    margin: 24px 0 0;
    font-size: 0.875rem;
    padding: 10px 18px;
}
@media (max-width: 640px) {
    .nav-inner .lang-switch { padding: 6px 10px; font-size: 0.6875rem; margin-right: 6px; }
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fafbf9;
    --bg-secondary: #f0f4ed;
    --bg-hero: #0b1a0f;
    --surface: #ffffff;
    --surface-hover: #f5f8f3;
    --border: rgba(0,0,0,0.06);
    --border-hover: rgba(0,0,0,0.12);

    --text: #1a1d1a;
    --text-secondary: #5a6558;
    --text-muted: #8a9488;
    --text-on-dark: #f0f4ed;

    --green: #0d9f6e;
    --green-light: #10b981;
    --green-dark: #065f46;
    --green-dim: rgba(13,159,110,0.08);
    --green-glow: rgba(16,185,129,0.3);
    --mint: #d1fae5;
    --mint-strong: #a7f3d0;
    --emerald-gradient: linear-gradient(135deg, #10b981, #059669);

    --accent-2: #6366f1;
    --accent-3: #f59e0b;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --nav-height: 72px;
    --container-max: 1280px;
    --container-padding: 24px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);
    --shadow-green: 0 8px 32px rgba(16,185,129,0.2);
}

html {
    font-size: 16px;
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Always reserve scrollbar space so content stays symmetrically centered
       (otherwise the scrollbar appears only when content overflows, and the
       right margin looks visually wider than the left). */
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

html.lenis, html.lenis body {
    height: auto;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}

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

img {
    max-width: 100%;
    display: block;
}

button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Noise Overlay --- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background 0.3s;
}

.cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(16,185,129,0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s, background 0.3s;
}

.cursor.hovering {
    width: 48px;
    height: 48px;
    background: rgba(16,185,129,0.12);
}

.cursor-follower.hovering {
    width: 56px;
    height: 56px;
    border-color: var(--green);
    background: rgba(16,185,129,0.06);
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: var(--bg-hero);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    color: white;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--green-light);
    border-radius: 2px;
}

.dot {
    color: var(--green-light);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    height: var(--nav-height);
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, box-shadow 0.4s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

/* Nav starts transparent on dark hero */
.nav .nav-logo,
.nav .nav-link,
.nav .nav-cta {
    transition: color 0.4s, background 0.4s, border-color 0.4s;
}

/* On hero (not scrolled) - white text */
.nav:not(.scrolled) .nav-logo {
    color: white;
}

.nav:not(.scrolled) .nav-link {
    color: rgba(255,255,255,0.7);
}

.nav:not(.scrolled) .nav-link:hover {
    color: white;
}

.nav:not(.scrolled) .nav-cta {
    background: white;
    color: var(--green-dark);
}

.nav:not(.scrolled) .nav-menu-btn span {
    background: white;
}

/* Scrolled - dark text */
.nav.scrolled .nav-logo {
    color: var(--text);
}

.nav.scrolled .nav-link {
    color: var(--text-secondary);
}

.nav.scrolled .nav-link:hover {
    color: var(--text);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    cursor: none;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--green);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: none;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, background 0.3s;
}

.nav-cta:hover {
    background: var(--green-dark);
    box-shadow: var(--shadow-green);
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    cursor: none;
}

.nav-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-menu-btn.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.nav-menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s var(--ease-out-expo), color 0.3s;
}

.mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-link:hover {
    color: var(--green);
}

.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(5) { transition-delay: 0.25s; }

/* --- Hero (DARK - contrast section) --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
    background: var(--bg-hero);
    color: white;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 3;
    pointer-events: none;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(16,185,129,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 70% 60%, rgba(6,95,70,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(16,185,129,0.06) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mint-strong);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: white;
}

.hero-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--green-light), var(--mint-strong));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-line {
    display: block;
    overflow: hidden;
}

.hero-line-inner {
    display: block;
    transform: translateY(105%);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
}

/* Hero-specific button overrides */
.hero .btn-primary {
    background: white;
    color: var(--green-dark);
}

.hero .btn-primary:hover {
    box-shadow: 0 0 32px rgba(255,255,255,0.2), 0 8px 24px rgba(255,255,255,0.1);
}

.hero .btn-outline {
    border-color: rgba(255,255,255,0.25);
    color: white;
}

.hero .btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    color: white;
}

.hero-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
}

.hero-trust-item svg {
    color: var(--green-light);
    flex-shrink: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
}

.hero-scroll-indicator span {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.35);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--green-light), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Buttons (default - for light sections) --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: none;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    padding: 14px 28px;
    background: var(--green);
    color: white;
}

.btn-primary:hover {
    background: var(--green-dark);
    box-shadow: var(--shadow-green);
}

.btn-outline {
    padding: 14px 28px;
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-dim);
}

/* When .btn-outline sits on a dark hero / final-cta background, flip its
   colours so the text is actually visible. The default (dark text on light
   border) was painting black-on-black against the .vp-hero gradient. */
.vp-hero .btn-outline,
.vp-final-cta .btn-outline {
    color: var(--text-on-dark);
    border-color: rgba(255, 255, 255, 0.22);
}
.vp-hero .btn-outline:hover,
.vp-final-cta .btn-outline:hover {
    color: #6ee7b7;
    border-color: rgba(110, 231, 183, 0.42);
    background: rgba(110, 231, 183, 0.08);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.0625rem;
}

.btn-icon {
    display: flex;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* --- Marquee --- */
.marquee-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg);
}

.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 32px;
    align-items: center;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.marquee-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 64px;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

.line-reveal {
    display: block;
    overflow: hidden;
}

/* --- Services --- */
.services {
    padding: 100px 0 120px;
    position: relative;
    background: var(--bg);
}

/* Decorative blob */
.services::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.06), transparent 70%);
    top: -100px;
    right: -200px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .service-card-lg {
        grid-column: span 3;
    }

    .service-card:not(.service-card-lg) {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.service-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    overflow: hidden;
    cursor: none;
    transition: border-color 0.4s, transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
    opacity: 0;
    transform: translateY(40px);
}

.service-card:hover {
    border-color: rgba(16,185,129,0.2);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16,185,129,0.08);
    transform: translateY(-4px);
}

.service-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16,185,129,0.06) 0%, transparent 60%);
}

.service-card:hover .service-card-glow {
    opacity: 1;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--green-dark);
    transition: background 0.3s, transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.service-card:hover .service-icon {
    background: var(--mint-strong);
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 4px 12px rgba(16,185,129,0.15);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green);
    cursor: none;
    transition: gap 0.3s var(--ease-out-expo), color 0.3s;
}

.service-link:hover {
    gap: 12px;
    color: var(--green-dark);
}

/* --- Stats --- */
.stats {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.stats::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

/* ============================================
   Interactive demo frame — "what we actually ship"
   Reusable component used on homepage + each vertical landing.
   Browser-chrome look · tab nav · sub-panel switching ·
   in-demo language switcher (EN/FR/DE/ES/AR with RTL for AR) ·
   subtle fade-in on tab change · scroll-reveal entry.
   ============================================ */
.demo-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    scroll-margin-top: 88px; /* offset for the fixed nav when jumping via #demo */
}
.demo-section-header {
    max-width: 720px;
    margin-bottom: 32px;
}
.demo-section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--green-dark, #065f46);
    margin-bottom: 12px;
}
.demo-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 12px;
}
.demo-section-intro {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.demo-frame {
    background: #0a1612;
    border-radius: 16px;
    box-shadow: 0 24px 60px -16px rgba(13, 159, 110, 0.28), 0 8px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(110, 231, 183, 0.16);
    overflow: hidden;
    font-family: var(--font-display, Inter, sans-serif);
    color: #d6e4dc;
    max-width: 1080px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.demo-frame.demo-frame--visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-frame-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #061110;
    border-bottom: 1px solid rgba(110, 231, 183, 0.08);
    font-size: 0.75rem;
    color: rgba(214, 228, 220, 0.72);
}
.demo-frame-dots {
    display: inline-flex;
    gap: 6px;
}
.demo-frame-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3a4844;
}
.demo-frame-dot--r { background: #ef4444; }
.demo-frame-dot--y { background: #f59e0b; }
.demo-frame-dot--g { background: #10b981; }
.demo-frame-title {
    font-weight: 600;
    letter-spacing: 0.02em;
}
.demo-frame-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-left: 8px;
}
.demo-frame-live-pill::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse-dot 2.2s ease-in-out infinite;
}
.demo-frame-spacer { flex: 1; }
.demo-frame-badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(110, 231, 183, 0.75);
    border: 1px solid rgba(110, 231, 183, 0.32);
    border-radius: 999px;
    padding: 3px 9px;
}

.demo-frame-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #081a13, #061511);
    border-bottom: 1px solid rgba(110, 231, 183, 0.08);
    flex-wrap: wrap;
}
.demo-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(110, 231, 183, 0.08);
}
.demo-tab {
    appearance: none;
    background: transparent;
    border: 0;
    color: rgba(214, 228, 220, 0.68);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.demo-tab:hover { color: #ffffff; background: rgba(110, 231, 183, 0.06); }
.demo-tab.is-active {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.22), rgba(13, 159, 110, 0.16));
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.28);
}

.demo-lang {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 183, 0.08);
}
.demo-lang-btn {
    appearance: none;
    background: transparent;
    border: 0;
    color: rgba(214, 228, 220, 0.5);
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 9px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.demo-lang-btn:hover { color: #ffffff; }
.demo-lang-btn.is-active {
    background: rgba(110, 231, 183, 0.18);
    color: #6ee7b7;
}

.demo-frame-body {
    padding: 22px 24px 24px;
    background: #0a1612;
    min-height: 340px;
}
.demo-panel { display: none; animation: demo-panel-in 0.32s ease; }
.demo-panel.is-active { display: block; }
@keyframes demo-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Generic content building blocks inside panels */
.demo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.demo-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.demo-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(110, 231, 183, 0.1);
    border-radius: 12px;
    padding: 16px 18px;
}
.demo-card-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(110, 231, 183, 0.75);
    margin-bottom: 8px;
}
.demo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(110, 231, 183, 0.08);
    font-size: 0.8125rem;
}
.demo-row:last-child { border-bottom: 0; }
.demo-row-label { color: rgba(214, 228, 220, 0.62); font-size: 0.75rem; }
.demo-row-value { color: #ffffff; font-weight: 600; }
.demo-row-value--num { font-variant-numeric: tabular-nums; }

.demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.demo-pill--ok    { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
.demo-pill--warn  { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.demo-pill--err   { background: rgba(239, 68, 68, 0.16);  color: #fca5a5; }
.demo-pill--info  { background: rgba(96, 165, 250, 0.16); color: #93c5fd; }
.demo-pill--neutral { background: rgba(255, 255, 255, 0.06); color: rgba(214, 228, 220, 0.75); }
.demo-pill-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
}

.demo-bar { height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; }
.demo-bar-fill { height: 100%; background: linear-gradient(90deg, #6ee7b7, #0d9f6e); border-radius: 999px; }

.demo-h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.demo-muted {
    color: rgba(214, 228, 220, 0.55);
    font-size: 0.75rem;
    line-height: 1.5;
}
.demo-code {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.demo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.demo-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.demo-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(110, 231, 183, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
}
.demo-stat-num {
    font-family: 'Space Grotesk', var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.demo-stat-label {
    font-size: 0.625rem;
    color: rgba(214, 228, 220, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 4px;
}

/* Agent / engagement card rows for Mission Control demo */
.demo-agent {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(110, 231, 183, 0.08);
    border-radius: 10px;
}
.demo-agent + .demo-agent { margin-top: 8px; }
.demo-agent-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}
.demo-agent-meta {
    font-size: 0.6875rem;
    color: rgba(214, 228, 220, 0.55);
    margin-top: 2px;
}
.demo-agent-model {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    color: rgba(110, 231, 183, 0.8);
    background: rgba(110, 231, 183, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(110, 231, 183, 0.18);
}

/* Document mockup for FP&A / healthcare / fintech demos */
.demo-doc {
    background: #f4f1eb;
    color: #1a1d1a;
    border-radius: 10px;
    padding: 18px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.demo-doc h4 {
    font-size: 0.875rem;
    margin-bottom: 8px;
    color: #1a1d1a;
}
.demo-doc-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.demo-doc-line:last-child { border-bottom: 0; }

/* RTL — auto-applied when demo lang is ar */
.demo-frame[dir="rtl"] .demo-frame-titlebar,
.demo-frame[dir="rtl"] .demo-frame-toolbar { flex-direction: row-reverse; }
.demo-frame[dir="rtl"] .demo-tabs,
.demo-frame[dir="rtl"] .demo-lang { direction: ltr; }
.demo-frame[dir="rtl"] .demo-panel,
.demo-frame[dir="rtl"] .demo-card,
.demo-frame[dir="rtl"] .demo-doc { text-align: right; }
.demo-frame[dir="rtl"] .demo-row,
.demo-frame[dir="rtl"] .demo-agent { direction: rtl; }
.demo-frame[dir="rtl"] .demo-code { direction: ltr; display: inline-block; }

/* Mobile */
@media (max-width: 760px) {
    .demo-section { padding: 56px 0; }
    .demo-frame-body { padding: 18px 16px; }
    .demo-grid-2,
    .demo-grid-3 { grid-template-columns: 1fr; }
    .demo-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-frame-toolbar { padding: 12px 14px; }
    .demo-tab { padding: 6px 10px; font-size: 0.6875rem; }
    .demo-agent { grid-template-columns: 1fr auto; }
}

/* ─────────────────────────────────────────────────────────────────────
   Advanced demo v2 — app-shell layout with sidebar, statusbar, richer widgets
   These classes are additive; they sit alongside the v1 .demo-* classes above.
   ───────────────────────────────────────────────────────────────────── */

.demo-frame-toolbar-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.demo-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(110, 231, 183, 0.1);
    color: rgba(214, 228, 220, 0.6);
    font-size: 0.75rem;
    min-width: 180px;
}
.demo-search svg { opacity: 0.6; }
.demo-search-kbd {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(110, 231, 183, 0.12);
    border-radius: 4px;
    color: rgba(214, 228, 220, 0.55);
}

.demo-userpill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 11px 3px 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(110, 231, 183, 0.1);
    font-size: 0.75rem;
    color: rgba(214, 228, 220, 0.85);
}
.demo-userpill-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9f6e, #6ee7b7);
    color: #061110;
    font-size: 0.625rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Shell: sidebar + main workspace */
.demo-shell {
    display: grid;
    grid-template-columns: 196px 1fr;
    min-height: 460px;
}
.demo-side {
    background: linear-gradient(180deg, #061511 0%, #061310 100%);
    border-right: 1px solid rgba(110, 231, 183, 0.08);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.demo-side-group { display: flex; flex-direction: column; gap: 2px; }
.demo-side-label {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(110, 231, 183, 0.55);
    padding: 4px 10px 6px;
}
.demo-side-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 0.75rem;
    color: rgba(214, 228, 220, 0.7);
    cursor: default;
    user-select: none;
    transition: background 0.18s, color 0.18s;
}
.demo-side-item:hover { background: rgba(110, 231, 183, 0.06); color: #ffffff; }
.demo-side-item.is-active {
    background: rgba(110, 231, 183, 0.1);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.18);
}
.demo-side-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(110, 231, 183, 0.7);
    flex-shrink: 0;
}
.demo-side-item.is-active .demo-side-icon { color: #6ee7b7; }
.demo-side-badge {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    color: rgba(214, 228, 220, 0.45);
}
.demo-side-card {
    margin-top: auto;
    padding: 12px;
    border-radius: 9px;
    background: rgba(110, 231, 183, 0.06);
    border: 1px solid rgba(110, 231, 183, 0.12);
    font-size: 0.6875rem;
    color: rgba(214, 228, 220, 0.75);
    line-height: 1.5;
}
.demo-side-card strong { color: #ffffff; display: block; margin-bottom: 4px; }

/* Workspace (main body) */
.demo-workspace {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background:
        radial-gradient(800px 200px at 80% -40%, rgba(16, 185, 129, 0.08), transparent 60%),
        #0a1612;
}
.demo-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.demo-panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0;
}
.demo-panel-sub {
    font-size: 0.75rem;
    color: rgba(214, 228, 220, 0.55);
    margin-top: 2px;
}
.demo-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.demo-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(110, 231, 183, 0.1);
    font-size: 0.6875rem;
    color: rgba(214, 228, 220, 0.78);
}
.demo-chip--active {
    background: rgba(110, 231, 183, 0.12);
    border-color: rgba(110, 231, 183, 0.3);
    color: #6ee7b7;
}

/* KPI tile with sparkline */
.demo-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.demo-kpi {
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(110, 231, 183, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.demo-kpi-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(214, 228, 220, 0.55);
    margin-bottom: 4px;
}
.demo-kpi-value {
    font-family: 'Space Grotesk', var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.demo-kpi-delta {
    font-size: 0.6875rem;
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.demo-kpi-delta--up { color: #6ee7b7; }
.demo-kpi-delta--down { color: #fca5a5; }
.demo-kpi-spark {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 64px;
    height: 22px;
    opacity: 0.85;
}

/* Workspace grid (2-col split for big panels) */
.demo-work-2 {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 14px;
}
.demo-work-2--wide-right { grid-template-columns: 1fr 360px; }
.demo-work-1 { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* Data table */
.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    color: rgba(214, 228, 220, 0.85);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(110, 231, 183, 0.08);
    border-radius: 10px;
    overflow: hidden;
}
.demo-table thead th {
    text-align: left;
    font-weight: 700;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(110, 231, 183, 0.75);
    padding: 9px 12px;
    border-bottom: 1px solid rgba(110, 231, 183, 0.1);
    background: rgba(110, 231, 183, 0.04);
}
.demo-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px dashed rgba(110, 231, 183, 0.06);
}
.demo-table tbody tr:last-child td { border-bottom: 0; }
.demo-table tbody tr:hover { background: rgba(110, 231, 183, 0.04); }
.demo-table-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    color: rgba(110, 231, 183, 0.85);
}
.demo-table-strong { color: #ffffff; font-weight: 600; }
.demo-table-num { font-variant-numeric: tabular-nums; text-align: right; }

/* Log stream */
.demo-log {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(110, 231, 183, 0.08);
    border-radius: 10px;
    padding: 4px 0;
    max-height: 240px;
    overflow: hidden;
}
.demo-log-row {
    display: grid;
    grid-template-columns: 88px 60px 1fr;
    gap: 10px;
    padding: 6px 14px;
    font-size: 0.75rem;
    border-bottom: 1px dashed rgba(110, 231, 183, 0.06);
    align-items: center;
}
.demo-log-row:last-child { border-bottom: 0; }
.demo-log-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    color: rgba(214, 228, 220, 0.5);
}
.demo-log-level {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    font-weight: 700;
    text-align: center;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}
.demo-log-level--info { background: rgba(96, 165, 250, 0.18); color: #93c5fd; }
.demo-log-level--ok   { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.demo-log-level--warn { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.demo-log-level--err  { background: rgba(239, 68, 68, 0.18);  color: #fca5a5; }
.demo-log-msg { color: rgba(214, 228, 220, 0.85); }
.demo-log-msg code {
    font-family: 'JetBrains Mono', monospace;
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.6875rem;
}

/* Dark code editor — replaces .demo-doc for any code/diff content */
.demo-codeblock {
    background: #050d0a;
    border: 1px solid rgba(110, 231, 183, 0.14);
    border-radius: 10px;
    overflow: hidden;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    line-height: 1.65;
}
.demo-codeblock-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: #02080a;
    border-bottom: 1px solid rgba(110, 231, 183, 0.08);
    color: rgba(214, 228, 220, 0.7);
    font-size: 0.6875rem;
}
.demo-codeblock-path {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.demo-codeblock-body {
    padding: 10px 0;
    overflow-x: auto;
}
.demo-codeline {
    display: grid;
    grid-template-columns: 36px 14px 1fr;
    column-gap: 4px;
    padding: 1px 14px 1px 0;
    color: #d6e4dc;
}
.demo-codeline-num {
    color: rgba(214, 228, 220, 0.3);
    text-align: right;
    user-select: none;
    padding-right: 10px;
    border-right: 1px solid rgba(110, 231, 183, 0.06);
}
.demo-codeline-mark { text-align: center; user-select: none; color: rgba(214, 228, 220, 0.4); padding-left: 6px; }
.demo-codeline-text { white-space: pre; }
.demo-codeline-text .tok-key   { color: #93c5fd; }
.demo-codeline-text .tok-str   { color: #fcd34d; }
.demo-codeline-text .tok-num   { color: #f0abfc; }
.demo-codeline-text .tok-com   { color: rgba(214, 228, 220, 0.42); font-style: italic; }
.demo-codeline-text .tok-fn    { color: #6ee7b7; }
.demo-codeline-text .tok-op    { color: rgba(214, 228, 220, 0.65); }
.demo-codeline--add { background: rgba(16, 185, 129, 0.1); }
.demo-codeline--add .demo-codeline-mark { color: #6ee7b7; }
.demo-codeline--add .demo-codeline-text { color: #d6f5e6; }
.demo-codeline--del { background: rgba(239, 68, 68, 0.08); }
.demo-codeline--del .demo-codeline-mark { color: #fca5a5; }
.demo-codeline--del .demo-codeline-text { color: #fdd6d6; text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, 0.4); }
.demo-codeline--cur { background: rgba(110, 231, 183, 0.06); }

/* Alerts / banners */
.demo-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 0.75rem;
    line-height: 1.5;
}
.demo-alert-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.demo-alert-title { font-weight: 700; color: #ffffff; display: block; margin-bottom: 2px; }
.demo-alert--info { background: rgba(96, 165, 250, 0.1); border: 1px solid rgba(96, 165, 250, 0.25); color: #c5dafa; }
.demo-alert--info .demo-alert-icon { color: #93c5fd; }
.demo-alert--ok   { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); color: #c5e9d8; }
.demo-alert--ok .demo-alert-icon { color: #6ee7b7; }
.demo-alert--warn { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.25); color: #f7e5b7; }
.demo-alert--warn .demo-alert-icon { color: #fcd34d; }
.demo-alert--err  { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); color: #f5cfcf; }
.demo-alert--err .demo-alert-icon { color: #fca5a5; }

/* Flow diagram */
.demo-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(110, 231, 183, 0.08);
    border-radius: 10px;
    padding: 10px;
    overflow-x: auto;
}
.demo-flow-step {
    flex: 1;
    min-width: 110px;
    padding: 10px 12px;
    background: rgba(110, 231, 183, 0.04);
    border: 1px solid rgba(110, 231, 183, 0.14);
    border-radius: 8px;
    font-size: 0.75rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.demo-flow-step-label {
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(110, 231, 183, 0.75);
}
.demo-flow-step-meta { font-size: 0.6875rem; color: rgba(214, 228, 220, 0.55); }
.demo-flow-step.is-current {
    background: rgba(110, 231, 183, 0.12);
    border-color: rgba(110, 231, 183, 0.32);
    box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.08);
}
.demo-flow-arrow {
    display: inline-flex;
    align-items: center;
    color: rgba(110, 231, 183, 0.4);
    padding: 0 2px;
    flex-shrink: 0;
}

/* Kanban */
.demo-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.demo-kanban-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(110, 231, 183, 0.08);
    border-radius: 9px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
}
.demo-kanban-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(110, 231, 183, 0.7);
    padding: 0 2px 4px;
    border-bottom: 1px dashed rgba(110, 231, 183, 0.1);
}
.demo-kanban-count {
    background: rgba(110, 231, 183, 0.1);
    color: #6ee7b7;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
}
.demo-kanban-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(110, 231, 183, 0.1);
    border-radius: 7px;
    padding: 9px 10px;
    font-size: 0.75rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.demo-kanban-card-meta { font-size: 0.625rem; color: rgba(214, 228, 220, 0.55); }
.demo-kanban-card-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* Tree / file list */
.demo-tree {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(110, 231, 183, 0.08);
    border-radius: 9px;
    padding: 8px 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(214, 228, 220, 0.85);
}
.demo-tree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 4px;
}
.demo-tree-row.is-active { background: rgba(110, 231, 183, 0.1); color: #ffffff; }
.demo-tree-row.is-indent-1 { padding-left: 28px; }
.demo-tree-row.is-indent-2 { padding-left: 44px; }
.demo-tree-icon { width: 14px; color: rgba(110, 231, 183, 0.7); flex-shrink: 0; }
.demo-tree-meta { margin-left: auto; color: rgba(214, 228, 220, 0.4); font-size: 0.625rem; }

/* Confidence/progress bars (labelled) */
.demo-pbar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0;
}
.demo-pbar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(214, 228, 220, 0.85);
}
.demo-pbar-head strong { color: #ffffff; font-variant-numeric: tabular-nums; }
.demo-pbar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
}
.demo-pbar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6ee7b7, #0d9f6e);
}
.demo-pbar-fill--warn { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.demo-pbar-fill--err  { background: linear-gradient(90deg, #fca5a5, #ef4444); }

/* Statusbar at the bottom of the frame */
.demo-statusbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 18px;
    background: #02080a;
    border-top: 1px solid rgba(110, 231, 183, 0.1);
    font-size: 0.6875rem;
    color: rgba(214, 228, 220, 0.6);
    font-family: 'JetBrains Mono', monospace;
    flex-wrap: wrap;
}
.demo-statusbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.demo-statusbar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    animation: pulse-dot 2.2s ease-in-out infinite;
}
.demo-statusbar-dot--amber { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }
.demo-statusbar-spacer { flex: 1; }
.demo-statusbar-strong { color: #d6e4dc; font-weight: 600; }

/* Mini bar chart (CSS only) */
.demo-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    padding: 6px 0;
}
.demo-bars-bar {
    flex: 1;
    background: linear-gradient(180deg, #6ee7b7, rgba(110, 231, 183, 0.2));
    border-radius: 3px 3px 0 0;
    min-height: 4px;
}
.demo-bars-bar--accent { background: linear-gradient(180deg, #34d399, #0d9f6e); }

/* Timeline */
.demo-timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 4px; }
.demo-timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, rgba(110, 231, 183, 0.3), transparent);
}
.demo-timeline-row {
    display: grid;
    grid-template-columns: 22px 70px 1fr;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.75rem;
}
.demo-timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6ee7b7;
    margin-left: 6px;
    box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.15);
}
.demo-timeline-dot--muted { background: rgba(110, 231, 183, 0.35); box-shadow: none; }
.demo-timeline-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    color: rgba(214, 228, 220, 0.55);
}
.demo-timeline-msg { color: rgba(214, 228, 220, 0.85); }

/* Small panel section header (sub-section within a panel) */
.demo-subhead {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(110, 231, 183, 0.7);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.demo-subhead::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(110, 231, 183, 0.18), transparent);
}

/* Box / surface for grouping */
.demo-surface {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(110, 231, 183, 0.08);
    border-radius: 10px;
    padding: 14px;
}
.demo-surface--inset { background: #050d0a; }

/* Donut placeholder (conic-gradient ring) */
.demo-donut {
    --pct: 75;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: conic-gradient(#6ee7b7 calc(var(--pct) * 1%), rgba(255,255,255,0.06) 0);
    display: inline-grid;
    place-items: center;
    position: relative;
}
.demo-donut::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #0a1612;
}
.demo-donut-label {
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
}

/* RTL adjustments for the new advanced layout */
.demo-frame[dir="rtl"] .demo-shell { grid-template-columns: 1fr 196px; }
.demo-frame[dir="rtl"] .demo-side { border-right: 0; border-left: 1px solid rgba(110, 231, 183, 0.08); order: 2; }
.demo-frame[dir="rtl"] .demo-workspace { order: 1; }
.demo-frame[dir="rtl"] .demo-codeline-num { text-align: left; border-right: 0; border-left: 1px solid rgba(110, 231, 183, 0.06); padding-right: 0; padding-left: 10px; }
.demo-frame[dir="rtl"] .demo-side-badge { margin-left: 0; margin-right: auto; }
.demo-frame[dir="rtl"] .demo-statusbar-spacer { order: 99; }

/* Mobile — collapse sidebar, switch grids */
@media (max-width: 760px) {
    .demo-shell { grid-template-columns: 1fr; }
    .demo-side { display: none; }
    .demo-frame[dir="rtl"] .demo-shell { grid-template-columns: 1fr; }
    .demo-kpi-row { grid-template-columns: repeat(2, 1fr); }
    .demo-work-2,
    .demo-work-2--wide-right { grid-template-columns: 1fr; }
    .demo-kanban { grid-template-columns: 1fr; }
    .demo-search { display: none; }
    .demo-log-row { grid-template-columns: 64px 48px 1fr; gap: 6px; padding: 6px 12px; }
}

/* "Still here?" booking nudge — slides in bottom-right after 20s. */
.book-call-nudge {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 18px;
    padding: 16px 18px 16px 78px;
    box-shadow: 0 18px 48px -12px rgba(13, 159, 110, 0.28), 0 6px 16px rgba(0, 0, 0, 0.08);
    z-index: 99998;
    transform: translateY(140%) scale(0.96);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.2, 0.85, 0.3, 1.15), opacity 0.28s;
    will-change: transform, opacity;
    font-family: var(--font-body, Inter, system-ui, sans-serif);
}
.book-call-nudge--in {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.book-call-nudge-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: transparent;
    border: 0;
    color: var(--text-muted, #8a9488);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}
.book-call-nudge-close:hover {
    background: var(--bg-secondary, #f0f4ed);
    color: var(--text, #1a1d1a);
}
.book-call-nudge-photo {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 50px;
    height: 50px;
}
.book-call-nudge-photo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--green, #0d9f6e);
    background: var(--bg-secondary);
    display: block;
}
.book-call-nudge-status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid var(--surface, #ffffff);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    animation: nudge-pulse 2.2s ease-in-out infinite;
}
@keyframes nudge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
.book-call-nudge-content {
    min-width: 0;
}
.book-call-nudge-eyebrow {
    font-family: var(--font-display, Inter, sans-serif);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green-dark, #065f46);
    margin: 0 0 4px;
}
.book-call-nudge-text {
    font-size: 0.875rem;
    color: var(--text, #1a1d1a);
    line-height: 1.45;
    margin: 0 0 10px;
}
.book-call-nudge-cta {
    display: inline-block;
    font-family: var(--font-display, Inter, sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--green, #0d9f6e);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.book-call-nudge-cta:hover {
    color: var(--green-dark, #065f46);
    border-color: var(--green-dark, #065f46);
}
@media (max-width: 600px) {
    .book-call-nudge {
        bottom: 14px;
        right: 14px;
        left: 14px;
        width: auto;
        padding: 14px 14px 14px 70px;
    }
    .book-call-nudge-photo { left: 12px; top: 14px; width: 44px; height: 44px; }
    .book-call-nudge-photo img { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .book-call-nudge { transition: opacity 0.2s; transform: none; }
    .book-call-nudge--in { transform: none; }
    .book-call-nudge-status { animation: none; }
}

/* Vertical landing pages render with the system cursor — they don't load
   the custom-cursor JS that the rest of the site uses. The body class
   .vp-page overrides the global cursor: none rule. */
body.vp-page,
body.vp-page * { cursor: auto; }
body.vp-page a,
body.vp-page button,
body.vp-page summary,
body.vp-page [data-magnetic],
body.vp-page label[for] { cursor: pointer; }
body.vp-page input[type="text"],
body.vp-page input[type="email"],
body.vp-page input[type="tel"],
body.vp-page textarea { cursor: text; }
body.vp-page select { cursor: pointer; }

/* Industries — homepage entry points to vertical landings. */
.industries {
    padding: 100px 0;
    background: var(--bg);
}
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.industry-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 30px 24px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}
.industry-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, #6ee7b7, #0d9f6e);
    transition: width 0.3s;
}
.industry-card:hover {
    border-color: rgba(13, 159, 110, 0.45);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.industry-card:hover::before { width: 100%; }
.industry-card-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green-dark, #065f46);
    background: rgba(13, 159, 110, 0.08);
    padding: 5px 12px;
    border-radius: 999px;
    align-self: flex-start;
}
.industry-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.industry-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.industry-card-link {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green-dark, #065f46);
    margin-top: 4px;
}
@media (max-width: 800px) {
    .industries { padding: 72px 0; }
    .industries-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Vertical landing-page styles + reusable lead form
   ============================================ */

/* Vertical-page hero (less elaborate than the homepage hero). */
.vp-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg-hero) 0%, var(--bg-hero) 60%, #0d2418 100%);
    color: var(--text-on-dark, #f0f4ed);
    position: relative;
    overflow: hidden;
}
.vp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 50% at 80% 20%, rgba(52,211,153,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.vp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
}
.vp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(110, 231, 183, 0.14);
    border: 1px solid rgba(110, 231, 183, 0.35);
    color: #6ee7b7;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 24px;
}
.vp-hero-badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #6ee7b7;
}
.vp-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 22px;
}
.vp-hero-title em {
    font-style: italic;
    color: #6ee7b7;
}
.vp-hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.1875rem);
    line-height: 1.6;
    color: rgba(240, 244, 237, 0.78);
    max-width: 720px;
    margin-bottom: 32px;
}
.vp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 32px;
}
.vp-hero-trust {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: rgba(240, 244, 237, 0.62);
}
.vp-hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.vp-hero-trust-item::before {
    content: "✓";
    color: #6ee7b7;
    font-weight: 700;
}

/* Generic landing-page section. */
.vp-section {
    padding: 80px 0;
    background: var(--bg);
}
.vp-section-alt {
    padding: 80px 0;
    background: var(--bg-secondary);
}
.vp-section-header {
    max-width: 720px;
    margin-bottom: 48px;
}
.vp-section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--green-dark, #065f46);
    margin-bottom: 14px;
}
.vp-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
    color: var(--text);
    margin-bottom: 14px;
}
.vp-section-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 680px;
}

/* Pain / problem cards. */
.vp-pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.vp-pain-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 26px 22px;
    box-shadow: var(--shadow-sm);
}
.vp-pain-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.vp-pain-card h3 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.vp-pain-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Solution / "what we ship" list. */
.vp-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.vp-solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vp-solution-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.vp-solution-list li::before {
    content: "→";
    color: var(--green, #0d9f6e);
    font-weight: 700;
    margin-top: 1px;
    flex: none;
}
.vp-solution-list li > div strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.vp-solution-list li > div span {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.vp-stack-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.vp-stack-label {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green-dark, #065f46);
    margin-bottom: 16px;
}
.vp-stack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.vp-stack-item {
    background: var(--bg-secondary);
    padding: 12px 14px;
    border-radius: 10px;
}
.vp-stack-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.vp-stack-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Outcomes row. */
.vp-outcomes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.vp-outcome {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}
.vp-outcome strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    background: var(--emerald-gradient, linear-gradient(135deg, #10b981, #0d9f6e));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.vp-outcome span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* FAQ. */
.vp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 820px;
}
.vp-faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 22px 24px;
}
.vp-faq-item summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.vp-faq-item summary::-webkit-details-marker { display: none; }
.vp-faq-item summary::after {
    content: "+";
    color: var(--green, #0d9f6e);
    font-size: 1.25rem;
    font-weight: 400;
    transition: transform 0.2s;
}
.vp-faq-item[open] summary::after {
    content: "−";
}
.vp-faq-item p {
    margin: 14px 0 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Lead capture form (reusable: .lead-form). */
.lead-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
}
.lead-section-inner {
    display: grid;
    grid-template-columns: 0.95fr 1.1fr;
    gap: 56px;
    align-items: start;
}
.lead-pitch h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}
.lead-pitch p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}
.lead-pitch ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lead-pitch ul li {
    position: relative;
    padding-left: 26px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.lead-pitch ul li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 0;
    color: var(--green, #0d9f6e);
    font-weight: 700;
}
.lead-direct-line {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}
.lead-direct-line a { color: var(--green-dark, #065f46); font-weight: 600; }

.lead-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.lead-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.lead-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lead-field label {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text);
}
.lead-field label .req {
    color: #dc2626;
    margin-left: 2px;
}
.lead-field input,
.lead-field select,
.lead-field textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    padding: 12px 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
    border-color: var(--green, #0d9f6e);
    box-shadow: 0 0 0 3px rgba(13, 159, 110, 0.12);
}
.lead-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}
.lead-form-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.lead-form-fineprint {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1 1 60%;
}
.lead-status {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.5;
    display: none;
}
.lead-status--error {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.25);
}
.lead-success {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.lead-success-tick {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--mint, rgba(16, 185, 129, 0.12));
    color: var(--green-dark, #065f46);
    font-size: 1.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.lead-success h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.lead-success p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 8px;
}
.lead-success-sub {
    font-size: 0.8125rem !important;
    color: var(--text-muted) !important;
    margin-top: 18px !important;
}
.lead-success-sub a { color: var(--green-dark, #065f46); font-weight: 600; }

/* Final CTA section. */
.vp-final-cta {
    padding: 80px 0;
    background: var(--bg-hero, #0b1a0f);
    color: var(--text-on-dark, #f0f4ed);
    text-align: center;
}
.vp-final-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin-bottom: 14px;
}
.vp-final-cta p {
    font-size: 1.0625rem;
    color: rgba(240, 244, 237, 0.7);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 28px;
}

/* Responsive. */
@media (max-width: 900px) {
    .vp-pain-grid,
    .vp-outcomes { grid-template-columns: 1fr; gap: 16px; }
    .vp-solution-grid,
    .lead-section-inner { grid-template-columns: 1fr; gap: 32px; }
    .lead-form-row { grid-template-columns: 1fr; }
    .vp-stack-grid { grid-template-columns: 1fr; }
    .vp-section,
    .vp-section-alt,
    .lead-section,
    .vp-final-cta { padding: 56px 0; }
    .vp-hero { padding: 110px 0 60px; }
}

/* Powered by — partner logos strip. */
.partners {
    padding: 56px 0 64px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.partners-label {
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
}
.partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 10px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: background 0.2s, transform 0.2s, color 0.2s;
}
.partner:hover {
    background: var(--surface);
    transform: translateY(-2px);
    color: var(--text);
}
.partner-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(0.35);
    transition: filter 0.2s, transform 0.2s;
}
.partner:hover .partner-logo {
    filter: grayscale(0);
    transform: scale(1.05);
}
.partner-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}
.partner-name {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.partners-note {
    text-align: center;
    margin-top: 24px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.partners-disclaimer {
    text-align: center;
    margin-top: 12px;
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.75;
    font-style: italic;
}
@media (max-width: 768px) {
    .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .partner { padding: 14px 6px; }
    .partner-logo { width: 36px; height: 36px; }
    .partner-logo img { width: 30px; height: 30px; }
}

/* Live engagements — top 3 grid + featured card. */
.engagements-section {
    margin-bottom: 56px;
}
.engagements-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.engagements-section-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green-dark, #065f46);
}
.engagements-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.engagements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.engagements-grid .engagement-card-featured {
    grid-column: 1 / -1;
}
.engagement-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}
.engagement-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    height: 3px; width: 100%;
    background: linear-gradient(90deg, #10b981, #0d9f6e);
    opacity: 0.85;
}
.engagement-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.engagement-card-featured::before {
    height: 4px;
    background: linear-gradient(90deg, #6ee7b7, #10b981, #0d9f6e);
}
.engagement-card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.engagement-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--green-dark, #065f46);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.engagement-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    animation: pulse-dot 2s ease-in-out infinite;
}
.engagement-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.engagement-card-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.engagement-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}
.engagement-tag-secondary {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.engagement-tag-secondary::before {
    content: "·";
    margin-right: 8px;
    color: var(--text-muted);
}
.engagement-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0;
}
.engagement-card-featured .engagement-card-title {
    font-size: 1.5rem;
}
.engagement-card-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.engagement-card-stack {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border-radius: 10px;
}
.engagement-stack-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green-dark, #065f46);
    margin-right: 8px;
}
.engagement-card-outcomes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.engagement-outcome {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.engagement-outcome strong {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.engagement-outcome span {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}
@media (max-width: 800px) {
    .engagements-grid { grid-template-columns: 1fr; }
    .engagements-grid .engagement-card-featured { grid-column: auto; }
    .engagement-card { padding: 22px; }
    .engagement-card-featured .engagement-card-title { font-size: 1.25rem; }
    .engagement-card-outcomes { grid-template-columns: 1fr; gap: 10px; }
}

/* EU-Sovereign AI section on homepage. */
.sovereign {
    padding: 100px 0;
    background: var(--bg-secondary);
}
.sovereign-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
}
.sovereign-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 18px 0 18px;
}
.sovereign-text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}
.sovereign-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sovereign-list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.sovereign-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green, #0d9f6e);
}
.sovereign-stack {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}
.sovereign-stack-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green-dark, #065f46);
    margin-bottom: 18px;
}
.sovereign-stack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.sovereign-stack-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 14px 16px;
}
.sovereign-stack-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.sovereign-stack-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}
@media (max-width: 900px) {
    .sovereign { padding: 72px 0; }
    .sovereign-inner { grid-template-columns: 1fr; gap: 36px; }
    .sovereign-stack-grid { grid-template-columns: 1fr; }
}

/* Featured case-study callout on the homepage Results section. */
.featured-case {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 36px 32px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.featured-case::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--emerald-gradient, linear-gradient(180deg, #10b981, #0d9f6e));
}
.featured-case-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}
.featured-case-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(13, 159, 110, 0.1);
    color: var(--green-dark, #065f46);
}
.featured-case-label::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0.05); }
}
.featured-case-tag {
    font-size: 0.8125rem;
    color: var(--text-muted, #6b7280);
    letter-spacing: 0.02em;
}
.featured-case-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    line-height: 1.2;
}
.featured-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.featured-case-col-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-dark, #065f46);
    margin-bottom: 8px;
}
.featured-case-col p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.featured-case-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.featured-case-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.featured-case-result strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.featured-case-result span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}
@media (max-width: 800px) {
    .featured-case { padding: 28px 24px; }
    .featured-case-grid { grid-template-columns: 1fr; gap: 20px; padding: 20px 0; }
    .featured-case-results { grid-template-columns: 1fr; gap: 16px; }
}

.stat-card {
    text-align: center;
    padding: 40px 16px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s, transform 0.3s var(--ease-out-expo);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card::after {
    display: none;
}

.stat-number, .stat-prefix, .stat-suffix {
    display: inline;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--emerald-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.5;
}

.stat-context {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
    padding: 4px 10px;
    background: var(--green-dim);
    border-radius: 100px;
    display: inline-block;
}

/* --- Process --- */
.process {
    padding: 120px 0;
    position: relative;
    background: var(--bg);
}

.process-timeline {
    position: relative;
    padding-left: 48px;
}

.process-line {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    border-radius: 2px;
}

.process-line-fill {
    width: 100%;
    height: 0%;
    background: var(--emerald-gradient);
    border-radius: 2px;
    transition: height 0.1s;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.process-step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
}

.process-step::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border-hover);
    transition: border-color 0.5s, background 0.5s, box-shadow 0.5s;
    z-index: 1;
}

.process-step.active::before {
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(16,185,129,0.15), 0 0 16px rgba(16,185,129,0.2);
}

.process-step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--bg-secondary);
    line-height: 1;
    letter-spacing: -0.03em;
    min-width: 80px;
    transition: color 0.5s;
    -webkit-text-stroke: 1.5px var(--border-hover);
}

.process-step.active .process-step-number {
    -webkit-text-stroke: 1.5px var(--green);
    color: rgba(16,185,129,0.05);
}

.process-step-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.process-step-duration {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    background: var(--mint);
    border-radius: 100px;
    margin-bottom: 12px;
}

.process-step-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

/* --- Insights --- */
.insights {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.insights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

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

.insight-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: none;
    transition: border-color 0.3s, transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.insight-card:hover {
    border-color: rgba(16,185,129,0.15);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.insight-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.insight-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--g1, #10b981), var(--g2, #059669));
    opacity: 0.8;
    transition: opacity 0.4s, transform 0.6s var(--ease-out-expo);
}

.insight-card:hover .insight-card-gradient {
    opacity: 1;
    transform: scale(1.05);
}

.insight-card-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-card-visual svg {
    transition: transform 0.6s var(--ease-out-expo);
}

.insight-card:hover .insight-card-visual svg {
    transform: scale(1.1) rotate(3deg);
}

.insight-card-icon-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.insight-card:hover .insight-card-icon-badge {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.insight-card-content {
    padding: 24px;
}

.insight-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.insight-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-dark);
    padding: 4px 10px;
    background: var(--mint);
    border-radius: 6px;
}

.insight-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.insight-card h3 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.insight-read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green);
    cursor: none;
    transition: color 0.3s;
}

.insight-read-more:hover {
    color: var(--green-dark);
}

/* --- CTA (Dark section for contrast) --- */
.cta {
    padding: 120px 0;
    position: relative;
    background: var(--bg);
}

.cta-inner {
    position: relative;
    background: var(--bg-hero);
    border: none;
    border-radius: 32px;
    padding: 80px 48px;
    text-align: center;
    overflow: hidden;
    color: white;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: float-orb 8s ease-in-out infinite;
}

.cta-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(16,185,129,0.15);
    top: -150px;
    left: -150px;
}

.cta-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(6,95,70,0.12);
    bottom: -120px;
    right: -120px;
    animation-delay: -4s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -20px); }
    66% { transform: translate(-10px, 15px); }
}

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

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: white;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    margin-bottom: 48px;
}

.cta .btn-primary {
    background: white;
    color: var(--green-dark);
}

.cta .btn-primary:hover {
    box-shadow: 0 0 32px rgba(255,255,255,0.15), 0 8px 24px rgba(255,255,255,0.1);
}

.cta-details {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.cta-detail svg {
    color: var(--green-light);
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: none;
    color: var(--text);
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 280px;
}

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

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.3s;
    cursor: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

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

.footer-bottom-links a {
    cursor: none;
    transition: color 0.3s;
}

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

/* --- About --- */
.about {
    padding: 80px 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.05), transparent 70%);
    bottom: -200px;
    left: -200px;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-locations {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.about-location {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out-expo);
    opacity: 0;
    transform: translateX(-20px);
}

.about-location:hover {
    border-color: rgba(16,185,129,0.2);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.about-location-flag {
    font-size: 1.75rem;
    line-height: 1;
}

.about-location strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.about-location span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-stat-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(20px);
}

.about-stat-item:hover {
    border-color: rgba(16,185,129,0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about-stat-number, .about-stat-suffix {
    display: inline;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--emerald-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.about-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* --- Team --- */
.team {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.team-card {
    display: flex;
    gap: 32px;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(30px);
}

.team-card:hover {
    border-color: rgba(16,185,129,0.15);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.team-card-image {
    flex-shrink: 0;
    width: 140px;
    height: 170px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s var(--ease-out-expo);
}

.team-card:hover .team-card-image img {
    transform: scale(1.05);
}

.team-card-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
    background: var(--mint);
}

.team-card-info {
    flex: 1;
    min-width: 0;
}

.team-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    color: var(--text);
}

.team-card-role {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 6px;
}

.team-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.team-card-location svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.team-card-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.team-card-contact a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--green);
    transition: color 0.3s;
    cursor: none;
}

.team-card-contact a:hover {
    color: var(--green-dark);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

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

    .insight-card:last-child {
        display: none;
    }

    .footer-links-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

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

    .service-card-lg, .service-card:not(.service-card-lg) {
        grid-column: span 1 !important;
    }

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

    .process-timeline {
        padding-left: 32px;
    }

    .process-step-number {
        font-size: 2.5rem;
        min-width: 50px;
    }

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

    .insight-card:last-child {
        display: block;
    }

    .team-card {
        flex-direction: column;
        gap: 20px;
        padding: 28px;
    }

    .team-card-image {
        width: 100%;
        height: 220px;
    }

    .cta-inner {
        padding: 48px 24px;
        border-radius: 24px;
    }

    .cta-details {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-grid {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Hide custom cursor on mobile */
    .cursor, .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    .nav-link, .nav-cta, .btn, .service-link, .insight-read-more, .footer-col a, .footer-bottom-links a, .nav-logo, .footer-logo, .mobile-menu-link {
        cursor: auto;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .process-step {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================
   ENHANCEMENTS — Trust Bar, Testimonial,
   Scroll-to-Top, Social Links
   ============================================ */

/* --- Trust Bar --- */
.trust-bar {
    padding: 48px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.trust-bar-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.trust-logos-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    padding: 8px 0;
}

.trust-logos-track {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: trust-scroll 35s linear infinite;
    width: max-content;
}

@keyframes trust-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.trust-logos-marquee:hover .trust-logos-track {
    animation-play-state: paused;
}

.trust-logo {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.trust-logo:hover {
    border-color: rgba(16,185,129,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.trust-logo span {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #2d3a2e;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* --- About Network Visual --- */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-globe { width: 100%; }

.about-network-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0b1a0f;
    transition: box-shadow 0.4s;
}

.about-network-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.network-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 40%, rgba(16,185,129,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 60%, rgba(5,150,105,0.1) 0%, transparent 50%);
}

.network-content {
    position: relative;
    z-index: 1;
    padding: 28px;
}

.network-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}

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

.globe-dot-live {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.3);
    animation: globe-pulse 2s ease-in-out infinite;
}

@keyframes globe-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(16,185,129,0.1); }
}

.network-nodes {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    min-height: 100px;
}

.network-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    position: relative;
}

.network-node-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(16,185,129,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    animation: ring-pulse 3s ease-in-out infinite;
}

.network-node-1 .network-node-ring { animation-delay: 0s; }
.network-node-2 .network-node-ring { animation-delay: 1s; border-color: rgba(16,185,129,0.35); }
.network-node-3 .network-node-ring { animation-delay: 2s; }

@keyframes ring-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

.network-node-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(16,185,129,0.15);
    border: 2px solid #10b981;
    position: relative;
}

.network-node-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
}

.network-node-dot-hq {
    background: rgba(16,185,129,0.25);
    border-color: #34d399;
    width: 38px;
    height: 38px;
}

.network-node-dot-hq::after {
    width: 14px;
    height: 14px;
    background: #34d399;
    box-shadow: 0 0 16px rgba(52,211,153,0.5);
}

.network-node-label {
    text-align: center;
}

.network-node-label strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
}

.network-node-label em {
    font-style: normal;
    font-size: 0.625rem;
    font-weight: 700;
    color: #0b1a0f;
    background: #34d399;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.network-node-label span {
    display: block;
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* Connection lines */
.network-line {
    position: absolute;
    top: 28px;
    height: 2px;
    background: linear-gradient(90deg, #10b981, rgba(16,185,129,0.2), #10b981);
    background-size: 200% 100%;
    animation: line-flow 3s ease-in-out infinite;
    z-index: 1;
}

.network-line-1 {
    left: 14%;
    width: 28%;
}

.network-line-2 {
    left: 42%;
    width: 28%;
    animation-delay: 1s;
}

.network-line-3 {
    left: 14%;
    width: 72%;
    top: 35px;
    height: 1px;
    opacity: 0.3;
    animation-delay: 0.5s;
}

@keyframes line-flow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.network-footer {
    display: flex;
    justify-content: space-around;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

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

.network-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: #10b981;
}

.network-stat span {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 1024px) {
    .about-globe { margin-top: 8px; }
}

@media (max-width: 480px) {
    .network-content { padding: 20px; }
    .network-node-dot { width: 24px; height: 24px; }
    .network-node-dot::after { width: 8px; height: 8px; }
    .network-node-dot-hq { width: 30px; height: 30px; }
    .network-node-ring { width: 36px; height: 36px; }
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-dark);
    padding: 8px 16px;
    background: var(--mint);
    border-radius: 100px;
    white-space: nowrap;
    transition: transform 0.3s, box-shadow 0.3s;
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.15);
}

.trust-badge svg {
    color: var(--green);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .trust-badges {
        gap: 12px;
    }
    .trust-badge {
        font-size: 0.6875rem;
        padding: 6px 12px;
    }
}

/* --- Testimonial --- */
.testimonial-section {
    padding: 80px 0;
    background: var(--bg);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-quote-icon {
    color: var(--mint-strong);
    margin-bottom: 24px;
}

.testimonial-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 32px;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testimonial-author-info strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.testimonial-author-info span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* --- Stats CTA --- */
.stats-cta {
    text-align: center;
    margin-top: 48px;
}

.stats-cta .btn svg {
    margin-left: 8px;
    vertical-align: middle;
}

/* --- Team Social Links --- */
.team-card-social {
    margin-top: 12px;
}

.team-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    transition: background 0.3s, color 0.3s, transform 0.3s;
    cursor: none;
}

.team-social-link:hover {
    background: var(--green);
    color: white;
    transform: translateY(-2px);
}

/* --- Footer Social --- */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    transition: background 0.3s, color 0.3s, transform 0.3s;
    cursor: none;
}

.footer-social-link:hover {
    background: var(--green);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    flex-wrap: wrap;
    gap: 16px;
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease-out-expo), background 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--green);
    border-color: var(--green);
    color: white;
    box-shadow: 0 8px 32px rgba(16,185,129,0.25);
}

/* --- Responsive Additions --- */
@media (max-width: 768px) {
    .trust-logos {
        gap: 24px;
    }

    .testimonial-card {
        padding: 28px;
    }

    .testimonial-text {
        font-size: 1.125rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* ============================================
   Lead Capture Popup
   ============================================ */
.lead-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.lead-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.lead-popup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 520px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 32px 64px rgba(0,0,0,0.2);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s var(--ease-out-expo);
}
.lead-popup-overlay.active .lead-popup {
    transform: translateY(0) scale(1);
}
.lead-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}
.lead-popup-close:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.lead-popup-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    background: var(--mint);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.lead-popup-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 10px;
}
.lead-popup-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}
.lead-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lead-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.lead-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
.lead-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.lead-input::placeholder {
    color: var(--text-muted);
}
.lead-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.lead-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--emerald-gradient);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.lead-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-green);
}
.lead-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.lead-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.lead-spinner {
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lead-privacy {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}
.lead-success-icon {
    margin-bottom: 20px;
}
.lead-popup-success {
    text-align: center;
    padding: 20px 0;
}
.lead-enquiry-id {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--green);
    background: var(--mint);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 8px;
    margin-top: 16px;
}

@media (max-width: 640px) {
    .lead-popup { padding: 28px; }
    .lead-popup-title { font-size: 1.25rem; }
    .lead-form-row { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────
   Laptop tier — fits 1280–1440px viewports (typical 13–15" laptops).
   Without this block the desktop typography sizes get applied at full
   strength on smaller screens, which makes headlines feel oversized and
   sections sprawl. Mobile breakpoints below 1024px stay untouched.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 1440px) {
    :root {
        --container-max: 1280px;
        --container-padding: 28px;
        --nav-height: 64px;
    }

    /* Homepage hero — shorter and a touch tighter */
    .hero { min-height: 88vh; }
    .hero-title { font-size: clamp(2.25rem, 4.6vw, 3.75rem); letter-spacing: -0.03em; }
    .hero-subtitle { font-size: clamp(0.9375rem, 1.15vw, 1.0625rem); }
    .hero-cta { padding-top: 28px; }

    /* Section titles + labels across the site */
    .section-title { font-size: clamp(1.75rem, 3.1vw, 2.625rem); }
    .section-label { font-size: 0.6875rem; letter-spacing: 0.16em; }

    /* Sections: less vertical breathing room */
    .stats,
    .industries,
    .sovereign { padding: 80px 0; }
    .about,
    .demo-section,
    .vp-section,
    .vp-section-alt,
    .lead-section,
    .vp-final-cta { padding: 64px 0; }
    .partners { padding: 40px 0 48px; }

    /* Vertical landing pages */
    .vp-hero { padding: 110px 0 64px; }
    .vp-hero-title { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
    .vp-hero-sub { font-size: clamp(0.9375rem, 1.15vw, 1.0625rem); max-width: 660px; }
    .vp-hero-badge { font-size: 0.6875rem; padding: 6px 12px; }
    .vp-section-title { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
    .vp-section-intro { font-size: 0.9375rem; }

    /* Demo section — keep the frame readable but not sprawling */
    .demo-section-title { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
    .demo-section-intro { font-size: 0.875rem; }
    .demo-frame { max-width: 1080px; }
    .demo-frame-body { padding: 18px 20px 20px; }
    .demo-workspace { padding: 16px 18px 18px; gap: 14px; }
    .demo-shell { grid-template-columns: 176px 1fr; min-height: 420px; }
    .demo-side { padding: 12px 8px; }
    .demo-kpi-value { font-size: 1.25rem; }
    .demo-panel-title { font-size: 0.9375rem; }

    /* Industry / engagement cards a bit more compact */
    .industry-card { padding: 24px; }
    .industry-card h3 { font-size: 1.125rem; }

    /* Final CTA block */
    .vp-final-cta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

    /* Nav slightly more compact */
    .nav-link { font-size: 0.8125rem; }
    .nav-cta { padding: 8px 14px; font-size: 0.8125rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   Small-laptop tier — fits ~1280px viewports (smaller laptops, half-screen
   browser windows on 1440p monitors). Tightens further so the layout
   doesn't sprawl when the user reads side-by-side.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
    :root { --container-max: 1200px; --container-padding: 24px; }

    .hero-title { font-size: clamp(2.125rem, 4.3vw, 3.25rem); }
    .section-title { font-size: clamp(1.625rem, 2.9vw, 2.25rem); }

    .stats,
    .industries,
    .sovereign { padding: 72px 0; }
    .about,
    .demo-section,
    .vp-section,
    .vp-section-alt,
    .lead-section,
    .vp-final-cta { padding: 56px 0; }

    .vp-hero { padding: 100px 0 56px; }
    .vp-hero-title { font-size: clamp(1.75rem, 3.3vw, 2.5rem); }
    .vp-section-title { font-size: clamp(1.375rem, 2.3vw, 1.75rem); }

    .demo-frame { max-width: 1000px; }
    .demo-shell { grid-template-columns: 164px 1fr; min-height: 400px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Mobile-nav overlay — for pages that don't ship the standalone
   #mobileMenu element (vertical landings, contact, services, etc).
   When js/mobile-nav.js adds .nav-mobile-open to .nav, we render the
   existing .nav-links as a full-width drop-down overlay.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav.nav-mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 28px 24px 32px;
        gap: 18px;
        z-index: 99;
        border-top: 1px solid var(--border);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }
    .nav.nav-mobile-open .nav-links a {
        font-size: 1.0625rem;
        font-weight: 500;
        color: var(--text);
    }
    .nav.nav-mobile-open .nav-cta {
        display: inline-flex;
        margin-top: 6px;
        align-self: flex-start;
    }
    /* Inverse colours when the nav is on the dark hero (homepage top of page) */
    .nav:not(.scrolled).nav-mobile-open .nav-links {
        background: var(--bg-hero);
        border-top-color: rgba(255, 255, 255, 0.08);
    }
    .nav:not(.scrolled).nav-mobile-open .nav-links a {
        color: var(--text-on-dark);
    }
}

/* ─────────────────────────────────────────────────────────────────────
   Mobile typography & layout — phones (≤640px) and small tablets (≤768px).
   Builds on the existing breakpoints with targeted fixes for the parts of
   the site that weren't previously covered (vertical pages, demo header,
   hero, partner strip, sovereign stack, lead form pitch column).
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --nav-height: 60px; }

    /* Homepage hero */
    .hero { min-height: 78vh; padding-top: 96px; padding-bottom: 48px; }
    .hero-title { font-size: clamp(2rem, 9vw, 2.625rem); line-height: 1.05; }
    .hero-subtitle { font-size: 1rem; line-height: 1.55; }
    .hero-cta { padding-top: 22px; gap: 12px; flex-wrap: wrap; }
    .hero-cta .btn { width: 100%; justify-content: center; }

    /* Section labels and titles */
    .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
    .section-label { font-size: 0.625rem; letter-spacing: 0.16em; }

    /* Vertical landing pages */
    .vp-hero { padding: 92px 0 48px; }
    .vp-hero-badge { font-size: 0.625rem; padding: 5px 10px; }
    .vp-hero-title { font-size: clamp(1.875rem, 8.5vw, 2.5rem); line-height: 1.08; }
    .vp-hero-sub { font-size: 0.9375rem; }
    .vp-hero-actions { gap: 10px; flex-direction: column; align-items: stretch; }
    .vp-hero-actions .btn { width: 100%; justify-content: center; }
    .vp-hero-trust { gap: 10px; margin-top: 24px; }
    .vp-hero-trust-item { font-size: 0.8125rem; }
    .vp-section,
    .vp-section-alt { padding: 48px 0; }
    .vp-section-title { font-size: clamp(1.375rem, 6vw, 1.75rem); }
    .vp-section-intro { font-size: 0.9375rem; }
    .vp-pain-card { padding: 22px; }
    .vp-pain-card h3 { font-size: 1.0625rem; }
    .vp-solution-list li { padding: 14px 0; }
    .vp-stack-card { padding: 22px; }
    .vp-final-cta { padding: 56px 0; }
    .vp-final-cta h2 { font-size: clamp(1.375rem, 6vw, 1.75rem); }

    /* Demo section header */
    .demo-section { padding: 48px 0; }
    .demo-section-title { font-size: clamp(1.25rem, 5.5vw, 1.5rem); }
    .demo-section-intro { font-size: 0.875rem; }
    /* Frame title bar wraps cleanly */
    .demo-frame-title { font-size: 0.6875rem; }
    .demo-frame-titlebar { padding: 10px 14px; gap: 8px; }
    .demo-frame-toolbar { padding: 10px 14px; gap: 8px; }
    /* Hide the search and user pill on phones — they bloat the toolbar */
    .demo-search,
    .demo-userpill { display: none; }
    .demo-tabs { gap: 2px; padding: 2px; flex-wrap: wrap; }
    .demo-tab { padding: 6px 9px; font-size: 0.6875rem; }
    .demo-lang-btn { padding: 3px 7px; font-size: 0.625rem; }
    /* Demo body — sidebar already hidden on mobile via existing rule */
    .demo-workspace { padding: 14px; gap: 12px; }
    .demo-panel-head { gap: 8px; }
    .demo-panel-title { font-size: 0.9375rem; }
    .demo-panel-sub { font-size: 0.75rem; }
    .demo-kpi-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .demo-kpi { padding: 10px 12px; }
    .demo-kpi-value { font-size: 1.125rem; }
    .demo-kpi-spark { display: none; }
    .demo-flow { flex-direction: column; gap: 8px; }
    .demo-flow-arrow { display: none; }
    .demo-flow-step { min-width: 0; }
    .demo-kanban { grid-template-columns: 1fr; }
    /* Force any inline grid-template-columns to single column on phones */
    .demo-workspace > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    /* Tables scroll horizontally instead of breaking layout */
    .demo-table { font-size: 0.6875rem; }
    .demo-table thead th,
    .demo-table tbody td { padding: 7px 9px; }
    .demo-statusbar { padding: 7px 14px; font-size: 0.625rem; gap: 8px; }

    /* Industries grid — already 1 col, just tighten cards */
    .industries-grid { gap: 16px; }
    .industry-card { padding: 22px; }
    .industry-card h3 { font-size: 1.0625rem; }
    .industry-card p { font-size: 0.875rem; }

    /* Partner strip */
    .partners { padding: 32px 0 40px; }
    .partners-list { gap: 24px; }
    .partner-logo img,
    .partner-logo svg { max-height: 28px; }

    /* Sovereign stack */
    .sovereign { padding: 56px 0; }
    .sovereign-stack-grid,
    .vp-stack-grid { grid-template-columns: 1fr; gap: 12px; }

    /* Engagements (homepage live engagements) */
    .engagements-section { margin-bottom: 32px; }
    .engagements-header { flex-direction: column; gap: 10px; align-items: flex-start; }

    /* Lead-section pitch column on top, form below — already handled by .lead-section-inner: 1fr */
    .lead-section { padding: 48px 0; }
    .lead-pitch h2 { font-size: 1.375rem; }
    .lead-pitch p { font-size: 0.9375rem; }
    .lead-form { padding: 22px; }
    .lead-form-submit-row { flex-direction: column; gap: 14px; align-items: stretch; }
    .lead-form-submit-row .btn { width: 100%; justify-content: center; }

    /* Stats grid on phones — 2 columns is OK but tighten */
    .stats-grid { gap: 14px; }
    .stat-num { font-size: 1.75rem; }
    .stat-label { font-size: 0.75rem; }

    /* About */
    .about { padding: 48px 0; }
    .about-grid { gap: 36px; }

    /* Footer */
    .footer-links-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .footer-col h4 { font-size: 0.875rem; }
    .footer-col a { font-size: 0.875rem; }
}

/* Tiny phones (≤480px) — final tightening */
@media (max-width: 480px) {
    :root { --container-padding: 18px; }

    .hero-title { font-size: clamp(1.75rem, 8vw, 2.25rem); }
    .vp-hero-title { font-size: clamp(1.625rem, 8vw, 2.125rem); }
    .section-title { font-size: clamp(1.375rem, 7vw, 1.75rem); }

    /* Stack stats to single column on very narrow screens */
    .stats-grid { grid-template-columns: 1fr; }

    /* Footer columns single column */
    .footer-links-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Demo: KPIs stack 1 col when really tight */
    .demo-kpi-row { grid-template-columns: 1fr; }

    /* Industry / lead cards comfier padding */
    .industry-card { padding: 20px; }
    .lead-form { padding: 18px; }

    /* Buttons full-width but a touch shorter */
    .btn { padding: 12px 18px; font-size: 0.875rem; }
}

/* iOS-safe area + smooth-scroll respect for fixed nav on anchor jumps */
html { scroll-padding-top: calc(var(--nav-height) + 12px); }
section[id] { scroll-margin-top: calc(var(--nav-height) + 12px); }

/* ─────────────────────────────────────────────────────────────────────
   Demo Tier 1 chrome — breadcrumb, notification bell + dropdown, command
   palette (⌘K), streaming log slide-in, sparkline tooltip.
   ───────────────────────────────────────────────────────────────────── */
.demo-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    font-size: 0.6875rem;
    color: rgba(214, 228, 220, 0.6);
}
.demo-breadcrumb-sep {
    color: rgba(110, 231, 183, 0.4);
    font-size: 0.875rem;
    line-height: 1;
}
.demo-breadcrumb-current {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Notification bell */
.demo-bell {
    position: relative;
    width: 30px;
    height: 28px;
    border: 1px solid rgba(110, 231, 183, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(214, 228, 220, 0.78);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.demo-bell:hover { background: rgba(110, 231, 183, 0.08); color: #ffffff; border-color: rgba(110, 231, 183, 0.25); }
.demo-bell-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    box-shadow: 0 0 0 2px #061110;
}

/* Bell + popover wrapper — anchors the dropdown directly under the bell
   instead of a hard-coded corner, so it lines up on every demo regardless of
   how wide the toolbar is or where the bell sits. */
.demo-bell-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Bell dropdown popover */
.demo-bell-pop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 300px;
    max-width: 340px;
    background: #0a1612;
    border: 1px solid rgba(110, 231, 183, 0.18);
    border-radius: 10px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
    z-index: 12;
}
.demo-bell-pop.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s, transform 0.18s, visibility 0s;
}
.demo-bell-pop-head {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(110, 231, 183, 0.7);
    padding: 8px 10px 6px;
}
.demo-bell-pop-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    font-size: 0.8125rem;
    color: rgba(214, 228, 220, 0.9);
    border-radius: 7px;
}
.demo-bell-pop-row:hover { background: rgba(110, 231, 183, 0.04); }
.demo-bell-pop-pill { font-size: 0.5625rem; padding: 2px 6px; }
.demo-bell-pop-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    color: rgba(214, 228, 220, 0.45);
}

/* Command palette modal */
.demo-cmdk-open {
    appearance: none;
    border: 1px solid rgba(110, 231, 183, 0.1);
    color: rgba(214, 228, 220, 0.6);
    cursor: pointer;
    font: inherit;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
}
.demo-cmdk-open:hover { color: #ffffff; border-color: rgba(110, 231, 183, 0.25); }
.demo-cmdk {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 10, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0s linear 0.2s;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}
.demo-cmdk.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s;
}
.demo-cmdk-inner {
    width: min(520px, 90%);
    background: #0a1612;
    border: 1px solid rgba(110, 231, 183, 0.18);
    border-radius: 12px;
    box-shadow: 0 36px 72px rgba(0, 0, 0, 0.55);
    padding: 8px;
}
.demo-cmdk-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(110, 231, 183, 0.08);
    color: rgba(110, 231, 183, 0.6);
}
.demo-cmdk-input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #ffffff;
    font: inherit;
    font-size: 0.9375rem;
}
.demo-cmdk-esc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    color: rgba(214, 228, 220, 0.45);
    border: 1px solid rgba(110, 231, 183, 0.14);
    padding: 2px 6px;
    border-radius: 4px;
}
.demo-cmdk-list {
    padding: 6px 4px;
    max-height: 320px;
    overflow-y: auto;
}
.demo-cmdk-row {
    appearance: none;
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 7px;
    color: rgba(214, 228, 220, 0.85);
    cursor: pointer;
    font: inherit;
}
.demo-cmdk-row:hover { background: rgba(110, 231, 183, 0.08); color: #ffffff; }
.demo-cmdk-icon { color: rgba(110, 231, 183, 0.7); }
.demo-cmdk-label { font-size: 0.875rem; }
.demo-cmdk-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    color: rgba(214, 228, 220, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.demo-cmdk-foot {
    padding: 10px 14px 12px;
    border-top: 1px solid rgba(110, 231, 183, 0.06);
    font-size: 0.6875rem;
    color: rgba(214, 228, 220, 0.45);
}

/* Streaming log slide-in animation */
.demo-log-row.is-new {
    animation: demo-log-in 0.5s ease;
    background: linear-gradient(90deg, rgba(110, 231, 183, 0.12), transparent 60%);
}
@keyframes demo-log-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Sparkline tooltip — appears when hovering the KPI tile */
.demo-kpi { position: relative; }
.demo-spark-tip {
    position: absolute;
    right: 10px;
    bottom: 36px;
    padding: 5px 9px;
    border-radius: 6px;
    background: #02080a;
    border: 1px solid rgba(110, 231, 183, 0.22);
    font-size: 0.6875rem;
    color: rgba(214, 228, 220, 0.9);
    line-height: 1.3;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.16s, transform 0.16s;
    pointer-events: none;
    white-space: nowrap;
}
.demo-spark-tip strong { color: #ffffff; }
.demo-spark-tip span { color: rgba(110, 231, 183, 0.7); font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.08em; }
.demo-kpi--hover .demo-spark-tip {
    opacity: 1;
    transform: translateY(0);
}

/* Make the .demo-frame a positioning context for the bell pop + cmdk overlay */
.demo-frame { position: relative; }

/* Mobile: hide the breadcrumb in the titlebar (keeps room for the title) */
@media (max-width: 768px) {
    .demo-breadcrumb { display: none; }
    .demo-bell-pop { min-width: 240px; max-width: calc(100vw - 80px); }
    .demo-cmdk-inner { width: 96%; }
    .demo-cmdk { padding-top: 8vh; }
    .demo-spark-tip { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   Demo Tier 2 — in-panel sub-tabs, filter chips, click-through detail
   drawer, per-panel statusbar items.
   ───────────────────────────────────────────────────────────────────── */

/* Sub-tabs (24h / 7d / 30d, All regions / EU only, etc.) */
.demo-subtabs {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(110, 231, 183, 0.08);
    border-radius: 8px;
}
.demo-subtab {
    appearance: none;
    background: transparent;
    border: 0;
    color: rgba(214, 228, 220, 0.6);
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.demo-subtab:hover { color: #ffffff; background: rgba(110, 231, 183, 0.06); }
.demo-subtab.is-active {
    background: rgba(110, 231, 183, 0.14);
    color: #6ee7b7;
    box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.2);
}
.demo-subtab-content { animation: demo-subtab-in 0.22s ease; }
.demo-subtab-content[hidden] { display: none; }
@keyframes demo-subtab-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Filter chip group on tables */
.demo-chips {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.demo-chips .demo-chip[data-chip-filter] {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.demo-chips .demo-chip[data-chip-filter]:hover {
    background: rgba(110, 231, 183, 0.12);
    color: #ffffff;
    border-color: rgba(110, 231, 183, 0.28);
}
.demo-chips .demo-chip.is-active {
    background: rgba(110, 231, 183, 0.18);
    color: #6ee7b7;
    border-color: rgba(110, 231, 183, 0.32);
    box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.18);
}

/* Detail drawer — slides in from the right within the workspace */
.demo-drawer-host {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 0;
    gap: 0;
    transition: grid-template-columns 0.28s ease;
    align-items: start;
    width: 100%;
}
.demo-drawer-host.has-drawer-open {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
}
/* Grid children must be allowed to shrink below their content size. Without
   min-width: 0, the table column expands to its widest cell and pushes the
   drawer column off the right edge of the demo frame (which then clips it
   via its own overflow: hidden). */
.demo-drawer-host > * { min-width: 0; min-height: 0; }
.demo-drawer-host > div:first-child { overflow-x: auto; }
/* Drawer body content — keep words intact (no letter-by-letter breaking)
   but allow a single overly-long token (e.g. a URL) to break if needed. */
.demo-drawer-body { overflow-x: hidden; }
.demo-drawer-body .demo-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.demo-drawer-body .demo-row-label {
    flex-shrink: 0;
    color: rgba(214, 228, 220, 0.62);
}
.demo-drawer-body .demo-row-value {
    text-align: right;
    min-width: 0;
    overflow-wrap: break-word;
    max-width: 100%;
}
/* Tight log rows in the drawer — drop the time column to fit a 280px drawer
   without forcing letter-level breaking. */
.demo-drawer-body .demo-log-row {
    grid-template-columns: 56px 44px 1fr;
    gap: 6px;
    padding: 6px 10px;
    font-size: 0.6875rem;
}
.demo-drawer-body .demo-log-msg {
    overflow-wrap: break-word;
    min-width: 0;
}
@media (max-width: 1440px) {
    .demo-drawer-host.has-drawer-open { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1280px) {
    .demo-drawer-host.has-drawer-open { grid-template-columns: minmax(0, 1fr) 260px; }
}

/* Globally prevent any demo workspace content from overflowing the frame.
   Every direct child of .demo-workspace gets min-width: 0 (so flex/grid
   containers can shrink); every grid child inside also gets min-width: 0
   (so columns respect their declared sizes). This protects panels that use
   inline `style="display:grid;grid-template-columns:1fr 320px;..."` against
   the same overflow we just fixed on .demo-drawer-host. */
.demo-workspace > * { min-width: 0; max-width: 100%; }
.demo-workspace .demo-work-2 > *,
.demo-workspace .demo-work-2--wide-right > *,
.demo-workspace .demo-grid-2 > *,
.demo-workspace .demo-grid-3 > *,
.demo-workspace .demo-kpi-row > *,
.demo-workspace .demo-kanban > *,
.demo-workspace .demo-cols-2 > *,
.demo-workspace .demo-cols-3 > *,
.demo-workspace .demo-cols-4 > * { min-width: 0; }
/* Inline-grid panels (the common 1fr+sidecard pattern) — match any element
   whose inline style declares a grid. */
.demo-workspace > div[style*="grid-template-columns"] > * { min-width: 0; }
/* Surface cards and code blocks inside a grid cell should never push the
   cell wider than the cell allows. */
.demo-workspace .demo-surface,
.demo-workspace .demo-codeblock,
.demo-workspace .demo-codeblock-body { min-width: 0; max-width: 100%; }
/* Codeblock body scrolls horizontally on its own — fine as long as it
   doesn't expand the parent cell. */
.demo-workspace .demo-codeblock-body { overflow-x: auto; }
/* Tables in a grid cell: scroll horizontally inside the cell if they're
   actually wider than available, rather than pushing the layout wide. */
.demo-workspace .demo-table { min-width: 0; }
.demo-drawer {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(110, 231, 183, 0.14);
    border-radius: 10px;
    overflow: hidden;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.24s, transform 0.24s;
    pointer-events: none;
}
.demo-drawer.is-open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.demo-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(110, 231, 183, 0.1);
    background: rgba(110, 231, 183, 0.04);
}
.demo-drawer-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8125rem;
    display: block;
}
.demo-drawer-sub {
    font-size: 0.6875rem;
    color: rgba(214, 228, 220, 0.55);
    display: block;
    margin-top: 2px;
}
.demo-drawer-close {
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(110, 231, 183, 0.14);
    color: rgba(214, 228, 220, 0.8);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.demo-drawer-close:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}
.demo-drawer-body {
    padding: 14px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.8125rem;
    color: rgba(214, 228, 220, 0.88);
    line-height: 1.55;
}
.demo-drawer-body .demo-row { padding: 7px 0; }
.demo-drawer-empty {
    color: rgba(214, 228, 220, 0.5);
    font-size: 0.75rem;
    padding: 16px 4px;
    text-align: center;
    font-style: italic;
}

/* Drilled-in row highlight */
[data-rows-drawer] [data-row-id].is-active {
    background: rgba(110, 231, 183, 0.1) !important;
    box-shadow: inset 2px 0 0 #6ee7b7;
}

/* Animation on chip-filtered row hide/show */
[data-chip-tag] { transition: opacity 0.18s; }

/* Mobile drawer: stack below the table instead of side-by-side */
@media (max-width: 760px) {
    .demo-drawer-host { grid-template-columns: 1fr !important; }
    .demo-drawer-host.has-drawer-open { gap: 12px; }
    .demo-drawer { max-height: 320px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Demo — dedicated mobile pass. The demo is a desktop product UI; on phones
   it needs to degrade gracefully: scroll-strip tabs, horizontally-scrollable
   tables, single-column panels, a tidy stacked toolbar. Desktop untouched.
   This block is last in the file so it wins over earlier scattered rules.
   ───────────────────────────────────────────────────────────────────── */
.demo-table-wrap { width: 100%; }

@media (max-width: 760px) {
    /* Titlebar — one clean row; the app name truncates with an ellipsis */
    .demo-frame-titlebar { flex-wrap: nowrap; gap: 8px; padding: 9px 12px; }
    .demo-frame-dots { flex-shrink: 0; }
    .demo-frame-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        flex-shrink: 1;
    }
    .demo-frame-live-pill { flex-shrink: 0; margin-left: 4px; }
    .demo-frame-badge { display: none; }

    /* Toolbar — vertical stack: scroll-strip tabs on top, controls below */
    .demo-frame-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }
    .demo-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    .demo-tabs::-webkit-scrollbar { display: none; }
    .demo-tab { flex-shrink: 0; }
    .demo-frame-toolbar-right { justify-content: flex-end; gap: 8px; }
    .demo-lang { flex-shrink: 0; }

    /* Workspace + panels */
    .demo-workspace { padding: 14px 12px; gap: 14px; }
    .demo-panel-head { flex-direction: column; align-items: stretch; gap: 10px; }
    .demo-panel-actions { justify-content: flex-start; flex-wrap: wrap; }
    .demo-panel-title { font-size: 0.9375rem; }

    /* KPI tiles — 2 across, compact, sparkline hidden */
    .demo-kpi-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .demo-kpi { padding: 10px 12px; }
    .demo-kpi-value { font-size: 1.125rem; }
    .demo-kpi-spark { display: none; }
    .demo-kpi-delta { font-size: 0.625rem; }

    /* Tables — scroll horizontally inside their wrapper; columns stay legible */
    .demo-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }
    .demo-table { min-width: 460px; }
    .demo-table thead th,
    .demo-table tbody td { white-space: nowrap; }

    /* Any 2-col grid (inline or class-based) collapses to single column */
    .demo-workspace > div[style*="grid-template-columns"],
    .demo-work-2,
    .demo-work-2--wide-right,
    .demo-cols-2,
    .demo-cols-3,
    .demo-cols-4 { grid-template-columns: 1fr !important; }

    /* Flow diagram — stack steps vertically, rotate arrows to point down */
    .demo-flow { flex-direction: column; align-items: stretch; }
    .demo-flow-step { min-width: 0; }
    .demo-flow-arrow { display: inline-flex; transform: rotate(90deg); align-self: center; }

    /* Kanban — single column */
    .demo-kanban { grid-template-columns: 1fr; }

    /* Log rows — tighter columns so the message has room */
    .demo-log-row { grid-template-columns: 60px 46px 1fr; gap: 7px; padding: 6px 12px; }

    /* Code block header wraps instead of overflowing */
    .demo-codeblock-header { flex-wrap: wrap; }

    /* Statusbar — wrap cleanly, smaller text */
    .demo-statusbar { font-size: 0.625rem; padding: 8px 12px; gap: 6px 14px; }

    /* Drawer — stack full-width below the table */
    .demo-drawer-host,
    .demo-drawer-host.has-drawer-open { grid-template-columns: 1fr !important; gap: 12px; }
    .demo-drawer { max-height: 360px; }

    /* Sub-tab strip can scroll if it's wide */
    .demo-subtabs {
        overflow-x: auto;
        max-width: 100%;
        scrollbar-width: none;
    }
    .demo-subtabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
    .demo-kpi-row { grid-template-columns: 1fr 1fr; } /* keep the dashboard feel */
    .demo-section-title { font-size: 1.25rem; }
    .demo-frame-title { font-size: 0.625rem; }
    .demo-table { min-width: 420px; }
    .demo-workspace { padding: 12px 10px; }
}
