:root {
    /* Brand Colors */
    --primary: #2563eb;
    --secondary: #3b82f6;
    --tertiary: #93c5fd;
    --accent: #F5B700;

    /* Theme specific background colors (Default: Dark Mode) */
    --bg-dark: #0C0E15;
    /* Deep celestial black */
    --bg-darker: #06070a;
    /* True black contrast */
    --bg-elevated: #131620;
    /* Floating card background */

    /* Frosted glass effects */
    --bg-glass: rgba(19, 22, 32, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #E6EAF5;
    --text-secondary: #B0BCCC;
    --glow-primary: rgba(27, 117, 188, 0.3);

    /* Light Theme Variants (Optional) */
    --light-bg-base: #F8FAFC;
    --light-bg-elevated: #FFFFFF;
    --light-border: rgba(0, 0, 0, 0.08);
    --light-text-primary: #0F172A;
    --light-text-secondary: #475569;

    /* Font stacking configurations */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Spacing & Utilities */
    --max-width: 1280px;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides: injected onto the <body> tag via JavaScript */
body.light {
    --bg-dark: var(--light-bg-base);
    --bg-darker: #E2E8F0;
    --bg-elevated: var(--light-bg-elevated);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border-color: var(--light-border);
    --text-primary: var(--light-text-primary);
    --text-secondary: var(--light-text-secondary);
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
    /* Scaled down base HTML font size */
}

/* --------------------------------------------------------------
 * 3. CORE ELEMENT STYLING
 * -------------------------------------------------------------- */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevents horizontal scroll on mobile */
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-smooth);
}

button {
    font-family: 'Inter';
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* Shared container bounding box wrapper */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* Background Effects */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(to right, var(--border-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: -2;
    opacity: 0.5;
    pointer-events: none;
}

.radial-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
}

/* --------------------------------------------------------------
 * 5. NAVIGATION / HEADER
 * -------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: background var(--transition-smooth), padding auto, backdrop-filter var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border-color);
}

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

.logo-img {
    height: 36px;
    /* Adjusted to fit the navbar */
    width: auto;
    display: block;
}

.logo-light {
    display: none;
}

body.light .logo-dark {
    display: none;
}

body.light .logo-light {
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background var(--transition-smooth), color var(--transition-smooth);
}

.theme-toggle:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* --------------------------------------------------------------
 * 4. COMPONENT ARCHITECTURE (BUTTONS)
 * -------------------------------------------------------------- */
.primary-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    /* Force white on primary */
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.ghost-btn {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.ghost-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--text-secondary);
}

/* Utility layout blocks */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Base Styles */
section {
    padding: 6rem 0;
    position: relative;
}

.capabilities {
    padding-top: 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: var(--bg-dark);
    overflow: hidden;
}

.network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 20%, var(--bg-dark) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.8;
}

body.light .hero-vignette {
    background: radial-gradient(circle at center, transparent 20%, rgba(255, 255, 255, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    animation: slideUpFade 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
    animation: slideUpFade 0.8s ease-out forwards 0.2s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    animation: slideUpFade 0.8s ease-out forwards 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-btn {
    padding: 0.8rem 1.6rem;
    font-size: 1.05rem;
    display: inline-flex;
}

/* AI Demo Window */
.hero-right {
    position: relative;
    perspective: 1000px;
}

.ai-demo-window {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(27, 117, 188, 0.1);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
    scale: 0.85;
}

.ai-demo-window:hover {
    transform: rotateY(0) rotateX(0);
}

.demo-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.mac-dots {
    display: flex;
    gap: 6px;
    margin-right: 1.5rem;
}

.mac-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-dots span:nth-child(1) {
    background-color: #ff5f56;
}

.mac-dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.mac-dots span:nth-child(3) {
    background-color: #27c93f;
}

.demo-title {
    font-family: 'Inter';
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    flex-grow: 1;
}


/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: fit-content;
}

.typing-indicator dot {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.typing-indicator dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-5deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-15px) rotateY(-5deg) rotateX(5deg);
    }

    100% {
        transform: translateY(0px) rotateY(-5deg) rotateX(5deg);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .message {
        max-width: 95%;
    }

    .ai-demo-window {
        transform: none;
    }

    .ai-demo-window:hover {
        transform: none;
    }

    .cta-split-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-left .cta-title {
        text-align: center !important;
    }

    .cta-left .hero-ctas {
        justify-content: center !important;
    }
}

/* Common Utilities */
.text-center {
    text-align: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(27, 117, 188, 0.1);
    border: 1px solid rgba(27, 117, 188, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.section-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 117, 188, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(27, 117, 188, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(27, 117, 188, 0);
    }
}

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

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Feature Cards & Glassmorphism */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(27, 117, 188, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(27, 117, 188, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(27, 117, 188, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.problem-cards .feature-card:hover {
    border-top-color: var(--primary);
}

/* Capabilities Specific Premium Styles - Refined Holographic Portals */
.brm-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    /* Spring-loaded transition */
    transition:
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.cap-image-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    /* The Portal Effect */
    background: radial-gradient(circle at center, rgba(27, 117, 188, 0.15) 0%, transparent 70%);
    border-radius: 50%;

    /* Advanced Glow */
    box-shadow:
        0 0 30px rgba(27, 117, 188, 0.1),
        inset 0 0 20px rgba(27, 117, 188, 0.05);
}

/* The Masking logic to turn black background images into circular portals */
.capability-img {
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: 50%;
    /* Basic crop */

    /* Advanced masking for soft edges */
    -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
    mask-image: radial-gradient(circle, black 60%, transparent 100%);

    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 10px rgba(27, 117, 188, 0.3));

    /* Floating Animation */
    animation: portalFloat 4s ease-in-out infinite;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes portalFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.feature-card.glass-card:hover .capability-img {
    transform: scale(1.15) rotate(3deg);
    animation-play-state: paused;
    filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 20px rgba(27, 117, 188, 0.5));
}

.feature-card.glass-card:hover .cap-image-wrapper {
    box-shadow:
        0 0 50px rgba(27, 117, 188, 0.3),
        inset 0 0 30px rgba(27, 117, 188, 0.1);
}

.feature-card.glass-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.feature-card.glass-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    opacity: 0.9;
}

/* Enhanced Light Sweep */
.feature-card.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.03) 10%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.03) 90%,
            transparent);
    transform: rotate(35deg);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

.feature-card.glass-card:hover::after {
    left: 150%;
}

.feature-card.glass-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(27, 117, 188, 0.4);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(27, 117, 188, 0.15);
}

/* Responsive adjustments for Capabilities Grid */
@media (max-width: 992px) {
    .brm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.problem-cards .feature-card .card-icon {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.problem-cards .feature-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.cap-icon {
    background: linear-gradient(135deg, rgba(27, 117, 188, 0.2), rgba(125, 190, 232, 0.1));
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Problem Section Redesign */
.problem {
    background: radial-gradient(circle at top right, rgba(27, 117, 188, 0.08), transparent 40%),
        radial-gradient(circle at bottom left, rgba(27, 117, 188, 0.05), transparent 40%),
        var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding: 10rem 0;
}

.problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
}

.problem-cards {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    perspective: 1000px;
}

.problem-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
    /* Reset padding for image overlap */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.problem-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(10, 10, 10, 0.8));
    opacity: 0.6;
}

body.light .img-overlay {
    background: linear-gradient(to bottom, transparent 30%, rgba(255, 255, 255, 0.4));
    opacity: 0.4;
}

.card-content {
    padding: 2.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.mini-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1rem;
    background: rgba(27, 117, 188, 0.15);
    border: 1px solid rgba(27, 117, 188, 0.3);
}

.problem-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light .problem-card h3 {
    background: linear-gradient(90deg, var(--primary), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.problem-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Hover States */
.problem-card:hover {
    transform: translateY(-15px) rotateX(4deg) rotateY(-2deg);
    border-color: rgba(27, 117, 188, 0.4);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(27, 117, 188, 0.1);
}

.problem-card:hover .problem-img {
    transform: scale(1.1);
}

.problem-card:hover .mini-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.problem-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
    pointer-events: none;
    z-index: 3;
}


.problem-card:hover::after {
    left: 100%;
    transition: 0.7s;
}

/* Staggered effect for large screens */
@media (min-width: 1200px) {
    .problem-cards .problem-card:nth-child(2) {
        transform: translateY(40px);
    }

    .problem-cards .problem-card:nth-child(2):hover {
        transform: translateY(25px) rotateX(4deg) rotateY(-2deg);
    }
}

@media (max-width: 992px) {
    .problem-cards {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .problem-cards .problem-card:nth-child(2) {
        transform: none;
    }
}

/* Solution Section */
.solution {
    position: relative;
}

.solution-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.workflow-steps {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.step-item:hover,
.step-item.active-step {
    border-color: var(--primary);
    transform: translateX(10px);
    background: rgba(27, 117, 188, 0.05);
}

.active-step {
    border-left: 4px solid var(--primary) !important;
    background: linear-gradient(90deg, rgba(27, 117, 188, 0.1), transparent) !important;
}

.active-step .step-num {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.active-step .step-text {
    color: var(--text-primary);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.5s ease;
}

.step-text {
    font-weight: 600;
    font-size: 1rem;
}

.step-arrow {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0.25rem 0;
    font-size: 1.25rem;
    color: var(--primary);
    opacity: 0.6;
}

.solution-graphic {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Responsive Main content */
@media (max-width: 992px) {
    .solution-wrapper {
        grid-template-columns: 1fr;
    }

    .solution-graphic {
        height: 350px;
    }
}

/* Use Cases Section */
.uc-query {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stats Section */
.stats {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.stat-num {
    display: inline-block;
    font-size: 3.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--text-primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-prefix,
.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    vertical-align: super;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.justify-center {
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.link-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.link-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Footer & Stats */
/* Comprehensive Mobile Responsiveness */
.menu-toggle {
    display: none;
    color: var(--text-primary);
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Overlay for mobile menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 98;
}

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        z-index: 102;
        /* Ensure above overlay */
    }

    .hide-on-mobile {
        display: none !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen right */
        width: 250px;
        max-width: 80vw;
        height: 100vh;
        background: var(--bg-elevated);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 101;
    }

    .nav-links.active {
        right: 0;
    }

    body.light .nav-links {
        background: var(--light-bg-elevated);
    }

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

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

    .section-title {
        font-size: 1.6rem;
    }

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

    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .footer-brand {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .stat-num {
        font-size: 3.5rem;
    }

    .stat-prefix,
    .stat-suffix {
        font-size: 1.8rem;
    }

    .ai-demo-window {
        border-radius: 8px;
    }

    .demo-body {
        height: 320px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .solution-graphic {
        height: 250px;
    }

    .glass-orb {
        width: 150px;
        height: 150px;
    }

    .floating-card {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }

    .logo-img {
        height: 28px;
    }
}

/* ==============================================================
 * ADVANCED ANIMATIONS & INTERACTIONS
 * ============================================================== */

/* Reveal Presets */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Mask Reveal for Headings */
.mask-reveal {
    overflow: hidden;
    display: block;
}

.mask-reveal span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mask-reveal.visible span {
    transform: translateY(0);
}

/* Magnetic Button Wrapper */
.magnetic-btn {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-orb {
    animation: advancedFloat 8s ease-in-out infinite alternate !important;
}


/* --------------------------------------------------------------
 * USE CASES REDESIGN
 * -------------------------------------------------------------- */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

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

@media (max-width: 600px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

.uc-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    cursor: pointer;
}

/* Light Sweep Effect */
.uc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
    z-index: 1;
}

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

.uc-card:hover {
    transform: translateY(-12px) scale(1.02) rotate(2deg);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(27, 117, 188, 0.2);
}

@keyframes shuffle-in {
    0% {
        opacity: 0;
        transform: translate(100px, 100px) rotate(15deg) scale(0.8);
    }

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

@keyframes continuous-shuffle {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(1.5deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-1.5deg);
    }

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

/* Shuffling Entrance Animation */
.use-cases-grid .uc-card {
    opacity: 0;
}

.use-cases-grid .uc-card.visible {
    animation:
        shuffle-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        continuous-shuffle 4s ease-in-out infinite;
}

.uc-card:nth-child(1) {
    animation-delay: 0.1s, 1s;
}

.uc-card:nth-child(2) {
    animation-delay: 0.2s, 1.2s;
}

.uc-card:nth-child(3) {
    animation-delay: 0.3s, 1.4s;
}

.uc-card:nth-child(4) {
    animation-delay: 0.4s, 1.6s;
}

.uc-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.uc-card:hover .uc-icon-box {
    transform: scale(1.15) rotate(12deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.uc-icon-box svg {
    width: 28px;
    height: 28px;
}

/* Specific Icon Box Colors from Image */
.uc-icon-box.finance {
    background: #EBF5FF;
    color: #1B75BC;
}

.uc-icon-box.sales {
    background: #EBF5FF;
    color: #1B75BC;
}

.uc-icon-box.operations {
    background: #E6FFFA;
    color: #0D9488;
}

.uc-icon-box.marketing {
    background: #FFFBEB;
    color: #B45309;
}

/* Light Mode Overrides */
body.light .uc-card {
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light .uc-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.uc-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    z-index: 2;
}

.uc-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 220px;
    margin: 0 auto;
    z-index: 2;
}

/* Subtle background glow on hover */
.uc-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}


.uc-card:hover::after {
    opacity: 0.2;
}

/* --------------------------------------------------------------
 * CONTACT SECTION
 * -------------------------------------------------------------- */
/* Contact Section 2.0: Immersive Overhaul */
.contact {
    padding: 12rem 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    /* Use variable instead of hardcoded hex */
    transition: background 0.4s ease;
}

#contactCanvas {
    opacity: 0.8;
    /* Keep opacity override if needed, though .network-canvas has it */
}

.contact-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, var(--bg-dark) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.8;
}

body.light .contact-vignette {
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 255, 255, 0.8) 100%);
}

.contact-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.contact-header-content {
    margin-bottom: 4rem;
}

.section-title.massive {
    font-size: 3.2rem;
    line-height: 1.1;
    margin: 1.25rem 0;
    letter-spacing: -1.5px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

.section-subtitle.large {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 480px;
    margin-left: 0;
}

.premium-badge {
    background: rgba(var(--bg-rgb), 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

body.light .premium-badge {
    background: rgba(0, 0, 0, 0.04);
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-email-pill-v2 {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.pill-icon-v2 {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.contact-email-pill-v2:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateX(10px);
}

.contact-email-pill-v2:hover .pill-icon-v2 {
    transform: rotate(15deg) scale(1.1);
}

/* Form Card V2 */
.contact-card-v2 {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(40px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

body.light .contact-card-v2 {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
}

.card-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.card-glow-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), transparent 40%, var(--secondary));
    z-index: -1;
    border-radius: 34px;
    opacity: 0.1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group.group-half {
    margin-bottom: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(var(--bg-rgb), 0.2);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

body.light .contact-form input,
body.light .contact-form textarea {
    background: rgba(0, 0, 0, 0.03);
    color: var(--light-text-primary);
}

.contact-form label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Horizontal layout for full-width groups */
.contact-card-v2 .form-group:not(.group-half) {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: start;
}

.contact-card-v2 .form-group:not(.group-half) label {
    margin-bottom: 0;
    padding-top: 1.25rem;
    /* Center with input text */
}

@media (max-width: 768px) {
    .contact-card-v2 .form-group:not(.group-half) {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-card-v2 .form-group:not(.group-half) label {
        padding-top: 0;
    }
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 20px rgba(27, 117, 188, 0.15);
}

.contact-submit-btn-v2 {
    background: var(--primary);
    color: white;
    padding: 1.25rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.contact-submit-btn-v2:hover {
    background: #2588d8;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(27, 117, 188, 0.3);
}

.success-icon-v2 {
    width: 100px;
    height: 100px;
    background: rgba(39, 201, 63, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

@media (max-width: 1100px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 5rem;
        text-align: center;
    }

    .section-title.massive {
        font-size: 3.5rem;
    }

    .section-subtitle.large {
        margin: 0 auto;
    }

    .contact-email-pill-v2 {
        justify-content: center;
    }

    .contact-email-pill-v2:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 600px) {
    .section-title.massive {
        font-size: 2.8rem;
    }

    .contact-card-v2 {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── NARRATE FLOW DEMO ── */
.narrate-flow-demo {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    transform: none;
    transition: none;
    animation: none;
}

body.light .narrate-flow-demo {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}


/* Step bar */
.flow-steps {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    gap: 0;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.flow-step.active {
    color: #2563eb;
}

.flow-step.done {
    color: #34d399;
}

.fstep-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.flow-step-line {
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 0 8px;
    min-width: 16px;
}

/* Panel body */
.flow-panel-body {
    padding: 1.25rem;
    min-height: 320px;
    position: relative;
}

.flow-panel {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    animation: fadeInScale 0.4s ease;
}

.flow-panel.active {
    display: flex;
}

/* PANEL 1: Connect */
.connect-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.connect-apps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.connect-app-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    transition: opacity 0.4s, border-color 0.3s;
}

.app-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.app-info {
    flex: 1;
}

.app-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
}

.app-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #94a3b8;
    margin-top: 2px;
}

.app-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: #94a3b8;
}

.app-status.connecting {
    color: #2563eb;
    animation: pulse-opacity 1.2s ease-in-out infinite;
}

.app-status.connected {
    color: #34d399;
}

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

.connect-status-bar {
    height: 3px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.connect-progress {
    height: 100%;
    background: #2563eb;
    width: 0%;
    border-radius: 2px;
    transition: width 2.5s ease;
}

.connect-ready {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #34d399;
    text-align: center;
    transition: opacity 0.5s;
}

/* PANEL 2: Briefing */
.briefing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.briefing-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 0.04em;
}

.briefing-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #94a3b8;
}

.briefing-card {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0,0,0,0.07);
    cursor: pointer;
    transition: opacity 0.5s, transform 0.3s, border-color 0.3s;
}

.briefing-card:hover {
    transform: translateY(-2px);
    border-color: #2563eb;
}

.alert-card {
    background: #fff5f5;
    border-left: 3px solid #f87171;
}

.insight-card {
    background: #f0fdf4;
    border-left: 3px solid #34d399;
}

.bc-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.bc-badge.critical {
    background: rgba(248,113,113,0.15);
    color: #dc2626;
}

.bc-badge.primary {
    background: rgba(52,211,153,0.15);
    color: #059669;
}

.bc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

.bc-signal {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.4;
}

.briefing-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: center;
    transition: opacity 0.5s;
}

/* PANEL 3: Insight Detail */
.insight-workspace-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.25rem;
}

.insight-detail-card {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.idc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.idc-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
}

.idc-badge.high {
    background: rgba(248,113,113,0.15);
    color: #dc2626;
}

.idc-dept {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #64748b;
}

.idc-metric {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #dc2626;
    line-height: 1;
}

.idc-metric-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.idc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.idc-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.5;
}

.idc-action {
    background: #eff6ff;
    border-left: 2px solid #2563eb;
    border-radius: 0 6px 6px 0;
    padding: 0.4rem 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: #1e40af;
    line-height: 1.4;
}

.idc-confidence {
    background: rgba(37,99,235,0.05);
    border: 1px solid rgba(37,99,235,0.1);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.4;
}

.insight-qa-prompt {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: center;
    transition: opacity 0.5s;
}

/* PANEL 4: Q&A */
.qa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0f172a;
}

.qa-context-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    background: rgba(37,99,235,0.08);
    color: #2563eb;
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 100px;
    padding: 0.15rem 0.6rem;
}

.qa-chat {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.qa-msg {
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.73rem;
    line-height: 1.5;
    transition: opacity 0.5s;
}

.qa-msg.user {
    background: #2563eb;
    color: #ffffff;
    align-self: flex-end;
    max-width: 85%;
    border-bottom-right-radius: 3px;
}

.qa-msg.ai {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.07);
    color: #334155;
    align-self: flex-start;
    max-width: 95%;
    border-bottom-left-radius: 3px;
}

/* Status bar */
.flow-status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: #f8fafc;
}

.flow-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-opacity 2s ease-in-out infinite;
}

.flow-status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: #94a3b8;
    letter-spacing: 0.04em;
}

/* ── SOLUTION GRAPHIC REDESIGN ── */
.sol-graphic-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sol-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
        rgba(37, 99, 235, 0.35),
        rgba(37, 99, 235, 0.08) 60%,
        transparent 80%);
    box-shadow:
        0 0 80px rgba(37, 99, 235, 0.15),
        inset 0 0 40px rgba(255,255,255,0.1);
    filter: blur(2px);
    animation: solOrbPulse 4s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes solOrbPulse {
    0%   { transform: scale(1);    opacity: 0.8; }
    100% { transform: scale(1.12); opacity: 1;   }
}

/* States */
.sol-state {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    z-index: 1;
}

.sol-state.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cards */
.sol-card {
    position: absolute;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(37,99,235,0.12);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    min-width: 190px;
    max-width: 220px;
    transition: transform 0.3s ease;
}

body:not(.light) .sol-card {
    background: rgba(19,22,32,0.85);
    border-color: rgba(37,99,235,0.2);
}

.sol-card:hover {
    transform: translateY(-4px) !important;
}

/* Positions — matching the screenshot layout */
.sc1 { top: 10%;  left: 2%;   animation: solFloat 5s ease-in-out infinite; }
.sc2 { top: 38%;  right: -4%; animation: solFloat 6s ease-in-out infinite 1s; }
.sc3 { bottom: 8%; left: 8%;  animation: solFloat 5.5s ease-in-out infinite 0.5s; }

@keyframes solFloat {
    0%,100% { transform: translateY(0px); }
    50%      { transform: translateY(-10px); }
}

.sol-card-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.sol-card-tag.briefing {
    background: rgba(37,99,235,0.1);
    color: #2563eb;
}

.sol-card-tag.alert {
    background: rgba(248,113,113,0.12);
    color: #dc2626;
}

.sol-card-tag.insight {
    background: rgba(251,191,36,0.12);
    color: #b45309;
}

.sol-card-tag.qa {
    background: rgba(37,99,235,0.1);
    color: #2563eb;
}

.sol-card-tag.answer {
    background: rgba(52,211,153,0.12);
    color: #059669;
}

.sol-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

body:not(.light) .sol-card-title {
    color: #e2e8f0;
}

.sol-card-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.4;
}

.qa-answer {
    border-left: 3px solid #34d399;
}