/* ============================================================
   web/static/css/usecases.css
   Light-theme use cases marketing page
   ============================================================ */

/* ------------------------------------------------------------------ */
/* Custom properties -- light theme                                     */
/* ------------------------------------------------------------------ */
:root {
    --uc-bg:            #ffffff;
    --uc-bg-alt:        #f8fafc;
    --uc-surface:       #ffffff;
    --uc-surface-raised:var(--color-bg-secondary);
    --uc-border:        var(--color-border);
    --uc-border-bright: rgba(0,0,0,0.14);
    --uc-text-1:        var(--color-text);
    --uc-text-2:        #475569;
    --uc-text-3:        var(--color-text-muted);
    --uc-primary:       #2563eb;
    --uc-primary-l:     #1d4ed8;
    --uc-primary-bg:    rgba(37,99,235,0.08);
    --uc-primary-glow:  rgba(37,99,235,0.20);
    --uc-success:       #16a34a;
    --uc-success-bg:    rgba(22,163,74,0.08);
    --uc-success-glow:  rgba(22,163,74,0.18);
    --uc-sky:           var(--color-primary-active);
    --uc-sky-bg:        rgba(2,132,199,0.08);
    --uc-amber:         var(--color-warning-dark);
    --uc-amber-bg:      rgba(217,119,6,0.08);
    --uc-radius-sm:     var(--radius-sm);
    --uc-radius:        12px;
    --uc-radius-lg:     16px;
    --uc-radius-xl:     24px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: var(--uc-bg);
    color: var(--uc-text-1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* Keyframes                                                            */
/* ------------------------------------------------------------------ */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes node-pulse {
    0%, 100% { filter: drop-shadow(0 0 3px var(--uc-primary-glow)); }
    50%       { filter: drop-shadow(0 0 8px var(--uc-primary-glow)); }
}

@keyframes success-pulse {
    0%, 100% { filter: drop-shadow(0 0 3px var(--uc-success-glow)); }
    50%       { filter: drop-shadow(0 0 8px var(--uc-success-glow)); }
}

@keyframes pipeline-sweep {
    0%   { background-position-x: 100%; }
    100% { background-position-x: -100%; }
}

@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes type-line {
    from { width: 0; opacity: 1; }
    to   { width: 100%; opacity: 1; }
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ------------------------------------------------------------------ */
/* Scroll reveal                                                        */
/* ------------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Staggered reveal for individual children */
.reveal-stagger {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible {
    opacity: 1;
    transform: none;
}

/* Nav + mobile nav styles live in public-nav.css; do not duplicate here. */

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */
.uc-hero {
    position: relative;
    padding: 7rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37,99,235,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 80% 30%, rgba(14,165,233,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 50% 80%, rgba(6,182,212,0.04) 0%, transparent 70%),
        var(--uc-bg);
}

/* Faint dot grid overlay */
.uc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.uc-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    animation: fade-up 0.7s ease both;
}

.uc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--uc-primary-bg);
    border: 1px solid rgba(37,99,235,0.20);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--uc-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.75rem;
}

/* Gradient title variant */
.uc-hero__title--gradient {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 1.5rem;
}

.uc-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: var(--uc-text-2);
    line-height: 1.7;
    margin: 0;
    max-width: 640px;
    margin-inline: auto;
}

/* Scroll indicator */
.uc-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-muted);
    animation: bounce-down 2s ease-in-out infinite;
    z-index: 1;
}

/* ------------------------------------------------------------------ */
/* Section wrapper                                                      */
/* ------------------------------------------------------------------ */
.uc-section {
    padding: 6rem 2rem;
}

.uc-section--alt {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.uc-section__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.uc-section__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--uc-primary);
    text-align: center;
    margin-bottom: 0.75rem;
}

.uc-section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--uc-text-1);
    text-align: center;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.uc-section__subtitle {
    font-size: 1.0625rem;
    color: var(--uc-text-2);
    text-align: center;
    max-width: 580px;
    margin: 0 auto 4rem;
    line-height: 1.65;
}

/* ------------------------------------------------------------------ */
/* Animated terminal section                                            */
/* ------------------------------------------------------------------ */
.uc-terminal-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.uc-terminal-section__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.uc-terminal {
    max-width: 700px;
    margin: 2.5rem auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
    background: #0f172a;
}

.uc-terminal__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.uc-terminal__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.uc-terminal__dot--red    { background: var(--color-danger); }
.uc-terminal__dot--yellow { background: var(--color-warning); }
.uc-terminal__dot--green  { background: var(--color-success); }

.uc-terminal__title-text {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-family: monospace;
}

.uc-terminal__body {
    padding: 1.5rem;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8125rem;
    line-height: 1.8;
}

.uc-terminal__line {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    opacity: 0;
}

/* When parent has .visible class, animate lines in */
.uc-terminal.visible .uc-terminal__line {
    animation: type-line 0.8s steps(var(--line-chars), end) var(--line-delay) forwards;
}

.uc-terminal__prompt { color: #22c55e; font-weight: 700; }
.uc-terminal__cmd    { color: #e2e8f0; }
.uc-terminal__val    { color: #fbbf24; }
.uc-terminal__info   { color: #60a5fa; font-weight: 600; }
.uc-terminal__ok     { color: #22c55e; font-weight: 600; }
.uc-terminal__text   { color: #94a3b8; }

.uc-terminal__cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #22c55e;
    opacity: 0;
    animation: blink-cursor 1s step-end infinite;
    animation-delay: var(--cursor-delay);
}

.uc-terminal.visible .uc-terminal__cursor {
    opacity: 1;
    animation-delay: var(--cursor-delay);
}

/* ------------------------------------------------------------------ */
/* How it works -- 3 steps                                             */
/* ------------------------------------------------------------------ */
.uc-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.uc-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.uc-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

.uc-step__number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
    flex-shrink: 0;
}

.uc-step__icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(14,165,233,0.06));
    border: none;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--uc-primary);
}

.uc-step__icon-wrap svg { width: 28px; height: 28px; }

.uc-step__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--uc-text-1);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.uc-step__text {
    font-size: 0.9375rem;
    color: var(--uc-text-2);
    line-height: 1.65;
    margin: 0;
    max-width: 280px;
}

/* Connector between steps */
.uc-connector {
    flex: 0 0 60px;
    align-self: center;
    height: 2px;
    position: relative;
    margin-top: 1rem;
}

.uc-connector__svg {
    width: 60px;
    height: 24px;
    overflow: visible;
    display: block;
}

/* One-time draw transition (replaces continuous animation) */
.uc-connector__line {
    stroke: var(--uc-primary);
    stroke-width: 2;
    stroke-dasharray: 6 4;
    stroke-dashoffset: 60;
    fill: none;
    transition: stroke-dashoffset 0.8s ease;
}

.uc-connector.visible .uc-connector__line {
    stroke-dashoffset: 0;
}

.uc-connector__line--vert {
    stroke: var(--uc-primary);
    stroke-width: 2;
    stroke-dasharray: 6 4;
    stroke-dashoffset: 80;
    fill: none;
    transition: stroke-dashoffset 0.8s ease;
}

.uc-connector.visible .uc-connector__line--vert {
    stroke-dashoffset: 0;
}

/* ------------------------------------------------------------------ */
/* Secret delivery pipeline                                             */
/* ------------------------------------------------------------------ */
.uc-pipeline {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem;
    position: relative;
}

/* Soft gradient band behind the pipeline */
.uc-pipeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 3%;
    right: 3%;
    height: 64px;
    transform: translateY(-50%);
    border-radius: 32px;
    background: linear-gradient(90deg,
        rgba(196,181,253,0.08),
        rgba(134,239,172,0.08) 30%,
        rgba(147,197,253,0.1) 60%,
        rgba(252,211,77,0.08)
    );
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    pointer-events: none;
    z-index: 0;
}

/* Animated gradient sweep flowing left-to-right */
.uc-pipeline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 2%;
    right: 2%;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(37,99,235,0.06) 10%,
        rgba(37,99,235,0.15) 20%,
        rgba(14,165,233,0.2) 35%,
        rgba(34,197,94,0.15) 55%,
        rgba(245,158,11,0.12) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: pipeline-sweep 6s ease-in-out infinite;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    pointer-events: none;
    z-index: 0;
}

.uc-pipeline__stage {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.uc-pipeline__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    border: 1.5px solid;
    width: 100%;
    max-width: 220px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.uc-pipeline__node:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Node icon ring */
.uc-pipeline__node-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.uc-pipeline__node-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--uc-text-1);
    margin: 0 0 0.25rem;
    line-height: 1.25;
    min-height: 1.25em;
}

.uc-pipeline__node-sub {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    min-height: 1em;
}

.uc-pipeline__node-detail {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-top: auto;
    margin: 0;
}

/* Tooltip on pipeline nodes */
.uc-pipeline__tooltip {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.5;
    width: 240px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 10;
}

.uc-pipeline__tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #0f172a;
}

.uc-pipeline__stage:hover .uc-pipeline__tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Pipeline hover dimming */
.uc-pipeline:hover .uc-pipeline__stage {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.uc-pipeline:hover .uc-pipeline__stage:hover {
    opacity: 1;
}

.uc-pipeline:hover .uc-pipeline__label {
    opacity: 0.5;
    transition: opacity 0.3s;
}

/* Apps node -- purple */
.uc-pipeline__node--apps {
    background: #faf5ff;
    border-color: #c4b5fd;
}
.uc-pipeline__node--apps .uc-pipeline__node-icon {
    background: #f3e8ff;
    box-shadow: inset 0 1px 3px rgba(124,58,237,0.12);
    color: #7c3aed;
}
.uc-pipeline__node--apps .uc-pipeline__node-sub { color: #7c3aed; }

/* Agent node -- green */
.uc-pipeline__node--agent {
    background: #f0fdf4;
    border-color: #86efac;
}
.uc-pipeline__node--agent .uc-pipeline__node-icon {
    background: #dcfce7;
    box-shadow: inset 0 1px 3px rgba(22,163,74,0.12);
    color: #16a34a;
}
.uc-pipeline__node--agent .uc-pipeline__node-sub { color: #16a34a; }

/* Platform node -- blue */
.uc-pipeline__node--platform {
    background: #eff6ff;
    border-color: #93c5fd;
}
.uc-pipeline__node--platform .uc-pipeline__node-icon {
    background: #dbeafe;
    box-shadow: inset 0 1px 3px rgba(37,99,235,0.12);
    color: #2563eb;
}
.uc-pipeline__node--platform .uc-pipeline__node-sub { color: #2563eb; }

/* Vault node -- amber/gold */
.uc-pipeline__node--vault {
    background: #fffbeb;
    border-color: #fcd34d;
}
.uc-pipeline__node--vault .uc-pipeline__node-icon {
    background: #fef3c7;
    box-shadow: inset 0 1px 3px rgba(217,119,6,0.14);
    color: var(--color-warning-dark);
}
.uc-pipeline__node--vault .uc-pipeline__node-sub { color: var(--color-warning-dark); }

/* SDK language tags */
.uc-pipeline__node-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 0.75rem;
}

.uc-pipeline__tag {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: #f3e8ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}

/* Infrastructure strip below the pipeline */
.uc-pipeline__infra-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0.875rem 2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.uc-pipeline__infra-strip-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.uc-pipeline__infra-strip-icons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.uc-pipeline__infra-strip-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.uc-pipeline__infra-strip-item svg {
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

/* Labels between pipeline stages */
.uc-pipeline__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    flex: 0 0 auto;
    padding: 0.375rem 0.875rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    align-self: center;
}

.uc-pipeline__label--encrypted {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* ------------------------------------------------------------------ */
/* Trust model callout                                                  */
/* ------------------------------------------------------------------ */
.uc-trust {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.uc-trust__inner {
    max-width: 900px;
    margin: 0 auto;
}

.uc-trust__card {
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #2563eb, #22c55e);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: var(--uc-radius-xl);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.uc-trust__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.05) 0%, transparent 65%);
    pointer-events: none;
}

.uc-trust__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.35), transparent);
}

/* Shield spring animation on reveal */
.uc-trust__shield {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--uc-primary);
    position: relative;
    z-index: 1;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.uc-trust__card.visible .uc-trust__shield {
    transform: scale(1);
}

.uc-trust__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--uc-text-1);
    margin: 0 0 1rem;
    position: relative;
    z-index: 1;
}

.uc-trust__text {
    font-size: 1.0625rem;
    color: var(--uc-text-2);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.uc-trust__text--enc {
    font-size: 1rem;
    color: var(--uc-text-2);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
    padding: 1rem 1.25rem;
    background: var(--uc-surface-raised);
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius);
    border-left: 3px solid var(--uc-sky);
}

.uc-trust__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.uc-trust__flow-node {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--uc-radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--uc-border-bright);
}

.uc-trust__flow-node--workload {
    background: var(--uc-surface-raised);
    color: var(--uc-text-1);
}

.uc-trust__flow-node--platform {
    background: var(--uc-primary-bg);
    border-color: rgba(37,99,235,0.28);
    color: var(--uc-primary);
}

.uc-trust__flow-node svg { width: 14px; height: 14px; }

.uc-trust__flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.uc-trust__flow-arrow span {
    font-size: 0.6875rem;
    color: var(--uc-text-3);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.uc-trust__flow-arrow svg {
    width: 24px;
    height: 12px;
    color: var(--uc-text-3);
}

/* ------------------------------------------------------------------ */
/* CTA section                                                          */
/* ------------------------------------------------------------------ */
.uc-cta {
    padding: 6rem 2rem;
    background: #0f172a;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.uc-cta__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.uc-cta__orb--1 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, transparent 70%);
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
}

.uc-cta__orb--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 70%);
    bottom: -100px;
    right: 8%;
}

.uc-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.uc-cta__title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #f1f5f9;
    margin: 0 0 1rem;
}

.uc-cta__text {
    font-size: 1.0625rem;
    color: #94a3b8;
    margin: 0 0 2.5rem;
    line-height: 1.6;
}

.uc-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.uc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--uc-radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    min-height: 44px;
    min-width: 44px;
}

.uc-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.uc-btn--primary {
    background: var(--uc-primary);
    color: #fff;
}

.uc-btn--primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    transform: translateY(-1px);
}

.uc-btn--outline {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.20);
}

.uc-btn--outline:hover {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */
.uc-footer {
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 2.5rem 2rem;
}

.uc-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.uc-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.uc-footer__brand {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.uc-footer__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.uc-footer__link {
    font-size: 0.8125rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.uc-footer__link:hover { color: #f1f5f9; }

.uc-footer__copy {
    font-size: 0.8125rem;
    color: #64748b;
}

/* ------------------------------------------------------------------ */
/* Hub page -- use case cards                                            */
/* ------------------------------------------------------------------ */
.uc-hub__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.uc-hub__card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    background: var(--uc-surface);
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.uc-hub__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: var(--uc-primary);
}

.uc-hub__card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--uc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.uc-hub__card-icon--nhi {
    background: var(--uc-primary-bg);
    color: var(--uc-primary);
}

.uc-hub__card-icon--a2a {
    background: var(--uc-sky-bg);
    color: var(--uc-sky);
}

.uc-hub__card-badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--uc-text-3);
    margin-bottom: 0.5rem;
}

.uc-hub__card-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--uc-text-1);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.uc-hub__card-text {
    font-size: 0.9375rem;
    color: var(--uc-text-2);
    line-height: 1.65;
    margin: 0 0 1.5rem;
    flex: 1;
}

.uc-hub__card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--uc-primary);
}

.uc-hub__card-link svg {
    transition: transform 0.2s ease;
}

.uc-hub__card:hover .uc-hub__card-link svg {
    transform: translateX(4px);
}

/* ------------------------------------------------------------------ */
/* Breadcrumb back-link                                                 */
/* ------------------------------------------------------------------ */
.uc-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--uc-primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: opacity 0.2s;
}

.uc-breadcrumb:hover {
    opacity: 0.75;
}

.uc-breadcrumb svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* Built-in agents 2x2 grid                                             */
/* ------------------------------------------------------------------ */
.uc-agents__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.uc-agents__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 2rem;
    background: #ffffff;
    border: 1.5px solid var(--uc-border-bright);
    border-radius: var(--uc-radius-lg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.05);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.uc-agents__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(37,99,235,0.10), 0 2px 8px rgba(0,0,0,0.06);
}

.uc-agents__card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--uc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.uc-agents__card-icon--secrets {
    background: #fffbeb;
    color: var(--color-warning-dark);
    border: 1.5px solid #fcd34d;
}

.uc-agents__card-icon--pam {
    background: #f0fdf4;
    color: #16a34a;
    border: 1.5px solid #86efac;
}

.uc-agents__card-icon--governance {
    background: #eff6ff;
    color: #2563eb;
    border: 1.5px solid #93c5fd;
}

.uc-agents__card-icon--iga {
    background: #faf5ff;
    color: #7c3aed;
    border: 1.5px solid #c4b5fd;
}

.uc-agents__card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.uc-agents__card-badge--worker {
    background: var(--uc-primary-bg);
    color: var(--uc-primary);
    border: 1px solid rgba(37,99,235,0.20);
}

.uc-agents__card-badge--orchestrator {
    background: rgba(124,58,237,0.08);
    color: #7c3aed;
    border: 1px solid rgba(124,58,237,0.20);
}

.uc-agents__card-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--uc-text-1);
    margin: 0 0 0.625rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.uc-agents__card-text {
    font-size: 0.9rem;
    color: var(--uc-text-2);
    line-height: 1.65;
    margin: 0 0 1.25rem;
    flex: 1;
}

.uc-agents__card-caps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto;
}

.uc-agents__cap-tag {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    background: var(--uc-surface-raised);
    border: 1px solid var(--uc-border-bright);
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--uc-text-2);
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ------------------------------------------------------------------ */
/* External integrations row                                            */
/* ------------------------------------------------------------------ */
.uc-integrations__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.uc-integrations__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    background: #ffffff;
    border: 1.5px solid var(--uc-border-bright);
    border-radius: var(--uc-radius-lg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.05);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.uc-integrations__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(37,99,235,0.10), 0 2px 8px rgba(0,0,0,0.06);
}

.uc-integrations__card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--uc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.uc-integrations__card-icon--snow {
    background: #eff6ff;
    color: #2563eb;
    border: 1.5px solid #93c5fd;
}

.uc-integrations__card-icon--chat {
    background: #f0fdf4;
    color: #16a34a;
    border: 1.5px solid #86efac;
}

.uc-integrations__card-icon--cicd {
    background: #faf5ff;
    color: #7c3aed;
    border: 1.5px solid #c4b5fd;
}

.uc-integrations__card-title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--uc-text-1);
    margin: 0 0 0.625rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.uc-integrations__card-text {
    font-size: 0.9rem;
    color: var(--uc-text-2);
    line-height: 1.65;
    margin: 0;
}

/* Nav responsive rules live in public-nav.css. */

/* ------------------------------------------------------------------ */
/* Responsive -- tablet (768px–1199px)                                 */
/* ------------------------------------------------------------------ */
@media (max-width: 1199px) and (min-width: 768px) {
    /* Pipeline: allow horizontal scroll on tablet rather than ugly wrapping.
       The interleaved label pills between stage cards make 2-column wrapping
       impractical. Horizontal scroll is the cleanest fallback. */
    .uc-section__inner {
        overflow-x: visible;
    }

    .uc-pipeline {
        padding: 2rem 0.5rem;
        /* Shrink node cards slightly to fit more on screen */
        gap: 0;
    }

    .uc-pipeline__node {
        max-width: 180px;
        padding: 1.25rem 0.75rem;
    }

    .uc-pipeline__node-icon {
        width: 56px;
        height: 56px;
    }

    /* Shrink label pills */
    .uc-pipeline__label {
        padding: 0.3rem 0.625rem;
        font-size: 0.625rem;
    }

    /* Steps: reduce connector size on tablet */
    .uc-connector {
        flex: 0 0 40px;
    }

    .uc-connector__svg {
        width: 40px;
    }

    /* Agents grid: single column on narrower tablet */
    .uc-agents__grid {
        grid-template-columns: 1fr;
    }

    /* Integrations grid: single column on narrower tablet */
    .uc-integrations__grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ */
/* Responsive -- mobile (<768px)                                       */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
    /* Hero */
    .uc-hero {
        padding: 4.5rem 1.25rem 3.5rem;
    }

    /* Hide scroll indicator on mobile -- not useful on touch devices */
    .uc-hero__scroll {
        display: none;
    }

    /* Tighten subtitle max-width on mobile */
    .uc-hero__subtitle {
        max-width: 100%;
        font-size: clamp(0.9375rem, 4vw, 1.0625rem);
    }

    /* Sections */
    .uc-section {
        padding: 3.5rem 1.25rem;
    }

    .uc-section--alt {
        padding: 3.5rem 1.25rem;
    }

    /* Terminal section */
    .uc-terminal-section {
        padding: 3.5rem 1.25rem;
    }

    /* Terminal card: prevent overflow on narrow screens.
       Use clip instead of hidden so the body's scroll container still works. */
    .uc-terminal {
        max-width: 100%;
        margin: 2rem auto 0;
        overflow: clip;
    }

    /* Terminal body: smaller font + allow horizontal scroll for long lines.
       The body becomes the scroll container; the terminal card clips visually
       with overflow:clip which does not suppress scroll containers in children. */
    .uc-terminal__body {
        font-size: 0.6875rem;
        padding: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Step flow: vertical stack on mobile */
    .uc-steps {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .uc-step {
        width: 100%;
    }

    .uc-connector {
        display: none;
    }

    /* Pipeline: stack vertically on mobile */
    .uc-pipeline {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 1.5rem 1rem;
    }

    .uc-pipeline__stage {
        width: 100%;
        max-width: 360px;
    }

    .uc-pipeline__node {
        max-width: 100%;
    }

    /* Pipeline label pills: center between stacked cards */
    .uc-pipeline__label {
        margin: 0.75rem auto;
        align-self: center;
        text-align: center;
    }

    /* Hide animated sweep and gradient band on mobile */
    .uc-pipeline::before,
    .uc-pipeline::after {
        display: none;
    }

    /* Hide tooltips on mobile (no hover) */
    .uc-pipeline__tooltip {
        display: none;
    }

    /* Infrastructure strip: wrap on mobile */
    .uc-pipeline__infra-strip {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
        border-radius: var(--uc-radius-lg);
        max-width: 100%;
        margin-top: 1.5rem;
    }

    .uc-pipeline__infra-strip-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.25rem;
    }

    /* Trust section */
    .uc-trust {
        padding: 3.5rem 1.25rem;
    }

    .uc-trust__card {
        padding: 2rem 1.25rem;
    }

    /* Trust flow: stack vertically */
    .uc-trust__flow {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* Rotate arrows to point downward */
    .uc-trust__flow-arrow {
        transform: rotate(90deg);
    }

    /* CTA section */
    .uc-cta {
        padding: 4rem 1.25rem;
        text-align: center;
    }

    .uc-cta__text {
        font-size: 1rem;
    }

    .uc-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    /* Footer */
    .uc-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    /* Footer links: stack vertically */
    .uc-footer__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
    }

    /* Agents grid: single column on mobile */
    .uc-agents__grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    /* Integrations grid: single column on mobile */
    .uc-integrations__grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    /* Hub grid: single column on mobile */
    .uc-hub__grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* ------------------------------------------------------------------ */
/* Responsive -- small mobile (<480px)                                 */
/* ------------------------------------------------------------------ */
@media (max-width: 479px) {
    /* Slightly tighter section padding */
    .uc-hero {
        padding: 3.5rem 1rem 3rem;
    }

    .uc-section,
    .uc-section--alt,
    .uc-terminal-section,
    .uc-trust,
    .uc-cta {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero title: even tighter letter spacing at smallest sizes */
    .uc-hero__title--gradient {
        letter-spacing: -0.015em;
    }

    /* Pipeline nodes: tighter padding */
    .uc-pipeline__node {
        padding: 1.25rem 1rem;
    }

    /* Pipeline node icon: slightly smaller */
    .uc-pipeline__node-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    /* Infrastructure strip: 3+2 grid layout using flex-wrap */
    .uc-pipeline__infra-strip {
        padding: 0.875rem 1rem;
    }

    .uc-pipeline__infra-strip-icons {
        gap: 0.625rem 1rem;
    }

    /* Terminal body: smallest font */
    .uc-terminal__body {
        font-size: 0.625rem;
        padding: 0.875rem;
        line-height: 1.7;
    }

    /* Trust card: minimal padding */
    .uc-trust__card {
        padding: 1.75rem 1rem;
    }

    /* Step cards: tighter */
    .uc-step {
        padding: 2rem 1.25rem 1.75rem;
    }
}
