.redaction-page {
    --primary-color: #1e3a8a;
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --nav-bg: rgba(8, 17, 31, 0.9);
    --nav-border: rgba(226, 232, 240, 0.14);
    --nav-shadow: 0 18px 42px rgba(2, 8, 23, 0.34);
    --nav-bg-scrolled: var(--nav-bg);
    --nav-shadow-scrolled: var(--nav-shadow);
    --nav-icon-color: #f8fafc;
    --redaction-bg: #ffffff;
    --redaction-soft-bg: #f8fafc;
    --redaction-text: #0f172a;
    --redaction-copy: #475569;
    --redaction-muted: #64748b;
    --redaction-panel: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --redaction-panel-solid: #ffffff;
    --redaction-border: rgba(15, 23, 42, 0.08);
    --redaction-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    --redaction-blue: #1e3a8a;
    --redaction-cyan: #0f766e;
    --redaction-amber: #b45309;
    --redaction-purple: #7c3aed;
    --redaction-green: #047857;
    --redaction-red: #b91c1c;
    --solution-card-radius: 20px;
    --solution-card-bg: var(--redaction-panel);
    --solution-card-border: var(--redaction-border);
    --solution-card-shadow: var(--redaction-shadow);
    --solution-card-title-color: var(--redaction-text);
    --solution-card-text-color: var(--redaction-copy);
    --solution-card-kicker-bg: rgba(30, 58, 138, 0.08);
    --solution-card-kicker-text: #1e3a8a;
    --solution-card-accent: linear-gradient(90deg, #1e3a8a, #f59e0b);
    --solution-card-glow: radial-gradient(circle, rgba(245, 158, 11, 0.13) 0%, rgba(245, 158, 11, 0) 72%);
    --solution-card-glow-opacity: 0.9;
    --solution-cta-bg: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #7c3aed 100%);
    --solution-cta-text: #f8fafc;
    --solution-cta-muted-text: rgba(248, 250, 252, 0.86);
    background: var(--redaction-bg);
    color: var(--redaction-text);
}

html[data-theme="dark"] body.redaction-page {
    --redaction-bg: #07101c;
    --redaction-soft-bg: #0c1728;
    --redaction-text: #f8fafc;
    --redaction-copy: #b8c5d6;
    --redaction-muted: #94a3b8;
    --redaction-panel: linear-gradient(180deg, rgba(13, 24, 41, 0.96) 0%, rgba(17, 30, 50, 0.94) 100%);
    --redaction-panel-solid: rgba(13, 24, 41, 0.96);
    --redaction-border: rgba(148, 163, 184, 0.16);
    --redaction-shadow: 0 20px 52px rgba(2, 8, 23, 0.38);
    --solution-card-title-color: #f8fafc;
    --solution-card-text-color: rgba(226, 232, 240, 0.84);
    --solution-card-kicker-text: #bfdbfe;
    --solution-card-glow: radial-gradient(circle, rgba(96, 165, 250, 0.16) 0%, rgba(96, 165, 250, 0) 72%);
}

.redaction-hero {
    position: relative;
    overflow: hidden;
    min-height: 700px;
    padding: clamp(6rem, 8vw, 7.5rem) 0 clamp(3.5rem, 5vw, 4.5rem);
    background:
        radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.16) 0%, transparent 34%),
        radial-gradient(circle at 78% 22%, rgba(245, 158, 11, 0.14) 0%, transparent 34%),
        linear-gradient(135deg, #0b1220 0%, #13225a 56%, #1e3a8a 100%) !important;
    color: #ffffff;
}

.redaction-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
    animation: redaction-grid-move 24s linear infinite;
}

@keyframes redaction-grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(72px, 72px); }
}

.redaction-hero .hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(520px, 1.08fr) minmax(420px, 0.92fr);
    gap: 2rem;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

.redaction-hero .solution-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.redaction-hero .solution-badge svg {
    color: #bfdbfe;
}

.redaction-hero .hero-title,
.redaction-hero .hero-title * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: "Avenir Next", "Avenir Next LT Pro", "Helvetica Neue", Inter, sans-serif !important;
    font-weight: 100 !important;
    font-size: clamp(2.1rem, 3.55vw, 3.15rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem !important;
    text-shadow: none !important;
}

.redaction-hero .hero-kicker {
    margin: 0 0 0.85rem;
    max-width: 720px;
    color: #e2e8f0;
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.62;
}

.redaction-hero .hero-kicker strong {
    color: #ffffff;
}

.redaction-hero .hero-subtitle {
    max-width: 720px;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.72;
}

.redaction-chips,
.redaction-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.redaction-chips {
    margin: 1.5rem 0 1.6rem;
}

.redaction-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 700;
}

.redaction-source-links .cta-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
}

.redaction-hero-visual {
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.34);
    box-shadow: 0 24px 70px rgba(2, 8, 23, 0.34);
    backdrop-filter: blur(12px);
}

.redaction-proof-stack {
    display: grid;
    gap: 1rem;
}

.proof-window {
    position: relative;
    min-height: 156px;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        #0f172a;
    background-size: 32px 32px;
    overflow: hidden;
}

.proof-window-title {
    position: relative;
    z-index: 2;
    margin: 0 0 0.8rem;
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.proof-doc {
    position: relative;
    z-index: 1;
    min-height: 102px;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.proof-line {
    height: 9px;
    margin: 14px 18px;
    border-radius: 999px;
    background: #cbd5e1;
}

.proof-line.short { width: 54%; }
.proof-line.mid { width: 72%; }
.proof-line.long { width: 84%; }

.redaction-mark {
    position: absolute;
    left: 17%;
    right: 21%;
    top: 46px;
    height: 28px;
    border-radius: 5px;
    background: #020617;
}

.hidden-layer {
    position: absolute;
    left: 17%;
    top: 78px;
    color: rgba(185, 28, 28, 0.72);
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.73rem;
    letter-spacing: 0.08em;
}

.proof-result {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.85rem;
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.86rem;
}

.proof-status {
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(4, 120, 87, 0.18);
    color: #86efac;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.redaction-section {
    padding: clamp(4.5rem, 7vw, 5.8rem) 0;
    background: var(--redaction-bg);
}

.redaction-section--muted {
    background: var(--redaction-soft-bg);
}

.redaction-section .section-intro {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.redaction-section .eyebrow {
    display: inline-flex;
    margin: 0 0 0.85rem;
    padding: 0.34rem 0.75rem;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.08);
    color: var(--redaction-blue);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html[data-theme="dark"] .redaction-section .eyebrow {
    color: #bfdbfe;
    background: rgba(96, 165, 250, 0.14);
}

.redaction-section h2 {
    margin: 0 0 0.85rem;
    color: var(--redaction-text);
    font-size: clamp(2rem, 3vw, 2.65rem);
    letter-spacing: -0.02em;
}

.redaction-section .section-lead {
    max-width: 860px;
    margin: 0 auto;
    color: var(--redaction-copy);
    line-height: 1.78;
}

.redaction-issue {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.4rem;
    padding: clamp(1.25rem, 2vw, 1.65rem);
}

.redaction-issue:first-of-type {
    margin-top: 0;
}

.issue-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
}

.issue-num {
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 14px;
    background: rgba(30, 58, 138, 0.08);
    color: var(--redaction-blue);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-align: center;
}

.issue-num small {
    display: block;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.issue-title h3 {
    margin: 0 0 0.35rem;
    color: var(--redaction-text);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.issue-problem {
    margin: 0;
    color: var(--redaction-red);
    font-weight: 700;
}

html[data-theme="dark"] .issue-problem {
    color: #fca5a5;
}

.prevented-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(4, 120, 87, 0.12);
    color: var(--redaction-green);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.redaction-fix {
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--redaction-green);
    border-radius: 0 14px 14px 0;
    background: rgba(4, 120, 87, 0.08);
}

.redaction-fix strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--redaction-green);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.redaction-fix p,
.redaction-caption,
.method-card p,
.redaction-note {
    color: var(--redaction-copy);
    line-height: 1.7;
}

.redaction-fix p,
.redaction-caption,
.method-card p {
    margin: 0;
}

.evidence-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.evidence-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--redaction-border);
    background: var(--redaction-panel-solid);
}

.evidence-figure figcaption {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0.72rem 0.9rem;
    border-bottom: 1px solid var(--redaction-border);
    color: var(--redaction-copy);
    font-size: 0.85rem;
    font-weight: 800;
}

.evidence-figure.before figcaption {
    color: var(--redaction-red);
    background: rgba(185, 28, 28, 0.07);
}

.evidence-figure.after figcaption {
    color: var(--redaction-green);
    background: rgba(4, 120, 87, 0.08);
}

.evidence-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: currentColor;
}

.evidence-art {
    position: relative;
    min-height: 230px;
    background: #0f172a;
    overflow: hidden;
}

.pixel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    height: 230px;
}

.pixel-cell { min-height: 115px; }
.pixel-cell.green { background: #22c55e; }
.pixel-cell.blue { background: #38bdf8; }
.pixel-cell.amber { background: #f59e0b; }
.pixel-cell.red { background: #ef4444; }
.pixel-cell.black { background: #020617; }

.scan-doc {
    position: absolute;
    inset: 1.1rem;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 18px 50px rgba(2, 8, 23, 0.24);
    padding: 1.25rem;
}

.scan-title {
    margin: 0 0 1rem;
    color: #334155;
    font-weight: 800;
}

.scan-line {
    height: 10px;
    margin-bottom: 0.65rem;
    border-radius: 999px;
    background: #cbd5e1;
}

.scan-line.long { width: 92%; }
.scan-line.mid { width: 76%; }
.scan-line.short { width: 52%; }

.secret-string {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.28rem 0.45rem;
    border-radius: 6px;
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.85rem;
    font-weight: 800;
}

.burn-band {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 6.9rem;
    height: 2.2rem;
    border-radius: 6px;
    background: #020617;
}

.removed-layer {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: rgba(4, 120, 87, 0.09);
    color: #047857;
    font-size: 0.8rem;
    font-weight: 800;
}

.photo-bands {
    position: absolute;
    inset: 1.4rem 2.2rem;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(2, 8, 23, 0.28);
}

.photo-band {
    height: 33.333%;
    display: grid;
    place-items: center;
    color: rgba(15, 23, 42, 0.8);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.photo-band.keep-a { background: #86efac; }
.photo-band.secret { background: #fca5a5; color: #7f1d1d; }
.photo-band.keep-b { background: #93c5fd; }
.photo-band.redacted { background: #020617; color: #f8fafc; }

.facts-table {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--redaction-border);
    background: var(--redaction-panel-solid);
}

.facts-table table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.facts-table th,
.facts-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--redaction-border);
    color: var(--redaction-copy);
    text-align: left;
}

.facts-table th {
    color: var(--redaction-text);
    background: rgba(30, 58, 138, 0.06);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.facts-table tr:last-child th,
.facts-table tr:last-child td {
    border-bottom: 0;
}

.facts-table .yes {
    color: var(--redaction-green);
    font-weight: 900;
}

.facts-table .no {
    color: var(--redaction-red);
    font-weight: 900;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.method-card {
    padding: 1.35rem;
}

.method-card .kicker {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--redaction-blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.method-card h3 {
    margin: 0 0 0.45rem;
    color: var(--redaction-text);
}

.redaction-note {
    max-width: 900px;
    margin: 1.5rem auto 0;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(30, 58, 138, 0.12);
    background: rgba(30, 58, 138, 0.06);
}

.redaction-cta-section {
    padding: clamp(4.5rem, 7vw, 5.8rem) 0;
    background: var(--redaction-bg);
}

.redaction-cta-section .solution-cta-panel {
    grid-template-columns: minmax(0, 1.2fr) auto;
}

@media (max-width: 980px) {
    .redaction-hero .hero-layout,
    .method-grid {
        grid-template-columns: 1fr;
    }

    .redaction-hero {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .evidence-pair,
    .issue-head,
    .redaction-cta-section .solution-cta-panel {
        grid-template-columns: 1fr;
    }

    .prevented-badge {
        justify-self: start;
    }

    .evidence-art {
        min-height: 200px;
    }

    .pixel-grid {
        height: 200px;
    }
}
