/* ============================================================================
   Compromise Assessment & DFIR — page-scoped styles.
   Everything is namespaced under .cadfir so it cannot collide with the shared
   site chrome (header / footer / .btn) defined in /style.css.
   ========================================================================== */

.cadfir {
    /* palette (defensive blue/cyan) — scoped to the wrapper so the tokens
     never clash with the site-wide --color-* variables */
    --bg: #FAFBFE;
    --bg-tint: #EEF3FB;
    --bg-cool: #F1F8FF;
    --surface: #FFFFFF;
    --surface-2: #F4F7FD;
    --line: #E3E9F5;
    --line-soft: #EDF1F9;
    --ink: #0F1430;
    --ink-2: #3C436A;
    --muted: #6B7396;
    --muted-2: #9AA1C0;
    --blue: #2563EB;
    --blue-deep: #1D4ED8;
    --blue-soft: #E7EEFF;
    --cyan: #0EA5E9;
    --cyan-soft: #E0F2FE;
    --indigo: #4F46E5;
    --teal: #06B6D4;
    --amber: #F59E0B;
    --amber-tint: #FEF3E2;
    --verified: #0EA371;
    --verified-tint: #E1F6EF;
    --gap: #E11D48;
    --gap-soft: #FDE7EC;
    --display: 'Inter Tight', sans-serif;
    --body: 'Inter', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --maxw: 1180px;
    --r: 18px;
    --shadow: 0 1px 2px rgba(15, 20, 48, .04), 0 10px 30px -14px rgba(15, 20, 48, .14);
    --shadow-lg: 0 2px 4px rgba(15, 20, 48, .05), 0 30px 64px -28px rgba(15, 20, 48, .3);
    --shadow-blue: 0 18px 44px -20px rgba(37, 99, 235, .45);
    position: relative;
    overflow: hidden;
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--body);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}

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

.cadfir a {
    color: inherit;
    text-decoration: none
}

.cadfir ::selection {
    background: var(--blue);
    color: #fff
}

.cadfir .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 26px
}

.cadfir h1,
.cadfir h2,
.cadfir h3,
.cadfir h4,
.cadfir h5 {
    font-family: var(--display);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.025em
}

.cadfir .mono {
    font-family: var(--mono)
}


/* atmosphere (contained within the page wrapper, not fixed to viewport) */

.cadfir .atmo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden
}

.cadfir .atmo .glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: .5
}

.cadfir .atmo .g1 {
    width: 560px;
    height: 560px;
    top: -240px;
    left: 54%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(37, 99, 235, .14), transparent 70%)
}

.cadfir .atmo .g2 {
    width: 440px;
    height: 440px;
    top: 1100px;
    left: -170px;
    background: radial-gradient(circle, rgba(14, 165, 233, .12), transparent 70%)
}

.cadfir .atmo .g3 {
    position: absolute;
    width: 480px;
    height: 480px;
    bottom: -200px;
    right: -150px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: .45;
    background: radial-gradient(circle, rgba(14, 163, 113, .12), transparent 70%)
}

.cadfir .atmo .grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(37, 99, 235, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .035) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(ellipse 75% 45% at 50% 0%, #000, transparent 72%);
    mask-image: radial-gradient(ellipse 75% 45% at 50% 0%, #000, transparent 72%)
}


/* buttons (page-local, blue/cyan) */

.cadfir .btn {
    font-family: var(--body);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    border-radius: 11px;
    padding: 11px 18px;
    border: 1px solid transparent;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}

.cadfir .btn-ghost {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink)
}

.cadfir .btn-ghost:hover {
    border-color: var(--muted-2);
    box-shadow: var(--shadow)
}

.cadfir .btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff
}

.cadfir .btn-primary:hover {
    box-shadow: 0 12px 28px -10px rgba(37, 99, 235, .6);
    transform: translateY(-1px)
}

.cadfir .btn-lg {
    padding: 14px 24px;
    font-size: .97rem
}


/* hero */

.cadfir .hero {
    position: relative;
    z-index: 1;
    padding: 76px 0 60px
}

.cadfir .pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: .73rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 8px 15px;
    border-radius: 100px;
    margin-bottom: 24px;
    box-shadow: var(--shadow)
}

.cadfir .pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--verified);
    box-shadow: 0 0 0 4px var(--verified-tint);
    animation: cadfir-pulse 2s infinite
}

@keyframes cadfir-pulse {
    0%,
    100% {
        opacity: 1
    }
    50% {
        opacity: .4
    }
}

.cadfir .hero-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 46px;
    align-items: center
}

.cadfir .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.05rem);
    font-weight: 700;
    max-width: 15ch;
    margin-bottom: 20px;
    letter-spacing: -.035em
}

.cadfir .hero h1 .grad {
    background: linear-gradient(120deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

.cadfir .hero-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--ink-2);
    max-width: 52ch;
    margin-bottom: 30px
}

.cadfir .hero-actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-bottom: 30px
}


/* console (dark focal element) */

.cadfir .console {
    border: 1px solid #1c2348;
    border-radius: var(--r);
    background: #0B1030;
    overflow: hidden;
    box-shadow: var(--shadow-lg)
}

.cadfir .console-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 17px;
    border-bottom: 1px solid #1c2348;
    background: #10153a
}

.cadfir .console-bar .lights {
    display: flex;
    gap: 7px
}

.cadfir .console-bar .lights span {
    width: 11px;
    height: 11px;
    border-radius: 50%
}

.cadfir .l1 {
    background: #FF5F57
}

.cadfir .l2 {
    background: #FEBC2E
}

.cadfir .l3 {
    background: #28C840
}

.cadfir .console-title {
    font-family: var(--mono);
    font-size: .76rem;
    color: #8a93c2;
    margin-left: 7px
}

.cadfir .console-live {
    margin-left: auto;
    font-family: var(--mono);
    font-size: .71rem;
    color: #3ee3ad;
    display: flex;
    align-items: center;
    gap: 7px
}

.cadfir .console-live .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3ee3ad;
    box-shadow: 0 0 7px #3ee3ad;
    animation: cadfir-pulse 1.6s infinite
}

.cadfir .console-body {
    padding: 16px 18px;
    font-family: var(--mono);
    font-size: .82rem;
    min-height: 296px
}

.cadfir .log-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #1a2046;
    opacity: 0;
    transform: translateY(6px);
    animation: cadfir-logIn .45s forwards
}

@keyframes cadfir-logIn {
    to {
        opacity: 1;
        transform: none
    }
}

.cadfir .log-line:last-child {
    border-bottom: none
}

.cadfir .log-ts {
    color: #5b6499;
    font-size: .72rem;
    min-width: 62px
}

.cadfir .log-tech {
    color: #e7eaff;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .78rem
}

.cadfir .log-tech .id {
    color: #54a8ff
}

.cadfir .log-arrow {
    color: #5b6499
}

.cadfir .log-phase {
    font-weight: 600;
    min-width: 100px;
    text-align: right;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    font-size: .74rem
}

.cadfir .p-detect {
    color: #54a8ff
}

.cadfir .p-hunt {
    color: #22d3ee
}

.cadfir .p-triage {
    color: #ffce5c
}

.cadfir .p-resp {
    color: #2fe3ad
}

.cadfir .p-ok {
    color: #2fe3ad
}

.cadfir .log-phase .sq {
    width: 8px;
    height: 8px;
    border-radius: 2px
}

.cadfir .p-detect .sq {
    background: #54a8ff
}

.cadfir .p-hunt .sq {
    background: #22d3ee
}

.cadfir .p-triage .sq {
    background: #ffce5c
}

.cadfir .p-resp .sq {
    background: #2fe3ad
}

.cadfir .p-ok .sq {
    background: #2fe3ad
}


/* section base */

.cadfir section {
    position: relative;
    z-index: 1
}

.cadfir .sec {
    padding: 90px 0
}

.cadfir .sec-head {
    max-width: 62ch;
    margin-bottom: 48px
}

.cadfir .sec-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center
}

.cadfir .sec-eyebrow {
    font-family: var(--mono);
    font-size: 20px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600
}

.cadfir .sec-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px
}

.cadfir .sec-head.center .sec-eyebrow {
    justify-content: center
}

.cadfir .sec-head.center .sec-eyebrow::after {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px
}

.cadfir .sec h2 {
    font-size: clamp(1.95rem, 3.4vw, 2.7rem);
    margin-bottom: 14px;
    font-weight: 700
}

.cadfir .sec-head p {
    color: var(--muted);
    font-size: 1.08rem
}


/* what-is / split sections */

.cadfir .whatis {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.cadfir .whatis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: center
}

.cadfir .whatis h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 18px;
    font-weight: 700
}

.cadfir .whatis .lead {
    color: var(--ink-2);
    font-size: 1.08rem;
    margin-bottom: 20px
}

.cadfir .whatis .lead b {
    color: var(--ink);
    font-weight: 600
}

.cadfir .vs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.cadfir .vs-card {
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 24px;
    background: var(--bg)
}

.cadfir .vs-card.is {
    background: var(--blue-soft);
    border-color: rgba(37, 99, 235, .25)
}

.cadfir .vs-card h5 {
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px
}

.cadfir .vs-card.isnot h5 {
    color: var(--muted)
}

.cadfir .vs-card.is h5 {
    color: var(--blue)
}

.cadfir .vs-card ul {
    list-style: none;
    display: grid;
    gap: 10px
}

.cadfir .vs-card li {
    font-size: .89rem;
    color: var(--ink-2);
    display: flex;
    gap: 9px;
    align-items: flex-start
}

.cadfir .vs-card.isnot li::before {
    content: "\2715";
    color: var(--muted-2);
    font-size: .78rem;
    margin-top: 2px;
    font-weight: 700
}

.cadfir .vs-card.is li::before {
    content: "\2713";
    color: var(--verified);
    font-size: .8rem;
    margin-top: 2px;
    font-weight: 700
}


/* service / hunt cards */

.cadfir .svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.cadfir .svc-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 26px;
    transition: .25s;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

.cadfir .svc-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--blue), var(--cyan));
    opacity: 0;
    transition: .25s
}

.cadfir .svc-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue)
}

.cadfir .svc-card:hover::after {
    opacity: 1
}

.cadfir .svc-card .sc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px
}

.cadfir .svc-card .sc-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--blue-soft);
    border: 1px solid rgba(37, 99, 235, .18);
    display: grid;
    place-items: center;
    color: var(--blue)
}

.cadfir .svc-card .sc-ico svg {
    width: 22px;
    height: 22px
}

.cadfir .svc-card .sc-tag {
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 4px 9px;
    border-radius: 100px
}

.cadfir .svc-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600
}

.cadfir .svc-card p {
    color: var(--muted);
    font-size: .89rem;
    margin-bottom: 14px
}

.cadfir .svc-card ul {
    list-style: none;
    display: grid;
    gap: 7px
}

.cadfir .svc-card li {
    font-size: .8rem;
    color: var(--ink-2);
    font-family: var(--mono);
    display: flex;
    gap: 8px;
    align-items: flex-start
}

.cadfir .svc-card li::before {
    content: "\25B8";
    color: var(--blue);
    margin-top: 1px
}


/* roadmap stepper */

.cadfir .roadmap {
    display: flex;
    gap: 0;
    position: relative
}

.cadfir .rm-step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 12px
}

.cadfir .rm-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 23px;
    left: calc(50% + 32px);
    right: calc(-50% + 32px);
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue));
    background-size: 220% 100%;
    animation: cadfir-flow 3s linear infinite;
    z-index: 0
}

.cadfir .rm-node {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .55);
    margin-bottom: 16px;
    transition: .25s
}

.cadfir .rm-step:hover .rm-node {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -8px rgba(37, 99, 235, .75)
}

.cadfir .rm-stage {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .08em;
    color: var(--muted-2);
    margin-bottom: 6px
}

.cadfir .rm-step h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600
}

.cadfir .rm-step p {
    font-size: .83rem;
    color: var(--muted)
}

@keyframes cadfir-flow {
    to {
        background-position: -220% 0
    }
}


/* reporting / deliverables */

.cadfir .report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.cadfir .rcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 28px;
    transition: .25s;
    box-shadow: var(--shadow)
}

.cadfir .rcard:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue)
}

.cadfir .rcard .ri {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--verified-tint);
    border: 1px solid rgba(14, 163, 113, .2);
    display: grid;
    place-items: center;
    color: var(--verified);
    margin-bottom: 16px
}

.cadfir .rcard .ri svg {
    width: 22px;
    height: 22px
}

.cadfir .rcard h4 {
    font-size: 1.08rem;
    margin-bottom: 10px;
    font-weight: 600
}

.cadfir .rcard p {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 14px
}

.cadfir .rcard ul {
    list-style: none;
    display: grid;
    gap: 8px
}

.cadfir .rcard li {
    font-size: .82rem;
    color: var(--ink-2);
    font-family: var(--mono);
    display: flex;
    gap: 9px;
    align-items: flex-start
}

.cadfir .rcard li::before {
    content: "\25B8";
    color: var(--verified);
    margin-top: 1px
}

.cadfir .outcomes {
    background: var(--bg-tint);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}


/* CTA */

.cadfir .cta-box {
    background: #000d56;
    border-radius: 26px;
    padding: 62px 46px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0, 13, 86, .5)
}

.cadfir .cta-box::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 62%);
    pointer-events: none
}

.cadfir .cta-box h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    margin-bottom: 16px;
    position: relative;
    color: #fff;
    font-weight: 700
}

.cadfir .cta-box p {
    color: rgba(255, 255, 255, .94);
    font-size: 1.08rem;
    max-width: 54ch;
    margin: 0 auto 30px;
    position: relative
}

.cadfir .cta-actions {
    display: flex;
    gap: 13px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative
}

.cadfir .cta-box .btn-primary {
    background: #fff;
    color: var(--blue-deep)
}

.cadfir .cta-box .btn-primary:hover {
    background: #fff;
    box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .4)
}

.cadfir .cta-box .btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff
}

.cadfir .cta-box .btn-ghost:hover {
    background: rgba(255, 255, 255, .16);
    border-color: #fff
}


/* scroll reveal */

.cadfir .reveal {
    opacity: 1;
    transform: none
}

.js-reveal .cadfir .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1)
}

.js-reveal .cadfir .reveal.in {
    opacity: 1;
    transform: none
}

@media(max-width:980px) {
    .cadfir .hero-layout,
    .cadfir .whatis-grid {
        grid-template-columns: 1fr;
        gap: 34px
    }
    .cadfir .svc-grid {
        grid-template-columns: repeat(2, 1fr)
    }
    .cadfir .report-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:640px) {
    .cadfir .wrap {
        padding: 0 18px
    }
    .cadfir .hero {
        padding: 48px 0 44px
    }
    .cadfir .sec {
        padding: 58px 0
    }
    .cadfir .svc-grid,
    .cadfir .report-grid,
    .cadfir .vs-row {
        grid-template-columns: 1fr
    }
    .cadfir .roadmap {
        flex-direction: column;
        gap: 0
    }
    .cadfir .rm-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 16px;
        padding: 0 0 24px 0
    }
    .cadfir .rm-step:not(:last-child)::after {
        top: 50px;
        bottom: -2px;
        left: 23px;
        right: auto;
        width: 3px;
        height: auto;
        background: linear-gradient(180deg, var(--blue), var(--cyan))
    }
    .cadfir .rm-node {
        margin-bottom: 0;
        flex: 0 0 auto
    }
    .cadfir .console-body {
        font-size: .74rem
    }
    .cadfir .log-ts {
        display: none
    }
    .cadfir .cta-box {
        padding: 42px 24px
    }
}

@media(prefers-reduced-motion:reduce) {
    .cadfir * {
        animation: none!important;
        transition: none!important
    }
    .cadfir .reveal,
    .js-reveal .cadfir .reveal {
        opacity: 1!important;
        transform: none!important
    }
}