@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800&display=swap');

:root {
    --primary-bg: #F8FAFC;
    --box-bg: #f5f3ff;
    --box-border: #ede9fe;
    --primary-color: #8b5cf6;
    --text-color: #0f172a;
    --accent-color: #22c55e;
    --line-color: #cbd5e1;
    --anim-speed: 2s;
    --site-page-max-width: 1380px;
    --site-page-padding-desktop: 40px 0px 72px;
    --site-page-gap-desktop: clamp(92px, 8vw, 132px);
    --site-page-padding-tablet: 28px 16px 56px;
    --site-page-gap-tablet: clamp(72px, 7vw, 108px);
    --site-page-padding-mobile: 22px 14px 44px;
    --site-page-gap-mobile: 64px;
    --content-card-copy-size: 0.86rem;
    --content-card-copy-line-height: 1.65;
    --content-card-label-size: 0.78rem;
    --content-card-title-size: clamp(1.2rem, 1.8vw, 1.48rem);
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--primary-bg);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    min-height: 80px;
    height: auto;
}

.site-nav-inner {
    width: min(var(--site-page-max-width), 100%);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.02rem;
}

.site-nav-logo img {
    display: block;
    border-radius: 8px;
}

.site-nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-nav-item {
    position: relative;
}

.site-nav-menu a {
    text-decoration: none;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.site-nav-menu a:hover {
    color: #0f172a;
}

.debug-btn-primary:hover {
    color: #ffffff !important;
}

.site-submenu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.site-submenu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
}

.site-submenu a:hover {
    background: #f8fafc;
}

.site-nav-item-has-menu:hover .site-submenu,
.site-nav-item-has-menu:focus-within .site-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page {
    width: 100%;
    max-width: var(--site-page-max-width);
    padding: var(--site-page-padding-desktop);
    display: flex;
    flex-direction: column;
    gap: var(--site-page-gap-desktop);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.36fr);
    gap: clamp(8px, 1.5vw, 20px);
    align-items: center;
    margin: 80px 0 0;
    /* Removed bottom margin */
}

.home-hero-copy h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4.3rem);
    line-height: 0.98;
    color: #0f172a;
    font-weight: 900;
}

.home-hero-lead {
    margin: 16px 0 0;
    max-width: 42ch;
    font-size: 1.06rem;
    line-height: 1.72;
    color: #334155;
}

.home-hero-subtitle {
    /* margin: 16px 0 0; */
    /* max-width: 44ch; */
    font-size: 1.2rem;
    line-height: 1.62;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(120deg, #f0fdf4 0%, #eff6ff 52%, #f8fafc 100%);
    /* border-radius: 14px; */
    /* padding: 12px 14px; */
}

.home-hero-visual-wrap {
    position: relative;
    isolation: isolate;
    width: 100%;
    justify-self: stretch;
}

.home-hero-visual-wrap::before {
    content: "";
    position: absolute;
    inset: -14% -8% -10%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(560px 380px at 18% 24%, rgba(56, 189, 248, 0.22), transparent 68%),
        radial-gradient(520px 360px at 86% 20%, rgba(16, 185, 129, 0.18), transparent 70%),
        radial-gradient(540px 420px at 74% 82%, rgba(59, 130, 246, 0.2), transparent 72%);
    filter: blur(16px);
}

.home-hero-visual-frame {
    position: relative;
    z-index: 1;
    border-radius: 22px;
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.home-hero-visual-frame video {
    display: block;
    width: 100%;
    height: auto;
    min-height: clamp(260px, 36vw, 430px);
    object-fit: cover;
    filter: saturate(1.04) contrast(1.02);
}

.home-hero-floating-chip {
    position: absolute;
    max-width: 250px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    border-radius: 999px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.home-hero-floating-chip-top {
    top: 14px;
    right: 14px;
    color: #7f1d1d;
    background: rgba(254, 226, 226, 0.88);
}

.home-hero-floating-chip-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1e3a8a;
    background: rgba(219, 234, 254, 0.88);
}

.home-hero-floating-chip-bottom {
    bottom: 14px;
    left: 14px;
    color: #14532d;
    background: rgba(220, 252, 231, 0.9);
}

.diagram-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    position: relative;
}

/* --- Level 1: Roles --- */
.roles-row {
    display: flex;
    justify-content: space-between;
    width: 80%;
    z-index: 2;
}

.role-card {
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    text-align: center;
    min-width: 120px;
}

/* --- Level 2: Core Softprobe Engine --- */
.core-container {
    width: 90%;
    height: 250px;
    background: #fdfdff;
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.logo-center {
    text-align: center;
    animation: pulse 3s infinite ease-in-out;
}

.logo-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
    display: inline-block;
    background: -webkit-linear-gradient(45deg, var(--primary-color), #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: circle-flash 2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Robot/logo animation (respects reduced motion) */
.robot-logo {
    display: block;
    filter: drop-shadow(0 10px 18px rgba(2, 6, 23, 0.14));
}

.logo-icon:hover .robot-logo {
    filter: drop-shadow(0 14px 28px rgba(2, 6, 23, 0.18));
}

@keyframes circle-flash {

    0%,
    100% {
        opacity: 0.4;
        border-color: #8b5cf6;
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        border-color: var(--accent-color);
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.8);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-center {
        animation: none !important;
    }

    .logo-icon::before {
        animation: none !important;
    }

    .core-chat-track {
        animation: none !important;
        transform: none !important;
        height: auto;
        overflow: visible;
    }

    .core-trace-item {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        animation: none !important;
    }

    .core-trace-live-dot,
    .core-trace-dots::before,
    .core-trace-dots::after {
        animation: none !important;
    }
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: -webkit-linear-gradient(45deg, var(--primary-color), #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.logo-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.core-modules {
    position: absolute;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: min(240px, 34%);
}

.module-box {
    background: #fff;
    border: 2px solid #e0e7ff;
    padding: 20px 20px;
    border-radius: 6px;
    font-weight: 700;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-width: 160px;
    background: linear-gradient(140deg, #4c1d95 0%, #7c3aed 46%, #8b5cf6 100%);
    color: #ffffff;
}

.core-chat-history {
    position: absolute;
    left: 20px;
    top: 16px;
    bottom: 16px;
    width: min(360px, 46%);
    border-radius: 12px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
    box-shadow: 0 8px 22px rgba(49, 46, 129, 0.25);
    overflow: hidden;
}

.core-chat-history::before,
.core-chat-history::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 16px;
    pointer-events: none;
    z-index: 2;
}

.core-chat-history::before {
    top: 0;
    background: linear-gradient(180deg, rgba(30, 27, 75, 0.98), rgba(30, 27, 75, 0));
}

.core-chat-history::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(67, 56, 202, 0.98), rgba(67, 56, 202, 0));
}

.core-trace-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e0e7ff;
    border-bottom: 1px solid rgba(224, 231, 255, 0.2);
    background: rgba(15, 23, 42, 0.28);
}

.core-trace-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: tracePulse 2.4s ease-in-out infinite;
}

.core-chat-track {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    height: calc(100% - 44px);
    padding: 10px 12px 12px;
    overflow: hidden;
}

.core-trace-item {
    position: relative;
    display: none;
    border-radius: 10px;
    border: 1px solid rgba(191, 219, 254, 0.35);
    background: rgba(15, 23, 42, 0.36);
    padding: 8px 10px 9px;
    color: #e2e8f0;
}

.core-trace-item.is-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: traceItemIn 300ms ease;
}

.core-trace-item::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background: #93c5fd;
}

.core-trace-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.core-trace-kind {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(167, 243, 208, 0.4);
    background: rgba(52, 211, 153, 0.14);
    color: #bbf7d0;
}

.core-trace-time {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #cbd5e1;
}

.core-trace-item p {
    margin: 7px 0 0;
    font-size: 0.72rem;
    line-height: 1.4;
}

.core-trace-item code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.68rem;
    color: #dbeafe;
}

.core-trace-command {
    margin: 7px 0 0;
    padding: 7px 8px;
    border-radius: 8px;
    border: 1px solid rgba(199, 210, 254, 0.25);
    background: rgba(15, 23, 42, 0.54);
    color: #e0e7ff;
    font-size: 0.67rem;
    line-height: 1.35;
    overflow-x: auto;
    white-space: pre-wrap;
}

.core-trace-dots {
    display: inline-flex;
    gap: 4px;
    margin-top: 6px;
}

.core-trace-dots::before,
.core-trace-dots::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #bfdbfe;
    animation: traceDot 1.3s infinite ease-in-out;
}

.core-trace-dots::after {
    animation-delay: 0.28s;
}

.kind-thinking::before {
    background: #fbbf24;
}

.kind-thinking .core-trace-kind {
    border-color: rgba(253, 224, 71, 0.4);
    background: rgba(234, 179, 8, 0.18);
    color: #fde68a;
}

.kind-tool::before {
    background: #93c5fd;
}

.kind-tool .core-trace-kind {
    border-color: rgba(147, 197, 253, 0.45);
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

.kind-observe::before {
    background: #f9a8d4;
}

.kind-observe .core-trace-kind {
    border-color: rgba(244, 114, 182, 0.45);
    background: rgba(236, 72, 153, 0.18);
    color: #fbcfe8;
}

.kind-action::before {
    background: #86efac;
}

.kind-action .core-trace-kind {
    border-color: rgba(134, 239, 172, 0.5);
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.kind-verify::before {
    background: #c4b5fd;
}

.kind-verify .core-trace-kind {
    border-color: rgba(196, 181, 253, 0.45);
    background: rgba(139, 92, 246, 0.2);
    color: #ddd6fe;
}

@keyframes tracePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
    }
}

@keyframes traceDot {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-2px);
        opacity: 1;
    }
}

@keyframes traceItemIn {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }

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

/* --- Level 3: Agents --- */
.agents-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: relative;
    padding: 20px 0;
    z-index: 2;
}

.agent-node {
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--box-border);
    color: var(--primary-color);
    position: relative;
    transition: transform 0.3s ease;
}

.agent-node:hover {
    transform: scale(1.1);
    border-color: #8b5cf6;
    cursor: pointer;
}

/* --- Level 4: Tools --- */
.tools-row {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: space-between;
    z-index: 2;
}

.tool-group {
    flex: 1;
    background: #fffaf0;
    /* Default, will override */
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 80px;
    position: relative;
}

/* Specific colors matching the image */
.group-observability {
    background-color: #fffbeb;
    border-color: #fcd34d;
}

.group-knowledge {
    background-color: #ecfdf5;
    border-color: #6ee7b7;
}

.group-code {
    background-color: #fff1f2;
    border-color: #fda4af;
}

.group-testing {
    background-color: #f5f3ff;
    border-color: #c4b5fd;
}

.group-devops {
    background-color: #fdfcff;
    border-color: var(--box-border);
}

.group-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 5px;
}

.icons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tool-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.2s;
}

.tool-icon:hover {
    transform: scale(1.2);
}

/* --- SVG Connections & Animation --- */
.connections-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connection-line {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 2;
}

.flow-particle {
    fill: var(--accent-color);
    animation: flowAnimation 2s linear infinite;
    opacity: 0;
}

@keyframes flowAnimation {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(139, 92, 246, 0));
    }

    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(139, 92, 246, 0));
    }
}

/* Helper for FontAwesome-like robot icon */
.icon-tools {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* --- Primary cases --- */
.primay-case-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.primay-case-container>.section+.section {
    margin-top: clamp(92px, 8vw, 132px);
}

.section {
    width: 100%;
}

.section-head {
    text-align: center;
    margin: 0 auto 28px;
    max-width: 880px;
}

.section-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 10px;
    font-weight: 800;
}

.section-title {
    margin: 0;
    font-size: clamp(1.9rem, 4.2vw, 3.2rem);
    line-height: 1.05;
    font-weight: 900;
    color: #111827;
}

.section-subtitle {
    margin: 14px auto 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    max-width: 64ch;
}

.action-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.action-grid+.action-grid {
    margin-top: clamp(40px, 5vw, 80px);
}

/* Alternate row: description left, window right (window still 2/3) */
.action-grid.alt {
    grid-template-columns: 1fr 2fr;
}

.action-grid.alt .action-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

.action-grid.alt .action-visual {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

.action-visual {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #eff6ff 0%, #fdf2f8 40%, #ecfeff 100%);
    padding: clamp(18px, 3vw, 44px);
}

.action-visual::before {
    content: "";
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(500px 380px at 18% 32%, rgba(37, 99, 235, 0.28), transparent 60%),
        radial-gradient(520px 420px at 78% 22%, rgba(236, 72, 153, 0.22), transparent 62%),
        radial-gradient(520px 420px at 30% 86%, rgba(34, 197, 94, 0.18), transparent 62%),
        radial-gradient(560px 520px at 90% 80%, rgba(6, 182, 212, 0.18), transparent 62%);
    filter: blur(26px);
    transform: scale(1.1);
}

.action-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
}

.action-visual-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.slack-post {
    width: min(720px, 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.action-copy h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    line-height: 1.1;
    color: #0f172a;
    font-weight: 900;
}

.action-copy {
    align-self: center;
}

.action-copy p {
    margin: 14px 0 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
}

.action-copy ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: #334155;
    line-height: 1.8;
}

.action-copy li strong {
    color: #111827;
}

.takeaway {
    margin: 44px auto 0;
    max-width: 76ch;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

/* --- Visual mocks (chat, RCA, PR) --- */
.mock-window {
    width: min(760px, 100%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

.mock-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.mock-dots {
    display: flex;
    gap: 7px;
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
}

.mock-dot.red {
    background: #fb7185;
}

.mock-dot.yellow {
    background: #fbbf24;
}

.mock-dot.green {
    background: #34d399;
}

.mock-url {
    margin-left: 6px;
    font-size: 12px;
    color: #64748b;
    padding: 6px 10px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    background: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.mock-body {
    padding: 14px 14px 16px;
}

/* --- Slack-style thread mocks --- */
.slack-thread-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.8);
}

.slack-thread-title {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
}

.slack-thread-sub {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.slack-thread-body {
    padding: 12px;
}

.slack-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0;
}

.slack-msg.user {
    flex-direction: row-reverse;
    text-align: right;
}

.slack-avatar {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    flex: 0 0 auto;
}

.slack-avatar.sp {
    border-radius: 8px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.9);
}

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

.slack-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.slack-msg.user .slack-meta {
    justify-content: flex-end;
}

.slack-name {
    font-weight: 900;
    color: #0f172a;
    font-size: 13px;
}

.slack-badge,
.slack-ts {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.slack-bubble {
    margin-top: 6px;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    color: #0f172a;
}

.slack-bubble.sp {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.10) 0%, rgba(139, 92, 246, 0.10) 100%);
    border-color: rgba(199, 210, 254, 0.95);
}

.slack-bubble .mini-title {
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #475569;
    font-weight: 900;
}

.slack-bubble .mini-list {
    margin: 6px 0 0;
    padding-left: 16px;
    color: #0f172a;
}

.slack-bubble .mini-list li {
    margin: 3px 0;
}

.slack-bubble .pill-row {
    margin-top: 10px;
}

.slack-bubble .code,
.slack-bubble .pr {
    max-width: 100%;
    margin-top: 10px;
}

.slack-bubble .code-lines {
    overflow-x: auto;
}

/* Legacy bubble styles (kept for earlier sections) */
.chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-row.user {
    justify-content: flex-end;
    align-items: flex-end;
}

.chat-row.agent {
    justify-content: flex-start;
    align-items: flex-start;
}

.avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    flex: 0 0 auto;
}

.avatar-img.sp {
    border-radius: 8px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.9);
}

.bubble {
    max-width: 78%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    color: #0f172a;
}

.bubble.user {
    background: #f8fafc;
}

.bubble.agent {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.10) 0%, rgba(139, 92, 246, 0.10) 100%);
    border-color: rgba(199, 210, 254, 0.95);
}

.bubble .mini-title {
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #475569;
    font-weight: 900;
}

.bubble .mini-list {
    margin: 6px 0 0;
    padding-left: 16px;
    color: #0f172a;
}

.bubble .mini-list li {
    margin: 3px 0;
}

.bubble .code,
.bubble .pr {
    max-width: 100%;
    margin-top: 10px;
}

.bubble .code-lines {
    overflow-x: auto;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pill {
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    color: #111827;
    white-space: nowrap;
}

.rca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.rca-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 12px;
}

.rca-card h4 {
    margin: 0 0 6px;
    font-size: 12px;
    color: #0f172a;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rca-card ul {
    margin: 0;
    padding-left: 16px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #334155;
}

.code {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    overflow: hidden;
    background: #0b1020;
    margin-top: 12px;
}

.code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
    font-size: 12px;
}

.code-lines {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.7;
    color: #e2e8f0;
    padding: 10px 12px 12px;
}

.yaml-code-block .code-lines {
    padding: 0;
    overflow-x: auto;
}

.yaml-code-block .code-lines .shiki {
    margin: 0;
    padding: 12px;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.65;
}

.diff-line {
    display: block;
    padding: 2px 6px;
    border-radius: 8px;
    margin: 2px 0;
    background: rgba(148, 163, 184, 0.06);
}

.diff-line.add {
    background: rgba(34, 197, 94, 0.16);
    color: #d1fae5;
}

.diff-line.del {
    background: rgba(244, 63, 94, 0.16);
    color: #ffe4e6;
}

/* GitHub-like diff */
.code.gh {
    background: #ffffff;
    border-color: #d0d7de;
}

.code.gh .code-head {
    background: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
    color: #24292f;
}

.gh-diff {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    line-height: 20px;
    color: #24292f;
    overflow-x: auto;
}

.gh-row {
    display: grid;
    grid-template-columns: 44px 44px 1fr;
}

.gh-ln {
    padding: 0 10px;
    text-align: right;
    color: #656d76;
    background: #f6f8fa;
    border-right: 1px solid #d0d7de;
    user-select: none;
}

.gh-code {
    padding: 0 10px;
    white-space: pre;
    overflow: hidden;
}

.gh-row.add .gh-ln,
.gh-row.add .gh-code {
    background: #e6ffec;
}

.gh-row.del .gh-ln,
.gh-row.del .gh-code {
    background: #ffebe9;
}

.gh-sign {
    display: inline-block;
    width: 14px;
    color: #656d76;
}

.tok-kw {
    color: #cf222e;
    font-weight: 700;
}

.tok-fn {
    color: #0550ae;
}

.tok-str {
    color: #0a3069;
}

.tok-prop {
    color: #953800;
}

.pr {
    margin-top: 12px;
    border: 1px solid #d1d9e0;
    border-radius: 14px;
    background: #f6f8fa;
    padding: 10px 12px;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.pr:hover {
    border-color: #0969da;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(9, 105, 218, 0.15);
}

.pr:active {
    transform: translateY(1px);
}

.pr-title {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pr-title::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230969da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4'%3E%3C/path%3E%3Cpath d='M9 18c-4.51 2-5-2-7-2'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.pr-title::after {
    content: "→";
    color: #0969da;
    font-size: 16px;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-left: auto;
}

.pr:hover .pr-title::after {
    opacity: 1;
    transform: translateX(2px);
}

.pr:hover .pr-title::before {
    opacity: 1;
}

.pr-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 900px) {

    .page,
    .debug-page {
        padding: var(--site-page-padding-tablet);
        gap: var(--site-page-gap-tablet);
    }

    .primay-case-container>.section+.section {
        margin-top: clamp(72px, 7vw, 108px);
    }

    .home-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .home-hero-copy h1 {
        max-width: 14ch;
    }

    .home-hero-visual-wrap {
        width: 100%;
        justify-self: stretch;
    }

    .home-hero-visual-frame {
        border-radius: 18px;
    }

    .home-hero-floating-chip {
        font-size: 0.74rem;
        padding: 8px 10px;
    }

    .roles-row {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .role-card {
        min-width: auto;
        padding: 10px 14px;
        font-size: 1rem;
    }

    .core-container {
        width: 100%;
        height: auto;
        padding: 20px 16px;
        flex-direction: column;
        gap: 14px;
    }

    .core-modules {
        position: static;
        right: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .module-box {
        min-width: 140px;
        padding: 10px 14px;
    }

    .core-chat-history {
        position: static;
        width: 100%;
        top: auto;
        bottom: auto;
        height: 210px;
    }

    .core-trace-item p {
        font-size: 0.74rem;
    }

    .core-trace-command {
        font-size: 0.69rem;
    }

    .agents-row {
        flex-wrap: wrap;
        gap: 14px;
        padding: 12px 0;
    }

    .agent-node {
        width: 54px;
        height: 54px;
    }

    .tools-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .tool-group {
        min-width: auto;
    }

    .tool-icon {
        width: 22px;
        height: 22px;
    }

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

    .action-grid.alt .action-copy,
    .action-grid.alt .action-visual {
        grid-column: auto;
    }

    .action-visual {
        padding: 18px;
    }

    .slack-post {
        padding: 14px;
    }

    .mock-window {
        border-radius: 16px;
    }

    .slack-thread-body {
        padding: 10px;
    }

    .section-head {
        margin-bottom: 20px;
    }

    .takeaway {
        border-radius: 18px;
    }

    .gh-row {
        grid-template-columns: 38px 38px 1fr;
    }

    .gh-ln {
        padding: 0 8px;
    }

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

@media (max-width: 560px) {

    .page,
    .debug-page {
        padding: var(--site-page-padding-mobile);
        gap: var(--site-page-gap-mobile);
    }

    .primay-case-container>.section+.section {
        margin-top: 64px;
    }

    .home-hero-subtitle {
        font-size: 0.93rem;
    }

    .home-hero-floating-chip {
        position: static;
        max-width: none;
        margin: 8px 10px 0;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    }

    .home-hero-floating-chip-center {
        transform: none;
    }

    .action-grid {
        gap: 18px;
    }

    .action-visual {
        border-radius: 22px;
        padding: 14px;
    }

    .slack-bubble {
        font-size: 12.8px;
    }

    .pill {
        font-size: 11.5px;
        padding: 6px 9px;
    }

    .gh-diff {
        font-size: 11.5px;
        line-height: 18px;
    }

    .gh-row {
        grid-template-columns: 34px 34px 1fr;
    }
}

/* --- Debug page --- */
.debug-page {
    width: 100%;
    max-width: var(--site-page-max-width);
    padding: var(--site-page-padding-desktop);
    display: grid;
    gap: var(--site-page-gap-desktop);
}

.debug-hero {
    display: grid;
    grid-template-columns: 0.92fr 1.22fr;
    gap: clamp(22px, 3vw, 50px);
    align-items: start;
}

.debug-kicker {
    margin: 0 0 14px;
    font-size: 0.82rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #0f766e;
    font-weight: 900;
}

.debug-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 3.45rem);
    line-height: 1.04;
    font-weight: 900;
    color: #0f172a;
}

.debug-copy {
    align-self: center;
}

.debug-copy p {
    margin: 14px 0 0;
    font-size: 1.03rem;
    line-height: 1.7;
    color: #334155;
}

.debug-copy .debug-wedge {
    margin-top: 10px;
    font-size: 0.97rem;
    color: #0f172a;
    font-weight: 800;
}

.debug-captures p {
    margin-top: 18px;
    margin-bottom: 8px;
    color: #0f172a;
    font-weight: 800;
}

.debug-captures ul {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    line-height: 1.8;
}

.debug-hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.debug-btn {
    text-decoration: none;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 0.95rem;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.debug-btn:hover {
    transform: translateY(-1px);
}

.debug-btn-primary,
.debug-btn-primary:visited {
    background: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.debug-btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.debug-supporting {
    margin-top: 18px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
}

.debug-confidence {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 52px);
    align-items: center;
}

.debug-confidence-media {
    border-radius: 28px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #eff6ff 0%, #fdf2f8 40%, #ecfeff 100%);
    padding: clamp(14px, 1.8vw, 20px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.debug-confidence-media-inner {
    border-radius: 18px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: #ffffff;
    overflow: hidden;
}

.debug-confidence-media video {
    display: block;
    width: 100%;
    height: auto;
}

.debug-confidence-copy {
    max-width: 42ch;
}

.debug-artifact-section {
    padding-top: 8px;
}

.debug-artifact-section .action-grid {
    align-items: center;
}

.debug-artifact-grid {
    --debug-artifact-gap: clamp(24px, 3.2vw, 48px);
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--debug-artifact-gap);
}

.debug-artifact-grid .action-copy,
.debug-artifact-grid .action-visual {
    align-self: center;
}

.debug-artifact-copy-wrap {
    position: relative;
    align-self: center;
}

.debug-artifact-sticky {
    position: static;
    width: 100%;
}

.debug-artifact-copy h2 {
    margin-top: 12px;
}

.debug-artifact-copy ul {
    margin: 18px 0 0;
    padding-left: 18px;
    color: #334155;
    line-height: 1.8;
    font-size: 0.99rem;
}

.debug-artifact-visual {
    padding: clamp(16px, 2.4vw, 28px);
}

.debug-artifact-card {
    width: min(760px, 100%);
    padding: clamp(16px, 2.2vw, 22px);
}

.debug-artifact-label {
    margin: 0 0 10px;
    font-size: var(--content-card-label-size);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 800;
}

.debug-artifact-card h3 {
    margin: 0;
    font-size: var(--content-card-title-size);
    line-height: 1.2;
    color: #0f172a;
}

.debug-artifact-card p {
    margin: 13px 0 0;
    color: #334155;
    line-height: var(--content-card-copy-line-height);
    font-size: var(--content-card-copy-size);
}

.debug-artifact-card ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #334155;
    line-height: var(--content-card-copy-line-height);
    font-size: var(--content-card-copy-size);
}

.debug-artifact-code {
    margin-top: 16px;
    border-radius: 14px;
}

.debug-artifact-code .code-lines {
    padding: 0;
}

.debug-artifact-code pre {
    margin: 0;
    padding: 12px;
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.65;
    color: #e2e8f0;
}

.debug-artifact-proof {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.debug-artifact-proof-title {
    margin: 0;
    font-size: var(--content-card-label-size);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #0f766e;
    font-weight: 900;
}

.debug-artifact-proof-label {
    margin: 11px 0 0;
    font-size: var(--content-card-copy-size);
    color: #0f172a;
    font-weight: 800;
}

.debug-artifact-proof-path {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.8rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.debug-artifact-proof ul {
    margin-top: 8px;
}

.debug-incident-section .action-grid {
    align-items: start;
}

.debug-incident-visual {
    padding: clamp(16px, 2.4vw, 28px);
}

.debug-incident-card {
    width: min(760px, 100%);
    padding: clamp(16px, 2.2vw, 22px);
}

.debug-incident-time {
    margin: 0;
    font-size: var(--content-card-copy-size);
    color: #0f172a;
    font-weight: 900;
}

.debug-incident-metrics {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #334155;
    line-height: var(--content-card-copy-line-height);
    font-size: var(--content-card-copy-size);
}

.debug-incident-card h3 {
    margin: 16px 0 0;
    font-size: 0.96rem;
    color: #0f172a;
}

.debug-incident-card p {
    margin: 10px 0 0;
    color: #334155;
    line-height: var(--content-card-copy-line-height);
    font-size: var(--content-card-copy-size);
}

.debug-incident-card ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #334155;
    line-height: var(--content-card-copy-line-height);
    font-size: var(--content-card-copy-size);
}

.debug-incident-path {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: pre;
}

.debug-incident-highlight {
    font-weight: 900;
    color: #0f172a;
}

.debug-incident-code {
    margin-top: 10px;
}

.debug-incident-code .code-lines {
    padding: 0;
}

.debug-incident-code pre {
    margin: 0;
    padding: 12px;
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.65;
}

.debug-incident-copy h2 {
    margin-top: 12px;
}

.debug-incident-copy ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: #334155;
    line-height: 1.8;
}

.debug-incident-copy p {
    font-weight: 500;
}

.debug-description-panel {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.debug-description-panel::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #bef264 0%, #84cc16 100%);
}

.debug-description-panel--right {
    padding-left: 24px;
}

.debug-description-panel--right::before {
    left: 0;
}

.debug-description-panel--left {
    padding-right: 24px;
}

.debug-description-panel--left::before {
    right: 0;
}

.debug-panel-kicker {
    margin: 0;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3f6212;
    font-weight: 900;
}

.debug-description-panel h2 {
    margin: 12px 0 0;
    font-size: clamp(1.85rem, 3.2vw, 2.64rem);
    line-height: 1.08;
    color: #1f2937;
}

.debug-description-panel p {
    margin: 14px 0 0;
    max-width: 40ch;
    font-size: 1rem;
    line-height: 1.66;
    color: #4b5563;
}

.debug-visual-wrap {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.debug-visual-wrap::before {
    content: "";
    position: absolute;
    inset: -7% -5% -10%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(520px 360px at 20% 28%, rgba(14, 165, 233, 0.2), transparent 68%),
        radial-gradient(560px 380px at 82% 26%, rgba(16, 185, 129, 0.18), transparent 70%),
        radial-gradient(640px 420px at 50% 100%, rgba(99, 102, 241, 0.2), transparent 72%);
    filter: blur(10px) saturate(110%);
    opacity: 0.95;
}

.debug-visual {
    position: relative;
    z-index: 1;
    min-height: 740px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.debug-flow-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.debug-flow-lines path {
    stroke: rgba(56, 189, 248, 0.72);
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 7 7;
    animation: debugDash 8s linear infinite;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.35));
}

.debug-flow-particle {
    fill: #67e8f9;
    filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.8));
    animation: debugParticleGlow 1.8s ease-in-out infinite;
}

.debug-node {
    position: absolute;
    width: 138px;
    border: 1px solid #dbeafe;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 14px 4px;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    animation: debugPulse 3.6s ease-in-out infinite;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.debug-node::after {
    content: "tools";
    position: absolute;
    top: -9px;
    right: 8px;
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #08b2b2;
    background: rgba(240, 249, 255, 0.95);
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 2px 6px;
}

.debug-node-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    color: #0891b2;
    flex-shrink: 0;
}

.debug-node strong {
    display: block;
    font-size: 0.85rem;
    color: #0f172a;
}

.debug-node span {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #475569;
}

.debug-node-bottom {
    left: calc(50% - 69px);
    bottom: 10px;
}

.debug-node-left-top {
    left: -6px;
    top: 108px;
    animation-delay: 0.4s;
}

.debug-node-left-bottom {
    left: -6px;
    top: 402px;
    animation-delay: 0.8s;
}

.debug-node-right-top {
    right: -6px;
    top: 108px;
    animation-delay: 1.2s;
}

.debug-node-right-bottom {
    right: -6px;
    top: 402px;
    animation-delay: 1.6s;
}

.debug-engine {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: min(356px, calc(100% - 320px));
    min-height: 452px;
    text-align: left;
    border-radius: 20px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(196, 181, 253, 0.56);
    background:
        radial-gradient(130% 140% at 8% 0%, rgba(221, 214, 254, 0.32), transparent 58%),
        radial-gradient(120% 130% at 100% 100%, rgba(236, 72, 153, 0.24), transparent 62%),
        linear-gradient(140deg, #4c1d95 0%, #7c3aed 46%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 20px 42px rgba(109, 40, 217, 0.42);
    overflow: hidden;
    z-index: 1;
}

.debug-engine strong {
    display: block;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.debug-engine span {
    display: block;
    margin-top: 6px;
    font-size: 0.74rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.debug-json-stream {
    margin-top: 12px;
    position: relative;
    min-height: 362px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.24) 0%, rgba(15, 23, 42, 0.38) 100%),
        repeating-linear-gradient(180deg, rgba(148, 163, 184, 0.12) 0 1px, transparent 1px 46px);
    overflow: hidden;
}

.debug-json-stream::before,
.debug-json-stream::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.45), transparent);
}

.debug-json-stream::before {
    top: 138px;
}

.debug-json-stream::after {
    bottom: 64px;
}

.debug-json-rail {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 28px);
    background: linear-gradient(180deg,
            rgba(125, 211, 252, 0),
            rgba(125, 211, 252, 0.42),
            rgba(125, 211, 252, 0));
    z-index: 0;
}

.debug-sequence {
    position: relative;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 10px;
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.56);
    z-index: 1;
}

.debug-sequence-title {
    margin: 0;
    font-size: 0.56rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7dd3fc;
    font-weight: 700;
}

.debug-mermaid {
    margin: 5px 0 0;
    min-height: 112px;
    font-size: 0.5rem;
}

.debug-mermaid svg {
    width: 100%;
    height: 112px;
    display: block;
}

.debug-mermaid.is-mermaid-fallback {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.53rem;
    line-height: 1.35;
    color: #cbd5e1;
    white-space: pre-wrap;
}

.debug-json-rail::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #7dd3fc;
    box-shadow: 0 0 14px rgba(125, 211, 252, 0.75);
    animation: debugRailPulse 2.6s linear infinite;
}

.debug-json-stage {
    position: relative;
    border-radius: 11px;
    border: 1px solid rgba(125, 211, 252, 0.38);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(2px);
    padding: 8px 9px 9px;
    box-shadow: 0 12px 20px rgba(2, 6, 23, 0.32);
    transition: transform 0.26s ease, opacity 0.26s ease;
    z-index: 1;
}

.debug-json-stage.is-transitioning {
    transform: translateX(8px) scale(0.985);
    opacity: 0.2;
}

.debug-json-service {
    margin: 0 0 6px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7dd3fc;
    font-weight: 800;
}

.debug-json-stage pre {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.65rem;
    line-height: 1.38;
    color: #e2e8f0;
    white-space: pre-wrap;
}

.debug-observability {
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(125, 211, 252, 0.34);
    background: rgba(15, 23, 42, 0.62);
    padding: 7px 8px 8px;
    z-index: 1;
}

.debug-log-line {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.58rem;
    line-height: 1.35;
    color: #bae6fd;
}

.debug-metric-pills {
    margin-top: 7px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.debug-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 0.56rem;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.48);
}

.debug-pill strong {
    color: #f8fafc;
    font-size: 0.57rem;
}

.debug-visual-caption {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #475569;
}

.debug-unlocks-head {
    margin-bottom: 16px;
}

.debug-unlocks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.debug-card {
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 22px 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.debug-card h2 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.2;
    color: #0f172a;
}

.debug-card p {
    margin: 12px 0 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
}

.debug-card ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #334155;
    line-height: 1.7;
    font-size: 0.95rem;
}

@keyframes debugPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 14px 28px rgba(30, 64, 175, 0.12);
    }
}

@keyframes debugDash {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -360;
    }
}

@keyframes debugParticleGlow {

    0%,
    100% {
        opacity: 0.72;
    }

    50% {
        opacity: 1;
    }
}

@keyframes debugRailPulse {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    16% {
        opacity: 1;
    }

    84% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 220px);
        opacity: 0;
    }
}

@media (max-width: 1100px) {
    .debug-hero {
        grid-template-columns: 1fr;
    }

    .debug-confidence {
        grid-template-columns: 1fr;
    }

    .debug-artifact-sticky {
        position: static;
    }

    .debug-artifact-grid {
        grid-template-columns: 1fr;
    }

    .debug-description-panel--left {
        padding-right: 0;
        padding-left: 22px;
    }

    .debug-description-panel--left::before {
        right: auto;
        left: 0;
    }
}

@media (max-width: 900px) {
    .site-nav-inner {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 14px;
    }

    .site-submenu {
        position: static;
        margin-top: 6px;
        min-width: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .site-submenu a {
        padding: 0;
        color: #475569;
        font-size: 0.9rem;
    }

    .debug-page {
        padding: var(--site-page-padding-tablet);
        gap: var(--site-page-gap-tablet);
    }

    .debug-unlocks-grid {
        grid-template-columns: 1fr;
    }

    .debug-confidence-media {
        border-radius: 22px;
        padding: 12px;
    }

    .debug-confidence-media-inner {
        border-radius: 14px;
    }

    .debug-description-panel--right,
    .debug-description-panel--left {
        padding-left: 18px;
    }

    .debug-description-panel--right::before,
    .debug-description-panel--left::before {
        left: 0;
        right: auto;
    }

}

@media (max-width: 640px) {
    .debug-visual {
        min-height: 780px;
    }

    .debug-node {
        width: 128px;
        padding: 9px 10px;
    }

    .debug-node strong {
        font-size: 0.78rem;
    }

    .debug-node span {
        font-size: 0.69rem;
    }

    .debug-node::after {
        font-size: 0.5rem;
        top: -8px;
        right: 6px;
        padding: 2px 5px;
    }

    .debug-node-left-top,
    .debug-node-left-bottom {
        left: 12px;
    }

    .debug-node-right-top,
    .debug-node-right-bottom {
        right: 12px;
    }

    .debug-engine {
        width: min(304px, 86%);
        min-height: 420px;
        top: 50%;
        padding: 14px 12px 12px;
    }

    .debug-json-stream {
        min-height: 328px;
        padding: 8px;
    }

    .debug-json-stage {
        padding: 7px 8px 8px;
    }

    .debug-json-stage pre {
        font-size: 0.61rem;
    }

    .debug-json-stream::before {
        top: 132px;
    }

    .debug-json-stream::after {
        bottom: 62px;
    }
}

/* ── Customer Logos Marquee ─────────────────────── */

.customer-logos {
    text-align: center;
    padding: 0;
    /* Removed large paddings */
    margin-top: -20px;
    /* Pull closer to hero */
    margin-bottom: -40px;
    /* Pull next section closer */
}

.customer-logos-heading {
    margin: 0 0 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #182f50;
}

.customer-logos-track-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.customer-logos-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: logoScroll 30s linear infinite;
}

.customer-logos-track img {
    height: 36px;
    width: auto;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(100%) contrast(1.2) opacity(0.9);
    transition: filter 0.3s ease;
}

.customer-logos-track img:hover {
    filter: none;
    opacity: 1;
}

@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-logos-track {
        animation: none;
    }
}

/* ── Footer ─────────────────────────────────────── */

.site-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #0f172a;
    color: #94a3b8;
    margin-top: auto;
}

.site-footer-inner {
    width: min(var(--site-page-max-width), 100%);
    padding: 56px 24px 32px;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.02rem;
}

.site-footer-logo img {
    display: block;
    border-radius: 8px;
}

.site-footer-tagline {
    margin: 14px 0 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 28ch;
}

.site-footer-col h4 {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e2e8f0;
    margin: 0 0 14px;
}

.site-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-footer-col a:hover {
    color: #f1f5f9;
}

.site-footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    text-align: center;
}

.site-footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #475569;
}

@media (max-width: 768px) {
    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
    }
}