:root {
    --bg-dark: #0a0a0c;
    --bg-darker: #050505;
    --bg-card: #141414;
    --bg-red-dark: #1f0505;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent-gold: #fbbf24;
    --accent-red: #ef4444;
    --border-color: #27272a;
}

/* Utilities */
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: #fff; }
.gold-text { color: var(--accent-gold); }
.highlight-text { color: var(--accent-red); font-weight: bold; }
.mt-20 { margin-top: 20px; }
.mb-60 { margin-bottom: 60px; }

/* Sections */
section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -1px;
}
.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Backgrounds */
.bg-dark-red { background-color: var(--bg-red-dark); border-bottom: 1px solid #3f0f0f; }
.bg-black-gold { background-color: var(--bg-darker); border-bottom: 1px solid #423000; }
.bg-dark { background-color: var(--bg-darker); }
.bg-red-black { background: linear-gradient(180deg, var(--bg-dark) 0%, #1a0505 100%); }

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: radial-gradient(circle at center, #1a1a1a 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
}
.glitch-text {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -2px;
}
.subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.tags {
    margin-bottom: 50px;
}
.tag {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin: 0 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.tag.highlight {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Roles Target */
.roles-target {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    text-align: left;
}
.role-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: 30%;
    display: flex;
    flex-direction: column;
}
.role-icon { font-size: 1.5rem; margin-bottom: 10px; }
.role-item strong { font-size: 1.1rem; margin-bottom: 5px; color: var(--accent-gold); }
.role-item span { font-size: 0.9rem; color: var(--text-muted); }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,100,100,0.3);
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(185, 28, 28, 0.5);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
.btn-primary.large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

/* Grids */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
}
.btn-outline.large {
    padding: 20px 40px;
    font-size: 1.2rem;
}
.btn-outline.large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

/* Hero & CTA Primary Button (Chamber-grade crimson glass with subtle gold highlight) */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(162, 28, 28, 0.9) 0%, rgba(100, 15, 15, 0.95) 100%);
    color: #fffbeb !important; /* Elegant off-white/cream */
    padding: 18px 38px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    border: 1px solid rgba(251, 191, 36, 0.3); /* Thin gold border */
    box-shadow: 0 10px 35px rgba(139, 24, 24, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.btn-hero-primary:hover {
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.95) 0%, rgba(120, 20, 20, 0.98) 100%);
    border-color: rgba(251, 191, 36, 0.65);
    color: #ffffff !important;
    box-shadow: 0 15px 45px rgba(185, 28, 28, 0.55), 0 0 15px rgba(251, 191, 36, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.btn-hero-primary:active {
    transform: translateY(-1px) scale(0.99);
}
.btn-hero-primary.large {
    padding: 20px 52px;
    font-size: 1.25rem;
}

/* Hero & CTA Secondary Button (Low-key premium glassmorphic tech button) */
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 32px;
    border-radius: 8px;
    color: #d4d4d8 !important; /* Zinc 300 */
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    cursor: pointer;
}
.btn-hero-secondary svg {
    stroke: #a1a1aa;
    transition: stroke 0.4s ease;
}
.btn-hero-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-hero-secondary:hover svg {
    stroke: #ffffff;
}
.btn-hero-secondary:active {
    transform: translateY(-1px);
}

/* CTA Subtext */
.cta-subtext {
    color: #888;
    font-size: 0.85rem;
    margin-top: 12px;
    line-height: 1.5;
}
.cta-subtext.final-cta-subtext {
    color: #ccc;
    font-size: 0.95rem;
    margin-top: 16px;
}

.grid-3 {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.enemy-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-red);
}
.enemy-card ul {
    list-style: none;
    margin-bottom: 20px;
}
.enemy-card ul li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.enemy-card ul li strong { color: var(--text-main); }
.card-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.conclusion {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-weight: 600;
    font-size: 0.95rem;
}
.placeholder-card {
    background: transparent;
    border: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.placeholder-card h3 { color: var(--text-main); }

/* Mafia Offer */
.three-no-rules {
    margin: 60px 0;
}
.three-no-rules h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}
.rules-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.rule {
    background: #111;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 8px;
    width: 30%;
}
.rule .icon { font-size: 2rem; display: block; margin-bottom: 15px; }
.rule h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--accent-gold); }
.rule p { color: var(--text-muted); font-size: 0.95rem; }
.ultimate-goal {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto;
}

/* Evidence */
.evidence-block {
    margin-bottom: 60px;
}
.evidence-block h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.evidence-block > p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* === TOC Case Study === */
.toc-case-card {
    background: rgba(17, 17, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    margin-top: 30px;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.toc-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}
.toc-header .tag {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}
.toc-step {
    margin-bottom: 45px;
}
.toc-step:last-child {
    margin-bottom: 0;
}
.toc-step h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    border-left: 3px solid var(--accent-gold);
    padding-left: 14px;
    font-weight: 700;
}
.toc-cloud-diagram {
    background: rgba(5, 5, 7, 0.6);
    padding: 35px 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}
.cloud-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    width: 100%;
}
.cloud-node {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #c8c8cf;
    position: relative;
    width: 160px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.cloud-node:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.cloud-node.goal {
    border-color: rgba(255, 215, 0, 0.25);
    background: rgba(255, 215, 0, 0.02);
    color: var(--accent-gold);
    width: 140px;
}
.cloud-node.goal strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1rem;
}
.cloud-node.bad {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.01);
    color: #fca5a5;
}

.col-goal {
    display: flex;
    align-items: center;
}
.col-req {
    display: flex;
    flex-direction: column;
    gap: 70px;
    position: relative;
}
.col-action {
    display: flex;
    flex-direction: column;
    position: relative;
}
.col-arrows-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
}
.col-arrows-2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
    align-items: center;
    width: 50px;
}
.cloud-connector-svg {
    width: 50px;
    height: 160px;
}
.cloud-connector-svg-horiz {
    width: 50px;
    height: 30px;
}
.mobile-connector-vertical {
    display: none;
}

.conflict-marker-wrapper {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.conflict-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.05);
    border: 1px dashed rgba(239, 68, 68, 0.25);
    padding: 6px 12px;
    border-radius: 6px;
    gap: 8px;
    animation: marker-glow 3s infinite alternate;
}
@keyframes marker-glow {
    0% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.05); }
    100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.15); }
}
.conflict-marker .arrow {
    font-size: 1.1rem;
    line-height: 1;
}
.conflict-marker .text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fca5a5;
    letter-spacing: 0.5px;
}
.assumption-pointer {
    background: rgba(239, 68, 68, 0.02);
    border: 1px dashed rgba(239, 68, 68, 0.2);
    padding: 16px 20px;
    border-radius: 8px;
    color: #d4d4d8;
    font-size: 0.95rem;
    margin-top: 25px;
    text-align: left;
    line-height: 1.7;
    position: relative;
}
.assumption-pointer strong {
    color: var(--accent-red);
    font-weight: 700;
}

.solution-content {
    background: rgba(255, 215, 0, 0.01);
    border: 1px solid rgba(255, 215, 0, 0.08);
    border-left: 3px solid var(--accent-gold);
    padding: 20px 24px;
    border-radius: 4px;
    margin-bottom: 25px;
    line-height: 1.8;
}
.solution-content p {
    margin-bottom: 0;
    font-size: 1rem;
    color: #d4d4d8;
}

.pruning-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 25px;
}
.pruning-list li {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.pruning-list li p {
    margin-bottom: 8px;
}
.pruning-list li p:last-child {
    margin-bottom: 0;
}
.risk {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 6px;
    font-size: 0.8rem;
}
.fix {
    color: #34d399;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 6px;
    font-size: 0.8rem;
}

.win-win-check {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.check-item {
    color: #d4d4d8;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.01);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.check-item:last-child {
    margin-bottom: 0;
}
.check-item .icon {
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}
.check-item strong {
    color: #fff;
    font-size: 1.05rem;
}
.jtbd-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: 600;
}
.ude-resolution {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #a1a1aa;
}
.ude-resolution strong {
    color: #fff;
}
.ude-resolution s {
    color: #666;
}

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

@media (max-width: 768px) {
    .toc-case-card {
        padding: 20px !important;
        margin-top: 20px;
    }
    .toc-cloud-diagram {
        padding: 20px 15px !important;
    }
    .cloud-grid {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }
    .col-arrows-1, .col-arrows-2 {
        display: none;
    }
    .mobile-connector-vertical {
        display: flex;
        justify-content: center;
        margin: 10px 0;
    }
    .col-req, .col-action {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 15px;
    }
    .cloud-node {
        width: 48%;
        max-width: 160px;
        margin: 0;
        font-size: 0.8rem;
        padding: 15px 10px;
    }
    .cloud-node.goal {
        width: 100%;
        max-width: 220px;
    }
    .conflict-marker-wrapper {
        height: auto;
        margin: 20px 0;
    }
    .win-win-check {
        padding: 0;
        background: transparent;
        border: none;
        gap: 15px;
    }
    .check-item {
        padding: 15px;
    }
    .check-item > div {
        flex: 1;
        min-width: 0;
    }
    .jtbd-tag {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        width: fit-content;
    }
    .ude-resolution {
        padding: 12px 10px;
    }
    .ultimate-cta-box {
        padding: 24px 20px !important;
        gap: 24px !important;
        border-radius: 16px !important;
    }
    .cta-pitch-col, .cta-req-col {
        min-width: 100% !important;
    }
    .cta-req-col {
        padding: 20px !important;
    }
    .secondary-cta-box {
        padding: 24px 20px !important;
    }
}

/* === Win Cards === */

/* === Audit Paper (UDE Diagnostic) === */
.audit-paper {
    background: #f8f9fa;
    color: #111;
    border-top: 6px solid var(--accent-red);
    padding: 35px;
    margin-top: 25px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Inter", "Noto Sans SC", sans-serif;
}
.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #111;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.audit-doc-no {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Courier New", Courier, monospace;
    color: #666;
    font-size: 0.85rem;
}
.audit-title {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
}
.audit-row {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    font-size: 1.05rem;
}
.audit-label {
    font-weight: 700;
    color: #333;
    min-width: 90px;
}
.audit-line {
    flex: 1;
    border-bottom: 1px solid #999;
    padding-bottom: 2px;
}
.audit-row.highlight-row {
    background: rgba(239, 68, 68, 0.05);
    padding: 10px;
    margin-left: -10px;
    margin-right: -10px;
}
.audit-row.highlight-row .audit-label {
    color: #7f1d1d;
}
.audit-row.highlight-row .audit-line {
    border-bottom: 2px solid #ef4444;
}
.text-red {
    color: #ef4444 !important;
    font-weight: 900;
    font-size: 1.2rem;
}
.audit-logic {
    background: #eee;
    padding: 20px;
    border-radius: 4px;
    margin: 30px 0;
    border-left: 4px solid #ccc;
}
.audit-logic p strong {
    color: #111;
}
.logic-example {
    font-size: 0.95rem;
    color: #666;
    margin-top: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Courier New", Courier, monospace;
}
.audit-stamp {
    text-align: center;
    color: #b91c1c;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-top: 30px;
    padding: 15px;
    border: 2px dashed #fca5a5;
    background: #fff;
}

/* Redline Table */
.redline-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.redline-table th, .redline-table td {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    text-align: left;
}
.redline-table th { background: #111; color: var(--accent-red); font-weight: 700; }
.redline-table td:first-child { color: var(--text-muted); width: 40%; }
.redline-table td:last-child { font-weight: 600; }

/* Timeline */
.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
    margin-left: 20px;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-gold);
}
.timeline .time {
    font-size: 0.9rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
    font-weight: 600;
}
.timeline .content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.timeline .content p {
    color: var(--text-muted);
}

/* Contract Paper */
.contract-paper {
    background: #f8f9fa;
    color: #1a1a1a;
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.contract-header {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 40px;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 20px;
    letter-spacing: 2px;
}
.contract-body p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.contract-footer {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px solid #ccc;
    padding-top: 30px;
}
.sign-block {
    width: 45%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sign-row {
    display: flex;
    align-items: center;
}
.sign-label {
    min-width: 90px;
    text-align: right;
    font-weight: 600;
}
.sign-line {
    font-weight: 600;
    flex: 1;
}

/* Comparison Table */
.comparison-table-wrapper {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.comparison-table th, .comparison-table td {
    padding: 20px;
    text-align: left;
}
.comparison-table th { background: #111; font-size: 1.1rem; }
.comparison-table th:last-child { color: var(--accent-gold); }
.comparison-table td { border-top: 1px solid var(--border-color); }
.comparison-table td:first-child { color: var(--text-muted); border-right: 1px solid var(--border-color); }
.comparison-table td:last-child { font-weight: 600; }

/* Covenant Cards Section (Taste Skills Style) */
.covenant-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.covenant-card {
    position: relative;
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Watermark Number behind Card */
.covenant-card::before {
    content: attr(data-num);
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.015);
    font-family: Arial, sans-serif;
    pointer-events: none;
    transition: color 0.4s ease;
}

.covenant-card:hover::before {
    color: rgba(251, 191, 36, 0.025);
}

.covenant-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Specific highlight styling for the 3rd card (Exit Covenant) */
.covenant-card.highlight-card {
    border: 1px solid rgba(251, 191, 36, 0.15);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.02);
}

.covenant-card.highlight-card::before {
    color: rgba(251, 191, 36, 0.02);
}

.covenant-card.highlight-card:hover {
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.035) 0%, rgba(251, 191, 36, 0.005) 100%);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.08), 0 0 20px rgba(251, 191, 36, 0.01);
}

.covenant-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #a1a1aa;
    transition: all 0.4s ease;
}

.covenant-card:hover .covenant-card-icon {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
    color: var(--accent-gold);
}

.covenant-card.highlight-card .covenant-card-icon {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.2);
    color: var(--accent-gold);
}

.covenant-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.covenant-card.highlight-card .covenant-card-title {
    color: var(--accent-gold);
}

.covenant-card-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* Bullet list inside Exit covenant */
.covenant-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.covenant-list-item {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

.covenant-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.covenant-list-num {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 0.95rem;
}

.covenant-list-desc {
    color: var(--text-muted);
    flex: 1;
}

/* Golden Quote Box */
.golden-quote-box {
    max-width: 850px;
    margin: 50px auto 0;
    padding: 26px 36px;
    background: rgba(251, 191, 36, 0.02);
    border: 1px dashed rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    text-align: center;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-muted);
}
.golden-quote-box strong {
    color: #fff;
    font-weight: 700;
}

/* Guarantee Covenant Box (Taste Style) */
.guarantee-covenant-box {
    max-width: 850px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.guarantee-covenant-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-align: center;
}

.guarantee-covenant-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
    margin-bottom: 25px;
}

.guarantee-covenant-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.guarantee-covenant-item:hover {
    border-color: rgba(251, 191, 36, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.guarantee-covenant-item .item-title {
    color: var(--accent-gold);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guarantee-covenant-item .item-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.guarantee-covenant-footer {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
}

.guarantee-covenant-footer strong {
    color: #fff;
}

/* Risk Isolation Covenant Section */
.risk-isolation-container {
    max-width: 900px;
    margin: 0 auto 60px;
}

.risk-isolation-title {
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 0.5px;
}

.risk-isolation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.risk-isolation-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s ease;
    text-align: left;
    backdrop-filter: blur(10px);
}

.risk-isolation-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.risk-isolation-card.highlight-card {
    border: 1px solid rgba(251, 191, 36, 0.15);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.02);
}

.risk-isolation-card.highlight-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
}

.risk-card-header {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.risk-isolation-card.highlight-card .risk-card-header {
    color: var(--accent-gold);
    border-bottom-color: rgba(251, 191, 36, 0.15);
}

.risk-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.risk-card-list-item {
    display: flex;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.risk-card-list-item .icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.risk-card-list-item .text {
    color: var(--text-muted);
}

.risk-isolation-card.highlight-card .risk-card-list-item .text {
    color: var(--text-main);
}


/* Era Table */
.era-table-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.era-table {
    width: 100%;
    border-collapse: collapse;
}
.era-table th, .era-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    line-height: 1.5;
    vertical-align: top;
}
.era-table th {
    background: #111;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.era-table .label-td {
    color: #888;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    width: 15%;
}
.era-table .highlight-col {
    background: rgba(212, 175, 55, 0.05);
    color: #fff;
}
.era-table th.highlight-col {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 2px solid var(--accent-gold);
}
.era-table .td-sub {
    font-size: 0.8rem;
    color: #aaa;
    display: block;
    margin-top: 4px;
}
.era-table tbody tr:last-child td {
    border-bottom: none;
}

/* Whitepaper Link */
.whitepaper-link:hover {
    background: rgba(211, 47, 47, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

/* Outputs */
.outputs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}
.output-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    width: 48%;
    text-align: left;
}
.output-item .icon { font-size: 2rem; display: block; margin-bottom: 15px; }
.output-item strong { font-size: 1.2rem; color: var(--accent-gold); display: block; margin-bottom: 10px; }
.output-item p { color: var(--text-muted); font-size: 0.95rem; }
.highlight-box {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.05);
}

/* CTA */
.cta-criteria {
    display: flex;
    gap: 30px;
    margin: 50px 0;
    text-align: left;
}
.criteria-box {
    flex: 1;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.criteria-box.pass { border-top: 4px solid #10b981; }
.criteria-box.fail { border-top: 4px solid var(--accent-red); }
.criteria-box h4 { font-size: 1.2rem; margin-bottom: 20px; }
.criteria-box ul { list-style: none; }
.criteria-box ul li { margin-bottom: 15px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.final-action p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 60px 0;
    background: #000;
    color: var(--text-muted);
    font-size: 0.95rem;
}
footer p { margin-bottom: 10px; }

@media (max-width: 768px) {
    .grid-3 { flex-direction: column; }
    .roles-target { flex-direction: column; }
    .role-item { width: 100%; }
    .rules-grid { flex-direction: column; }
    .rule { width: 100%; }
    .cta-criteria { flex-direction: column; }
    .outputs-list { flex-direction: column; }
    .output-item { width: 100%; }
    .contract-paper { padding: 30px 20px; }
    .contract-footer { flex-direction: column; }
    .sign-block { width: 100%; margin-bottom: 20px; }
    .glitch-text { font-size: 2.5rem; }
    .conviction-block { flex-direction: column; }
    .timeline-compare { flex-direction: column; align-items: flex-start; gap: 10px; }
    .tc-arrow { transform: rotate(90deg); }
    .hide-on-mobile { display: none; }
    
    /* Typography Scaling */
    .mega-warning { font-size: 1.8rem !important; }
    .error-red { font-size: 2.5rem !important; }
    .glitch-text { font-size: 2.5rem !important; }

    /* Tables */
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
    .diff-table th, .diff-table td { padding: 10px; width: auto; font-size: 0.85rem; }
}

/* === Sticky TOC === */
.sticky-toc {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 40px;
    z-index: 1000;
    width: 200px;
}
.icon svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    stroke: currentColor;
}
.sticky-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}
.sticky-toc li {
    margin-bottom: 25px;
}
.toc-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 20px;
    position: relative;
    transition: all 0.3s ease;
}
.toc-link span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.3);
}
.toc-link::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: transparent;
    transition: all 0.3s ease;
}
.toc-link:hover {
    color: #fff;
}
.toc-link.active {
    color: var(--text-main);
    font-weight: 700;
}
.toc-link.active span {
    color: var(--accent-gold);
}
.toc-link.active::before {
    background-color: var(--accent-red);
}

@media (max-width: 1300px) {
    .sticky-toc {
        display: none;
    }
}

/* === Historical Narrative Hero === */
.history-intro {
    padding: 40px 0 20px;
}
.era-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.red-text { color: var(--accent-red) !important; letter-spacing: 2px; }
.era-body {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 20px;
    color: var(--text-main);
}
.era-body.muted { color: var(--text-muted); font-size: 1.1rem; }
.era-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 30px 0;
    letter-spacing: -1px;
}
.era-divider {
    margin: 40px auto;
    max-width: 400px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 2px;
}
.era-now {
    padding: 60px 0 40px;
}
.accent-em {
    font-style: normal;
    color: var(--accent-red);
    font-size: 1.1em;
}
.gold-heavy {
    color: var(--accent-gold) !important;
    font-weight: 700;
}

/* === Conviction Blocks === */
.conviction-block {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 50px 0;
    border-bottom: 1px solid #3a1010;
}
.conviction-block:last-child { border-bottom: none; }
.conviction-number {
    font-size: 5rem;
    font-weight: 900;
    color: #3a1010;
    line-height: 1;
    min-width: 100px;
    text-align: right;
    padding-top: 5px;
    letter-spacing: -4px;
}
.conviction-content { flex: 1; }
.conviction-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}
.conviction-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
}
.conviction-content p strong { color: var(--text-main); }

.conviction-compare {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}
.compare-bad, .compare-good {
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.compare-bad { background: rgba(239,68,68,0.08); border-left: 3px solid #7f1d1d; color: #fca5a5; }
.compare-good { background: rgba(16,185,129,0.08); border-left: 3px solid #065f46; color: #6ee7b7; }

/* === Timeline Compare === */
.timeline-compare {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.tc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-width: 130px;
}
.tc-now { border-color: var(--accent-gold); background: rgba(251,191,36,0.08); }
.tc-later { border-color: var(--border-color); }
.tc-too-late { border-color: #7f1d1d; background: rgba(239,68,68,0.06); }
.tc-year { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.tc-now .tc-year { color: var(--accent-gold); }
.tc-too-late .tc-year { color: var(--accent-red); }
.tc-desc { font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.tc-arrow { font-size: 1.5rem; color: var(--border-color); }
.conviction-warning {
    background: rgba(251,191,36,0.06);
    border: 1px solid rgba(251,191,36,0.2);
    padding: 15px 20px;
    border-radius: 4px;
    color: var(--accent-gold) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-top: 15px;
}

/* === Diff Table === */
.diff-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 0.95rem;
}
.diff-table th, .diff-table td {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    text-align: left;
    width: 50%;
}
.diff-table th:first-child { background: #1a0505; color: #f87171; }
.diff-table th:last-child { background: #0a1a12; color: #6ee7b7; }
.diff-table td:first-child { color: var(--text-muted); }
.diff-table td:last-child { color: var(--text-main); font-weight: 600; }
.analogy-bad { color: var(--text-muted); font-style: italic; }
.analogy-good { color: var(--accent-gold) !important; font-style: italic; font-size: 1.05rem; }

/* === Win Card === */
.win-card h4 { font-size: 1.1rem; color: var(--accent-gold); margin-bottom: 15px; }
.win-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 2; }

/* === Misc === */
.mt-10 { margin-top: 10px; }

/* === Era Comparison Layout === */
.era-comparison {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.era-block {
    text-align: center;
    padding: 50px 40px;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    width: 100%;
}

/* === JTBD and UDE Resolution === */
.jtbd-tag {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background: rgba(234, 179, 8, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: normal;
}
.ude-resolution {
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    background: rgba(0,0,0,0.2);
    padding: 10px 15px;
    border-left: 3px solid rgba(255,255,255,0.1);
}
.ude-resolution s {
    color: #888;
    text-decoration-color: rgba(239, 68, 68, 0.5);
}
.ude-resolution strong {
    color: #fff;
}

/* === Modal Styles === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #111;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover {
    color: #fff;
}
.modal-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}
.modal-desc {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 25px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccc;
    text-align: left;
}
.form-group .required {
    color: var(--accent-red);
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.05);
}
.w-100 {
    width: 100%;
}
.success-msg {
    margin-top: 15px;
    padding: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

/* === Top Fixed Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.global-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}
.global-nav a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
.global-nav a:hover, .global-nav a.active {
    color: #fff;
}


.header-brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}
.btn-primary.small {
    padding: 8px 16px;
    font-size: 0.95rem;
}

/* === War Timeline Component === */
.war-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 20px;
}
.war-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-red) 0%, var(--accent-gold) 50%, #333 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
.timeline-phase {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}
.timeline-phase:last-child {
    margin-bottom: 0;
}
.phase-marker {
    position: absolute;
    left: -19px; /* center on the 2px line which is at left:20px */
    top: 0;
    background: #000;
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 800;
    border: 2px solid var(--accent-gold);
    padding: 2px 8px;
    border-radius: 12px;
    z-index: 2;
    white-space: nowrap;
}
.timeline-phase:nth-child(1) .phase-marker {
    border-color: var(--accent-red);
    color: var(--accent-red);
}
.phase-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.phase-content:hover {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.2);
}
.phase-content h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.phase-time {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 400;
}
.phase-content p {
    margin: 5px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}
.phase-content .phase-desc {
    color: #aaa;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.conviction-warning {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--accent-red);
    padding: 15px 20px;
    color: #ffbaba;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
}

/* === Mobile Bottom TOC === */
.mobile-bottom-toc {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
}
.toc-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 12px 15px;
    gap: 10px;
    scrollbar-width: none;
}
.toc-scroll-container::-webkit-scrollbar {
    display: none;
}
.toc-scroll-container .toc-link {
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.toc-scroll-container .toc-link::before {
    display: none;
}
.toc-scroll-container .toc-link.active {
    color: #000;
    background: var(--accent-gold);
    font-weight: 700;
    border-color: var(--accent-gold);
}

@media (max-width: 768px) {
    .mobile-bottom-toc {
        display: block;
    }
    body {
        padding-bottom: 70px;
    }
    
.global-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}
.global-nav a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
.global-nav a:hover, .global-nav a.active {
    color: #fff;
}


.header-brand-text {
        font-size: 1rem;
    }
    .btn-primary.small {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
.btn-secondary:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ==========================================================================
   Curriculum Timeline Specifics (Battlemap)
   ========================================================================== */
.battlemap-timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
}

.battlemap-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 2px;
    background: var(--border-color);
}

.timeline-block {
    position: relative;
    margin-bottom: 50px;
    display: flex;
}

.timeline-time {
    width: 100px;
    padding-right: 20px;
    text-align: right;
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.1rem;
    padding-top: 20px;
}

.timeline-dot {
    position: absolute;
    left: 113px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--accent-red);
    z-index: 2;
}

.timeline-content {
    margin-left: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    width: calc(100% - 150px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    border-color: #4a4a4a;
}

.timeline-content h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.deliverable-box {
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid var(--accent-red);
    padding: 15px;
    margin-top: 20px;
}

.deliverable-box h4 {
    color: var(--accent-red);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.deliverable-box p {
    color: #e4e4e7;
    font-weight: 500;
    margin: 0;
}

.milestone-block {
    margin: 60px 0;
    text-align: center;
    position: relative;
}

.milestone-block::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    z-index: 1;
}

.milestone-content {
    display: inline-block;
    background: var(--bg-dark);
    padding: 10px 30px;
    border: 1px solid var(--accent-gold);
    border-radius: 30px;
    color: var(--accent-gold);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* Loop Diagram */
.loop-diagram {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.loop-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    position: relative;
}

.loop-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--text-muted);
}

.loop-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.loop-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.loop-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Redline Warning */
.redline-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-red);
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.redline-warning h3 {
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.redline-list {
    list-style: none;
    padding: 0;
}

.redline-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #e4e4e7;
    font-size: 1.1rem;
}

.redline-icon {
    flex-shrink: 0;
    color: var(--accent-red);
    font-weight: bold;
}

@media (max-width: 768px) {
    .loop-diagram {
        grid-template-columns: 1fr 1fr;
    }
    .loop-step:not(:last-child)::after {
        display: none;
    }
    .battlemap-timeline::before {
        left: 20px;
    }
    .timeline-time {
        display: none;
    }
    .timeline-dot {
        left: 11px;
    }
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
    }
}

/* ==========================================================================
   Author Profile Specifics (Portfolio)
   ========================================================================== */
.philosophy-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    border-left: 4px solid var(--accent-red);
    padding-left: 20px;
    margin: 40px auto;
    max-width: 800px;
    line-height: 1.6;
}

.portfolio-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 60px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.portfolio-card.reverse {
    flex-direction: row-reverse;
}

.portfolio-image {
    width: 45%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.portfolio-image a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.portfolio-card.reverse .portfolio-image {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.portfolio-content {
    width: 55%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.portfolio-mapping {
    display: inline-block;
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.portfolio-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.portfolio-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.portfolio-feature .icon {
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.2rem;
}

.portfolio-feature p {
    color: #e4e4e7;
    margin: 0;
}

@media (max-width: 900px) {
    .portfolio-card, .portfolio-card.reverse {
        flex-direction: column;
        margin-bottom: 40px !important;
    }
    .portfolio-image {
        width: 100%;
        height: auto !important;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px 24px !important;
        box-sizing: border-box;
    }
    .portfolio-image a {
        display: grid !important;
        grid-template-columns: 60px 1fr !important;
        grid-template-rows: auto auto !important;
        column-gap: 16px !important;
        row-gap: 4px !important;
        align-items: center !important;
        text-align: left !important;
        width: 100% !important;
        height: auto !important;
    }
    .portfolio-image img {
        grid-row: 1 / span 2 !important;
        grid-column: 1 !important;
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0 !important;
        border-radius: 12px !important;
    }
    .portfolio-image .mock-title {
        grid-row: 1 !important;
        grid-column: 2 !important;
        font-size: 1.2rem !important;
        margin-top: 0 !important;
        font-weight: 600 !important;
        color: #fff !important;
    }
    .portfolio-image a div:last-child {
        grid-row: 2 !important;
        grid-column: 2 !important;
        margin-top: 0 !important;
        font-size: 0.85rem !important;
    }
    .portfolio-card.reverse .portfolio-image {
        border-left: none;
    }
    .portfolio-content {
        width: 100%;
        padding: 24px !important;
    }
}

/* ==========================================================================
   Methodology Card (Taste Style)
   ========================================================================== */
.methodology-box {
    margin: 80px auto 40px;
    text-align: center;
    max-width: 800px;
    padding: 48px 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid var(--accent-gold);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.methodology-badge {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.methodology-quote {
    font-size: 1.15rem;
    color: #e4e4e7;
    line-height: 2.0;
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto 24px;
    letter-spacing: 0.5px;
}

.methodology-divider {
    width: 40px;
    height: 1px;
    background: rgba(251, 191, 36, 0.2);
    margin: 24px auto;
}

.methodology-core {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.5;
}

.methodology-core .highlight {
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.methodology-core .sub {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    margin-top: 10px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .methodology-box {
        margin: 60px 16px 30px;
        padding: 36px 20px;
    }
    .methodology-quote {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    .methodology-core {
        font-size: 1.3rem;
    }
    .methodology-core .sub {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Logo Wall Marquee (Customer Logos)
   ========================================================================== */
.logo-wall-wrapper {
    overflow: hidden;
    padding: 40px 0;
    margin: 60px 0 40px;
    background: rgba(15, 15, 20, 0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    width: 100%;
}

.logo-wall-wrapper::before,
.logo-wall-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-wall-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.logo-wall-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.logo-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.logo-marquee {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    align-items: center;
}

.logo-marquee.track-1 {
    animation: scroll-left 50s linear infinite;
}

.logo-marquee.track-2 {
    animation: scroll-left 40s linear infinite;
}

.logo-marquee:hover {
    animation-play-state: paused;
}

.logo-item {
    flex: 0 0 auto;
    height: 35px;
    margin: 0 35px;
    filter: opacity(40%);
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo-item:hover {
    filter: opacity(100%);
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .logo-wall-wrapper {
        display: none;
    }
}




/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .global-nav {
        display: none !important; /* Hide default flex layout */
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 20, 0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        gap: 15px;
        align-items: center;
    }
    .global-nav.menu-active {
        display: flex !important;
        animation: slideDown 0.3s ease forwards;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .header-inner {
        position: relative; /* Ensure absolute positioning works relative to header */
    }
}

/* Copy Panel CSS */
.copy-panel {
    position: absolute;
    top: 20px;
    right: -320px;
    width: 300px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.copy-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}
.tab-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.tab-btn.active {
    color: var(--accent-gold);
    background: rgba(255,215,0,0.1);
}
.tab-btn:hover {
    color: #fff;
}
.copy-content {
    display: none;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: pre-wrap;
    height: 380px;
    overflow-y: auto;
    padding-right: 5px;
}
.copy-content.active {
    display: block;
}
.copy-content::-webkit-scrollbar { width: 4px; }
.copy-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.copy-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

@media (max-width: 900px) {
    .copy-panel { position: relative; right: 0; top: 0; width: 375px; margin-top: 20px; }
}

/* Bento Grid Layout System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.bento-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.25);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bento-card.dark-red-card {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.bento-card.dark-red-card:hover {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.05), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Specific alignments */
.bento-card.col-span-2 {
    grid-column: span 2;
}

.bento-card.col-span-3 {
    grid-column: span 3;
}

.bento-card.col-span-6 {
    grid-column: span 6;
}

.bento-card.row-span-2 {
    grid-row: span 2;
}

/* Horizontal layout inner structures */
.bento-horizontal {
    display: flex;
    gap: 30px;
    align-items: center;
}

.bento-horizontal-left {
    flex: 3;
    display: flex;
    flex-direction: column;
}

.bento-horizontal-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.bento-quote-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-left: 3px solid var(--accent-gold);
    font-size: 0.9rem;
    color: #a1a1aa;
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
}

.bento-card.dark-red-card .bento-quote-box {
    border-left-color: var(--accent-red);
    color: #ccc;
}

.bento-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.bento-badge.gold {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.bento-badge.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .bento-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .bento-horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
}

/* Pain Deck - Borderless Premium Editorial Column Layout */
.pain-deck {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    text-align: left;
    position: relative;
}

.pain-column {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
    background: transparent;
}

/* Vertical divider lines between columns on desktop */
.pain-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.pain-column:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-6px);
}

.pain-badge {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.04);
    color: #71717a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
}

.pain-column:hover .pain-badge {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold);
    border-color: rgba(255, 215, 0, 0.2);
}

.pain-column:nth-child(2):hover .pain-badge {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.2);
}

.pain-num {
    font-size: 4rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 300;
    color: rgba(255, 215, 0, 0.2);
    line-height: 1;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.pain-column:nth-child(2) .pain-num {
    color: rgba(239, 68, 68, 0.2);
}

.pain-column:hover .pain-num {
    color: rgba(255, 215, 0, 0.85);
    transform: scale(1.05);
}

.pain-column:nth-child(2):hover .pain-num {
    color: rgba(239, 68, 68, 0.85);
}

.pain-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pain-divider {
    height: 1px;
    width: 40px;
    background: var(--accent-gold);
    margin-bottom: 25px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pain-column:nth-child(2) .pain-divider {
    background: var(--accent-red);
}

.pain-column:hover .pain-divider {
    width: 80px;
}

.pain-text {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pain-text strong {
    color: #fff;
}

.pain-antidote {
    border-left: 2px solid var(--accent-gold);
    padding: 15px 18px;
    background: rgba(255, 215, 0, 0.01);
    font-size: 0.92rem;
    color: #e4e4e7;
    line-height: 1.6;
    border-radius: 0 6px 6px 0;
    transition: all 0.3s;
}

.pain-column:nth-child(2) .pain-antidote {
    border-left-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.01);
}

.pain-column:hover .pain-antidote {
    background: rgba(255, 215, 0, 0.04);
    border-left-color: #fff;
}

.pain-column:nth-child(2):hover .pain-antidote {
    background: rgba(239, 68, 68, 0.04);
    border-left-color: #fff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pain-deck {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pain-column:not(:last-child)::after {
        display: none;
    }
    
    .pain-column {
        padding: 25px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .pain-column:hover {
        transform: none;
        background: transparent;
    }
}

/* Premium Hero Section Styles */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, rgba(211, 47, 47, 0.08) 0%, rgba(7, 7, 12, 1) 70%) !important;
}

/* Ambient glow element */
.hero::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, rgba(239, 68, 68, 0.02) 60%, transparent 100%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 18px;
    border-radius: 100px;
    color: #a1a1aa;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.hero-badge:hover {
    border-color: rgba(255, 215, 0, 0.25);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.05);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: hero-pulse 2s infinite;
}

@keyframes hero-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Main Heading Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.4;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

.hero-title span.highlight-white {
    background: linear-gradient(180deg, #ffffff 40%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span.highlight-red {
    background: linear-gradient(135deg, #ff4d4d 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 950;
    text-shadow: 0 0 40px rgba(239, 68, 68, 0.15);
    letter-spacing: -0.5px;
}

/* Subtitles */
.hero-desc {
    font-size: 1.25rem;
    line-height: 2;
    color: #a1a1aa;
    max-width: 850px;
    margin: 0 auto 50px;
    letter-spacing: 0.5px;
}

.hero-desc .strong-word {
    color: var(--accent-gold);
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem !important;
        letter-spacing: -0.5px;
        line-height: 1.35;
    }
    .hero-desc {
        font-size: 0.95rem !important;
        line-height: 1.8;
    }
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }
}

/* Responsive Line Break / Word Break Helpers */
.word-block {
    display: inline-block;
    white-space: nowrap;
}

.br-pc {
    display: inline;
}
.br-mobile {
    display: none;
}

@media (max-width: 768px) {
    .br-pc {
        display: none;
    }
    .br-mobile {
        display: inline;
    }
}

/* Principal Confession Box (High-end Column Styling) */
.principal-confession-box {
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
    padding: 30px;
    margin: 35px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}
.confession-title {
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(251, 191, 36, 0.15);
    letter-spacing: 1px;
}
.confession-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #a1a1aa;
    margin-bottom: 20px;
}
.confession-desc strong {
    color: #fff;
}
.confession-assets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}
.confession-asset-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    transition: all 0.3s ease;
}
.confession-asset-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(251, 191, 36, 0.15);
}
.confession-asset-item .asset-num {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 1px;
}
.confession-asset-item .asset-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #d4d4d8;
}
.confession-asset-item .asset-text strong {
    color: #fff;
    font-weight: 700;
}
@media (max-width: 768px) {
    .principal-confession-box {
        padding: 20px;
        margin: 25px 0;
    }
    .confession-asset-item {
        padding: 12px 14px;
        gap: 10px;
    }
    .confession-asset-item .asset-text {
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   Co-create Letter Card Styles (Serif, Premium Editorial Layout)
   ========================================================================== */
.co-create-letter-card {
    font-family: 'Noto Serif SC', 'Georgia', 'Songti SC', serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #e4e4e7;
    background: rgba(18, 18, 22, 0.7);
    padding: 50px 60px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--accent-red);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.co-create-letter-card .letter-badge {
    position: absolute;
    top: -16px;
    left: 50px;
    background: var(--accent-red);
    color: #fff;
    padding: 6px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

.co-create-letter-card h2.letter-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    margin-top: 15px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.co-create-letter-card p {
    margin-bottom: 24px;
    text-align: justify;
}

.co-create-letter-card p strong {
    color: var(--accent-gold);
    font-family: 'Noto Serif SC', 'Georgia', serif;
    font-weight: 700;
}

.co-create-letter-card p strong.letter-highlight {
    color: #fff;
}

/* Letter Signature Block */
.letter-signature-block {
    display: flex;
    align-items: center;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    margin-top: 40px;
    font-family: 'Noto Sans SC', sans-serif;
}

.letter-signature-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.letter-signature-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.letter-signature-name {
    font-weight: 700;
    color: #fff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

.letter-signature-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-red);
    margin-left: 8px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.letter-signature-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Adjust Confession Box as sibling beneath Letter Card */
.principal-confession-box {
    background: rgba(251, 191, 36, 0.02);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
    padding: 35px 40px;
    margin-top: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .co-create-letter-card {
        padding: 35px 25px;
        font-size: 0.98rem;
        line-height: 1.8;
    }
    
    .co-create-letter-card .letter-badge {
        left: 25px;
        font-size: 0.82rem;
        padding: 4px 14px;
    }
    
    .co-create-letter-card h2.letter-title {
        font-size: 1.35rem;
        margin-bottom: 20px;
        margin-top: 10px;
    }
    
    .letter-signature-block {
        margin-top: 30px;
        gap: 12px;
    }
    
    .letter-signature-avatar {
        width: 52px;
        height: 52px;
    }
    
    .letter-signature-name {
        font-size: 1.05rem;
    }
    
    .letter-signature-title {
        font-size: 0.8rem;
        line-height: 1.6;
    }
    
    .letter-signature-title .signature-title-item {
        display: block;
    }
    
    .letter-signature-title .signature-title-sep {
        display: none;
    }
    
    .principal-confession-box {
        padding: 25px 20px;
        margin-top: 20px;
    }

    .btn-hero-primary {
        padding: 14px 28px !important;
        font-size: 1rem !important;
        letter-spacing: 1px !important;
    }
    
    .btn-hero-primary.large {
        padding: 16px 32px !important;
        font-size: 1.05rem !important;
    }
    
    .btn-hero-secondary {
        padding: 14px 28px !important;
        font-size: 0.95rem !important;
    }
    
    .cta-subtext {
        font-size: 0.8rem !important;
        padding: 0 15px !important;
        word-break: break-all !important;
    }
    
    .cta-subtext.final-cta-subtext {
        font-size: 0.85rem !important;
    }

    .comparison-table-wrapper {
        background: transparent !important;
        border: none !important;
        overflow: visible !important;
    }
    
    /* ---- 属性卡片堆叠（移动端转置布局） ---- */
    .table-card-stack {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 20px 0;
    }
    
    .table-card {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 16px;
        text-align: left;
    }
    
    .card-attr {
        font-size: 0.95rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    }
    
    .card-values {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .card-value {
        display: flex;
        gap: 10px;
        font-size: 0.85rem;
        line-height: 1.6;
        padding: 4px 0;
        text-align: left;
    }
    
    .card-value.highlight-val {
        background: rgba(255, 215, 0, 0.02);
        padding: 6px 8px;
        border-radius: 4px;
        border-left: 2px solid var(--accent-gold);
    }
    
    .card-value.highlight-val .value-label {
        color: var(--accent-gold) !important;
        font-weight: bold;
    }
    
    .card-value.highlight-val .value-text {
        color: #fff !important;
        font-weight: bold;
    }
    
    .value-label {
        flex-shrink: 0;
        width: 100px;
        color: var(--text-muted);
    }
    
    .value-text {
        flex: 1;
        color: var(--text-main);
        word-break: break-all;
    }

    .covenant-cards-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }
    
    .covenant-card {
        padding: 24px 20px !important;
    }
    
    .covenant-card::before {
        font-size: 4rem !important;
        top: -5px !important;
        right: 10px !important;
    }

    .golden-quote-box {
        font-size: 0.95rem !important;
        padding: 20px !important;
        margin-top: 30px !important;
        line-height: 1.7 !important;
    }

    .guarantee-covenant-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .guarantee-covenant-box {
        padding: 25px 15px !important;
        margin: 30px 10px !important;
    }

    .risk-isolation-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .risk-isolation-card {
        padding: 22px 18px !important;
    }

    /* Comparison Table Mobile Card Layout */
    .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td {
        display: block;
        width: 100%;
    }
    .comparison-table tr:first-child { 
        display: none; 
    }
    .comparison-table tr {
        margin-bottom: 20px;
        background: rgba(255,255,255,0.02);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 8px;
        padding: 15px;
    }
    .comparison-table td {
        padding: 8px 10px;
        border: none !important;
        text-align: left;
        position: relative;
        padding-left: 120px;
    }
    .comparison-table td.label-td {
        padding-left: 10px;
        font-size: 1.1rem;
        font-weight: bold;
        color: var(--accent-gold);
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        margin-bottom: 10px;
        text-align: center;
    }
    .comparison-table td:not(.label-td)::before {
        position: absolute;
        left: 10px;
        color: #888;
        font-weight: bold;
    }
    .comparison-table td:nth-child(2)::before { content: "传统咨询："; }
    .comparison-table td:nth-child(3)::before { content: "技术外包："; }
    .comparison-table td:nth-child(4)::before { content: "AIPM 战略："; color: var(--accent-gold); }
}





/* Author Title responsive wrap */
.letter-signature-title-part {
    display: inline-block;
}
.letter-signature-dot {
    display: inline-block;
    margin: 0 4px;
    color: #666;
}
@media (max-width: 768px) {
    .letter-signature-title {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .letter-signature-dot {
        display: none;
    }
}
