﻿/* ============================================================
   IOT LYNK - PLATEFORME CLOUD
   ============================================================ */


/* ============================================================
   HERO
   ============================================================ */

.platform-page-hero {
    position: relative;
    padding: 95px 0 100px;
    overflow: hidden;
    background: radial-gradient( circle at 80% 38%, rgba(49,130,246,.12), transparent 34% ), radial-gradient( circle at 10% 85%, rgba(20,184,178,.09), transparent 27% ), #ffffff;
}


.platform-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 30px;
    color: #708396;
    font-size: 11px;
    font-weight: 600;
}

    .platform-back-link:hover {
        color: var(--blue);
    }


.platform-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #087f8c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.35px;
}


    .platform-eyebrow > span {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        color: var(--teal);
        background: #edfafa;
    }


.platform-page-hero h1 {
    margin: 0 0 26px;
    color: var(--navy);
    font-size: clamp(48px,5vw,72px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -3.3px;
}


    .platform-page-hero h1 strong {
        display: block;
        color: var(--teal);
        font-weight: 800;
    }


.platform-hero-description {
    max-width: 600px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}


.platform-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


.platform-mini-features {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 29px;
    color: #718598;
    font-size: 9px;
}


    .platform-mini-features i {
        margin-right: 5px;
        color: var(--teal);
    }


/* ============================================================
   HERO DASHBOARD
   ============================================================ */

.platform-dashboard-hero {
    position: relative;
    min-height: 510px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.dashboard-window {
    width: 100%;
    overflow: hidden;
    border: 1px solid #dfe8f1;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 30px 65px rgba(18,54,87,.15);
}


.dashboard-topbar {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid #e6edf4;
}


.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--navy);
    font-size: 11px;
}


    .dashboard-brand i {
        color: var(--teal);
    }


.dashboard-user {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #7790a5;
    font-size: 9px;
}


.dashboard-body {
    min-height: 390px;
    display: flex;
}


.dashboard-sidebar {
    flex: 0 0 57px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 8px;
    background: #113758;
}


    .dashboard-sidebar span {
        width: 37px;
        height: 37px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        color: #8ea7bc;
    }


        .dashboard-sidebar span.active {
            color: #ffffff;
            background: #256dd4;
        }


.dashboard-content {
    flex: 1;
    padding: 25px;
    background: #f8fafc;
}


.dashboard-content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 17px;
}


    .dashboard-content-header h3 {
        margin: 0;
        color: var(--navy);
        font-size: 15px;
        font-weight: 700;
    }


    .dashboard-content-header small {
        color: #8a9baa;
        font-size: 8px;
    }


.system-online {
    color: #22a447;
    font-size: 8px;
    font-weight: 600;
}


.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}


    .dashboard-kpis > div {
        position: relative;
        min-height: 76px;
        padding: 13px;
        border: 1px solid #e3eaf1;
        border-radius: 11px;
        background: #ffffff;
    }


    .dashboard-kpis small,
    .dashboard-kpis strong {
        display: block;
    }


    .dashboard-kpis small {
        color: #8496a8;
        font-size: 7px;
    }


    .dashboard-kpis strong {
        margin-top: 6px;
        color: var(--navy);
        font-size: 19px;
    }


        .dashboard-kpis strong.success {
            color: #16a34a;
        }


        .dashboard-kpis strong.danger {
            color: #dc2626;
        }


    .dashboard-kpis i {
        position: absolute;
        right: 13px;
        bottom: 13px;
        color: #8ea4b8;
    }


.dashboard-chart {
    margin-top: 12px;
    padding: 17px;
    border: 1px solid #e3eaf1;
    border-radius: 12px;
    background: #ffffff;
}


.chart-header {
    display: flex;
    justify-content: space-between;
}


    .chart-header strong,
    .chart-header small {
        display: block;
    }


    .chart-header strong {
        color: var(--navy);
        font-size: 9px;
    }


    .chart-header small {
        color: #8799aa;
        font-size: 7px;
    }


.platform-chart-svg {
    width: 100%;
    height: 145px;
    margin-top: 10px;
}


.platform-chart-area {
    fill: url(#platformGradient);
}


.platform-chart-line {
    fill: none;
    stroke: #3182f6;
    stroke-width: 4;
    stroke-linecap: round;
}


.platform-floating-status {
    position: absolute;
    right: -18px;
    bottom: 19px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 155px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 15px 35px rgba(18,54,87,.14);
}


    .platform-floating-status > span {
        width: 35px;
        height: 35px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        color: var(--teal);
        background: #edfafa;
    }


    .platform-floating-status small,
    .platform-floating-status strong {
        display: block;
    }


    .platform-floating-status small {
        color: #8799aa;
        font-size: 7px;
    }


    .platform-floating-status strong {
        color: var(--navy);
        font-size: 10px;
    }


/* ============================================================
   STAT STRIP
   ============================================================ */

.platform-stat-strip {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}


.platform-stat-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}


    .platform-stat-grid > div {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 5px 28px;
        border-right: 1px solid var(--border);
    }


        .platform-stat-grid > div:last-child {
            border-right: 0;
        }


    .platform-stat-grid span {
        flex: 0 0 43px;
        width: 43px;
        height: 43px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: var(--teal);
        background: #edfafa;
    }


    .platform-stat-grid strong,
    .platform-stat-grid small {
        display: block;
    }


    .platform-stat-grid strong {
        color: var(--navy);
        font-size: 11px;
    }


    .platform-stat-grid small {
        color: #7e91a3;
        font-size: 8px;
    }


/* ============================================================
   GENERAL
   ============================================================ */

.platform-section-label {
    margin-bottom: 12px;
    color: var(--teal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.35px;
    text-transform: uppercase;
}


.platform-section-title,
.platform-section-heading h2 {
    margin: 0 0 22px;
    color: var(--navy);
    font-size: clamp(38px,4vw,55px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -2px;
}


    .platform-section-title strong,
    .platform-section-heading h2 strong {
        font-weight: 800;
    }


.platform-section-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}


.platform-section-heading {
    max-width: 800px;
    margin: 0 auto 55px;
    text-align: center;
}


    .platform-section-heading p {
        max-width: 690px;
        margin: auto;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.8;
    }


/* ============================================================
   OVERVIEW
   ============================================================ */

.platform-overview {
    padding: 115px 0;
    background: #f5f8fc;
}


.platform-feature-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}


    .platform-feature-grid article {
        min-height: 210px;
        padding: 25px;
        border: 1px solid var(--border);
        border-radius: 17px;
        background: #ffffff;
        transition: .25s ease;
    }


        .platform-feature-grid article:hover {
            transform: translateY(-5px);
            box-shadow: 0 18px 40px rgba(18,54,87,.09);
        }


        .platform-feature-grid article > span {
            width: 46px;
            height: 46px;
            display: grid;
            place-items: center;
            margin-bottom: 20px;
            border-radius: 12px;
            color: var(--teal);
            background: #edfafa;
            font-size: 18px;
        }


    .platform-feature-grid h3 {
        color: var(--navy);
        font-size: 14px;
    }


    .platform-feature-grid p {
        color: #768a9e;
        font-size: 9px;
        line-height: 1.7;
    }


/* ============================================================
   PARAMETERS
   ============================================================ */

.platform-parameters {
    padding: 115px 0;
    background: #ffffff;
}


.platform-parameter-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}


    .platform-parameter-grid article {
        padding: 20px;
        border: 1px solid var(--border);
        border-radius: 15px;
        background: #ffffff;
        transition: .25s ease;
    }


        .platform-parameter-grid article:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 35px rgba(18,54,87,.08);
        }


.parameter-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 10px;
}


    .parameter-icon.temperature {
        color: #f97316;
        background: #fff0e8;
    }


    .parameter-icon.humidity {
        color: #3182f6;
        background: #edf4ff;
    }


    .parameter-icon.co2 {
        color: #64748b;
        background: #f1f5f9;
    }


    .parameter-icon.nh3 {
        color: #10b981;
        background: #ecfdf5;
    }


    .parameter-icon.voltage {
        color: #eab308;
        background: #fefce8;
    }


    .parameter-icon.machine {
        color: #2563eb;
        background: #edf4ff;
    }


.platform-parameter-grid small,
.platform-parameter-grid strong,
.platform-parameter-grid em {
    display: block;
}


.platform-parameter-grid small {
    color: #8496a8;
    font-size: 8px;
}


.platform-parameter-grid strong {
    margin: 6px 0;
    color: var(--navy);
    font-size: 20px;
}


.platform-parameter-grid em {
    color: #16a34a;
    font-size: 7px;
    font-style: normal;
}


/* ============================================================
   ALERTS
   ============================================================ */

.platform-alerts {
    padding: 115px 0;
    background: #f5f8fc;
}


.platform-alert-window {
    overflow: hidden;
    border: 1px solid #e3eaf1;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 25px 55px rgba(18,54,87,.09);
}


.alert-window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #edf1f5;
}


    .alert-window-header > div {
        display: flex;
        align-items: center;
        gap: 11px;
    }


.alert-window-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--blue);
    background: #edf4ff;
}


.alert-window-header strong,
.alert-window-header small {
    display: block;
}


.alert-window-header strong {
    color: var(--navy);
    font-size: 11px;
}


.alert-window-header small {
    color: #8799aa;
    font-size: 7px;
}


.alert-count {
    padding: 6px 9px;
    border-radius: 7px;
    color: #dc2626;
    background: #fef2f2;
    font-size: 8px;
}


.alert-event {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 20px;
    border-bottom: 1px solid #edf1f5;
}


    .alert-event:last-child {
        border-bottom: 0;
    }


    .alert-event > span {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        flex: 0 0 40px;
        border-radius: 10px;
    }


    .alert-event.danger > span {
        color: #dc2626;
        background: #fef2f2;
    }


    .alert-event.warning > span {
        color: #f59e0b;
        background: #fff7e6;
    }


    .alert-event.offline > span {
        color: #64748b;
        background: #f1f5f9;
    }


    .alert-event > div:nth-child(2) {
        flex: 1;
    }


    .alert-event strong,
    .alert-event small {
        display: block;
    }


    .alert-event strong {
        color: var(--navy);
        font-size: 10px;
    }


    .alert-event small {
        margin-top: 2px;
        color: #8294a6;
        font-size: 7px;
    }


.alert-event-value {
    text-align: right;
    color: var(--navy);
    font-size: 10px;
    font-weight: 700;
}


    .alert-event-value small {
        font-weight: 400;
    }


.platform-check-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-top: 26px;
}


    .platform-check-list > div {
        padding: 11px;
        color: #61778a;
        font-size: 9px;
    }


    .platform-check-list i {
        margin-right: 7px;
        color: var(--teal);
    }


/* ============================================================
   HISTORY
   ============================================================ */

.platform-history {
    padding: 115px 0;
    background: #ffffff;
}


.history-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px;
}


    .history-capabilities span {
        padding: 9px 11px;
        border: 1px solid var(--border);
        border-radius: 9px;
        color: #60778a;
        font-size: 8px;
    }


    .history-capabilities i {
        margin-right: 5px;
        color: var(--teal);
    }


.history-chart-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(18,54,87,.09);
}


.history-chart-header {
    display: flex;
    justify-content: space-between;
}


    .history-chart-header strong,
    .history-chart-header small {
        display: block;
    }


    .history-chart-header strong {
        color: var(--navy);
        font-size: 11px;
    }


    .history-chart-header small {
        color: #8395a6;
        font-size: 7px;
    }


.history-range {
    display: flex;
    gap: 5px;
}


    .history-range span {
        padding: 5px 8px;
        border-radius: 6px;
        color: #8294a6;
        font-size: 7px;
    }


        .history-range span.active {
            color: #ffffff;
            background: var(--blue);
        }


.history-value {
    margin-top: 25px;
}


    .history-value strong,
    .history-value span {
        display: block;
    }


    .history-value strong {
        color: var(--navy);
        font-size: 28px;
    }


    .history-value span {
        color: #8799aa;
        font-size: 7px;
    }


.history-chart-svg {
    width: 100%;
    height: 230px;
}


.history-area {
    fill: url(#historyGradient);
}


.history-line {
    fill: none;
    stroke: var(--teal);
    stroke-width: 4;
    stroke-linecap: round;
}


.history-axis {
    display: flex;
    justify-content: space-between;
    color: #99a8b5;
    font-size: 7px;
}


/* ============================================================
   MULTISITE
   ============================================================ */

.platform-multisite {
    padding: 115px 0;
    background: #f5f8fc;
}


.multisite-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}


.multisite-tree {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #ffffff;
}


.tree-company,
.tree-site {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border-radius: 10px;
}


.tree-company {
    margin-bottom: 9px;
    border-bottom: 1px solid #edf1f5;
}


.tree-site {
    margin-top: 5px;
    transition: .2s;
}


    .tree-site:hover,
    .tree-site.active {
        background: #edf4ff;
    }


    .tree-company > span,
    .tree-site > span {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        color: var(--blue);
        background: #edf4ff;
    }


    .tree-company strong,
    .tree-company small,
    .tree-site strong,
    .tree-site small {
        display: block;
    }


    .tree-company strong,
    .tree-site strong {
        color: var(--navy);
        font-size: 9px;
    }


    .tree-company small,
    .tree-site small {
        color: #8597a8;
        font-size: 7px;
    }


.multisite-equipment {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}


    .multisite-equipment article {
        padding: 20px;
        border: 1px solid var(--border);
        border-radius: 15px;
        background: #ffffff;
        transition: .25s ease;
    }


        .multisite-equipment article:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 35px rgba(18,54,87,.08);
        }


.equipment-header {
    display: flex;
    justify-content: space-between;
}


    .equipment-header > span {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        color: var(--teal);
        background: #edfafa;
    }


    .equipment-header em {
        font-size: 7px;
        font-style: normal;
    }


        .equipment-header em.online {
            color: #16a34a;
        }


.multisite-equipment h3 {
    margin: 18px 0 2px;
    color: var(--navy);
    font-size: 12px;
}


.multisite-equipment small {
    display: block;
    color: #8698a8;
    font-size: 7px;
}


.multisite-equipment > article > strong {
    display: block;
    margin-top: 13px;
    color: var(--navy);
    font-size: 21px;
}


/* ============================================================
   ACCESS
   ============================================================ */

.platform-access {
    padding: 90px 0;
    background: #ffffff;
}


.platform-access-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 55px 60px;
    border-radius: 25px;
    background: radial-gradient( circle at 90% 0%, rgba(20,184,178,.14), transparent 34% ), #0a3153;
    box-shadow: 0 25px 55px rgba(10,49,83,.16);
}


    .platform-access-box .platform-section-label {
        color: #68e0da;
    }


    .platform-access-box h2 {
        margin: 0 0 13px;
        color: #ffffff;
        font-size: clamp(35px,4vw,49px);
        font-weight: 500;
        letter-spacing: -1.8px;
    }


        .platform-access-box h2 strong {
            color: #55dbd4;
            font-weight: 800;
        }


    .platform-access-box p {
        margin: 0;
        color: rgba(255,255,255,.70);
        font-size: 13px;
    }


.platform-devices {
    display: flex;
    gap: 12px;
}


    .platform-devices span {
        width: 66px;
        height: 66px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 16px;
        color: #ffffff;
        background: rgba(255,255,255,.06);
        font-size: 23px;
    }


/* ============================================================
   SECURITY
   ============================================================ */

.platform-security {
    padding: 115px 0;
    background: #f5f8fc;
}


.security-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}


    .security-grid article {
        min-height: 180px;
        padding: 23px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: #ffffff;
    }


    .security-grid span {
        width: 43px;
        height: 43px;
        display: grid;
        place-items: center;
        margin-bottom: 17px;
        border-radius: 11px;
        color: var(--teal);
        background: #edfafa;
    }


    .security-grid h3 {
        color: var(--navy);
        font-size: 13px;
    }


    .security-grid p {
        color: #788c9f;
        font-size: 9px;
        line-height: 1.7;
    }


/* ============================================================
   CONTACT
   ============================================================ */

.platform-contact {
    padding: 95px 0;
    background: #ffffff;
}


.platform-contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    padding: 55px;
    border: 1px solid #dfe9f2;
    border-radius: 25px;
    background: radial-gradient( circle at 90% 0%, rgba(49,130,246,.10), transparent 34% ), radial-gradient( circle at 0% 100%, rgba(20,184,178,.10), transparent 30% ), #f8fbfd;
}


    .platform-contact-box h2 {
        color: var(--navy);
        font-size: clamp(35px,4vw,50px);
        font-weight: 800;
        letter-spacing: -1.8px;
    }


    .platform-contact-box p {
        max-width: 680px;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.75;
    }


.platform-contact-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991.98px) {

    .platform-dashboard-hero {
        margin-top: 25px;
    }

    .platform-stat-grid {
        grid-template-columns: repeat(2,1fr);
    }

        .platform-stat-grid > div:nth-child(2) {
            border-right: 0;
        }

    .platform-feature-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .multisite-layout {
        grid-template-columns: 1fr;
    }

    .platform-contact-box {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 767.98px) {

    .platform-page-hero h1 {
        font-size: 46px;
        letter-spacing: -2px;
    }

    .platform-floating-status {
        display: none;
    }

    .dashboard-kpis {
        grid-template-columns: repeat(2,1fr);
    }

    .platform-stat-grid,
    .platform-feature-grid,
    .platform-parameter-grid,
    .platform-check-list,
    .security-grid,
    .multisite-equipment {
        grid-template-columns: 1fr;
    }

        .platform-stat-grid > div {
            border-right: 0;
            border-bottom: 1px solid var(--border);
        }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-content {
        padding: 15px;
    }

    .platform-access-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 38px 28px;
    }

    .platform-contact-box {
        padding: 35px 27px;
    }

    .platform-contact-actions {
        width: 100%;
    }

        .platform-contact-actions a {
            width: 100%;
        }
}
