/* ===== PURPLE TEAMING HERO ===== */
.hero-purple {
    background-image: url("../img/background.webp");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-purple::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(220, 53, 69, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(13, 110, 253, 0.15) 0%, transparent 50%),
        rgba(10, 10, 25, 0.7);
    pointer-events: none;
    z-index: 0;
}

@media only screen and (max-device-width: 1366px) {
    .hero-purple {
        background-attachment: scroll;
    }
}

.hero-purple > * {
    position: relative;
    z-index: 1;
}

.hero-purple h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-red-blue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-red-blue .red { color: #dc3545; }
.hero-red-blue .blue { color: #0d6efd; }
.hero-red-blue .purple { color: #9b59b6; }
.hero-red-blue .plus, .hero-red-blue .equals { color: rgba(255,255,255,0.6); }

.hero-purple p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    opacity: 0.9;
}

.hero-purple .btn-purple,
.btn-purple {
    background: rgba(123, 45, 142, 0.25);
    color: #fff;
    border: 2px solid #7B2D8E;
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-purple .btn-purple:hover,
.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 45, 142, 0.4);
    background: rgba(123, 45, 142, 0.45);
    color: #fff;
    text-decoration: none;
}

/* ===== SOCIAL PROOF STRIP ===== */
.proof-strip {
    background: #f8f8fa;
    padding: 40px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.proof-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.proof-certs {
    display: flex;
    align-items: center;
    gap: 20px;
}

.proof-label {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    white-space: nowrap;
}

.proof-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proof-badges img {
    height: 48px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

.proof-refs {
    flex-shrink: 0;
}

.proof-ref-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}

.proof-ref-link:hover {
    color: #000;
    gap: 10px;
    text-decoration: none;
}

.proof-ref-link .arrow {
    transition: transform 0.2s;
}

.proof-ref-link:hover .arrow {
    transform: translateX(4px);
}

/* ===== DIFFERENCE SECTION (was PURPLE INTRO) ===== */
.purple-intro {
    background: #fff;
    padding: 100px 24px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.purple-intro h2 {
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 1rem;
}

.purple-intro p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: #333;
}

.purple-intro .diff-technical {
    font-size: 1rem;
    color: #666;
    margin-top: 0.75rem;
}

/* Flow diagram comparison */
.diff-flows {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    margin: 2.5rem auto;
    text-align: left;
}

.diff-flow {
    flex: 1;
    padding: 32px;
    border-radius: 12px;
}

.diff-flow-dull {
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.diff-flow-purple,
.diff-flow-apesec {
    background: rgba(0, 0, 0, 0.02);
    border: 2px solid #1a1a2e;
}

.diff-flow-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 16px;
}

.diff-flow-dull .diff-flow-label { color: #777; }
.diff-flow-purple .diff-flow-label,
.diff-flow-apesec .diff-flow-label { color: #1a1a2e; }

.diff-flow-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.diff-step {
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
}

.diff-flow-dull .diff-step {
    background: #e8e8e8;
    color: #777;
}

.diff-flow-purple .diff-step,
.diff-flow-apesec .diff-step {
    background: rgba(0, 0, 0, 0.06);
    color: #1a1a2e;
}

.diff-arrow { color: #ccc; font-size: 1rem; }
.diff-flow-purple .diff-arrow,
.diff-flow-apesec .diff-arrow { color: #1a1a2e; }

/* Credential badges */
.diff-creds {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin: 3rem auto;
    max-width: 1100px;
}

.diff-cred-group {
    text-align: center;
}

.diff-cred-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #999;
    margin-bottom: 16px;
}

.diff-cred-badges {
    display: flex;
    align-items: center;
    gap: 24px;
}

.diff-cred-badges img {
    height: 100px;
    max-width: 130px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.diff-cred-badges img:hover {
    opacity: 1;
}

/* Mini CTA */
.diff-mini-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1a1a2e;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.3rem;
    transition: gap 0.2s, color 0.2s;
    margin-top: 2rem;
}

.diff-mini-cta:hover {
    color: #000;
    gap: 12px;
    text-decoration: none;
}

.diff-mini-cta .arrow {
    transition: transform 0.2s;
}

.diff-mini-cta:hover .arrow {
    transform: translateX(4px);
}

/* ===== PACKAGE SECTION ===== */
.package-section {
    background: rgba(123, 45, 142, 0.02);
    padding: 100px 24px;
    position: relative;
    scroll-margin-top: 80px;
}

.package-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
    z-index: 0;
}

.package-section > * {
    position: relative;
    z-index: 1;
}


.package-section-inner {
    max-width: 700px;
    margin: 0 auto;
}

.purple-package-card {
    padding: 40px;
    border-radius: 12px;
    background: rgba(10, 10, 25, 0.6);
    text-align: center;
    background-clip: padding-box;
    border: 2px solid transparent;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.purple-package-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(90deg, #dc3545, #7B2D8E, #0d6efd);
    z-index: -1;
}

.purple-package-card h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.pkg-flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.pkg-flow-step {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(123, 45, 142, 0.2);
    border: 1px solid rgba(123, 45, 142, 0.3);
}

.pkg-flow-arrow {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

.pkg-meta {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    color: #fff;
}

.pkg-price {
    font-size: 2rem;
    font-weight: 700;
}

.pkg-timeline {
    font-size: 0.95rem;
    opacity: 0.6;
}

.pkg-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
}

.pkg-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a1a2e;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.2s, color 0.2s;
}

.pkg-all-link:hover {
    color: #000;
    gap: 12px;
    text-decoration: none;
}

.pkg-all-link .arrow {
    transition: transform 0.2s;
}

.pkg-all-link:hover .arrow {
    transform: translateX(4px);
}

/* Light variant of purple CTA (for white backgrounds) */
.btn-purple.btn-purple-light {
    color: #7B2D8E;
    background: rgba(123, 45, 142, 0.08);
}

.btn-purple.btn-purple-light:hover {
    color: #fff;
    background: rgba(123, 45, 142, 0.9);
}

/* ===== INLINE REFERENCES ===== */
.ref-card-inline {
    text-align: center;
    padding: 24px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ref-logo-inline {
    max-height: 40px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.ref-quote-inline {
    font-size: 0.95rem;
    font-style: italic;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.ref-author-inline {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0;
}

.ref-title-inline {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

/* ===== FOCUS-VISIBLE (a11y) ===== */
.btn-purple:focus-visible,
.btn-dark:focus-visible,
.btn-outline-dark:focus-visible,
.diff-mini-cta:focus-visible,
.pkg-cta:focus-visible,
.pkg-all-link:focus-visible,
.kc-phase-cta:focus-visible {
    outline: 2px solid #1a1a2e;
    outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-purple .btn-purple,
    .package-card,
    .kc-card,
    .card.h-100.border.shadow-sm,
    .sticky-cta {
        transition: none;
    }
    .kc-chevron-bg,
    .kc-chevron-label,
    .kc-chevron-phase-num,
    .kc-chevron-number {
        transition: none;
    }
}

/* ===== KILL CHAIN SECTION ===== */
.killchain-section {
    background-color: #fafafa;
    background-image: url("../img/background.webp");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 24px;
    position: relative;
    margin-left: 3%;
    margin-right: 3%;
}

.killchain-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    pointer-events: none;
    z-index: 0;
}

.killchain-section > * {
    position: relative;
    z-index: 1;
}

.kc-sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px 24px 0;
    margin: -100px -24px 0;
}

.killchain-section h2 {
    text-align: center;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.killchain-section .hr {
    border-color: rgba(0,0,0,0.1);
    margin-bottom: 0;
}

@media only screen and (max-device-width: 1366px) {
    .killchain-section {
        background-attachment: scroll;
    }
}

.kc-layout {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Left: Sticky SVG graphic */
.kc-graphic-column {
    flex: 0 0 320px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    display: flex;
    align-items: center;
}

.kc-svg-wrap {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 24px 16px;
    box-shadow: none;
}

.kc-svg-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

/* SVG chevron states */
.kc-chevron { transition: fill 0.4s ease, opacity 0.4s ease; }
.kc-chevron-bg { fill: rgba(255,255,255,0.7); transition: fill 0.4s ease; }
.kc-chevron-label { fill: rgba(0,0,0,0.45); font-size: 13px; font-weight: 700; font-family: 'Roboto Condensed', sans-serif; transition: fill 0.3s ease; }
.kc-chevron-phase-num { fill: rgba(0,0,0,0.3); font-size: 20px; font-weight: 700; font-family: 'Roboto Condensed', sans-serif; transition: fill 0.3s ease; }
.kc-chevron-number { fill: rgba(0,0,0,0.25); font-size: 11px; font-weight: 400; font-family: 'Roboto Condensed', sans-serif; transition: fill 0.3s ease; }

/* Hover state */
.kc-chevron-group:hover { cursor: pointer; }
.kc-chevron-group:hover .kc-chevron-bg { fill: rgba(123,45,142,0.08); }
.kc-chevron-group.active:hover .kc-chevron-bg { fill: url(#purpleGradient); }
.kc-chevron-group.completed:hover .kc-chevron-bg { fill: rgba(123,45,142,0.15); }

/* Active chevron */
.kc-chevron-group.active .kc-chevron-bg { fill: url(#purpleGradient); }
.kc-chevron-group.active .kc-chevron-label { fill: #fff; }
.kc-chevron-group.active .kc-chevron-phase-num { fill: rgba(255,255,255,0.95); }
.kc-chevron-group.active .kc-chevron-number { fill: rgba(255,255,255,0.85); }

/* Completed chevron */
.kc-chevron-group.completed .kc-chevron-bg { fill: rgba(123,45,142,0.12); }
.kc-chevron-group.completed .kc-chevron-label { fill: rgba(0,0,0,0.5); }
.kc-chevron-group.completed .kc-chevron-phase-num { fill: rgba(0,0,0,0.4); }
.kc-chevron-group.completed .kc-chevron-number { fill: rgba(0,0,0,0.3); }

/* Right: Scrolling content */
.kc-content-column {
    flex: 1;
    min-width: 0;
}

/* Phase panels */
.kc-phase {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0;
}

.kc-phase:last-child {
    padding-bottom: 24px;
}

.kc-phase-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.1);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.kc-phase-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.kc-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
}

/* Attack card */
.kc-card {
    flex: 1;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.kc-card-red {
    border-left: 4px solid #dc3545;
}

.kc-card-blue {
    border-left: 4px solid #0d6efd;
}

.kc-card-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.kc-card-red .kc-card-label { color: #dc3545; }
.kc-card-blue .kc-card-label { color: #0d6efd; }

.kc-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Mid-killchain CTA */
.kc-mid-cta {
    text-align: center;
    padding: 32px 0 48px;
}

/* Phase CTA */
.kc-phase-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a1a2e;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: gap 0.2s, color 0.2s;
}

.kc-phase-cta:hover {
    color: #000;
    gap: 12px;
    text-decoration: none;
}

.kc-phase-cta .arrow {
    transition: transform 0.2s;
}

.kc-phase-cta:hover .arrow {
    transform: translateX(4px);
}

/* ===== MOBILE PROGRESS BAR ===== */
.kc-mobile-progress {
    display: none;
    position: sticky;
    top: 56px;
    z-index: 100;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 12px 0;
    justify-content: center;
    gap: 12px;
}

.kc-progress-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(0,0,0,0.35);
    transition: all 0.3s ease;
    background: transparent;
}

.kc-progress-dot.active {
    border-color: #1a1a2e;
    background: #1a1a2e;
    color: #fff;
}

.kc-progress-dot.completed {
    border-color: rgba(26,26,46,0.4);
    background: rgba(26,26,46,0.15);
    color: #1a1a2e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-purple {
        padding: 100px 24px 60px;
    }

    .hero-purple h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .purple-intro {
        padding: 60px 16px;
    }

    .proof-strip {
        padding: 20px 7%;
    }

    .proof-strip-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .proof-certs {
        flex-direction: column;
        gap: 12px;
    }

    .diff-flows {
        flex-direction: column;
    }

    .diff-creds {
        flex-wrap: wrap;
        gap: 32px;
    }

    .package-section {
        padding: 60px 16px;
    }

    .purple-package-card {
        padding: 32px 24px;
    }

    .killchain-section {
        padding: 60px 16px;
    }

    .kc-sticky-header {
        margin: -60px -16px 0;
        padding: 16px 16px 0;
    }

    .kc-layout {
        flex-direction: column;
        gap: 0;
    }

    .kc-graphic-column {
        position: static;
        flex: none;
        display: none;
    }

    .kc-mobile-progress {
        display: flex;
    }

    .kc-phase {
        min-height: auto;
        padding: 40px 0;
    }

    .kc-phase:last-child {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero-purple {
        padding: 80px 16px 60px;
    }

    .hero-purple h1 {
        font-size: 2rem;
    }

    .hero-red-blue {
        font-size: 1rem;
    }

    .hero-purple p {
        font-size: 1rem;
    }

    .purple-intro {
        padding: 48px 16px;
    }

    .purple-intro p {
        font-size: 1rem;
    }

    .diff-flow-steps {
        flex-direction: column;
        align-items: flex-start;
    }

    .diff-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    .diff-creds {
        flex-direction: column;
        gap: 24px;
    }

    .pkg-flow-steps {
        flex-direction: column;
    }

    .pkg-flow-arrow {
        transform: rotate(90deg);
    }

    .pkg-meta {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .purple-package-card h3 {
        font-size: 1.4rem;
    }

    .pkg-price {
        font-size: 1.6rem;
    }

    .kc-cards {
        flex-direction: column;
    }

    .kc-phase-number {
        font-size: 3rem;
    }

    .kc-phase-title {
        font-size: 1.4rem;
    }

    .kc-card {
        padding: 18px;
    }

    .kc-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-purple h1 {
        font-size: 1.7rem;
    }

    .hero-purple .btn-purple {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .kc-progress-dot {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
}
