﻿/* === PLATFORM PAGE STYLES === */

/* --- HERO SECTION --- */
.platform-hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    overflow: hidden;
    position: relative;
}

.platform-hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text-side {
    max-width: 600px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.badge-pill {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-logo-icon {
    height: 60px;
    vertical-align: bottom;
    margin-left: 10px;
}

.hero-desc {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-sub);
    margin-bottom: 40px;
}

.btn-group {
    display: flex;
    gap: 16px;
}



.hero-visual-side {
    position: relative;
}

.visual-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-img-main {
    width: 100%;
    display: block;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s;
}

/* --- CONNECTOR SECTION --- */
.section-white {
    background: var(--color-bg-white);
    padding: 100px 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

.text-sub-hero {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-sub);
    max-width: 800px;
    margin: 0 auto 24px auto;
}

.highlight-box {
    background: var(--color-bg-grey);
    padding: 16px 24px;
    border-radius: 12px;
    color: var(--color-primary);
    /* Fixed color to primary */
    display: inline-block;
    font-weight: 600;
    border: 1px solid var(--color-border);
}

.connector-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 60px;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.connector-node {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 24px;
    width: 280px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    z-index: 2;
    text-align: left;
}

.node-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.node-icon-wrapper {
    background: var(--color-bg-grey);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-sub);
}

.node-icon-wrapper svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    fill: none;
    stroke: currentColor;
}

.node-icon-wrapper.blue {
    background: #EFF6FF;
    color: var(--color-primary);
}

.node-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text-main);
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.int-logo {
    background: var(--color-bg-grey);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-sub);
    border: 1px solid var(--color-border);
}

.data-pipe {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    position: relative;
    z-index: 1;
}

.data-packet {
    position: absolute;
    top: -3px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    animation: pipeFlow 2s infinite linear;
}

@keyframes pipeFlow {
    0% {
        left: 0;
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.connector-core {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.core-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.5;
    }

    100% {
        width: 140%;
        height: 140%;
        opacity: 0;
    }
}

.core-label {
    font-weight: 800;
    font-size: 13px;
    margin-top: 8px;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
}

.node-desc {
    font-size: 13px;
    color: var(--color-text-sub);
    margin: 0;
    line-height: 1.5;
}

/* --- SERVICES SECTION --- */
.section-services {
    padding: 100px 20px;
    background: var(--color-bg-grey);
}

.platform-split-section {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature-item {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    color: var(--color-primary);
    background: #EFF6FF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-label {
    font-weight: 600;
    color: var(--color-text-main);
}

.map-preview-box {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* Center the image */
}

.map-img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* --- AI ANALYTICS --- */
.section-products {
    padding: 100px 20px;
    background: var(--color-bg-white);
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Default 3 columns */
    gap: 30px;
    margin-bottom: 60px;
    margin-top: 60px;
}

.support-card {
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    background: white;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.support-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: auto;
    margin-bottom: 24px;
    text-align: center;
}

.card-image img {
    width: 128px;
    display: block;
    margin: 0 auto;
    /* Centered in card image area */
}

/* Specific styling for left-aligned cards if needed, but grid usually centered logic */
.support-card.left-align .card-image img {
    margin: 0;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-text-main);
    font-weight: 700;
}

.card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-sub);
}

.pill-module {
    display: inline-block;
    background: var(--color-bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--color-text-sub);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 60px;
}

/* --- INCIDENTS SECTION --- */
.section-support {
    padding: 100px 20px;
    background: var(--color-bg-grey);
}

.incident-container {
    max-width: 800px;
    margin: 0 auto;
}

.incident-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.incident-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.incident-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-bg-light);
}

.incident-row:last-child {
    border-bottom: none;
}

.incident-row-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.incident-icon {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.incident-icon.red {
    background: #FEE2E2;
    color: #EF4444;
}

.incident-icon.orange {
    background: #FFF7ED;
    color: #D97706;
}

.incident-icon.green {
    background: #F0FDF4;
    color: #15803D;
}

.incident-info {
    margin-left: 20px;
}

.incident-title {
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 16px;
}

.incident-meta {
    font-size: 14px;
    color: var(--color-text-sub);
    margin-top: 4px;
}

.incident-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.incident-status.new {
    background: #FEF2F2;
    color: #EF4444;
}

.incident-status.work {
    background: #FFF7ED;
    color: #D97706;
}

.incident-status.closed {
    background: #F0FDF4;
    color: #15803D;
}

/* --- REPORTING SECTION --- */
.section-reporting {
    padding: 120px 20px;
    background: var(--color-bg-white);
}

.reporting-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.report-img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* --- FLEET SECTION --- */
.section-fleet {
    padding: 120px 20px;
    background: var(--color-bg-grey);
}

.mobile-table-wrapper {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    text-align: left;
    overflow-x: auto;
}

.fleet-table {
    width: 100%;
    border-collapse: collapse;
}

.fleet-th {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-sub);
    font-size: 14px;
}

.fleet-td {
    padding: 16px;
    border-bottom: 1px solid var(--color-bg-light);
    font-weight: 600;
    color: var(--color-text-main);
}

.status-online {
    color: #10B981;
}

.status-warn {
    color: #F59E0B;
}

/* --- INTEGRATIONS SECTION --- */
.section-integrations {
    padding: 120px 20px;
    background: var(--color-bg-white);
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.integration-card {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    background: var(--color-bg-white);
    position: relative;
    overflow: hidden;
}

.integration-card.grey {
    background: var(--color-bg-grey);
}

.integration-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.integration-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-icon.blue {
    background: #E0F2FE;
    color: #0284C7;
}

.integration-icon.green {
    background: #F0FDF4;
    color: #16A34A;
}

.integration-icon.purple {
    background: #F5F3FF;
    color: #7C3AED;
}

.code-snippet-dark {
    background: var(--color-bg-dark);
    padding: 16px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-border);
}

.widget-demo {
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.widget-pill {
    background: white;
    padding: 8px 16px;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #DCFCE7;
}

/* --- DEPLOY SECTION --- */
.section-deploy {
    padding: 120px 20px;
    background: var(--color-bg-grey);

}

.support-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;

    div {
        max-width: 400px;
    }
}


.deploy-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.deploy-card-active {
    border: 2px solid var(--color-primary);
    background: #EFF6FF;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .platform-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text-side {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-badges,
    .btn-group {
        justify-content: center;
    }

    .platform-split-section {
        grid-template-columns: 1fr;
    }

    .reporting-container {
        flex-direction: column;
    }

    .connector-stage {
        flex-direction: column;
        gap: 30px;
    }

    .data-pipe {
        width: 4px;
        min-height: 40px;
        flex: 0;
    }

    .data-packet {
        top: 0;
        left: -3px;
        animation: pipeFlowVertical 2s infinite linear;
    }
}

@keyframes pipeFlowVertical {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@media (max-width: 768px) {

    .platform-hero-section,
    .section-white,
    .section-services,
    .section-products,
    .section-support,
    .section-reporting,
    .section-fleet,
    .section-integrations,
    .section-deploy {
        padding: 60px 20px;
    }

    .platform-hero-section {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .btn-primary {
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
    }

    /* Force Vertical Stack for AI on Mobile < 768px */
    .ai-grid {
        grid-template-columns: 1fr;
    }

    /* Force 2 columns for Deployment on Mobile */
    .section-deploy .support-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {

    /* If screen is very small, stack deployment options too */
    .section-deploy .support-grid {
        grid-template-columns: 1fr;
    }
}

/* --- UTILITIES & HELPERS --- */
.text-left {
    text-align: left;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

/* --- CONNECTOR SPECIFIC --- */
.core-logo-icon {
    width: 40px;
    opacity: 0.9;
}

.data-packet.delayed {
    animation-delay: 0.5s;
}

/* --- INCIDENTS SPECIFIC --- */
.section-subtitle-centered {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* --- AI SECTION SPECIFIC --- */
.btn-ai-discuss {
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    padding: 16px 32px;
    border-radius: 50px;
}

/* --- INTEGRATION PORTAL VISUAL --- */
.portal-preview-box {
    background: var(--color-bg-grey);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    height: 80px;
    position: relative;
}

.portal-header {
    height: 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0 8px;
}

.portal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-text-light);
}

.portal-bar {
    position: absolute;
    left: 20%;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
}

.portal-bar.primary {
    top: 35%;
    width: 60%;
}

.portal-bar.secondary {
    top: 55%;
    width: 40%;
}