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

:root {
    --primary: #9D4EDD;
    --primary-dark: #7B2CBF;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    --border: #e5e7eb;
    /* Visual tuning variables */
    --radius: 1rem;
    --gradient-duration: 60s;
    --pulse-duration: 12s;

    /* glass / backdrop variables */
    --hero-glass-alpha: 0.12;
    --hero-glass-blur: 8px;
    --card-glass-alpha: 0.06;
    --card-glass-blur: 10px;

    /* borders and accents */
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(157, 78, 221, 0.15);

    /* CTA */
    --cta-padding: 0.9rem 2rem;
    --cta-font-size: 1.0625rem;
    --cta-shadow: 0 6px 18px rgba(157, 78, 221, 0.2);
    --cta-glow: rgba(255,255,255,0.12);
    /* CTA background defaults (use gradient for depth) */
    --cta-bg: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --cta-bg-hover: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    --tooltip-bg: rgba(12, 10, 28, 0.97);
    --tooltip-text: #f8f8ff;
    --tooltip-border: rgba(157, 78, 221, 0.55);
    --tooltip-shadow: 0 12px 30px rgba(2, 5, 24, 0.35);
    color-scheme: light;
}

@property --cta-from {
    syntax: '<color>';
    inherits: false;
    initial-value: #9D4EDD;
}

@property --cta-via {
    syntax: '<color>';
    inherits: false;
    initial-value: #7B2CBF;
}

@property --cta-to {
    syntax: '<color>';
    inherits: false;
    initial-value: #5DE0E6;
}

@property --cta-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 120deg;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    animation: gradientShift var(--gradient-duration) ease infinite;
    background-size: 200% 200%;
}

h1, h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
}

h3, h4, h5, h6 {
    font-family: 'Saira', sans-serif;
    font-weight: 600;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientPan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes heroAurora {
    0% {
        background-position: 0% 0%, 50% 0%, 100% 50%;
        transform: translate3d(-2%, -1%, 0) scale(1.02);
    }
    50% {
        background-position: 50% 50%, 80% 20%, 0% 50%;
        transform: translate3d(1%, 1%, 0) scale(1.05);
    }
    100% {
        background-position: 100% 50%, 0% 30%, 50% 0%;
        transform: translate3d(-1%, 2%, 0) scale(1.01);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.term-tooltip {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    cursor: help;
    text-decoration: underline dotted rgba(157, 78, 221, 0.45);
    text-underline-offset: 0.18em;
    transition: color 0.2s ease;
}

.term-tooltip:focus-visible {
    outline: 2px solid rgba(157, 78, 221, 0.4);
    outline-offset: 2px;
}

.term-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    transform: translateX(-50%);
    background: var(--tooltip-bg);
    color: var(--tooltip-text);
    font-size: 0.85rem;
    line-height: 1.3;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    box-shadow: var(--tooltip-shadow);
    border: 1px solid var(--tooltip-border);
    opacity: 0;
    pointer-events: none;
    width: max-content;
    max-width: 240px;
    white-space: normal;
    z-index: 20;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.term-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.15rem);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--tooltip-bg);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.term-tooltip:hover::after,
.term-tooltip:focus-visible::after,
.term-tooltip:hover::before,
.term-tooltip:focus-visible::before {
    opacity: 1;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
}

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

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

.logo-image {
    height: 32px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text-image {
    height: 28px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-family: 'Saira', sans-serif;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Saira', sans-serif;
    transition: background 0.3s;
}

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

.btn-cta {
    --cta-from: #9D4EDD;
    --cta-via: #7B2CBF;
    --cta-to: #5DE0E6;
    --cta-angle: 118deg;
    display: inline-block;
    background-image: linear-gradient(var(--cta-angle), var(--cta-from) 0%, var(--cta-via) 45%, var(--cta-to) 100%);
    background-size: 200% 200%;
    color: white;
    padding: var(--cta-padding);
    border-radius: 0.75rem;
    text-decoration: none;
    font-family: 'Saira', sans-serif;
    font-weight: 600;
    font-size: var(--cta-font-size);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-position 400ms ease,
        --cta-from 400ms ease,
        --cta-via 400ms ease,
        --cta-to 400ms ease,
        --cta-angle 400ms ease;
    box-shadow: var(--cta-shadow);
    position: relative;
    overflow: hidden;
    animation: gradientPan 14s ease infinite;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--cta-glow), transparent);
    opacity: 0.85;
    transition: left 350ms ease, opacity 180ms ease;
}

.btn-cta:hover {
    --cta-from: #60A5FA;
    --cta-via: #C084FC;
    --cta-to: #F472B6;
    --cta-angle: 140deg;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgba(157, 78, 221, 0.16);
    background-position: 100% 0%;
}

.btn-cta:hover::before {
    left: 100%;
    opacity: 0.95;
}

.btn-cta:focus {
    outline: 3px solid rgba(157, 78, 221, 0.12);
    outline-offset: 3px;
}

/* Hero CTA - larger and more prominent */
.btn-cta-hero {
    font-size: 1.25rem;
    padding: 1.1rem 2.5rem;
    box-shadow: 0 8px 24px rgba(157, 78, 221, 0.35);
}

.btn-cta-hero:hover {
    box-shadow: 0 12px 32px rgba(157, 78, 221, 0.4);
}

/* Section CTA container */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Hero Section */
.hero {
    text-align: center;
    background: radial-gradient(circle at 15% 20%, rgba(148, 163, 255, 0.45), transparent 55%),
        radial-gradient(circle at 85% 10%, rgba(248, 171, 255, 0.35), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 250, 255, 0.92) 55%, rgba(241, 245, 255, 0.9) 100%);
    color: var(--text);
    position: relative;
    overflow: hidden;
    min-height: min(100vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 10vw, 7rem) 0;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(96, 165, 250, 0.3), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(248, 113, 113, 0.25), transparent 50%),
        radial-gradient(circle at 65% 65%, rgba(14, 165, 233, 0.2), transparent 60%);
    background-size: 180% 180%;
    animation: heroAurora 28s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 12% 18%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 65%);
    filter: blur(60px);
    opacity: 0.55;
    animation: heroAurora 18s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .hero::before, .hero::after, .section::before, .section-alt::before, .section, .section-alt, body {
        animation: none !important;
    }
    .chat-message,
    .chat-typing span {
        animation: none !important;
        opacity: 1;
        transform: none !important;
    }
}

.hero-banner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.hero-banner picture,
.hero-banner img {
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 1;
    filter: brightness(1);
}

.hero .container {
    position: relative;
    z-index: 2;
    transform: none;
    /* lighter glass for light mode */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(var(--hero-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--hero-glass-blur)) saturate(140%);
    padding: 2.5rem 3rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.35);
    width: min(900px, 92%);
    margin: 0 auto;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
    text-shadow: none;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text);
    text-shadow: none;
}

.hero .tagline-detail {
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-light);
    text-shadow: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.hero-eyebrow {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
}

.hero-metrics {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.25rem;
    margin: 0;
    padding: 0;
}

.hero-metrics li {
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.hero-metrics li::before {
    content: '•';
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

/* Hero badges/pills */
.hero-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.hero-badges li {
    font-size: 0.85rem;
    color: var(--primary-dark);
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-family: 'Saira', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-ghost {
    display: inline-block;
    padding: var(--cta-padding);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
    font-family: 'Saira', sans-serif;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 180ms ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.hero-security {
    font-size: 0.95rem;
    color: #cbd5f5;
    opacity: 0.9;
}

.trust-strip {
    background: transparent;
    color: var(--text);
    padding: 1.5rem 0;
}

.trust-strip .container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.trust-title {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-family: 'Saira', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--text);
}

.trust-logos span {
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

/* Trust Logo Grid */
.trust-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.trust-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.trust-logo-item:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.trust-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.trust-logo-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    font-family: 'Saira', sans-serif;
    font-weight: 600;
}

/* Sections - Subtle semantic colors */
.section {
    padding: 5rem 0;
    position: relative;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2ff 50%, #f5f3ff 100%);
    overflow: hidden;
}

.section .container {
    position: relative;
    z-index: 1;
}

.section-alt {
    background: linear-gradient(140deg, #f0f4ff 0%, #f5f7ff 50%, #fdf2ff 100%);
    position: relative;
    overflow: hidden;
}

.section-alt .container {
    position: relative;
    z-index: 1;
}

.section::before,
.section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
    background-size: 200% 200%;
    animation: heroAurora 32s ease-in-out infinite;
}

.section::before {
    background:
        radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.25), transparent 55%),
        radial-gradient(circle at 70% 0%, rgba(248, 171, 255, 0.25), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.35), transparent 50%);
}

.section-alt::before {
    background:
        radial-gradient(circle at 15% 15%, rgba(79, 209, 197, 0.25), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(147, 51, 234, 0.2), transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(6, 182, 212, 0.2), transparent 60%);
    opacity: 0.55;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.centered {
    text-align: center;
}

.centered p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    /* subtler glass on cards */
    background: rgba(255, 255, 255, var(--card-glass-alpha));
    backdrop-filter: blur(var(--card-glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--card-glass-blur)) saturate(130%);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(157, 78, 221, 0.18);
    border-color: var(--border-accent);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h3 .card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.12), rgba(157, 78, 221, 0.06));
    border: 1px solid rgba(157, 78, 221, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.card p {
    color: var(--text-light);
}

.copilot-section {
    background: #ffffff;
}

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

.copilot-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.copilot-copy h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.copilot-copy p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.copilot-highlights {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.copilot-highlights li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1rem;
    color: var(--text);
}

.copilot-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 0.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 10px rgba(157, 78, 221, 0.3);
}

.copilot-note {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Copilot Feature Cards */
.copilot-feature-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.copilot-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copilot-feature-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.copilot-feature-card .feature-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.copilot-feature-card p {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

/* Copilot Flowchart */
.copilot-flowchart {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.12);
}

.flow-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.12), rgba(157, 78, 221, 0.06));
    border-radius: 0.5rem;
    border: 1px solid rgba(157, 78, 221, 0.2);
}

.flow-content {
    flex: 1;
}

.flow-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.flow-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
}

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

.flow-list li {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
}

.flow-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.flow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.15rem 0;
    height: 1.75rem;
}

.flow-connector::before {
    content: '';
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

.flow-connector::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--primary-dark);
}

/* Parallel flow boxes */
.flow-parallel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.flow-step.flow-small {
    padding: 0.75rem 1rem;
}

.flow-step.flow-small .flow-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
}

.flow-step.flow-small .flow-text {
    font-size: 0.85rem;
}

/* Diverge connector - splits into two */
.flow-diverge {
    position: relative;
    height: 2rem;
}

.flow-diverge::before {
    width: 2px;
    height: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.flow-diverge::after {
    display: none;
}

.flow-diverge::before {
    background: var(--primary);
}

/* Diverge horizontal line and arrows */
.flow-diverge {
    background: 
        linear-gradient(90deg, transparent calc(50% - 1px), var(--primary) calc(50% - 1px), var(--primary) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(90deg, transparent 12%, var(--primary) 12%, var(--primary) 88%, transparent 88%);
    background-size: 100% 50%, 100% 2px;
    background-position: top, bottom 6px center;
    background-repeat: no-repeat;
}

/* Arrow heads for diverge */
.flow-parallel::before,
.flow-parallel::after {
    content: '';
    position: absolute;
    top: -6px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--primary-dark);
}

.flow-parallel {
    position: relative;
}

.flow-parallel::before {
    left: 25%;
    transform: translateX(-50%);
}

.flow-parallel::after {
    right: 25%;
    transform: translateX(50%);
}

/* Converge connector - merges two into one */
.flow-converge {
    position: relative;
    height: 2rem;
}

.flow-converge::before {
    width: 2px;
    height: 50%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
}

.flow-converge::after {
    position: absolute;
    bottom: 0;
}

.flow-converge {
    background: 
        linear-gradient(90deg, transparent 12%, var(--primary) 12%, var(--primary) 88%, transparent 88%);
    background-size: 100% 2px;
    background-position: top 6px center;
    background-repeat: no-repeat;
}

/* Flow step accent colors */
.flow-start { border-left: 3px solid #c084fc; }
.flow-data { border-left: 3px solid #b06df5; }
.flow-compute { border-left: 3px solid var(--primary); }
.flow-human { border-left: 3px solid #8a3fe0; }
.flow-expert { border-left: 3px solid #7435c0; }

/* Solution Chart Card */
.solution-chart-card {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.solution-chart-card .mini-chart {
    width: 100%;
    height: auto;
    display: block;
}

.copilot-chat {
    display: flex;
    justify-content: center;
}

.chat-window {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: calc(var(--radius) * 1.2);
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(31, 38, 135, 0.2);
    overflow: hidden;
    color: var(--text);
}

.chat-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
}

.chat-title {
    display: block;
    font-weight: 600;
}

.chat-status {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}

.chat-pill {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
}

.chat-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: radial-gradient(circle at top right, rgba(157, 78, 221, 0.05), transparent 55%);
}

.chat-message {
    max-width: 85%;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    line-height: 1.4;
    font-size: 0.95rem;
    position: relative;
    opacity: 0;
    transform: translateY(12px);
    animation: chatReveal 0.8s forwards ease;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.user-avatar {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.user-avatar.cfo {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.copilot-avatar {
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.3);
    padding: 4px;
}

.copilot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chat-content {
    flex: 1;
    min-width: 0;
}

.chat-content span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

.chat-message.user {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-subtle);
}

.chat-message.copilot {
    align-self: flex-end;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.25);
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.9s; }
.delay-3 { animation-delay: 1.5s; }
.delay-4 { animation-delay: 2.1s; }
.delay-5 { animation-delay: 2.7s; }
.delay-6 { animation-delay: 3.3s; }

.chat-typing {
    display: inline-flex;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    align-self: flex-end;
    background: rgba(157, 78, 221, 0.06);
}

.chat-typing span {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--primary);
    animation: typingPulse 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chatReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingPulse {
    0%, 80%, 100% {
        opacity: 0.2;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* Section Intro */
.section-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.08);
}

.kpi-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.kpi-note {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card {
    display: flex;
    flex-direction: column;
    padding: 2.25rem;
    gap: 1.5rem;
    border-radius: calc(var(--radius) * 1.3);
    background: rgba(255, 255, 255, var(--card-glass-alpha));
    backdrop-filter: blur(var(--card-glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--card-glass-blur)) saturate(130%);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 40px rgba(31, 38, 135, 0.18);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: 0 24px 60px rgba(157, 78, 221, 0.16);
}

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

.solution-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(157, 78, 221, 0.08));
    border: 1px solid rgba(157, 78, 221, 0.25);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}

.solution-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.solution-card h3 {
    margin: 0;
    font-size: 1.6rem;
}

.solution-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-light);
}

.solution-lede {
    font-size: 1.1rem;
    color: var(--text);
}

.solution-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.98rem;
}

.solution-highlights li {
    line-height: 1.5;
}

.solution-highlights strong {
    color: var(--text);
}

.solution-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.solution-link:hover {
    text-decoration: underline;
}

.solution-conversation-block {
    padding: 1.25rem 1.5rem;
    border-radius: calc(var(--radius) * 1.1);
    background: linear-gradient(135deg, rgba(249, 251, 255, 0.8) 0%, rgba(254, 246, 255, 0.65) 100%);
    border: 1px solid var(--border-subtle);
}

.solution-conversation-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.85rem;
}

.solution-conversation {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.chat-message-compact {
    max-width: 85%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-message-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chat-message-compact.user {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    color: var(--text);
}

.chat-message-compact.copilot {
    align-self: flex-end;
    background: rgba(157, 78, 221, 0.06);
    border: 1px solid rgba(157, 78, 221, 0.15);
    color: var(--text);
}

.chat-message-compact .chat-role {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.chat-message-compact.user .chat-role {
    color: var(--text-light);
}

.chat-message-compact.copilot .chat-role {
    color: var(--primary);
}

.chat-message-compact p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.solution-screenshot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.kpi-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    margin-bottom: 0.75rem;
    margin-right: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.kpi-pill strong {
    font-size: 1rem;
    letter-spacing: normal;
    text-transform: none;
    color: var(--text);
}

.screenshot-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.screenshot-placeholder p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.screenshot-placeholder span {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 300px;
}

/* Personas */
.personas {
    position: relative;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.persona-card {
    background: rgba(255, 255, 255, var(--card-glass-alpha));
    backdrop-filter: blur(var(--card-glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--card-glass-blur)) saturate(130%);
    border: 1px solid var(--border-subtle);
    border-radius: calc(var(--radius) * 1.2);
    padding: 2.5rem;
    box-shadow: 0 18px 50px rgba(31, 38, 135, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.persona-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-light);
}

.persona-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.persona-kpis {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.persona-kpis li {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

.persona-kpis span {
    display: block;
    font-weight: 600;
    color: var(--text);
}

.persona-note {
    font-size: 0.95rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: rgba(255, 255, 255, var(--card-glass-alpha));
    backdrop-filter: blur(var(--card-glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--card-glass-blur)) saturate(130%);
    border: 1px solid var(--border-subtle);
    border-radius: calc(var(--radius) * 1.2);
    padding: 2rem;
    box-shadow: 0 18px 50px rgba(31, 38, 135, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(31, 38, 135, 0.2);
}

.team-member-info h3 {
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Credibility Section */
.credibility {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cred-item {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cred-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.cred-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact-subtext {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background: #001f3f;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 5rem 0 3rem;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.125rem;
    }

    .hero .tagline-detail {
        font-size: 0.9rem;
    }

    .hero .container {
        padding: 2rem 1.5rem;
        width: 92%;
    }

    .section h2 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 0.5rem;
        margin-left: 0.5rem;
        font-size: 0.9rem;
    }

    .nav-links .btn-primary {
        display: none;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .logo-image {
        height: 30px;
    }

    .solution-card {
        padding: 2rem;
    }

    .solution-conversation-block {
        padding: 1rem 1.25rem;
    }

    .chat-message-compact {
        max-width: 95%;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .screenshot-placeholder {
        min-height: 200px;
        padding: 2rem 1rem;
    }

    .hero-content {
        gap: 1rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .trust-logos {
        flex-direction: column;
    }

    .persona-card {
        padding: 2rem;
    }

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

    .chat-window {
        max-width: none;
    }

    /* Flowchart responsive */
    .flow-step {
        padding: 0.875rem 1rem;
    }

    .flow-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }

    .flow-list li {
        font-size: 0.85rem;
    }

    .flow-parallel {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
    }

    .flow-parallel::before,
    .flow-parallel::after {
        display: none;
    }

    /* Mobile: show simple vertical connectors between parallel items */
    .flow-parallel .flow-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -1rem;
        transform: translateX(-50%);
        width: 2px;
        height: 1rem;
        background: linear-gradient(180deg, var(--primary), var(--primary-dark));
        z-index: 1;
    }

    .flow-parallel .flow-step {
        position: relative;
        margin-bottom: 1rem;
    }

    .flow-parallel .flow-step:last-child {
        margin-bottom: 0;
    }

    /* Mobile: show simplified diverge/converge connectors */
    .flow-diverge,
    .flow-converge {
        display: flex;
        height: 1.5rem;
        background: none !important;
    }

    .flow-diverge::before,
    .flow-converge::before {
        content: '';
        width: 2px;
        flex: 1;
        background: linear-gradient(180deg, var(--primary), var(--primary-dark)) !important;
        position: static;
        transform: none;
    }

    .flow-diverge::after,
    .flow-converge::after {
        display: block;
        position: static;
        transform: none;
        margin-top: auto;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --text: #f4f6ff;
        --text-light: #c7d2fe;
        --bg: #030617;
        --border: rgba(148, 163, 184, 0.35);
        --border-subtle: rgba(148, 163, 184, 0.18);
        --border-accent: rgba(157, 78, 221, 0.45);
        --card-glass-alpha: 0.18;
        --hero-glass-alpha: 0.2;
        --card-glass-blur: 16px;
        --tooltip-bg: rgba(6, 7, 20, 0.98);
        --tooltip-text: #f6f7ff;
        --tooltip-border: rgba(255, 255, 255, 0.2);
        --tooltip-shadow: 0 18px 36px rgba(1, 3, 12, 0.65);
    }

    body {
        background: radial-gradient(circle at top, rgba(32, 6, 60, 0.65), transparent 55%),
            radial-gradient(circle at 20% 20%, rgba(88, 28, 135, 0.4), transparent 40%),
            #030617;
        color: var(--text);
    }

    .navbar {
        background: rgba(5, 8, 20, 0.92);
        border-bottom-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
    }

    .nav-links a {
        color: var(--text-light);
    }

    .nav-links a:hover {
        color: #fff;
    }

    .hero {
        background: radial-gradient(circle at 40% 20%, rgba(88, 28, 135, 0.55), transparent 55%),
            radial-gradient(circle at 70% 40%, rgba(15, 118, 251, 0.45), transparent 60%),
            #050513;
        color: white;
    }

    .hero::before {
        background: rgba(0, 0, 0, 0.1);
    }

    .hero .container {
        background: rgba(5, 8, 25, var(--hero-glass-alpha));
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

    .hero h1 {
        color: #ffffff;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 60px rgba(157, 78, 221, 0.4);
    }

    .hero .subtitle {
        color: #e0e7ff;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    }

    .hero .tagline-detail {
        color: #c7d2fe;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    }

    .hero-eyebrow {
        color: #a5b4fc;
    }

    .hero-badges li {
        color: #e0e7ff;
        background: rgba(157, 78, 221, 0.25);
        border-color: rgba(157, 78, 221, 0.4);
    }

    .banner-image {
        opacity: 0.9;
        filter: brightness(0.65);
    }

    .hero-metrics li {
        color: var(--text);
    }

    .btn-ghost {
        border-color: rgba(255, 255, 255, 0.35);
        color: white;
    }

    .section {
        background: linear-gradient(135deg, #0b1229 0%, #080f24 50%, #070c1c 100%);
    }

    .section::before {
        background: rgba(5, 7, 20, 0.7);
    }

    .section-alt {
        background: linear-gradient(135deg, #050b1c 0%, #09132f 50%, #050b18 100%);
    }

    .section-alt::before {
        background: rgba(3, 6, 18, 0.65);
    }

    .card,
    .solution-card,
    .persona-card,
    .team-card,
    .kpi-card {
        background: rgba(9, 13, 40, 0.85);
        border-color: rgba(157, 78, 221, 0.2);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }

    .kpi-value {
        color: #f5f3ff;
    }

    .kpi-note,
    .persona-kpis li,
    .persona-note {
        color: var(--text-light);
    }

    .solution-card:hover,
    .persona-card:hover {
        border-color: rgba(157, 78, 221, 0.4);
    }

    .kpi-pill {
        background: rgba(157, 78, 221, 0.18);
        border-color: rgba(157, 78, 221, 0.4);
    }

    .kpi-pill strong {
        color: var(--text);
    }

    .trust-strip {
        background: rgba(2, 4, 12, 0.95);
    }

    .persona-note {
        border-top-color: rgba(255, 255, 255, 0.12);
    }

    .chat-window {
        background: rgba(20, 24, 50, 0.95);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
    }

    .chat-header {
        background: rgba(255, 255, 255, 0.08);
    }

    .chat-body {
        background: radial-gradient(circle at top right, rgba(157, 78, 221, 0.2), transparent 55%);
    }

    .chat-message.user {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .chat-message.copilot {
        background: rgba(157, 78, 221, 0.18);
        border-color: rgba(157, 78, 221, 0.5);
    }

    .copilot-avatar {
        background: rgba(157, 78, 221, 0.25);
        border-color: rgba(157, 78, 221, 0.4);
    }

    .copilot-section {
        background: linear-gradient(135deg, #0a0e1c 0%, #0d1124 40%, #120d1f 100%);
    }

    .solution-link {
        color: #f5e8ff;
    }

    .solution-conversation-block {
        background: linear-gradient(135deg, rgba(8, 12, 30, 0.85) 0%, rgba(16, 8, 28, 0.75) 100%);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .solution-conversation-label {
        color: rgba(157, 78, 221, 0.9);
    }

    .chat-message-compact.user {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        color: var(--text);
    }

    .chat-message-compact.copilot {
        background: rgba(157, 78, 221, 0.18);
        border-color: rgba(157, 78, 221, 0.4);
        color: var(--text);
    }

    footer {
        background: #01030b;
    }

    .chat-chart-card {
        background: #1e1e3f !important;
        border-color: rgba(255, 255, 255, 0.15);
    }

    .solution-chart-card {
        background: #1e1e3f !important;
        border-color: rgba(255, 255, 255, 0.15);
    }

    .chart-header {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .chart-title {
        color: #e0e7ff !important;
    }

    .chart-badge {
        background: rgba(157, 78, 221, 0.25);
        color: #c4b5fd;
    }

    /* Fix SVG chart text readability in dark mode */
    .mini-chart text {
        fill: #c7d2fe !important;
    }

    .mini-chart line {
        stroke: rgba(255, 255, 255, 0.3) !important;
    }

    .mini-chart path[stroke="#d4d4d8"],
    .mini-chart path[stroke="#e5e7eb"] {
        stroke: rgba(255, 255, 255, 0.45) !important;
    }

    /* Flowchart dark mode */
    .flow-step {
        background: rgba(9, 13, 40, 0.85);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .flow-step:hover {
        box-shadow: 0 4px 16px rgba(157, 78, 221, 0.25);
    }

    .flow-icon {
        background: linear-gradient(135deg, rgba(157, 78, 221, 0.25), rgba(157, 78, 221, 0.12));
        border-color: rgba(157, 78, 221, 0.35);
    }

    .flow-text,
    .flow-list li {
        color: var(--text-light);
    }

    .flow-connector::before {
        background: linear-gradient(180deg, rgba(157, 78, 221, 0.8), rgba(123, 44, 191, 0.8)) !important;
    }

    .flow-connector::after {
        border-top-color: rgba(123, 44, 191, 0.8);
    }

    .flow-diverge,
    .flow-converge {
        background-image: 
            linear-gradient(90deg, transparent calc(50% - 1px), rgba(157, 78, 221, 0.8) calc(50% - 1px), rgba(157, 78, 221, 0.8) calc(50% + 1px), transparent calc(50% + 1px)),
            linear-gradient(90deg, transparent 12%, rgba(157, 78, 221, 0.8) 12%, rgba(157, 78, 221, 0.8) 88%, transparent 88%) !important;
    }

    .flow-converge {
        background-image: 
            linear-gradient(90deg, transparent 12%, rgba(157, 78, 221, 0.8) 12%, rgba(157, 78, 221, 0.8) 88%, transparent 88%) !important;
    }

    .flow-parallel::before,
    .flow-parallel::after {
        border-top-color: rgba(123, 44, 191, 0.8);
    }
}

/* Chat Chart Card */
.chat-chart-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.chart-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(157, 78, 221, 0.12);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mini-chart {
    width: 100%;
    height: auto;
    display: block;
}

/* ============ BESS Map Section ============ */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    margin: 2rem 0;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.operational {
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.legend-dot.under-construction {
    background-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.legend-dot.announced {
    background-color: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.map-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.map-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.map-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    font-family: 'Saira', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Custom marker styles */
.bess-marker {
    background: transparent;
    border: none;
}

.marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease;
}

.marker-dot:hover {
    transform: scale(1.3);
}

/* Popup styles */
.bess-popup {
    min-width: 200px;
    padding: 0.5rem;
}

.bess-popup h4 {
    font-family: 'Saira', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.bess-popup .popup-owner {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.bess-popup .popup-capacity {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.bess-popup .popup-location {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.bess-popup .popup-status {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
}

.popup-status.status-operational {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.popup-status.status-under-construction {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.popup-status.status-announced {
    background: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 0.75rem 1rem;
}

.leaflet-popup-tip {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }

    .map-stats {
        gap: 1.5rem;
    }

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

    .map-legend {
        gap: 1rem;
    }

    .legend-item {
        font-size: 0.8rem;
    }
}

/* Dark mode map styles */
@media (prefers-color-scheme: dark) {
    .map-container {
        border-color: rgba(255, 255, 255, 0.15);
    }

    .filter-btn {
        background: rgba(20, 24, 50, 0.8);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--text);
    }

    .filter-btn:hover {
        border-color: var(--primary);
    }

    .filter-btn.active {
        background: var(--primary);
        color: white;
    }

    .leaflet-popup-content-wrapper {
        background: #1e1e3f;
        color: var(--text);
    }

    .leaflet-popup-tip {
        background: #1e1e3f;
    }

    .bess-popup h4 {
        color: #f4f6ff;
    }

    .bess-popup .popup-owner,
    .bess-popup .popup-location {
        color: #c7d2fe;
    }

    .popup-status.status-operational {
        background: rgba(34, 197, 94, 0.25);
        color: #4ade80;
    }

    .popup-status.status-under-construction {
        background: rgba(245, 158, 11, 0.25);
        color: #fbbf24;
    }

    .popup-status.status-announced {
        background: rgba(99, 102, 241, 0.25);
        color: #818cf8;
    }
}

/* Footer */

.site-footer {
    position: relative;
    background: linear-gradient(135deg, #f8fbff 0%, #eef2ff 45%, #e0e7ff 100%);
    padding: 3.5rem 0;
    margin-top: 4rem;
    overflow: hidden;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% -10%, rgba(93, 224, 230, 0.25), transparent 55%),
        radial-gradient(circle at 70% 20%, rgba(157, 78, 221, 0.2), transparent 60%);
    filter: blur(90px);
    opacity: 0.8;
    pointer-events: none;
}

.footer-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
    z-index: 1;
}

.footer-etymology {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(15, 23, 42, 0.8);
    letter-spacing: 0.02em;
}

.footer-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #0f172a;
}

.footer-separator {
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.4), transparent);
}

.footer-tagline {
    font-family: 'Source Sans 3', sans-serif;
    color: rgba(15, 23, 42, 0.75);
}

.footer-rights {
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.6);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-rights {
        text-align: right;
    }
}

@media (prefers-color-scheme: dark) {
    .site-footer {
        background: radial-gradient(circle at top, rgba(157, 78, 221, 0.15), transparent 55%), #050915;
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    .footer-glow {
        background: linear-gradient(120deg, rgba(93, 224, 230, 0.25), rgba(157, 78, 221, 0.25));
        filter: blur(120px);
        opacity: 0.6;
    }

    .footer-etymology {
        color: rgba(255, 255, 255, 0.78);
    }

    .footer-name {
        color: #f8fafc;
    }

    .footer-separator {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    }

    .footer-tagline {
        color: rgba(255, 255, 255, 0.75);
    }

    .footer-rights {
        color: rgba(255, 255, 255, 0.65);
    }
}
