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

html {
    overflow-x: hidden;
}

:root {
    --bg-deep: #0a0e17;
    --bg-surface: #111827;
    --bg-elevated: #1a2234;
    --bg-card: #1e293b;
    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-accent: rgba(34, 211, 238, 0.3);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #7e8ea0;
    --accent-cyan: #22d3ee;
    --accent-cyan-dim: rgba(34, 211, 238, 0.15);
    --accent-blue: #3b82f6;
    --accent-emerald: #10b981;
    --accent-violet: #8b5cf6;
    --gradient-cyan: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    --gradient-mesh: radial-gradient(ellipse at 20% 20%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    --font-display: 'Geist', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Entity color palette — single source of truth for all demos.
       To add a new entity: add --entity-* here + [data-category] rule below. */
    /* Tier 1: Common PII (bold primaries — appear across many texts) */
    --entity-person:      #3b82f6;  /* blue */
    --entity-org:         #a78bfa;  /* violet */
    --entity-date:        #fb923c;  /* orange */
    --entity-dob:         #f59e0b;  /* amber */
    --entity-address:     #4ade80;  /* green */
    --entity-phone:       #f472b6;  /* pink */
    --entity-email:       #22d3ee;  /* cyan */
    /* Tier 2: Sensitive identifiers */
    --entity-ssn:         #ef4444;  /* red */
    --entity-credit-card: #fbbf24;  /* yellow */
    --entity-iban:        #a3e635;  /* lime */
    --entity-insurance:   #2dd4bf;  /* teal */
    --entity-npi:         #c084fc;  /* purple */
    --entity-mrn:         #8b5cf6;  /* deep violet */
    --entity-case-id:     #94a3b8;  /* slate */
    /* Tier 3: Domain-specific (custom detection) */
    --entity-rx-med:      #eab308;  /* dark yellow */
    --entity-dosage:      #84cc16;  /* dark lime */
    --entity-mental-dx:   #38bdf8;  /* sky */
    --entity-substance:   #f87171;  /* light red */
    --entity-terminal-dx: #d946ef;  /* fuchsia */
    --entity-genetic:     #06b6d4;  /* dark cyan */
    --entity-orient:      #34d399;  /* emerald */
    --entity-immig:       #7c3aed;  /* dark violet */

    /* Dynamic/Hero Colors */
    --dynamic-word-color: #ff6b2c;

    /* Section Accent Colors */
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;

    /* Font Size Scale */
    --fs-2xs: 11px;
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-base: 14px;
    --fs-md: 15px;
    --fs-lg: 16px;
    --fs-xl: 18px;
    --fs-2xl: 20px;
    --fs-3xl: 22px;
    --fs-4xl: 24px;
    --fs-5xl: 28px;
    --fs-6xl: 32px;
    --fs-7xl: 36px;
    --fs-8xl: 48px;

    /* Spacing Scale */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-7: 32px;
    --sp-8: 40px;
    --sp-9: 48px;
    --sp-10: 64px;
    --sp-12: 80px;

    /* Border Radius Scale */
    --rad-xs: 3px;
    --rad-sm: 4px;
    --rad-md: 6px;
    --rad-lg: 8px;
    --rad-xl: 12px;
    --rad-2xl: 16px;
    --rad-full: 50%;
    --rad-pill: 100px;

    /* Shadow System */
    --shadow-subtle: 0 0 0 1px rgba(34, 211, 238, 0.04);
    --shadow-cyan-sm: 0 0 20px rgba(34, 211, 238, 0.08);
    --shadow-cyan-md: 0 0 20px rgba(34, 211, 238, 0.15);
    --shadow-cyan-lg: 0 8px 30px rgba(34, 211, 238, 0.3);
    --shadow-red-sm: 0 0 20px rgba(239, 68, 68, 0.08);
    --shadow-red-md: 0 0 20px rgba(239, 68, 68, 0.15);

    /* Transition System */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;

    /* Line Heights */
    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-relaxed: 1.7;
    --lh-loose: 2;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: var(--lh-relaxed);
    overflow-x: hidden;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex-row-wrap {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    flex-wrap: wrap;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-cyan);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: var(--lh-tight);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.section-subtitle {
    font-size: var(--fs-xl);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: var(--lh-relaxed);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand-text {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: font-size 0.4s ease;
}

.nav.scrolled .nav-brand-text {
    font-size: var(--fs-xl);
}

/* Logo icon wrapper — classified stamp animation on scroll */
/* Outer container — no overflow clip, positions the stamp */
.logo-redact-container {
    position: relative;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled .logo-redact-container {
    width: 0;
    height: 0;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1) 1.0s,
                height 0.25s cubic-bezier(0.4, 0, 0.2, 1) 1.0s;
}

.logo-icon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: var(--rad-lg);
    overflow: hidden;
    filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.35));
    /* REVERSE: expand, then un-darken */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s ease;
}

.nav.scrolled .logo-icon-wrap {
    width: 0;
    height: 0;
    filter: drop-shadow(0 0 0 transparent);
    /* FORWARD: glow kills instantly, collapse after sweeps + stamp hold */
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1) 1.0s,
                height 0.25s cubic-bezier(0.4, 0, 0.2, 1) 1.0s,
                filter 0.1s ease;
}

.logo:hover .logo-icon-wrap {
    filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.5));
}

.logo-icon {
    object-fit: contain;
    width: 100%;
    height: 100%;
    padding: 3px;
    background: var(--accent-blue);
    display: block;
    transition: background 0.15s ease;
}

.nav.scrolled .logo-icon {
    background: transparent;
}

/* Redaction sweep bars */
.redact-sweep {
    position: absolute;
    left: 0;
    top: calc(var(--i) * 25%);
    width: 0;
    height: 25%;
    background: transparent;
    backdrop-filter: brightness(0);
    -webkit-backdrop-filter: brightness(0);
    z-index: 1;
    transition: width 0.08s ease;
}

.nav.scrolled .redact-sweep {
    width: 100%;
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i) * 0.08s);
}

/* Stamp overlay — lives outside the clipped wrap so it's not clipped */
.logo-redact-container .redact-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* REDACTED stamp text */
.logo-redact-container .redact-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
    padding: 4px 8px;
    border-radius: 3px;
    transform: rotate(-15deg) scale(2);
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.1s ease;
}

.nav.scrolled .logo-redact-container .redact-label {
    animation: stamp-in-out 1.0s cubic-bezier(0.2, 0, 0, 1.5) 0.4s both;
}

@keyframes stamp-in-out {
    0%   { opacity: 0; transform: rotate(-15deg) scale(2); }
    20%  { opacity: 1; transform: rotate(-15deg) scale(1); }
    65%  { opacity: 1; transform: rotate(-15deg) scale(1); }
    100% { opacity: 0; transform: rotate(-15deg) scale(0.6); }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--accent-cyan);
    color: var(--bg-deep);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    position: fixed;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
}

.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-cta {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0s ease;
    }

    .nav.scrolled .nav-cta {
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.4s ease 1.25s;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--rad-lg);
    font-size: var(--fs-base);
    font-weight: 500;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: inherit;
    touch-action: manipulation;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient-cyan);
    color: var(--bg-deep);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 200px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}


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

.hero-title {
    font-size: clamp(56px, 9vw, 110px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero-title .highlight {
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Word Cycling */
.dynamic-word {
    display: inline-block;
    position: relative;
    color: var(--dynamic-word-color);
    text-shadow: 0 0 40px rgba(255, 107, 44, 0.5);
    min-width: 4ch;
}

.dynamic-word.neutral {
    color: var(--text-primary);
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8), 0 0 80px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.dynamic-word::before,
.dynamic-word::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.dynamic-word::before {
    color: var(--accent-cyan);
    z-index: -1;
}

.dynamic-word::after {
    color: var(--dynamic-word-color);
    z-index: -2;
}

.dynamic-word.glitch-active {
    animation: glitch-text 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.dynamic-word.glitch-active::before {
    animation: glitch-layer-1 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    opacity: 0.8;
}

.dynamic-word.glitch-active::after {
    animation: glitch-layer-2 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    opacity: 0.8;
}

@keyframes glitch-text {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-3px, 2px); }
    20% { transform: translate(3px, -2px); }
    30% { transform: translate(-2px, -3px); }
    40% { transform: translate(2px, 3px); }
    50% { transform: translate(-3px, -2px); }
    60% { transform: translate(3px, 2px); }
    70% { transform: translate(-2px, 3px); }
    80% { transform: translate(2px, -3px); }
    90% { transform: translate(-3px, 2px); }
}

@keyframes glitch-layer-1 {
    0%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); }
    20% { transform: translate(-4px, 0); clip-path: inset(20% 0 60% 0); }
    40% { transform: translate(4px, 0); clip-path: inset(40% 0 30% 0); }
    60% { transform: translate(-4px, 0); clip-path: inset(60% 0 10% 0); }
    80% { transform: translate(4px, 0); clip-path: inset(10% 0 70% 0); }
}

@keyframes glitch-layer-2 {
    0%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); }
    20% { transform: translate(4px, 0); clip-path: inset(60% 0 20% 0); }
    40% { transform: translate(-4px, 0); clip-path: inset(30% 0 40% 0); }
    60% { transform: translate(4px, 0); clip-path: inset(10% 0 60% 0); }
    80% { transform: translate(-4px, 0); clip-path: inset(70% 0 10% 0); }
}

/* Scanline overlay for extra effect */
.hero-title-wrapper {
    position: relative;
    display: inline-block;
}

.hero-title-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s;
}

.hero-title-wrapper.scanning::after {
    opacity: 1;
    animation: scanline-sweep 0.4s ease-out;
}

@keyframes scanline-sweep {
    0% {
        clip-path: inset(0 0 100% 0);
        opacity: 1;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: var(--fs-2xl);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-warning {
    color: var(--dynamic-word-color);
    font-weight: 500;
}

.hero-subtitle.hero-solution {
    color: var(--text-primary);
    font-size: var(--fs-lg);
    position: relative;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-xl);
    overflow: hidden;
    animation: solution-reveal 0.8s ease-out 0.3s both;
}

.hero-subtitle.hero-solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan), rgba(6, 182, 212, 0.3));
    animation: border-pulse 3s ease-in-out infinite;
}

.hero-subtitle.hero-solution::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-solution .solution-highlight {
    position: relative;
    color: var(--accent-cyan);
    font-weight: 500;
}

.hero-solution .solution-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-cyan);
    opacity: 0.5;
}

@keyframes solution-reveal {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Provider Description */


@media (max-width: 768px) {

}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: var(--rad-full);
    opacity: 0;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* Benchmark Metrics Strip */
.metrics-strip {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--sp-8) 0;
}

.metrics-strip-inner {
    display: flex;
    justify-content: center;
    gap: var(--sp-10);
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
    position: relative;
    cursor: default;
}

.metric-tip {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.96);
    width: max(240px, 18vw);
    max-width: 320px;
    padding: var(--sp-5) var(--sp-5);
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: var(--rad-xl);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.65;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 211, 238, 0.06);
}

.metric-item:hover .metric-tip,
.metric-item:focus-within .metric-tip,
.metric-item.tip-active .metric-tip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.metric-value {
    font-family: var(--font-display);
    font-size: var(--fs-7xl);
    font-weight: 700;
    color: var(--accent-cyan);
    line-height: 1;
    letter-spacing: -0.02em;
}

.metric-unit {
    font-size: 0.6em;
    opacity: 0.7;
    vertical-align: super;
}

.metric-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .metrics-strip-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-7) var(--sp-4);
        justify-items: center;
    }

    .metric-value {
        font-size: var(--fs-6xl);
    }

    .metric-tip {
        width: min(280px, 80vw);
    }
}

@media (max-width: 480px) {
    .metric-value {
        font-size: var(--fs-5xl);
    }

    .metrics-strip-inner {
        gap: var(--sp-6) var(--sp-3);
    }
}

/* Problem Section */
.problem {
    background: var(--bg-surface);
    position: relative;
}

.problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.problem-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: var(--fs-xl);
}

.problem-content strong {
    color: var(--text-primary);
}

.problem-visual {
    position: relative;
}

.pain-cards {
    display: grid;
    gap: 16px;
}

.card-base {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-xl);
    padding: var(--sp-6);
    transition: border-color var(--transition-base), transform var(--transition-base), background var(--transition-base);
}

.card-base:hover {
    border-color: var(--border-accent);
}

.pain-card {
    background: var(--bg-elevated);
    display: flex;
    gap: 16px;
}

.pain-card:hover {
    border-color: var(--accent-red);
    transform: translateX(8px);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15), 0 0 20px rgba(239, 68, 68, 0.08);
}

.pain-icon {
    width: 44px;
    height: 44px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--rad-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-red);
}

.pain-card h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: 4px;
}

.pain-card p {
    font-size: var(--fs-base);
    color: var(--text-muted);
    margin: 0;
}

.problem-insight {
    position: relative;
    margin-top: 40px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-xl);
    overflow: hidden;
}

.problem-insight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan), rgba(6, 182, 212, 0.3));
    animation: border-pulse 3s ease-in-out infinite;
}

.problem-insight::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.problem-insight p {
    position: relative;
    margin: 0;
    font-size: var(--fs-xl);
    line-height: var(--lh-relaxed);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.problem-insight .highlight {
    position: relative;
    color: var(--accent-cyan);
    font-weight: 500;
}

.problem-insight .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-cyan);
    opacity: 0.5;
}

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

.problem-list {
    margin: 20px 0;
    padding-left: 24px;
}

.problem-list li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: var(--fs-xl);
    line-height: var(--lh-normal);
}

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

.solution-header {
    text-align: center;
    margin-bottom: 48px;
}

.solution-header .section-subtitle {
    margin: 0 auto;
}

.solution-header .section-label {
    justify-content: center;
}

.solution-header .industries-header {
    justify-content: center;
    margin-top: 32px;
}

.solution-header .industries-header .section-label {
    margin-bottom: 0;
}

.solution-header .industries-header .use-case-tabs {
    margin-bottom: 0;
}

.solution-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 72px 0 40px;
}

.solution-divider::before,
.solution-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
}

.solution-divider-label {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    white-space: nowrap;
}

.solution-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.solution-card {
    border-radius: var(--rad-2xl);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s;
}

.solution-card:hover {
    transform: translateY(-4px);
}

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

/* Hero card — full width, two-column interior */
.solution-card--hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 40px;
    padding: 48px 40px;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(34, 211, 238, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, rgba(34, 211, 238, 0.03) 0%, var(--bg-surface) 40%);
    border-color: rgba(34, 211, 238, 0.12);
    box-shadow:
        0 4px 32px -8px rgba(34, 211, 238, 0.08),
        0 0 0 1px rgba(34, 211, 238, 0.04);
}

.solution-card--hero::before {
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), rgba(34, 211, 238, 0.3) 80%, transparent);
    opacity: 1;
}

.solution-card--hero:hover {
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow:
        0 8px 40px -8px rgba(34, 211, 238, 0.12),
        0 0 0 1px rgba(34, 211, 238, 0.06);
}

.solution-card--hero .solution-icon {
    grid-column: 1;
    grid-row: 1;
}

.solution-card--hero .solution-hero-text {
    grid-column: 1;
    grid-row: 2;
}

.solution-card--hero .solution-hero-text p + p {
    margin-top: 1em;
}

.solution-card--hero .solution-links {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
}

.solution-card:nth-child(2) { --card-accent: var(--accent-blue); }
.solution-card:nth-child(3) { --card-accent: var(--accent-emerald); }
.solution-card:nth-child(4) { --card-accent: var(--accent-violet); }

.solution-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-cyan-dim);
    border-radius: var(--rad-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--card-accent, var(--accent-cyan));
}

.solution-card:nth-child(2) .solution-icon {
    background: rgba(59, 130, 246, 0.15);
}

.solution-card:nth-child(3) .solution-icon {
    background: rgba(16, 185, 129, 0.15);
}

.solution-card:nth-child(4) .solution-icon {
    background: rgba(139, 92, 246, 0.15);
}

.solution-card h3 {
    font-size: var(--fs-2xl);
    font-weight: 600;
    margin-bottom: 12px;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: var(--fs-md);
}

/* Solution links inside hero card */
.solution-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.solution-link {
    --link-color: var(--accent-cyan);
    display: block;
    padding: 18px 20px;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--link-color);
    border-radius: 0 10px 10px 0;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.solution-link--violet  { --link-color: var(--accent-violet); }
.solution-link--emerald { --link-color: var(--accent-emerald); }
.solution-link--amber   { --link-color: var(--accent-amber); }

.solution-link:hover {
    border-color: var(--link-color);
    border-left-color: var(--link-color);
    background: rgb(from var(--link-color) r g b / 0.05);
    transform: translateX(4px);
}

.solution-link-title {
    display: block;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.solution-link-desc {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-normal);
}

.solution-link-arrow {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--link-color);
    margin-top: 8px;
    transition: transform 0.2s;
}

.solution-link:hover .solution-link-arrow {
    transform: translateY(2px);
}

/* ── De-id strategy demo ── */
.deid-strategies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.deid-strategy-pill {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.deid-strategy-pill:hover {
    border-color: var(--border-accent);
    color: var(--text-secondary);
}

.deid-strategy-pill.active {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.deid-strategy-desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: 16px;
    min-height: 20px;
    transition: opacity 0.25s ease;
}

.deid-strategy-desc.switching {
    opacity: 0;
}

.deid-desc-highlight {
    color: var(--accent-cyan);
}

.deid-demo-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-xl);
    position: relative;
    overflow: hidden;
}

.deid-demo-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
    opacity: 0.6;
}

.deid-demo-text {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    line-height: var(--lh-loose);
    color: var(--text-secondary);
    padding: 24px;
}

/* Example Section */


.tab-base {
    padding: var(--sp-3) var(--sp-5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.tab-base:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.tab-base.active {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}


.example-content.active {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: stretch;
    animation: fadeIn 0.3s ease;
}


.example-code .redacted {
    color: var(--accent-cyan);
    font-weight: 500;
}

/* Animated redaction */
.animated-example {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    line-height: var(--lh-loose);
    color: var(--text-secondary);
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-xl);
}

.redact-entity {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    transition: min-width 0.35s ease;
    min-width: 0;
}

.redact-entity.redacted {
    min-width: var(--re-repl-w, 0px);
}

.redact-entity .original {
    display: inline-block;
    color: var(--text-primary);
    background: rgba(239, 68, 68, 0.1);
    padding: 0 4px;
    border-radius: var(--rad-xs);
    white-space: nowrap;
    transition: opacity var(--transition-slow), filter var(--transition-slow);
}

.redact-entity .replacement {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    background: var(--accent-cyan-dim);
    border-radius: var(--rad-xs);
    transition: opacity var(--transition-slow);
}

.redact-entity .replacement .blocks {
    display: none; /* Hidden for now - remove this line to bring back blocks */
    color: var(--accent-cyan);
    opacity: 0.4;
    letter-spacing: 0;
    flex-shrink: 0;
}

.redact-entity .replacement .label {
    color: var(--accent-cyan);
    font-weight: 500;
    white-space: nowrap;
    padding: 0 4px;
    flex-shrink: 0;
}

.redact-entity.redacted .original {
    opacity: 0;
    filter: blur(8px);
}

.redact-entity.redacted .replacement {
    opacity: 1;
}

/* Redact toggle now in visual-header - see .visual-header .redact-toggle */


/* Define → Detect Demo (Unified Component) */
.define-detect-demo {
    margin-bottom: 64px;
}

.demo-intro {
    text-align: center;
    margin-bottom: 40px;
}

.demo-intro h3 {
    font-size: var(--fs-6xl);
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-intro p {
    color: var(--text-secondary);
    font-size: var(--fs-xl);
}

.demo-flow {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 2fr;
    align-items: stretch;
    gap: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-2xl);
    overflow: hidden;
    position: relative;
}

.demo-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
}

.demo-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    min-height: 52px;
}


.panel-dot.active {
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    opacity: 1;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 8px var(--accent-emerald); }
    50% { box-shadow: 0 0 16px var(--accent-emerald), 0 0 24px var(--accent-emerald); }
}

.panel-title {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    flex: 1;
}

.panel-header .redact-toggle {
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.panel-header .redact-toggle:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.redact-toggle:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.panel-header .redact-toggle.placeholder {
    visibility: hidden;
}

.panel-content {
    flex: 1;
    padding: 24px;
    background: var(--bg-deep);
}

.demo-config {
    border-right: 1px solid var(--border-subtle);
    position: relative;
}

.demo-config .panel-content {
    position: absolute;
    top: 52px; /* below panel-header */
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.demo-config .panel-content::-webkit-scrollbar {
    width: 4px;
}

.demo-config .panel-content::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: var(--rad-xs);
}

.demo-config pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    line-height: var(--lh-relaxed);
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.demo-config .key {
    color: var(--cat-color, var(--accent-cyan));
}

/* Map data-category to entity colors from :root, derive bg at 12% opacity */
[data-category] { --cat-bg: rgb(from var(--cat-color) r g b / 0.12); }
[data-category="person"]      { --cat-color: var(--entity-person); }
[data-category="org"]         { --cat-color: var(--entity-org); }
[data-category="date"]        { --cat-color: var(--entity-date); }
[data-category="dob"]         { --cat-color: var(--entity-dob); }
[data-category="address"]     { --cat-color: var(--entity-address); }
[data-category="phone"]       { --cat-color: var(--entity-phone); }
[data-category="email"]       { --cat-color: var(--entity-email); }
[data-category="ssn"]         { --cat-color: var(--entity-ssn); }
[data-category="credit_card"] { --cat-color: var(--entity-credit-card); }
[data-category="iban"]        { --cat-color: var(--entity-iban); }
[data-category="insurance"],
[data-category="insurance_id"]{ --cat-color: var(--entity-insurance); }
[data-category="npi"]         { --cat-color: var(--entity-npi); }
[data-category="mrn"]         { --cat-color: var(--entity-mrn); }
[data-category="case_id"]     { --cat-color: var(--entity-case-id); }
[data-category="rx_med"]      { --cat-color: var(--entity-rx-med); }
[data-category="dosage"]      { --cat-color: var(--entity-dosage); }
[data-category="mental_dx"]   { --cat-color: var(--entity-mental-dx); }
[data-category="substance"]   { --cat-color: var(--entity-substance); }
[data-category="terminal_dx"] { --cat-color: var(--entity-terminal-dx); }
[data-category="genetic"]     { --cat-color: var(--entity-genetic); }
[data-category="orientation"]  { --cat-color: var(--entity-orient); }
[data-category="immigration"]  { --cat-color: var(--entity-immig); }

/* Left panel: category entry blocks */
.cat-entry {
    padding: 6px 10px;
    border-radius: var(--rad-md);
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin: 4px 0;
}

.cat-entry:hover,
.cat-entry.highlight {
    border-color: var(--cat-color);
    background: var(--cat-bg);
}

.cat-entry.active-category {
    background: var(--cat-bg);
    border-color: var(--cat-color);
}

/* Right panel: tinted background + colored underline on entity text */
.redact-entity[data-category] {
    cursor: pointer;
}

.redact-entity[data-category] .original {
    background: var(--cat-bg);
    border-bottom: 2px solid var(--cat-color);
    transition: opacity var(--transition-slow), filter var(--transition-slow), box-shadow 0.25s ease;
}

.redact-entity[data-category].highlight .original {
    box-shadow: 0 0 0 1px var(--cat-color), 0 0 12px var(--cat-bg);
}

.redact-entity[data-category].highlight .replacement {
    box-shadow: 0 0 0 1px var(--cat-color), 0 0 12px var(--cat-bg);
}

.redact-entity[data-category] .replacement {
    background: var(--cat-bg);
    border-bottom: 2px solid var(--cat-color);
}

.redact-entity[data-category] .replacement .label {
    color: var(--cat-color);
}

.demo-config .string {
    color: var(--text-muted);
}

.demo-result .panel-content {
    display: flex;
    flex-direction: column;
}

.demo-result .animated-example {
    flex: 1;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    line-height: 1.9;
    color: var(--text-secondary);
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    white-space: pre-wrap;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(16, 185, 129, 0.05);
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    margin-top: auto;
    min-height: 48px;
}

.detection-count {
    color: var(--accent-emerald);
}

.detection-count strong {
    font-size: var(--fs-base);
}


.demo-callout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 24px;
    background: var(--accent-cyan-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--rad-xl);
    font-size: var(--fs-base);
    color: var(--accent-cyan);
}

.demo-callout svg {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .demo-flow {
        grid-template-columns: 1fr;
    }

    .demo-config {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        position: static;
        max-height: 350px;
    }

    .demo-config .panel-content {
        position: static;
        max-height: 250px;
    }
}

@media (max-width: 600px) {
    .demo-callout {
        flex-direction: column;
        text-align: center;
    }

    .panel-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .example-content.active {
        grid-template-columns: 1fr;
    }

}

/* Features Section */


.features-header .section-subtitle {
    margin: 0 auto;
}


/* How It Works */


.how-header .section-subtitle {
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-emerald));
    opacity: 0.3;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-surface);
    border: 2px solid var(--border-accent);
    border-radius: var(--rad-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-family: var(--font-mono);
    font-size: var(--fs-5xl);
    font-weight: 700;
    color: var(--accent-cyan);
    position: relative;
    z-index: 1;
}

.step:nth-child(2) .step-number {
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--accent-blue);
}

.step:nth-child(3) .step-number {
    border-color: rgba(16, 185, 129, 0.5);
    color: var(--accent-emerald);
}

.step h3 {
    font-size: var(--fs-3xl);
    font-weight: 600;
    margin-bottom: 16px;
}

.step p {
    color: var(--text-secondary);
    font-size: var(--fs-md);
    max-width: 320px;
    margin: 0 auto;
}

.steps-intro {
    text-align: center;
    font-size: var(--fs-xl);
    color: var(--accent-cyan);
    margin-bottom: 48px;
    font-weight: 500;
}

.cta-poc {
    text-align: center;
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    margin-top: 32px;
    margin-bottom: 8px;
}


/* Use Cases */


.use-cases-header .section-subtitle {
    margin: 0 auto;
}

.use-case-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.use-case-tab {
    padding: 12px 24px;
    border-radius: var(--rad-lg);
    font-size: var(--fs-base);
    font-weight: 500;
    font-family: inherit;
    touch-action: manipulation;
}

.use-case-tab:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.use-case-content {
    display: none;
}

.use-case-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.use-case-text h3 {
    font-size: var(--fs-6xl);
    font-weight: 600;
    margin-bottom: 20px;
}

.use-case-text > p {
    color: var(--text-secondary);
    font-size: var(--fs-xl);
    margin-bottom: 32px;
    line-height: var(--lh-relaxed);
}

.use-case-list {
    list-style: none;
    margin-bottom: 32px;
}

.use-case-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: var(--fs-md);
}

.use-case-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--accent-cyan-dim);
    border-radius: var(--rad-full);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.use-case-outcome {
    padding: 20px 24px;
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 0 8px 8px 0;
}

.use-case-outcome strong {
    display: block;
    font-size: var(--fs-sm);
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.use-case-outcome p {
    color: var(--text-secondary);
    font-size: var(--fs-md);
    margin: 0;
}

.use-case-visual {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-2xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.use-case-visual::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-cyan-dim) 0%, transparent 70%);
    pointer-events: none;
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.visual-header .visual-title {
    flex: 1;
}

.visual-header .redact-toggle {
    margin-left: auto;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-sm);
    color: var(--text-muted);
    font-size: var(--fs-2xs);
    font-family: var(--font-mono);
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.visual-header .redact-toggle:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.visual-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--rad-full);
    background: var(--accent-emerald);
}


.visual-code .key {
    color: var(--accent-cyan);
}


.visual-code .redacted {
    background: linear-gradient(90deg, var(--accent-red), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* De-identification Section */
.deid-section {
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.deid-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(34, 211, 238, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.deid-section-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
}

.deid-section-header .section-label {
    justify-content: center;
    color: var(--accent-violet);
}

.deid-section-header .section-label::before {
    background: var(--accent-violet);
}

.deid-section-header .section-subtitle {
    max-width: 700px;
    margin: 0 auto;
}

.deid-demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-2xl);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.deid-demo-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
}

.deid-demo-controls {
    display: flex;
    flex-direction: column;
}

/* Legend — entity mapping preview */
.deid-entity-map {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.deid-entity-map.visible {
    opacity: 1;
}

.deid-entity-map-header {
    width: 100%;
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.deid-map-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    margin: 0 -6px;
    border-radius: var(--rad-sm);
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    cursor: pointer;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.deid-map-row.visible {
    opacity: 1;
    transform: translateX(0);
}

.deid-map-row:hover,
.deid-map-row.highlight {
    background: rgba(255, 255, 255, 0.04);
}

.deid-map-original {
    color: var(--text-muted);
}

.deid-map-arrow {
    color: var(--text-muted);
    opacity: 0.4;
}

.deid-map-value {
    color: var(--cat-color, var(--accent-cyan));
    font-weight: 500;
}

/* Deid demo highlight state */
.deid-demo-container .redact-entity.deid-highlight .original {
    box-shadow: 0 0 0 1px var(--cat-color), 0 0 12px var(--cat-bg);
}

.deid-demo-container .redact-entity.deid-highlight.redacted .replacement {
    box-shadow: 0 0 0 1px var(--cat-color), 0 0 12px var(--cat-bg);
}

/* Custom Entities Section */
.custom-entities {
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.custom-entities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 100%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.custom-entities-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
}

.custom-entities-header .section-label {
    justify-content: center;
    color: var(--accent-emerald);
}

.custom-entities-header .section-label::before {
    background: var(--accent-emerald);
}

.custom-entities-header .section-subtitle {
    max-width: 700px;
    margin: 0 auto;
}


.hero-feature-code .key {
    color: var(--accent-cyan);
}

.hero-feature-code .string {
    color: var(--accent-emerald);
}


.entity-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.entity-feature-card {
    border-radius: var(--rad-2xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.entity-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s;
}

.entity-feature-card:hover {
    transform: translateY(-4px);
}

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

.entity-feature-card:nth-child(2) { --card-accent: var(--accent-blue); }
.entity-feature-card:nth-child(3) { --card-accent: var(--accent-emerald); }

.entity-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-cyan-dim);
    border-radius: var(--rad-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--card-accent, var(--accent-cyan));
}

.entity-feature-card:nth-child(2) .entity-feature-icon {
    background: rgba(59, 130, 246, 0.15);
}

.entity-feature-card:nth-child(3) .entity-feature-icon {
    background: rgba(16, 185, 129, 0.15);
}

.entity-feature-card h4 {
    font-size: var(--fs-xl);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.entity-feature-card .tagline {
    font-size: var(--fs-sm);
    color: var(--card-accent, var(--accent-cyan));
    margin-bottom: 12px;
    font-weight: 500;
}

.entity-feature-card p {
    color: var(--text-secondary);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    margin-bottom: 16px;
}


.differentiator-list .highlight {
    color: var(--accent-cyan);
    font-weight: 500;
}

@media (max-width: 1024px) {

    .entity-features-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {
}

/* Referential Integrity Section */
.referential-integrity {
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.referential-integrity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 100%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.referential-integrity-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
}

.referential-integrity-header .section-label {
    justify-content: center;
    color: var(--accent-amber);
}

.referential-integrity-header .section-label::before {
    background: var(--accent-amber);
}

.referential-integrity-header .section-subtitle {
    max-width: 700px;
    margin: 0 auto;
}

.collapse-demo {
    margin-bottom: 64px;
}

.collapse-demo-v2 {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-2xl);
    overflow: hidden;
    position: relative;
}

.collapse-demo-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-amber), var(--accent-blue), var(--accent-violet), var(--accent-emerald));
}

.collapse-demo-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
    flex-wrap: wrap;
}

.collapse-entity-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.collapse-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: var(--rad-md);
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    cursor: default;
    transition: border-color 0.2s, background 0.2s;
}

.collapse-legend-item:hover,
.collapse-legend-item.highlight {
    border-color: var(--item-color);
    background: rgba(255,255,255,0.03);
}

.collapse-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--rad-full);
    flex-shrink: 0;
}

.collapse-legend-item[data-entity="1"] { --item-color: var(--accent-amber); }
.collapse-legend-item[data-entity="1"] .collapse-legend-dot { background: var(--accent-amber); box-shadow: 0 0 6px var(--accent-amber); }
.collapse-legend-item[data-entity="2"] { --item-color: var(--accent-blue); }
.collapse-legend-item[data-entity="2"] .collapse-legend-dot { background: var(--accent-blue); box-shadow: 0 0 6px var(--accent-blue); }
.collapse-legend-item[data-entity="3"] { --item-color: var(--accent-violet); }
.collapse-legend-item[data-entity="3"] .collapse-legend-dot { background: var(--accent-violet); box-shadow: 0 0 6px var(--accent-violet); }
.collapse-legend-item[data-entity="4"] { --item-color: var(--accent-emerald); }
.collapse-legend-item[data-entity="4"] .collapse-legend-dot { background: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); }

.collapse-legend-name {
    color: var(--item-color);
    font-weight: 500;
}


.collapse-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.collapse-col {
    display: flex;
    flex-direction: column;
}

.collapse-col:first-child {
    border-right: 1px solid var(--border-subtle);
}

.collapse-col-header {
    padding: 12px 20px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.collapse-col-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    line-height: 2.2;
    color: var(--text-secondary);
    flex: 1;
}

.ce {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    cursor: pointer;
    transition: min-width 0.35s ease;
    min-width: 0;
}

.ce.redacted {
    min-width: var(--ce-repl-w, 0px);
}

.ce .ce-original {
    display: inline-block;
    padding: 0 4px;
    border-radius: var(--rad-xs);
    background: var(--ce-bg);
    border-bottom: 2px solid var(--ce-color);
    white-space: nowrap;
    transition: opacity var(--transition-slow), filter var(--transition-slow), box-shadow 0.25s ease;
}

.ce .ce-replaced {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    background: rgb(from var(--ce-color) r g b / 0.18);
    border-bottom: 2px solid var(--ce-color);
    border-radius: var(--rad-xs);
    z-index: 1;
    transition: opacity var(--transition-slow), box-shadow 0.25s ease;
}

.ce .ce-replaced .label {
    color: var(--ce-color);
    font-weight: 500;
    white-space: nowrap;
    padding: 0 6px;
}

.ce.redacted .ce-original {
    opacity: 0;
    filter: blur(8px);
}

.ce.redacted .ce-replaced {
    opacity: 1;
}

.ce[data-entity="1"] { --ce-color: var(--accent-amber); --ce-bg: rgba(245, 158, 11, 0.12); }
.ce[data-entity="2"] { --ce-color: var(--accent-blue); --ce-bg: rgba(59, 130, 246, 0.12); }
.ce[data-entity="3"] { --ce-color: var(--accent-violet); --ce-bg: rgba(139, 92, 246, 0.12); }
.ce[data-entity="4"] { --ce-color: var(--accent-emerald); --ce-bg: rgba(16, 185, 129, 0.12); }

.ce.highlight .ce-original {
    box-shadow: 0 0 0 1px var(--ce-color), 0 0 12px var(--ce-bg);
}

.ce.highlight .ce-replaced {
    box-shadow: 0 0 0 1px var(--ce-color), 0 0 12px var(--ce-bg);
}

/* Legend chips: clickable + alias tooltip */
.collapse-legend-item {
    cursor: pointer;
    position: relative;
}

.collapse-legend-item.active {
    border-color: var(--item-color);
    background: rgba(255,255,255,0.04);
}

.collapse-legend-aliases {
    font-size: var(--fs-2xs);
    color: var(--text-muted);
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width var(--transition-base), opacity 0.2s;
    opacity: 0;
    display: inline-block;
    vertical-align: middle;
}

.collapse-legend-item:hover .collapse-legend-aliases,
.collapse-legend-item.highlight .collapse-legend-aliases {
    max-width: 240px;
    opacity: 1;
}

.collapse-legend-alias {
    color: var(--item-color);
    opacity: 0.7;
}

.collapse-legend-sep {
    opacity: 0.3;
    margin: 0 2px;
}

.collapse-demo-topbar .redact-toggle {
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.collapse-demo-topbar .redact-toggle:hover {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

.collapse-demo-footer {
    padding: 14px 24px;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    color: var(--text-muted);
    text-align: center;
}

.collapse-demo-footer strong {
    color: var(--accent-amber);
    font-weight: 500;
}

.ri-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.ri-feature-card {
    border-radius: var(--rad-2xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
    --card-accent: var(--accent-amber);
}

.ri-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.ri-feature-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-4px);
}

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

.ri-feature-card:nth-child(2) { --card-accent: var(--accent-blue); }

.ri-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: var(--rad-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--card-accent);
}

.ri-feature-card:nth-child(2) .ri-feature-icon {
    background: rgba(59, 130, 246, 0.15);
}


.ri-feature-card h3 {
    font-size: var(--fs-xl);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.ri-feature-card .tagline {
    font-size: var(--fs-sm);
    color: var(--card-accent);
    margin-bottom: 12px;
    font-weight: 500;
}

.ri-feature-card p {
    color: var(--text-secondary);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    margin-bottom: 16px;
}


.ri-differentiator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ri-differentiator-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-xl);
    padding: 24px;
    text-align: center;
}

.ri-differentiator-card h4 {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.ri-differentiator-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ri-differentiator-list li {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.ri-differentiator-list li:last-child {
    border-bottom: none;
}

.ri-differentiator-list .highlight {
    color: var(--accent-amber);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .ri-features-grid {
        grid-template-columns: 1fr;
    }

    .ri-differentiator-grid {
        grid-template-columns: 1fr;
    }
}

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

    .collapse-col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .collapse-demo-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Specs Section */
.specs {
    background: var(--bg-surface);
    position: relative;
}

.specs-header {
    text-align: center;
    margin-bottom: 80px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.specs-table {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-2xl);
    overflow: hidden;
}

.specs-table-header {
    padding: 20px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 600;
    font-size: var(--fs-md);
}

.spec-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid var(--border-subtle);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 16px 24px;
    background: var(--bg-elevated);
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--text-secondary);
}

.spec-value {
    padding: 16px 24px;
    font-size: var(--fs-base);
    color: var(--text-primary);
}

.entity-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.entity-group h3 {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.entity-group h3::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: var(--rad-xs);
    background: var(--accent-cyan);
}

.entity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entity-tag {
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-md);
    font-size: var(--fs-xs);
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.entity-custom-callout {
    border: 1px dashed color-mix(in srgb, var(--accent-cyan) 40%, transparent);
    border-radius: var(--rad-lg);
    padding: 16px 20px;
    background: color-mix(in srgb, var(--accent-cyan) 4%, transparent);
}

.entity-custom-callout h3 {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.entity-custom-callout h3::before {
    content: '+';
    width: 18px;
    height: 18px;
    border-radius: var(--rad-sm);
    border: 1px dashed var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--accent-cyan);
}

.entity-custom-callout p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
    margin-bottom: 10px;
}

.entity-custom-callout a {
    font-size: var(--fs-sm);
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
}

.entity-custom-callout a:hover {
    text-decoration: underline;
}

/* Comparison Section */
.comparison {
    position: relative;
}

.comparison-header {
    text-align: center;
    margin-bottom: 64px;
}

.comparison-header .section-subtitle {
    margin: 0 auto;
}


/* Competitor Comparison - Tabbed UI */
.comparison-container {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-2xl);
    overflow: hidden;
    min-height: 520px;
}

.comparison-nav {
    width: 260px;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, rgba(26, 34, 52, 0.8) 100%);
    border-right: 1px solid var(--border-subtle);
    padding: 8px;
    flex-shrink: 0;
}

.comparison-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-radius: var(--rad-xl);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
    position: relative;
    font-family: inherit;
}

.comparison-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-cyan);
    border-radius: 0 2px 2px 0;
    transition: height var(--transition-fast);
}

.comparison-tab:hover {
    background: rgba(34, 211, 238, 0.05);
}

.comparison-tab:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.comparison-tab.active {
    background: rgba(34, 211, 238, 0.1);
}

.comparison-tab.active::before {
    height: 24px;
}

.comparison-tab-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--rad-lg);
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comparison-tab-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    transition: stroke var(--transition-fast);
}

.comparison-tab.active .comparison-tab-icon svg {
    stroke: var(--accent-cyan);
}

.comparison-tab-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comparison-tab-name {
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.comparison-tab.active .comparison-tab-name {
    color: var(--text-primary);
}

.comparison-tab-type {
    font-size: var(--fs-2xs);
    color: var(--text-muted);
}

/* Content Panel */
.comparison-content {
    flex: 1;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.comparison-panel {
    display: none;
    animation: panelFadeIn 0.25s ease-out;
}

.comparison-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comparison-panel-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-panel-header h3 {
    font-size: var(--fs-4xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.comparison-panel-header .panel-type {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.comparison-panel-desc {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: 32px;
}

/* Two-column comparison */
.comparison-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.comparison-col {
    padding: 24px;
    border-radius: var(--rad-xl);
}

.comparison-col.limitations {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.comparison-col.advantages {
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.15);
}

.comparison-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: var(--fs-2xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-col.limitations .comparison-col-header {
    color: var(--accent-red);
}

.comparison-col.advantages .comparison-col-header {
    color: var(--accent-cyan);
}

.comparison-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-col li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.comparison-col li:last-child {
    margin-bottom: 0;
}

.comparison-col.limitations li::before {
    content: '×';
    color: var(--accent-red);
    font-weight: 600;
    flex-shrink: 0;
}

.comparison-col.advantages li::before {
    content: '✓';
    color: var(--accent-cyan);
    font-weight: 600;
    flex-shrink: 0;
}

.comparison-col li a {
    color: inherit;
    text-decoration: none;
}

.comparison-col li a::after {
    content: '\00a0\2197';
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.5);
}

.comparison-col li a:hover {
    text-decoration: underline;
}

.comparison-col li a:hover::after {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 900px) {
    .comparison-container {
        flex-direction: column;
        min-height: auto;
    }

    .comparison-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 8px;
        gap: 4px;
        overflow-x: visible;
    }

    .comparison-tab {
        flex-direction: column;
        padding: 10px 8px;
        min-width: 0;
        text-align: center;
    }

    .comparison-tab::before {
        display: none;
    }

    .comparison-tab.active {
        background: rgba(34, 211, 238, 0.1);
        border: 1px solid rgba(34, 211, 238, 0.25);
    }

    .comparison-tab-type {
        display: none;
    }

    .comparison-content {
        padding: 24px;
    }
}

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

@media (max-width: 340px) {
    .comparison-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Trust Section */


.trust-header .section-subtitle {
    margin: 0 auto;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 80px;
    margin-bottom: 48px;
}

.compliance-card {
    background: var(--bg-elevated);
    padding: 28px 20px;
    text-align: center;
}

.compliance-card:hover {
    transform: translateY(-4px);
}

.compliance-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--accent-cyan-dim);
    border-radius: var(--rad-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    font-weight: 700;
    color: var(--accent-cyan);
}

.compliance-card h3 {
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: 8px;
}

.compliance-card p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-normal);
}

.trust-callout {
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: var(--rad-2xl);
    padding: 40px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
}

.trust-callout-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-cyan-dim);
    border-radius: var(--rad-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.trust-callout h3 {
    font-size: var(--fs-2xl);
    font-weight: 600;
    margin-bottom: 12px;
}

.trust-callout p {
    color: var(--text-secondary);
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
}

.trust-callout--violet {
    border-color: rgba(139, 92, 246, 0.3);
    margin-top: 24px;
}

.trust-callout--violet .trust-callout-icon {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-violet);
}

.trust-callout--violet a {
    color: var(--accent-violet);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.trust-callout--violet a:hover {
    color: #a78bfa;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.5;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content .section-title {
    margin-bottom: 20px;
}

.cta-content > p {
    color: var(--text-secondary);
    font-size: var(--fs-xl);
    margin-bottom: 40px;
}

.cta-content .steps {
    width: 100vw;
    max-width: 900px;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-bottom: 80px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-base);
    color: var(--text-muted);
}

.cta-feature svg {
    color: var(--accent-emerald);
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-brand .logo {
    flex-shrink: 0;
}

.footer-brand-name {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: var(--fs-2xl);
    letter-spacing: 0.02em;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.footer-brand-text p {
    color: var(--text-muted);
    font-size: var(--fs-base);
    max-width: 320px;
}

.footer-col h4 {
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--fs-base);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-cyan);
}

.footer-brand .logo-icon {
    width: 90px;
    height: 90px;
    padding: 3px;
}

.footer-col .footer-legal {
    display: block;
    margin-top: 20px;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

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

    html {
        scroll-behavior: auto;
    }

    .particle {
        display: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .problem-grid,
    .use-case-content.active,
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .solution-cards,
    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .deid-demo-container {
        grid-template-columns: 1fr;
    }

    .solution-card--hero {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .solution-card--hero .solution-links {
        grid-column: 1;
        grid-row: auto;
        margin-top: 24px;
    }

    .steps::before {
        display: none;
    }


    .compliance-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        padding-bottom: 32px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .footer-brand-text p {
        max-width: none;
    }
}


@media (max-width: 768px) {
    .hero-title {
        font-size: var(--fs-8xl);
    }

    .dynamic-word {
        min-width: 3ch;
    }


    .compliance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-callout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-top {
        gap: 32px;
    }

}
