/* ============================================================
   CareProgram - Visual Polish Layer
   Clean & Airy +  personality: shadows, accents, micro-motion
   ============================================================ */

:root {
    /* Brand */
    --cp-primary: #1976D2;
    --cp-primary-600: #1565C0;
    --cp-primary-50: #e8f1fb;
    --cp-accent: #6366f1;       /* indigo accent */
    --cp-accent-600: #4f46e5;
    --cp-accent-50: #eef0ff;

    /* Surfaces (subtle warmth, not pure white) */
    --cp-bg: #f7f8fb;
    --cp-bg-soft: #fbfcfe;
    --cp-surface: #ffffff;
    --cp-border: #e6e9ef;
    --cp-border-strong: #d6dbe5;

    /* Text hierarchy */
    --cp-text: #0f172a;
    --cp-text-muted: #475569;
    --cp-text-subtle: #94a3b8;

    /* Status palette */
    --cp-success: #10b981;
    --cp-success-50: #ecfdf5;
    --cp-warning: #f59e0b;
    --cp-warning-50: #fffbeb;
    --cp-danger:  #ef4444;
    --cp-danger-50:  #fef2f2;
    --cp-info:    #0ea5e9;
    --cp-info-50:    #f0f9ff;

    /* Layered shadow system */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04),
                 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.04),
                 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 4px 8px rgba(15, 23, 42, 0.04),
                 0 12px 24px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 8px 16px rgba(15, 23, 42, 0.06),
                 0 20px 40px rgba(15, 23, 42, 0.10);
    --shadow-focus: 0 0 0 3px rgba(25, 118, 210, 0.18);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 150ms;
    --dur: 250ms;
    --dur-slow: 400ms;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ------------------------------------------------------------
   Body / ambient background
   Very faint gradient + dot mesh for atmosphere
   ------------------------------------------------------------ */
html, body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--cp-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.04) 0px, transparent 55%),
        radial-gradient(at 100% 0%, rgba(25, 118, 210, 0.04) 0px, transparent 50%),
        radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.035) 1px, transparent 0);
    background-size: auto, auto, 22px 22px;
    background-attachment: fixed;
}

/* ------------------------------------------------------------
   Scrollbar
   ------------------------------------------------------------ */
* {
    scrollbar-width: thin;
    scrollbar-color: #c9cfdb transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: #c9cfdb;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: #9aa4b8; background-clip: padding-box; border: 2px solid transparent; }

/* ------------------------------------------------------------
   Keyframes
   ------------------------------------------------------------ */
@keyframes cp-fade-in-up {
    from { opacity: 0; transform: translate3d(0, 12px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes cp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cp-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 0.95; }
    50%      { box-shadow: 0 0 0 4px transparent; opacity: 0.6; }
}
@keyframes cp-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.cp-fade-in-up {
    animation: cp-fade-in-up var(--dur-slow) var(--ease-out) both;
}

/* Staggered reveal for grids of cards */
.cp-stagger > * {
    animation: cp-fade-in-up var(--dur-slow) var(--ease-out) both;
}
.cp-stagger > *:nth-child(1) { animation-delay: 0ms; }
.cp-stagger > *:nth-child(2) { animation-delay: 60ms; }
.cp-stagger > *:nth-child(3) { animation-delay: 120ms; }
.cp-stagger > *:nth-child(4) { animation-delay: 180ms; }
.cp-stagger > *:nth-child(5) { animation-delay: 240ms; }
.cp-stagger > *:nth-child(6) { animation-delay: 300ms; }
.cp-stagger > *:nth-child(7) { animation-delay: 360ms; }
.cp-stagger > *:nth-child(8) { animation-delay: 420ms; }

/* Fade-in on main content */
.mud-main-content > .cp-fade-in-up,
.mud-main-content .cp-page {
    animation: cp-fade-in-up 420ms var(--ease-out) both;
}

/* ------------------------------------------------------------
   Global MudBlazor refinements
   ------------------------------------------------------------ */

/* Smoother interactive transitions */
.mud-button-root,
.mud-icon-button,
.mud-chip,
.mud-nav-link,
.mud-list-item,
.mud-paper,
.mud-input,
.mud-table-row,
a {
    transition:
        background-color var(--dur) var(--ease),
        color var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

/* Buttons: subtle press + refined shadow on filled */
.mud-button-root {
    letter-spacing: 0.01em;
    will-change: transform;
}
.mud-button-filled,
.mud-button-filled-primary,
.mud-button-filled-secondary {
    box-shadow: var(--shadow-sm);
}
.mud-button-filled:hover,
.mud-button-filled-primary:hover,
.mud-button-filled-secondary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.mud-button-root:active {
    transform: translateY(0) scale(0.985);
}
.mud-button-root:focus-visible {
    box-shadow: var(--shadow-focus);
    outline: none;
}

/* Icon buttons: soft hover */
.mud-icon-button:hover {
    background-color: rgba(25, 118, 210, 0.07);
}

/* Paper: upgrade flat-bordered papers to shadow cards */
.mud-paper {
    background-color: var(--cp-surface);
}

/* Input focus ring refinement */
.mud-input-outlined .mud-input-outlined-border {
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.mud-input-outlined.mud-focused .mud-input-outlined-border {
    box-shadow: var(--shadow-focus);
}

/* ------------------------------------------------------------
   AppBar + Drawer refinement
   ------------------------------------------------------------ */
.mud-appbar {
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid var(--cp-border) !important;
}

/* Ensure main content is not hidden behind the fixed AppBar.
   MudBlazor's MudAppBar is fixed at top by default — we add explicit
   top padding to MudMainContent so content doesn't underlap. */
.mud-main-content {
    padding-top: 80px !important;
}

.mud-drawer {
    background-color: var(--cp-bg-soft) !important;
    border-right: 1px solid var(--cp-border) !important;
}

/* ------------------------------------------------------------
   NavMenu polish — accent bar on active, soft hover
   ------------------------------------------------------------ */
.mud-nav-link {
    position: relative;
    border-radius: 10px;
    margin: 2px 6px;
    padding-left: 14px !important;
    color: var(--cp-text-muted) !important;
    font-weight: 500;
}
.mud-nav-link .mud-nav-link-icon {
    color: var(--cp-text-subtle) !important;
    transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mud-nav-link:hover {
    background-color: rgba(99, 102, 241, 0.06) !important;
    color: var(--cp-text) !important;
}
.mud-nav-link:hover .mud-nav-link-icon {
    color: var(--cp-accent) !important;
    transform: translateX(1px);
}
.mud-nav-link.active,
.mud-nav-link.mud-nav-link-active {
    background: linear-gradient(90deg, var(--cp-primary-50) 0%, rgba(99, 102, 241, 0.06) 100%) !important;
    color: var(--cp-primary) !important;
    font-weight: 600;
}
.mud-nav-link.active .mud-nav-link-icon,
.mud-nav-link.mud-nav-link-active .mud-nav-link-icon {
    color: var(--cp-primary) !important;
}
.mud-nav-link.active::before,
.mud-nav-link.mud-nav-link-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--cp-primary) 0%, var(--cp-accent) 100%);
}

/* ------------------------------------------------------------
   KpiCard
   ------------------------------------------------------------ */
.kpi-card {
    position: relative;
    border-radius: var(--radius-lg) !important;
    background: var(--cp-surface) !important;
    border: 1px solid var(--cp-border) !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--cp-primary) 0%, var(--cp-accent) 100%);
    opacity: 0.9;
}
.kpi-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 100% 0%, rgba(99, 102, 241, 0.06), transparent 55%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}
.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cp-border-strong) !important;
}
.kpi-card:hover::after { opacity: 1; }

.kpi-card .kpi-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.kpi-card .kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--cp-primary-50);
    color: var(--cp-primary);
    box-shadow: inset 0 0 0 1px rgba(25, 118, 210, 0.12);
    flex-shrink: 0;
}
.kpi-card .kpi-icon .mud-icon-root { font-size: 22px; color: inherit; }
.kpi-card .kpi-label {
    color: var(--cp-text-subtle) !important;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    line-height: 1;
}
.kpi-card .kpi-value {
    color: var(--cp-text) !important;
    font-weight: 700 !important;
    font-size: 1.9rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.kpi-card .kpi-subtitle {
    color: var(--cp-text-muted) !important;
    margin-top: 4px;
    display: block;
}

/* ------------------------------------------------------------
   Generic refined card — apply for non-kpi papers
   ------------------------------------------------------------ */
.cp-card {
    border-radius: var(--radius-lg) !important;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ------------------------------------------------------------
   PageHeader
   ------------------------------------------------------------ */
.cp-page-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    position: relative;
}
.cp-page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        var(--cp-border-strong) 0%,
        var(--cp-border) 30%,
        transparent 100%);
}
.cp-page-header__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cp-page-header__title {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--cp-text) 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 6px 0 !important;
    position: relative;
    display: inline-block;
}
.cp-page-header__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cp-primary), var(--cp-accent));
}
.cp-page-header__subtitle {
    color: var(--cp-text-muted) !important;
    margin: 14px 0 0 0 !important;
    font-size: 0.95rem;
}
.cp-page-header__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   StatusBadge pill
   ------------------------------------------------------------ */
.cp-status-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 10px !important;
    border-radius: 999px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    border: 1px solid transparent;
    letter-spacing: 0.01em;
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
    transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
    animation: cp-fade-in var(--dur) var(--ease-out);
}
.cp-status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}
.cp-status-badge.is-pulse::before {
    animation: cp-pulse-dot 2s var(--ease-out) infinite;
}
.cp-status-badge--default { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.cp-status-badge--info    { background: var(--cp-info-50);    color: #0369a1; border-color: #bae6fd; }
.cp-status-badge--warning { background: var(--cp-warning-50); color: #b45309; border-color: #fde68a; }
.cp-status-badge--primary { background: var(--cp-primary-50); color: #1565c0; border-color: #bfdbfe; }
.cp-status-badge--success { background: var(--cp-success-50); color: #047857; border-color: #a7f3d0; }
.cp-status-badge--danger  { background: var(--cp-danger-50);  color: #b91c1c; border-color: #fecaca; }

/* ------------------------------------------------------------
   Refined Table
   ------------------------------------------------------------ */
.refined-table .mud-table-root {
    border-collapse: separate;
    border-spacing: 0;
}
.refined-table.mud-table,
.refined-table .mud-table-container {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cp-border);
}
.refined-table .mud-table-head .mud-table-cell {
    background: #fafbfd !important;
    color: var(--cp-text-muted) !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--cp-border) !important;
    padding-top: 14px;
    padding-bottom: 14px;
}
.refined-table .mud-table-body .mud-table-row {
    transition: background-color var(--dur-fast) var(--ease);
}
.refined-table .mud-table-body .mud-table-row:nth-of-type(even) {
    background-color: rgba(148, 163, 184, 0.035);
}
.refined-table .mud-table-body .mud-table-row:hover {
    background-color: rgba(99, 102, 241, 0.06) !important;
}
.refined-table .mud-table-body .mud-table-cell {
    border-bottom: 1px solid #eef1f6 !important;
    padding-top: 14px;
    padding-bottom: 14px;
    color: var(--cp-text) !important;
}
.refined-table .mud-table-body .mud-table-row:last-child .mud-table-cell {
    border-bottom: none !important;
}

/* ------------------------------------------------------------
   Landing hero & feature cards
   ------------------------------------------------------------ */
.cp-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 24px 104px;
    background:
        radial-gradient(1200px 500px at 10% 0%, rgba(99, 102, 241, 0.35), transparent 60%),
        radial-gradient(900px 500px at 90% 20%, rgba(14, 165, 233, 0.25), transparent 60%),
        linear-gradient(135deg, #1e3a8a 0%, #1976D2 55%, #1565C0 100%);
    color: #fff;
}
.cp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
    pointer-events: none;
}
.cp-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--cp-bg));
}
.cp-hero__inner { position: relative; z-index: 1; text-align: center; }
.cp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    margin-bottom: 22px;
}
.cp-hero__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
    animation: cp-pulse-dot 2.4s var(--ease-out) infinite;
}
.cp-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em;
    color: #fff !important;
    margin-bottom: 18px !important;
}
.cp-hero__subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    margin-bottom: 36px !important;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.cp-hero__cta-primary {
    background: #fff !important;
    color: var(--cp-primary) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    border-radius: 12px !important;
    padding: 12px 30px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28) !important;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease) !important;
}
.cp-hero__cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.34) !important;
}
.cp-hero__cta-secondary {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    border-radius: 12px !important;
    padding: 12px 30px !important;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.05) !important;
}
.cp-hero__cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #fff !important;
}

.cp-feature-card {
    position: relative;
    height: 100%;
    border-radius: var(--radius-lg) !important;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border) !important;
    box-shadow: var(--shadow-sm);
    padding: 36px 28px !important;
    text-align: center;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    overflow: hidden;
}
.cp-feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cp-primary), var(--cp-accent));
    transform: scaleX(0.2);
    transform-origin: left;
    transition: transform var(--dur-slow) var(--ease-out);
}
.cp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cp-border-strong) !important;
}
.cp-feature-card:hover::before { transform: scaleX(1); }
.cp-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--cp-primary-50), var(--cp-accent-50));
    color: var(--cp-primary);
    box-shadow: inset 0 0 0 1px rgba(25, 118, 210, 0.15);
    transition: transform var(--dur) var(--ease);
}
.cp-feature-card:hover .cp-feature-card__icon {
    transform: scale(1.06) rotate(-3deg);
}
.cp-feature-card__icon .mud-icon-root { font-size: 32px !important; color: inherit !important; }
.cp-feature-card__title { font-weight: 700 !important; margin-bottom: 10px !important; color: var(--cp-text) !important; }
.cp-feature-card__body { color: var(--cp-text-muted) !important; line-height: 1.6 !important; }

/* ------------------------------------------------------------
   Login page polish
   ------------------------------------------------------------ */
.cp-auth-shell {
    position: relative;
    min-height: calc(100vh - 64px);
    padding: 64px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(600px 400px at 20% 10%, rgba(99, 102, 241, 0.10), transparent 60%),
        radial-gradient(600px 400px at 80% 90%, rgba(25, 118, 210, 0.10), transparent 60%),
        var(--cp-bg);
}
.cp-auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.05) 1px, transparent 0);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
    pointer-events: none;
}
.cp-auth-card {
    position: relative;
    z-index: 1;
    max-width: 460px;
    width: 100%;
    padding: 40px 36px !important;
    border-radius: var(--radius-xl) !important;
    background: #fff !important;
    border: 1px solid var(--cp-border) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 20px 50px rgba(15, 23, 42, 0.10),
        0 40px 80px rgba(25, 118, 210, 0.06);
    animation: cp-fade-in-up 500ms var(--ease-out) both;
}
.cp-auth-card__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--cp-primary) 0%, var(--cp-accent) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(25, 118, 210, 0.30);
    margin-bottom: 6px;
}
.cp-auth-card__logo .mud-icon-root { font-size: 34px !important; color: #fff !important; }

/* ------------------------------------------------------------
   Utility
   ------------------------------------------------------------ */
.cp-text-gradient {
    background: linear-gradient(135deg, var(--cp-primary) 0%, var(--cp-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ------------------------------------------------------------
   Enterprise list patterns: FilterBar, EntityPicker, EmptyState
   ------------------------------------------------------------ */

.filter-bar {
    background: linear-gradient(180deg, var(--cp-primary-50) 0%, var(--cp-bg-soft) 100%);
    border: 1px solid var(--cp-border) !important;
    border-radius: 12px !important;
}
.filter-bar__icon {
    color: var(--cp-primary);
}
.filter-bar__fields {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}
.filter-bar__helper {
    color: var(--cp-text-muted);
}

.entity-picker-button {
    border-radius: 10px !important;
    border: 1px solid var(--cp-border-strong) !important;
    background: var(--cp-surface) !important;
    text-transform: none !important;
    font-weight: 500 !important;
    min-height: 40px;
    padding: 0 14px !important;
    justify-content: flex-start !important;
    color: var(--cp-text) !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.entity-picker-button:hover {
    border-color: var(--cp-primary) !important;
    box-shadow: 0 0 0 3px var(--cp-primary-50);
}
.entity-picker-button__placeholder {
    color: var(--cp-text-subtle);
    font-weight: 400;
}
.entity-picker-button__value {
    color: var(--cp-text);
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entity-picker-dialog__table {
    max-height: 420px;
    overflow: auto;
}
.entity-picker-dialog__table tbody tr {
    cursor: pointer;
}

/* Empty state ------------------------------------------------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 10px;
}
.empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--cp-primary-50);
    color: var(--cp-primary);
    margin-bottom: 8px;
}
.empty-state__icon .mud-icon-root {
    font-size: 36px !important;
}
.empty-state__title {
    color: var(--cp-text);
    font-weight: 600;
}
.empty-state__description {
    color: var(--cp-text-muted);
    max-width: 420px;
}
.empty-state__actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

/* Filter pill (active filter shown above data grid) ------------ */
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--cp-primary-50);
    color: var(--cp-primary-600);
    border: 1px solid var(--cp-border);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.filter-pill__remove {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    opacity: .7;
}
.filter-pill__remove:hover {
    opacity: 1;
}

/* Filterable page wrapper ------------------------------------- */
.filterable-page__header {
    margin-bottom: 12px;
}
.filterable-page__prompt {
    border-radius: 12px !important;
    border: 1px dashed var(--cp-border-strong) !important;
    background: var(--cp-bg-soft) !important;
    text-align: center;
}

/* Paginated table -------------------------------------------- */
.paginated-table__search {
    max-width: 320px;
}
.paginated-table__count {
    color: var(--cp-text-muted);
}

/* Command palette --------------------------------------------- */
.command-palette-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    animation: cp-fade-in 0.15s ease;
}
.command-palette {
    width: 100%;
    max-width: 580px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: cp-slide-down 0.2s ease;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}
.command-palette__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.command-palette__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    color: #0f172a;
}
.command-palette__kbd {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid #e2e8f0;
}
.command-palette__results {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    max-height: 420px;
}
.command-palette__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s;
}
.command-palette__item.is-selected,
.command-palette__item:hover {
    background: #f1f5f9;
}
.command-palette__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--cp-primary, #2563eb);
    color: white;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.command-palette__item-icon {
    color: #64748b;
}
.command-palette__item-text {
    flex: 1;
    min-width: 0;
}
.command-palette__item-title {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}
.command-palette__item-desc {
    font-size: 12px;
    color: #64748b;
}
.command-palette__empty {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}
.command-palette__footer {
    display: flex;
    gap: 18px;
    padding: 10px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
    color: #64748b;
}
.command-palette__footer strong {
    color: #0f172a;
    font-weight: 700;
    margin-right: 4px;
}
.cp-kbd-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    text-transform: none;
}
.cp-kbd-hint:hover {
    background: #e2e8f0;
}
.cp-kbd-hint kbd {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    background: white;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
}
.cp-nav-code {
    display: inline-block;
    min-width: 26px;
    padding: 1px 6px;
    margin-right: 8px;
    border-radius: 6px;
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
@keyframes cp-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes cp-slide-down {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════ */
/* PRODUCT LANDING PAGE (/product)                              */
/* ═══════════════════════════════════════════════════════════ */

.pr-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6366f1;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
}
.pr-eyebrow--red {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.18);
}

/* ─── HERO ─────────────────────────────────────────────── */
.pr-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 110px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    isolation: isolate;
}
.pr-hero__mesh {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 720px;
    background:
        radial-gradient(ellipse 600px 360px at 18% 20%, rgba(25, 118, 210, 0.18), transparent 60%),
        radial-gradient(ellipse 500px 320px at 82% 10%, rgba(99, 102, 241, 0.22), transparent 60%),
        radial-gradient(ellipse 700px 340px at 55% 80%, rgba(14, 165, 233, 0.12), transparent 60%);
    filter: blur(8px);
    z-index: -2;
    animation: pr-mesh-float 18s ease-in-out infinite alternate;
}
.pr-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
    z-index: -1;
}
@keyframes pr-mesh-float {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(20px, 15px, 0) scale(1.05); }
}
.pr-hero__inner { position: relative; }
.pr-hero__content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}
.pr-hero__title {
    margin: 22px auto 24px;
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: #0b1120;
}
.pr-hero__title-accent {
    background: linear-gradient(120deg, #1976D2 0%, #6366f1 55%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pr-hero__sub {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    color: #475569;
    max-width: 680px;
    margin: 0 auto 36px;
}
.pr-hero__ctas {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.pr-hero__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.pr-btn {
    text-transform: none !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
    padding: 12px 26px !important;
    letter-spacing: 0 !important;
    transition: transform 200ms ease, box-shadow 200ms ease !important;
}
.pr-btn--primary {
    background: linear-gradient(120deg, #1976D2, #6366f1) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 10px 24px -10px rgba(99, 102, 241, 0.55) !important;
}
.pr-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(99, 102, 241, 0.7) !important;
}
.pr-btn--secondary {
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1 !important;
    background: white !important;
}
.pr-btn--secondary:hover {
    border-color: #6366f1 !important;
    color: #6366f1 !important;
    transform: translateY(-2px);
}
.pr-btn--onglass {
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.3) !important;
}
.pr-btn--ghost {
    color: white !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
}
.pr-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: white !important;
    transform: translateY(-2px);
}

/* ─── TRUST STRIP ─────────────────────────────────────── */
.pr-trust {
    padding: 40px 0 60px;
    background: white;
}
.pr-trust__label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.pr-trust__chips {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.pr-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}
.pr-chip .mud-icon-root { color: #6366f1; }
.pr-trust__kpis {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 32px;
    background: linear-gradient(120deg, rgba(25, 118, 210, 0.04), rgba(99, 102, 241, 0.06));
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}
.pr-kpi { text-align: center; flex: 1; }
.pr-kpi__value {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    background: linear-gradient(120deg, #1976D2, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.pr-kpi__label {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}
.pr-kpi--divider {
    width: 1px;
    height: 44px;
    background: #e2e8f0;
    flex: 0 0 1px;
}

/* ─── GENERIC SECTION ─────────────────────────────────── */
.pr-section {
    padding: 110px 0;
}
.pr-section--pain {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.pr-section--solution { background: white; }
.pr-section--features {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.pr-section--chain { background: white; }
.pr-section--roi {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    color: white;
}
.pr-section--usecases { background: white; }
.pr-section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.pr-section__title {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0b1120;
    margin: 18px 0 14px;
    line-height: 1.15;
}
.pr-section--roi .pr-section__title { color: white; }
.pr-section__sub {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
}
.pr-section--roi .pr-section__sub { color: #94a3b8; }

/* ─── PAIN CARDS ──────────────────────────────────────── */
.pr-pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.pr-pain-card {
    padding: 30px 26px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    position: relative;
    overflow: hidden;
}
.pr-pain-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f87171, #fb923c);
    opacity: 0;
    transition: opacity 220ms ease;
}
.pr-pain-card:hover {
    transform: translateY(-4px);
    border-color: #fca5a5;
    box-shadow: 0 18px 40px -18px rgba(220, 38, 38, 0.25);
}
.pr-pain-card:hover::before { opacity: 1; }
.pr-pain-card__icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.12), rgba(251, 146, 60, 0.12));
    color: #dc2626;
    margin-bottom: 18px;
}
.pr-pain-card__icon .mud-icon-root { color: #dc2626; }
.pr-pain-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1120;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.pr-pain-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* ─── BEFORE / AFTER COMPARE ──────────────────────────── */
.pr-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: stretch;
    max-width: 980px;
    margin: 0 auto;
}
.pr-compare__col {
    padding: 36px 32px;
    border-radius: 22px;
    position: relative;
    border: 1px solid #e2e8f0;
}
.pr-compare__col--before {
    background: linear-gradient(180deg, #fafafa, #f1f5f9);
    color: #64748b;
}
.pr-compare__col--after {
    background: linear-gradient(135deg, #1976D2, #6366f1);
    color: white;
    border: none;
    box-shadow: 0 30px 60px -25px rgba(99, 102, 241, 0.55);
}
.pr-compare__tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.pr-compare__tag--after {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}
.pr-compare__brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.pr-compare__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pr-compare__col li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}
.pr-compare__col--before li { text-decoration: line-through; text-decoration-color: rgba(100, 116, 139, 0.4); }
.pr-compare__col--after li .mud-icon-root { color: #a7f3d0; }
.pr-compare__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
}

/* ─── FEATURE CARDS ───────────────────────────────────── */
.pr-feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.pr-feat-card {
    background: white;
    padding: 34px 28px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
    position: relative;
    overflow: hidden;
}
.pr-feat-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 30px 60px -24px rgba(99, 102, 241, 0.35);
}
.pr-feat-card__icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    margin-bottom: 22px;
    box-shadow: 0 10px 24px -8px rgba(99, 102, 241, 0.45);
}
.pr-feat-card__icon .mud-icon-root { color: white; font-size: 28px; }
.pr-grad-1 { background: linear-gradient(135deg, #1976D2, #38bdf8); }
.pr-grad-2 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.pr-grad-3 { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.pr-grad-4 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.pr-grad-5 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.pr-grad-6 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.pr-feat-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0b1120;
    margin: 0 0 12px;
    letter-spacing: -0.015em;
}
.pr-feat-card p {
    font-size: 0.96rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ─── CHAIN DIAGRAM ───────────────────────────────────── */
.pr-chain {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 1180px;
    margin: 0 auto;
}
.pr-chain-node {
    flex: 1 1 220px;
    min-width: 220px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    position: relative;
    transition: transform 220ms ease, box-shadow 220ms ease;
}
.pr-chain-node:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -18px rgba(25, 118, 210, 0.3);
}
.pr-chain-node__icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #1976D2, #6366f1);
    color: white;
    box-shadow: 0 10px 22px -6px rgba(99, 102, 241, 0.45);
}
.pr-chain-node__icon .mud-icon-root { color: white; font-size: 28px; }
.pr-chain-node__label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 2px;
}
.pr-chain-node__role {
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.pr-chain-node ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.pr-chain-node li {
    font-size: 0.88rem;
    color: #64748b;
    padding: 4px 0 4px 16px;
    position: relative;
}
.pr-chain-node li::before {
    content: "";
    position: absolute;
    left: 0; top: 12px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #6366f1;
}
.pr-chain-node--customer .pr-chain-node__icon {
    background: linear-gradient(135deg, #10b981, #0ea5e9);
}
.pr-chain-link {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    position: relative;
}
.pr-chain-link::before {
    content: "";
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #1976D2);
    border-radius: 2px;
}
.pr-chain-link::after {
    content: "";
    position: absolute;
    right: 4px;
    width: 0; height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #1976D2;
}

/* ─── ROI (dark section) ──────────────────────────────── */
.pr-roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}
.pr-roi-card {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.14), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 20px;
    padding: 38px 26px;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: transform 240ms ease, border-color 240ms ease;
}
.pr-roi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.6);
}
.pr-roi-card__value {
    font-size: clamp(2.6rem, 4.2vw, 3.6rem);
    font-weight: 800;
    background: linear-gradient(120deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.pr-roi-card__label {
    margin-top: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.4;
}
.pr-roi-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    color: #94a3b8;
    font-size: 13px;
}

/* ─── USE CASES ───────────────────────────────────────── */
.pr-usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.pr-usecase-card {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 30px;
    transition: transform 220ms ease, box-shadow 220ms ease;
    position: relative;
}
.pr-usecase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -18px rgba(25, 118, 210, 0.2);
}
.pr-usecase-card__role {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(25, 118, 210, 0.1), rgba(99, 102, 241, 0.12));
    color: #1976D2;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}
.pr-usecase-card__role .mud-icon-root { color: #6366f1; font-size: 18px; }
.pr-usecase-card blockquote {
    margin: 0;
    padding: 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: #334155;
    font-style: italic;
    border-left: 3px solid #6366f1;
    padding-left: 16px;
}

/* ─── TECH STRIP ──────────────────────────────────────── */
.pr-tech {
    padding: 70px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}
.pr-tech__label {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.pr-tech__badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 840px;
    margin: 0 auto;
}
.pr-tech-badge {
    padding: 8px 16px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', ui-monospace, monospace;
    transition: all 220ms ease;
}
.pr-tech-badge:hover {
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
}

/* ─── FINAL CTA ───────────────────────────────────────── */
.pr-finalcta {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background: linear-gradient(135deg, #0b1120 0%, #1e3a8a 50%, #4c1d95 100%);
    color: white;
    text-align: center;
    isolation: isolate;
}
.pr-finalcta__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(99, 102, 241, 0.35), transparent 60%),
        radial-gradient(ellipse 500px 300px at 80% 70%, rgba(14, 165, 233, 0.25), transparent 60%);
    z-index: -1;
    animation: pr-mesh-float 14s ease-in-out infinite alternate;
}
.pr-finalcta__inner { position: relative; }
.pr-finalcta__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    line-height: 1.15;
}
.pr-finalcta__sub {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 36px;
}
.pr-finalcta__ctas {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.pr-finalcta__note {
    color: #94a3b8;
    font-size: 13px;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
    .pr-compare {
        grid-template-columns: 1fr;
    }
    .pr-compare__arrow {
        transform: rotate(90deg);
        padding: 8px 0;
    }
    .pr-chain {
        flex-direction: column;
        align-items: stretch;
    }
    .pr-chain-link {
        flex: 0 0 40px;
        transform: rotate(90deg);
        margin: 4px auto;
    }
    .pr-trust__kpis {
        flex-direction: column;
        gap: 20px;
    }
    .pr-kpi--divider {
        width: 60px;
        height: 1px;
        flex: 0 0 1px;
    }
}
@media (max-width: 600px) {
    .pr-hero { padding: 80px 0 70px; }
    .pr-section { padding: 80px 0; }
    .pr-section__head { margin-bottom: 42px; }
    .pr-hero__ctas { flex-direction: column; align-items: stretch; }
    .pr-finalcta__ctas { flex-direction: column; align-items: stretch; }
}
