/* ==========================================================================
   XSECURE — XDR PAGE SECTIONS (services/xdr.html)
   Shared tokens, icons, badges, tab cards and feature cards: product.css
   --------------------------------------------------------------------------
   1. Key capabilities
   2. XDR transformation
   3. How XDR stops a threat
   4. Better than EDR
   5. Why XDR by Moratel
   6. Responsive
   ========================================================================== */

.page-xdr {
    --banner-image: url('../assets/svg/xdr-features-bg.webp');
}

/* 1. KEY CAPABILITIES ================================================== */
.capabilities {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 60px;
}

.capabilities__intro {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.capabilities__intro img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--p-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.capabilities__intro p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.capabilities__intro strong {
    color: #ffffff;
    font-weight: 600;
}

.capabilities__list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    list-style: none;
}

/* 2. XDR TRANSFORMATION ================================================ */
.evolution {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--p-gap);
    padding: 48px 32px;
    list-style: none;
}

/* Dashed connector through the badges */
.evolution::before {
    content: '';
    position: absolute;
    top: calc(48px + 58px);
    left: 12.5%;
    right: 12.5%;
    border-top: 3px dashed rgba(140, 160, 255, 0.55);
}

.evolution__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.evolution__year {
    padding: 4px 14px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-accent);
    border: 1px solid rgba(0, 217, 232, 0.3);
    border-radius: 999px;
}

.evolution__step h3 {
    max-width: 220px;
    font-size: 1.02rem;
    line-height: 1.45;
}

.evolution__step--now h3 {
    color: var(--color-accent);
}

.evolution__step--now .evolution__year {
    color: var(--color-bg);
    background: var(--color-accent);
}

/* 3. HOW XDR STOPS A THREAT ============================================ */
.threat-flow {
    display: grid;
    grid-template-columns: 0.9fr auto 1.5fr auto 1fr;
    align-items: center;
    gap: 22px;
    padding: 48px 40px;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.flow-node h3 {
    font-size: 1.05rem;
}

.threat-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 260px;
    list-style: none;
}

.threat-tags li {
    padding: 5px 12px;
    font-size: 0.82rem;
    color: #ffd9d9;
    border: 1px solid rgba(224, 38, 47, 0.55);
    border-radius: 999px;
    background: rgba(224, 38, 47, 0.1);
}

/* Agent endpoint box (blue frame with notched corner, as on slide 4) */
.endpoint-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 24px;
    border: 2px solid rgba(43, 70, 255, 0.7);
    border-radius: 18px 4px 18px 18px;
    background: var(--p-blue-soft);
}

.endpoint-box__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.endpoint-box__head h3 {
    font-size: 1.05rem;
}

.response-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.response-steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px 10px 10px;
    font-size: 0.95rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
}

.response-steps .step-no {
    font-family: var(--font-heading);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
}

/* Animated chevron arrows (">>>>" on slide 4) */
.chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.chevrons i {
    display: block;
    width: 64px;
    height: 14px;
    background: linear-gradient(45deg, transparent 40%, var(--p-red) 40% 55%, transparent 55%) 0 0 / 12px 7px repeat-x,
                linear-gradient(135deg, transparent 40%, var(--p-red) 40% 55%, transparent 55%) 0 7px / 12px 7px repeat-x;
    animation: chevron-run 0.9s linear infinite;
}

@keyframes chevron-run {
    to { background-position: 12px 0, 12px 7px; }
}

.soc-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.soc-stack ul {
    list-style: none;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* 4. BETTER THAN EDR =================================================== */
.compare {
    overflow: hidden;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.compare-table th,
.compare-table td {
    padding: 20px 26px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-table tbody tr:last-child > * {
    border-bottom: none;
}

.compare-table tbody tr {
    transition: background var(--transition);
}

.compare-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.compare-table thead th {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    background: rgba(0, 0, 0, 0.3);
}

.compare-table thead .is-xdr {
    color: #ffffff;
    background: linear-gradient(160deg, var(--p-blue), var(--p-blue-deep));
}

.compare-table tbody th {
    width: 26%;
}

.compare-aspect {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.compare-aspect .tile {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.compare-aspect .tile .ico {
    width: 22px;
    height: 22px;
}

.compare-table td {
    font-weight: 300;
    color: var(--color-text-muted);
}

.compare-table td .ico {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: -3px;
    stroke-width: 5;
    color: var(--p-red);
}

.compare-table td.is-xdr {
    color: #ffffff;
    font-weight: 400;
    background: var(--p-blue-soft);
}

.compare-table td.is-xdr .ico {
    color: var(--color-accent);
}

/* 5. WHY XDR BY MORATEL ================================================ */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--p-gap);
    list-style: none;
}

.pillars .tab-card {
    min-height: 120px;
}

.pillars .tab-card h3 {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
}

.soc-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 32px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--p-blue), var(--p-blue-deep));
    box-shadow: 0 18px 40px rgba(43, 70, 255, 0.3);
}

.soc-banner .ico {
    width: 34px;
    height: 34px;
    color: var(--color-accent);
}

.soc-banner strong {
    color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
    .chevrons i { animation: none; }
}

/* 6. RESPONSIVE ========================================================== */
@media (max-width: 1200px) {
    .capabilities { grid-template-columns: 1fr; }
    .capabilities__intro { flex-direction: row; align-items: center; }
    .capabilities__intro img { width: 45%; }

    .threat-flow { grid-template-columns: 1fr auto 1.5fr; row-gap: 40px; }
    .chevrons--meta { display: none; }
    .soc-stack { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 60px; }
}

@media (max-width: 1024px) {
    .evolution { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
    .evolution::before { display: none; }

    .threat-flow { grid-template-columns: 1fr; justify-items: center; }
    .endpoint-box { width: 100%; max-width: 440px; }
    .chevrons i { transform: rotate(90deg); margin: 22px 0; }
    .chevrons--meta { display: flex; }

    .pillars { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    .capabilities__intro { flex-direction: column; }
    .capabilities__intro img { width: 100%; }

    .evolution { grid-template-columns: 1fr; padding: 36px 20px; }

    .compare-table th,
    .compare-table td { padding: 14px 12px; font-size: 0.88rem; }
    .compare-aspect .tile { display: none; }
    .compare-table td .ico { display: none; }
    .compare-table thead th { font-size: 1rem; }
}

@media (max-width: 576px) {
    .threat-flow { padding: 32px 18px; }
    .soc-stack { flex-direction: column; gap: 28px; }

    .soc-banner { flex-direction: column; gap: 10px; font-size: 1.1rem; padding: 20px; }
}
