/* Homepage Code / Cloud / Defend product showcase */

.platform-section {
    background: #f7f9fc;
    padding: 56px 0 88px;
}

.platform-section .container {
    max-width: 1140px;
}

.platform-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0 0 18px 8px;
}

.platform-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #c5ced8;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.platform-tab:hover,
.platform-tab:focus {
    color: #7aa3e0;
    outline: none;
}

.platform-tab.is-active {
    color: #3b82f6;
}

.platform-tab-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.platform-card {
    position: relative;
    background: #fff;
    border: 1.5px solid #c9def8;
    border-radius: 20px;
    padding: 36px 36px 22px;
    box-shadow: 0 10px 36px rgba(59, 130, 246, 0.07);
}

.platform-card [x-cloak] {
    display: none !important;
}

.platform-panel {
    display: grid;
    grid-template-columns: minmax(230px, 0.36fr) minmax(0, 1fr);
    gap: 28px 36px;
    align-items: center;
    min-height: 300px;
}

.platform-copy {
    padding: 8px 4px 24px;
}

.platform-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #1e3a5f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.platform-brand-icon {
    display: inline-flex;
    color: #3b82f6;
}

.platform-brand-icon svg {
    width: 20px;
    height: 20px;
}

.platform-copy h2 {
    margin: 0 0 12px;
    color: #3b82f6;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.platform-lead {
    margin: 0 0 18px;
    max-width: 380px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.55;
}

.platform-services {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.platform-services li {
    margin: 0;
}

.platform-services a {
    display: block;
    padding: 12px 14px;
    background: var(--background-color-light, #edf6fd);
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.platform-services a:hover,
.platform-services a:focus {
    border-color: rgba(8, 145, 222, 0.4);
    box-shadow: 0 4px 14px rgba(30, 51, 111, 0.08);
    text-decoration: none;
}

.platform-services-title {
    display: block;
    margin-bottom: 4px;
    color: var(--important-color, #1e336f);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.platform-services-desc {
    display: block;
    color: var(--text-color-muted, #6c757d);
    font-size: 13px;
    line-height: 1.45;
}

.platform-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.platform-cta:hover,
.platform-cta:focus {
    color: #1d4ed8;
    text-decoration: none;
}

.platform-visual {
    min-width: 0;
}

.platform-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.platform-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d5e6f8;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.platform-dot:hover,
.platform-dot:focus {
    background: #93c5fd;
    outline: none;
}

.platform-dot.is-active {
    background: #2563eb;
    transform: scale(1.15);
}

.platform-agent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: 560px;
    margin: 28px auto 0;
}

.platform-agent-avatar {
    position: relative;
    flex-shrink: 0;
    width: 72px;
}

.platform-agent-avatar svg {
    display: block;
    width: 72px;
    height: 72px;
}

.platform-agent-tag {
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    padding: 2px 8px;
    background: #e11d48;
    color: #fff;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.platform-agent-copy {
    min-width: 0;
}

.platform-agent-title {
    margin: 0 0 4px;
    color: #111;
    font-size: 16px;
    font-weight: 700;
}

.platform-agent-copy p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Attack-path diagram */
.pf-diagram {
    position: relative;
    min-height: 280px;
    padding: 18px 16px 20px;
    background-color: #f3f8ff;
    background-image:
        linear-gradient(rgba(167, 201, 240, 0.38) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 201, 240, 0.38) 1px, transparent 1px);
    background-size: 22px 22px;
    border: 1px solid #c5dcf5;
    border-radius: 14px;
    overflow: hidden;
}

.pf-scanner {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.pf-scanner-art {
    width: 118px;
    height: 70px;
}

.pf-scanner-label {
    margin-left: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
}

.pf-flow {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    min-height: 242px;
    padding: 96px 6px 0;
}

.pf-diagram--plain .pf-flow {
    padding-top: 56px;
    min-height: 200px;
}

.pf-rail {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 58px;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa 0%, #818cf8 40%, #a78bfa 62%, #fb923c 100%);
    border-radius: 99px;
    pointer-events: none;
}

.pf-rail--code {
    background: linear-gradient(90deg, #60a5fa 0%, #818cf8 55%, #34d399 100%);
}

.pf-rail--defend {
    background: linear-gradient(90deg, #60a5fa 0%, #38bdf8 45%, #34d399 100%);
}

.pf-rail--cloud {
    background: linear-gradient(90deg, #60a5fa 0%, #818cf8 50%, #34d399 100%);
}

.pf-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.pf-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.pf-icon svg {
    width: 24px;
    height: 24px;
}

.pf-icon--blue { background: #3b82f6; }
.pf-icon--purple { background: #7c5cbf; box-shadow: 0 6px 16px rgba(124, 92, 191, 0.22); }
.pf-icon--orange { background: #f59e0b; box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22); }

.pf-name {
    margin: 10px 0 0;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pf-kind {
    margin: 2px 0 0;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
}

.pf-float {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, -12px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pf-float--row {
    flex-direction: column;
    gap: 4px;
    transform: translate(-50%, -14px);
}

.pf-float::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 12px;
    background: #bfdbfe;
}

.pf-float--row::after {
    height: 16px;
}

.pf-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 5px;
    color: #475569;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.pf-chip svg {
    width: 11px;
    height: 11px;
    color: #3b82f6;
}

.pf-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dbe7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.pf-mini svg {
    width: 16px;
    height: 16px;
}

.pf-warn {
    position: absolute;
    top: auto;
    bottom: 86px;
    right: calc(50% - 30px);
    z-index: 2;
    width: 18px;
    height: 18px;
    display: flex;
    pointer-events: none;
}

.pf-warn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 991px) {
    .platform-section {
        padding: 36px 0 64px;
    }

    .platform-card {
        padding: 24px 20px 18px;
    }

    .platform-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: 0;
    }

    .platform-copy {
        padding: 0;
    }

    .platform-copy h2 {
        font-size: 24px;
    }

    .platform-lead {
        max-width: none;
    }

    .platform-services {
        max-width: none;
    }

    .platform-visual {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pf-diagram {
        min-width: 580px;
        min-height: 240px;
    }

    .pf-diagram--plain {
        min-height: 220px;
    }
}

@media (max-width: 575px) {
    .platform-tabs {
        gap: 18px;
        margin-left: 0;
        overflow-x: auto;
    }

    .platform-copy h2 {
        font-size: 22px;
    }

    .platform-agent {
        align-items: flex-start;
        gap: 14px;
        margin-top: 22px;
    }

    .platform-agent-copy p {
        font-size: 13px;
    }
}
