:root {
    --bg-base: #0A0B26;
    --bg-dark: #060816;
    --text-primary: #E5E0D8;
    --text-secondary: rgba(229, 224, 216, 0.7);
    --text-muted: rgba(229, 224, 216, 0.45);
    --accent-indigo: #4114FF;
    --accent-purple: #6C3AFF;
    --accent-pink: #8A84FF;
    --accent-yellow: #FF9F59;
    --accent-blue: #8A84FF;
    --accent-emerald: #10b981;
    --accent-sky: #4114FF;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(138, 132, 255, 0.12);
    --node-bg: rgba(10, 11, 38, 0.85);
    --node-border: rgba(138, 132, 255, 0.25);
    --building-accent: #4114FF;
    --designing-accent: #8A84FF;
}

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

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: auto;
    line-height: 1.5;
    position: relative;
}

/* ═══════════ ANIMATED BACKGROUND ═══════════ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('okta-bg.png') center center / cover no-repeat fixed;
    z-index: 0;
}

@keyframes bgPulse {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Dot grid pattern */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 40%, transparent 100%);
}

/* Floating orbs */
.floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: orbFloat 20s ease-in-out infinite;
}

.floating-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.12);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-orb:nth-child(2) {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.10);
    top: 60%;
    right: 10%;
    animation-delay: -6s;
}

.floating-orb:nth-child(3) {
    width: 200px;
    height: 200px;
    background: rgba(236, 72, 153, 0.08);
    bottom: 15%;
    left: 40%;
    animation-delay: -12s;
}

@keyframes orbFloat {

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

    25% {
        opacity: 0.6;
        transform: translate(30px, -20px) scale(1.1);
    }

    50% {
        opacity: 0.4;
        transform: translate(-20px, 15px) scale(0.95);
    }

    75% {
        opacity: 0.7;
        transform: translate(15px, 25px) scale(1.05);
    }
}

.app-container {
    position: relative;
    z-index: 1;
    min-width: 1250px;
    padding: 2rem 2.5rem 3rem;
}

/* ═══════════ HEADER ═══════════ */
.app-header {
    text-align: center;
    margin-bottom: 1.8rem;
    animation: headerSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 20%, #a5b4fc 50%, #8b5cf6 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.app-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.8;
}

.header-line {
    width: 180px;
    height: 2px;
    margin: 0.8rem auto 0;
    background: linear-gradient(90deg, transparent, var(--accent-indigo), var(--accent-purple), transparent);
    border-radius: 2px;
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* ═══════════ OKTA LOGO HEADER ═══════════ */
.okta-logo-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 0 0.6rem;
    margin-bottom: 0.8rem;
    position: relative;
}

/* ═══════════ JOURNEY EFFICACY SCORE BADGE ═══════════ */
.jes-badge {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(10, 11, 38, 0.75);
    border: 1px solid rgba(138, 132, 255, 0.25);
    border-radius: 14px;
    padding: 0.5rem 0.9rem 0.5rem 0.6rem;
    backdrop-filter: blur(16px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 8px 24px -8px rgba(65, 20, 255, 0.3),
        0 0 30px -10px rgba(74, 222, 128, 0.15);
    cursor: default;
    transition: all 0.3s ease;
}

.jes-badge:hover {
    border-color: rgba(138, 132, 255, 0.45);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 12px 30px -8px rgba(65, 20, 255, 0.4),
        0 0 40px -10px rgba(74, 222, 128, 0.2);
    transform: translateY(-50%) scale(1.02);
}

.jes-ring {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.jes-ring-svg {
    width: 64px;
    height: 64px;
    display: block;
    filter: drop-shadow(0 0 6px rgba(136, 132, 255, 0.4));
}

.jes-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jes-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B22, #FF9B5E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: -0.02em;
}

.jes-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(229, 224, 216, 0.6);
    line-height: 1.35;
}


.okta-logo {
    width: 140px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.okta-logo:hover {
    opacity: 1;
}

/* ═══════════ CORE TEXT LOGO ═══════════ */
.core-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    cursor: default;
    user-select: none;
}

.core-logo-block:hover {
    opacity: 1;
}

.core-client-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2px;
}

.client-logo-icon {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.core-client-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0px;
    line-height: 1;
}

.core-powered-by {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.core-powered-by strong {
    font-weight: 600;
    color: var(--col-select);
    /* Using a nice blue/purple accent color */
}

/* ═══════════ JOURNEY FOOTER ═══════════ */
.journey-footer {
    display: flex;
    justify-content: center;
    padding: 2rem 0 1.5rem;
    margin-top: 0.5rem;
}

.journey-footer .journey-nav {
    display: flex;
    gap: 0.8rem;
}

/* ═══════════ PHASE HEADERS ═══════════ */
.phase-headers {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 0.6rem;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.lane-label-spacer {
    width: 80px;
}

.phase-col {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.6));
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.65rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phase-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 10px 10px 0 0;
}

.phase-col:nth-child(2)::before {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo));
}

.phase-col:nth-child(3)::before {
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-purple));
}

.phase-col:nth-child(4)::before {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-sky));
}

.phase-col:nth-child(5)::before {
    background: linear-gradient(90deg, var(--accent-sky), var(--accent-pink));
}

.phase-col:nth-child(6)::before {
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-yellow));
}

.phase-col .phase-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    margin-right: 0.35rem;
    position: relative;
    top: -1px;
}

.phase-col:nth-child(2) .phase-number {
    background: var(--accent-blue);
}

.phase-col:nth-child(3) .phase-number {
    background: var(--accent-indigo);
}

.phase-col:nth-child(4) .phase-number {
    background: var(--accent-purple);
}

.phase-col:nth-child(5) .phase-number {
    background: var(--accent-sky);
}

.phase-col:nth-child(6) .phase-number {
    background: var(--accent-pink);
}

/* ═══════════ SKIP ANNOTATION ═══════════ */
.annotation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-left: 200px;
    margin-bottom: 0.3rem;
    position: relative;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.annotation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 10px currentColor;
}

.annotation-badge.yellow {
    background: var(--accent-yellow);
    color: #000;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.annotation-badge.purple {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}



/* ═══════════ SWIM LANES ═══════════ */
.swim-lanes-wrapper {
    display: flex;
    gap: 0;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: visible;
    background: rgba(0, 0, 0, 0.25);
    position: relative;
    backdrop-filter: blur(8px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 20px 60px -15px rgba(0, 0, 0, 0.5);
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* Subtle inner gradient glow on top */
.swim-lanes-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3), transparent);
    z-index: 2;
    border-radius: 16px 16px 0 0;
}

.cross-lane-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}

/* ═══════════ UNIFIED ARROW STYLES ═══════════ */
/* Shared styles for ALL arrows — inline + cross-lane */
.connector-path {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Cross-lane dashed connections */
.connector-path.dashed {
    stroke-dasharray: 6 4;
    animation: dashFlow 1.8s linear infinite;
}

/* Inline (straight) arrows between nodes */
.connector-path.inline-arrow {
    opacity: 0.5;
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -20;
    }
}

.connector-path.blue {
    stroke: var(--building-accent);
    filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.3));
}

.connector-path.purple {
    stroke: var(--designing-accent);
    filter: drop-shadow(0 0 3px rgba(139, 92, 246, 0.3));
}

.connector-path.indigo {
    stroke: var(--accent-indigo);
    filter: drop-shadow(0 0 3px rgba(99, 102, 241, 0.3));
}

.connector-path.muted {
    stroke: var(--text-muted);
    opacity: 0.4;
}

.connector-path.yellow {
    stroke: var(--accent-yellow);
    filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.3));
}

.lane-labels {
    display: flex;
    flex-direction: column;
    width: 72px;
    flex-shrink: 0;
    border-right: 1px solid var(--glass-border);
}

.lane-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.lane-label:last-child {
    border-bottom: none;
}

.building-label {
    color: var(--building-accent);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.02) 100%);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.designing-label {
    color: var(--designing-accent);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.06) 0%, rgba(139, 92, 246, 0.02) 100%);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.lanes-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lane {
    padding: 1rem 0.8rem;
    position: relative;
}

.building-lane {
    border-bottom: 1px solid var(--glass-border);
    min-height: 170px;
}

.designing-lane {
    min-height: 230px;
}

/* ═══════════ STEP NODES ═══════════ */
.flow-row {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
}

.main-building-flow {
    gap: 0.15rem;
}

.step-node {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
    border: 1.5px solid var(--node-border);
    border-radius: 12px;
    padding: 0.5rem 0.55rem;
    font-size: 0.68rem;
    color: var(--text-primary);
    text-align: center;
    min-width: 90px;
    max-width: 125px;
    position: relative;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.3);
}

.step-node span {
    display: block;
    line-height: 1.3;
}

/* Step node staggered entrance */
.step-node,
.step-cluster,
.resolution-item,
.system-search-node,
.contact-belden {
    opacity: 0;
    animation: nodeAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes nodeAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }

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

/* Stagger with JS-applied --i custom property, fallback */
.building-lane .step-node:nth-child(1) {
    animation-delay: 0.5s;
}

.building-lane .step-node:nth-child(3) {
    animation-delay: 0.6s;
}

.building-lane .step-node:nth-child(5) {
    animation-delay: 0.7s;
}

.building-lane .step-node:nth-child(7) {
    animation-delay: 0.8s;
}

.building-lane .step-node:nth-child(9) {
    animation-delay: 0.9s;
}

.building-lane .step-node:nth-child(11) {
    animation-delay: 1.0s;
}

.building-lane .step-node:nth-child(13) {
    animation-delay: 1.1s;
}

.decision-fork {
    animation-delay: 1.2s;
}

.resolution-item:nth-child(1) {
    animation-delay: 1.3s;
}

.resolution-item:nth-child(2) {
    animation-delay: 1.4s;
}

.resolution-item:nth-child(3) {
    animation-delay: 1.5s;
}

.designing-lane .step-cluster:nth-child(1) {
    animation-delay: 1.0s;
}

.designing-lane .step-cluster:nth-child(2) {
    animation-delay: 1.1s;
}

.system-search-node {
    animation-delay: 1.3s;
}

.contact-belden {
    animation-delay: 1.4s;
}

.step-node:hover {
    border-color: var(--accent-indigo);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 12px 28px -6px rgba(99, 102, 241, 0.35),
        0 0 0 1px rgba(99, 102, 241, 0.2) inset,
        0 0 20px rgba(99, 102, 241, 0.15);
}

/* Pulsing glow ring on start nodes */
.start-node {
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.4);
    position: relative;
}

.start-node::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 25px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: pulseRing 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseRing {

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

    50% {
        opacity: 0.8;
        transform: scale(1.04);
    }
}

.designing-start {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.05));
}

.designing-start::after {
    border-color: rgba(139, 92, 246, 0.25);
}

.sub-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 0.3rem;
}

.sub-action {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
}

.sub-action.highlighted {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    animation: subtleGlow 3s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    0% {
        box-shadow: 0 0 4px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
    }
}

/* ═══════════ INLINE ARROW SPACERS ═══════════ */
/* Arrow-right divs are invisible layout spacers.
   Actual visible arrows are drawn in the SVG overlay connecting node edges. */
.arrow-right {
    width: 20px;
    height: 2px;
    flex-shrink: 0;
}

.small-arrow {
    width: 14px;
}

/* ═══════════ Decision Fork ═══════════ */
.decision-fork {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-left: 0.3rem;
    padding-left: 0.4rem;
    border-left: 2px dashed rgba(139, 92, 246, 0.4);
    opacity: 0;
    animation: nodeAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.decision-branch {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.55rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.decision-branch:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.branch-label {
    font-style: italic;
}

/* ═══════════ Resolution Stack ═══════════ */
.resolution-stack {
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.resolution-item {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.04));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    padding: 0.35rem 0.7rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-yellow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.resolution-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
}

.resolution-item:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.08));
    transform: translateX(4px);
    box-shadow: 0 4px 20px -4px rgba(251, 191, 36, 0.25);
}

/* ═══════════ Backloop ═══════════ */
.backloop {
    position: absolute;
    font-size: 0.55rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.backloop-system {
    bottom: 0.4rem;
    left: 50%;
    transform: translateX(-50%);
    border: 1px dashed rgba(99, 102, 241, 0.3);
}

.backloop-product {
    top: 50%;
    left: 32%;
    transform: translateY(-50%);
    border: 1px dashed rgba(139, 92, 246, 0.3);
}

/* ═══════════ Designing-specific ═══════════ */
.designing-flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.step-cluster {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.system-node {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.04));
    border-color: rgba(139, 92, 246, 0.4);
}

.system-search-node {
    position: absolute;
    right: 0.6rem;
    top: 40%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.06));
    border: 1.5px solid rgba(139, 92, 246, 0.5);
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    font-size: 0.68rem;
    color: var(--text-primary);
    text-align: center;
    max-width: 160px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -4px rgba(139, 92, 246, 0.2);
}

.system-search-node::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    animation: pulseRing 3s ease-in-out infinite 1s;
    pointer-events: none;
}

.system-search-node:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.12));
    transform: translateY(-50%) translateY(-4px) scale(1.03);
    box-shadow:
        0 12px 28px -6px rgba(139, 92, 246, 0.35),
        0 0 20px rgba(139, 92, 246, 0.15);
}

.contact-belden {
    position: absolute;
    right: 0.6rem;
    bottom: 0.5rem;
    z-index: 2;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(236, 72, 153, 0.04));
    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: 10px;
    padding: 0.35rem 0.7rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-pink);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-belden:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(236, 72, 153, 0.08));
    transform: translateX(4px);
    box-shadow: 0 4px 20px -4px rgba(236, 72, 153, 0.3);
}

/* ═══════════ TOUCHPOINTS ROW ═══════════ */
.touchpoints-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.3);
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.touchpoints-label {
    width: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-yellow);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), rgba(251, 191, 36, 0.02));
    border-right: 1px solid var(--glass-border);
    text-align: center;
    padding: 0.4rem;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.touchpoint-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.45rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.6rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.touchpoint-col:hover {
    background: rgba(255, 255, 255, 0.02);
}

.touchpoint-col span {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1px 0;
    transition: color 0.2s ease;
}

.touchpoint-col span::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-indigo);
    flex-shrink: 0;
    opacity: 0.5;
}

.touchpoint-col:hover span {
    color: var(--text-primary);
}

.touchpoint-col:last-child {
    border-right: none;
}

.touchpoint-col.muted {
    opacity: 0.5;
    font-style: italic;
    justify-content: center;
}

.touchpoint-col.muted span::before {
    display: none;
}

/* ═══════════ LEGEND ═══════════ */
.journey-legend {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 1rem;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.blue {
    background: var(--building-accent);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.legend-dot.purple {
    background: var(--designing-accent);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.legend-dot.yellow {
    background: var(--accent-yellow);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.legend-dot.pink {
    background: var(--accent-pink);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}

.legend-line {
    width: 20px;
    height: 2px;
    background: var(--text-muted);
    position: relative;
}

.legend-line.dashed {
    background: none;
    border-top: 2px dashed var(--text-muted);
}

/* ═══════════ STATS BAR ═══════════ */
.stats-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.2rem;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.15);
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.15);
}

.stat-icon.emerald {
    background: rgba(16, 185, 129, 0.15);
}

.stat-icon.pink {
    background: rgba(236, 72, 153, 0.15);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   DEEP DIVE FLOATING CARD (Modern Glass)
   ═══════════════════════════════════════ */
.glass-card {
    position: fixed;
    z-index: 100;
    width: 420px;
    background: rgba(10, 14, 26, 0.82);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 60px -20px rgba(99, 102, 241, 0.15);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.97);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.glass-card.card-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Card internal layout */
.card-content {
    padding: 0;
}

.card-top {
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.card-top .step-badge {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.card-top h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.card-top .card-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.2;
    z-index: 0;
}

.card-body {
    padding: 1rem 1.3rem 1.3rem;
}

.card-body p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.8rem;
}

.card-body p:last-child {
    margin-bottom: 0;
}

/* Mini visual elements for cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.card-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.mini-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.mini-card .mc-icon {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    display: block;
}

.mini-card .mc-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    line-height: 1.3;
}

.mini-card .mc-sub {
    font-size: 0.58rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Progress / Spectrum bar */
.spectrum-bar {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    height: 28px;
    gap: 2px;
}

.spectrum-seg {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 600;
    color: #fff;
}

/* Numbered step list */
.step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.step-list .sl-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
}

/* Tag pills */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.tag-pill {
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.tag-pill.green {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.tag-pill.pink {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.3);
    color: #f9a8d4;
}

.tag-pill.yellow {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fde68a;
}

/* Mini bar chart */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 55px;
    margin-bottom: 0.6rem;
}

.mini-chart .bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    position: relative;
}

.mini-chart .bar span {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ═══════════ UTILITY ANIMATIONS ═══════════ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* ═══════════ ACTIVE NODE HIGHLIGHT ═══════════ */
.step-node.node-active {
    border-color: var(--accent-indigo) !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15)) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3), 0 0 25px rgba(99, 102, 241, 0.4) !important;
    transform: translateY(-4px) scale(1.05) !important;
    z-index: 10;
}

/* Dim the rest of the board when a specific phase is highlighted */
.journey-board.board-dimmed .step-node:not(.node-active),
.journey-board.board-dimmed .system-search-node:not(.node-active),
.journey-board.board-dimmed .contact-belden:not(.node-active),
.journey-board.board-dimmed .step-cluster:not(:has(.node-active)),
.journey-board.board-dimmed .connector-path,
.journey-board.board-dimmed #cross-lane-svg,
.journey-board.board-dimmed #board-overlay-svg {
    opacity: 0.15 !important;
    filter: grayscale(80%);
    pointer-events: none;
    transition: all 0.5s ease;
}

.journey-board {
    transition: all 0.5s ease;
}

/* ═══════════ PROJECT MODAL ═══════════ */
.interactive-touchpoint {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.interactive-touchpoint:hover {
    color: var(--accent-indigo);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 20, 0.5);
    /* Lighter opacity */
    backdrop-filter: blur(6px);
    /* Less blur to see the journey clearly */
    -webkit-backdrop-filter: blur(6px);
}

.modal-container {
    position: relative;
    width: 90vw;
    height: 90vh;
    max-width: 1400px;
    max-height: 900px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 40px rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.project-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.modal-close-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
    border-color: rgba(236, 72, 153, 0.4);
    transform: rotate(90deg);
}

.modal-content-wrapper {
    flex: 1;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

#project-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

/* ═══════════ AI ASSISTANT WIDGET ═══════════ */
.ai-widget-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9998;
    /* Just below modal */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ai-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.ai-toggle-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: pulseRing 3s infinite;
    pointer-events: none;
}

.ai-toggle-btn:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.ai-icon {
    font-size: 1.6rem;
}

.ai-chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 480px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 1;
}

.ai-chat-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.ai-icon-small {
    font-size: 1.1rem;
    animation: floatingText 3s ease-in-out infinite alternate;
}

@keyframes floatingText {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-2px);
        text-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
    }
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.chat-close-btn:hover {
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
    animation: fadeSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.message-content {
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.ai-message {
    align-self: flex-start;
}

.ai-message .message-content {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.user-message {
    align-self: flex-end;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
}

.ai-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-input::placeholder {
    color: var(--text-muted);
}

.ai-input:focus {
    border-color: var(--accent-indigo);
    background: rgba(15, 23, 42, 0.9);
}

.ai-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-indigo);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ai-send-btn:hover {
    background: var(--accent-purple);
    transform: scale(1.05);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    width: fit-content;
    align-self: flex-start;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

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

@keyframes typingBounce {

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

    40% {
        transform: scale(1);
    }
}

/* ═══════════ DATA SYNTHESIS INTRO ANIMATION ═══════════ */

/* The overlay wrapper */
#data-synthesis-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at center, var(--bg-card) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease, backdrop-filter 0.8s ease;
}

#data-synthesis-overlay.fade-out {
    opacity: 0;
    backdrop-filter: blur(0px);
    pointer-events: none;
}

/* Individual Data Particles */
.data-particle {
    position: absolute;
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    transform: scale(0.5);
    will-change: transform, opacity, width, height;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Initial chaotic spawn and drift */
.particle-scatter {
    opacity: 0.8;
    transform: scale(1) translate(0, 0) rotate(0deg);
}

/* Particle convergence state (morphing into a bubble) */
.particle-converge {
    top: 50% !important;
    left: 50% !important;
    /* Force exact centering and circular shape */
    transform: translate(-50%, -50%) scale(1) rotate(360deg) !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    color: transparent !important;
    background: rgba(139, 92, 246, 0.05) !important;
    /* Stacks to a glowing purple */
    border: 1px solid rgba(139, 92, 246, 0.1) !important;
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    transition: all 0.8s cubic-bezier(0.8, 0, 0.2, 1) !important;
}

/* The expanding bubble revealing the board */
.particle-expand {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(60) !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    color: transparent !important;
    background: rgba(139, 92, 246, 0.05) !important;
    border: 1px solid rgba(139, 92, 246, 0.1) !important;
    opacity: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* Hide the main journey application initially */
.journey-hidden {
    opacity: 0;
    transform: scale(0.85) translateY(40px);
    filter: blur(15px);
    pointer-events: none;
}

/* The reveal transition for the main application */
.journey-reveal {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
    pointer-events: auto;
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1s ease-out;
}

/* ═══════════ NAVIGATION ═══════════ */
.journey-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.nav-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}