
/* ============================================================
   ABOTRIX PUBLIC FINAL LAYOUT V22.6
   Loaded after all legacy public stylesheets
   ============================================================ */

:root {
    --public-header-height: 150px;
    --public-page-gutter: clamp(32px, 4vw, 72px);
}

html,
body {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.site-header {
    position: relative !important;
    z-index: 1000 !important;
    width: 100% !important;
    min-height: var(--public-header-height) !important;
    height: var(--public-header-height) !important;
}

.site-header .container,
.site-header > .container {
    width: calc(100% - (var(--public-page-gutter) * 2)) !important;
    max-width: 1600px !important;
    height: 100% !important;
    margin-inline: auto !important;
}

/* ------------------------------------------------------------
   HERO FRAME
   ------------------------------------------------------------ */

.hero-section {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;

    /* Clear distance below navigation */
    padding:
        clamp(58px, 6vh, 86px)
        0
        clamp(88px, 9vh, 130px) !important;

    overflow: hidden !important;
}

.hero-section .hero-layout {
    position: relative !important;
    display: grid !important;

    /* Better balance: text 43%, dashboard 57% */
    grid-template-columns:
        minmax(480px, 0.43fr)
        minmax(680px, 0.57fr) !important;

    align-items: start !important;
    justify-content: center !important;
    gap: clamp(44px, 4vw, 82px) !important;

    width: calc(100% - (var(--public-page-gutter) * 2)) !important;
    max-width: 1600px !important;
    min-height: 0 !important;

    margin: 0 auto !important;
    padding: 0 !important;
}

/* ------------------------------------------------------------
   LEFT HERO COLUMN
   ------------------------------------------------------------ */

.hero-section .hero-content {
    position: relative !important;
    z-index: 5 !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 650px !important;

    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.hero-section .eyebrow {
    display: inline-flex !important;
    align-items: center !important;

    width: auto !important;
    max-width: 100% !important;

    margin: 0 0 30px !important;
    padding: 10px 17px !important;

    white-space: normal !important;
}

.hero-section .hero-content h1 {
    width: 100% !important;
    max-width: 650px !important;

    margin: 0 0 28px !important;
    padding: 0 !important;

    font-size: clamp(58px, 4.8vw, 82px) !important;
    line-height: 0.99 !important;
    letter-spacing: -0.052em !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.hero-section .hero-description {
    width: 100% !important;
    max-width: 640px !important;

    margin: 0 0 30px !important;

    font-size: clamp(18px, 1.22vw, 22px) !important;
    line-height: 1.55 !important;

    white-space: normal !important;
    word-break: normal !important;
}

.hero-section .hero-actions {
    display: grid !important;
    grid-template-columns:
        minmax(250px, 1.08fr)
        minmax(220px, 0.92fr) !important;

    gap: 16px !important;
    width: 100% !important;
    max-width: 650px !important;

    margin: 0 0 28px !important;
}

.hero-section .hero-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 68px !important;

    padding: 17px 22px !important;
    white-space: nowrap !important;
}

.hero-section .hero-trust-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 15px 24px !important;
    width: 100% !important;
    max-width: 650px !important;

    margin: 0 0 24px !important;
}

.hero-section .hero-statistics {
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 !important;
}

/* ------------------------------------------------------------
   RIGHT DASHBOARD COLUMN
   ------------------------------------------------------------ */

.hero-section .hero-dashboard-wrapper {
    position: relative !important;
    z-index: 4 !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
    transform: none !important;
}

/*
  Keep the dashboard centered.
  Previous rules aligned it to one edge and created excess right space.
*/
.hero-section .dashboard-window {
    position: relative !important;

    width: min(100%, 850px) !important;
    min-width: 0 !important;
    max-width: 850px !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 auto !important;

    transform: none !important;
    transform-origin: top center !important;

    overflow: hidden !important;
}

/* Dashboard internal proportions */

.hero-section .dashboard-topbar {
    padding: 17px 24px !important;
}

.hero-section .dashboard-body {
    padding: 24px !important;
}

.hero-section .dashboard-heading {
    margin-bottom: 16px !important;
}

.hero-section .metric-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    gap: 13px !important;
    width: 100% !important;

    margin: 16px 0 !important;
}

.hero-section .metric-card {
    width: auto !important;
    min-width: 0 !important;
    min-height: 112px !important;

    padding: 16px !important;
    overflow: hidden !important;
}

.hero-section .metric-card strong {
    display: block !important;

    margin-top: 11px !important;

    font-size: clamp(22px, 1.65vw, 29px) !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.hero-section .dashboard-main-grid {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(215px, 0.55fr) !important;

    align-items: stretch !important;
    gap: 13px !important;

    width: 100% !important;
}

.hero-section .chart-card,
.hero-section .activity-card,
.hero-section .recent-activity-card,
.hero-section .live-operations-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    padding: 17px !important;
    overflow: hidden !important;
}

/* ------------------------------------------------------------
   REVENUE OVERVIEW ACTION BUTTONS
   ------------------------------------------------------------ */

.hero-section .chart-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 10px !important;
    width: 100% !important;

    margin-top: 16px !important;
    padding-top: 14px !important;

    border-top: 1px solid rgba(148, 201, 229, 0.13) !important;

    visibility: visible !important;
    opacity: 1 !important;
}

.hero-section .chart-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 42px !important;
    padding: 10px 14px !important;

    border-radius: 11px !important;

    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;

    visibility: visible !important;
    opacity: 1 !important;
}

.hero-section .chart-action-primary {
    color: #021420 !important;
    background: linear-gradient(135deg, #65dcf4, #25c9ed) !important;
}

.hero-section .chart-action-secondary {
    color: #e8f7ff !important;
    background: rgba(9, 35, 57, 0.88) !important;
    border: 1px solid rgba(133, 204, 239, 0.2) !important;
}

/* Remove detached decorative cards from the right edge. */

.hero-section .floating-card,
.hero-section .dashboard-floating-card,
.hero-section .floating-notification,
.hero-section .floating-alert,
.hero-section .notification-card {
    display: none !important;
}

/* ------------------------------------------------------------
   STANDARD LAPTOP
   ------------------------------------------------------------ */

@media (max-width: 1450px) and (min-width: 1101px) {
    :root {
        --public-page-gutter: 36px;
    }

    .hero-section {
        padding-top: 64px !important;
    }

    .hero-section .hero-layout {
        grid-template-columns:
            minmax(430px, 0.41fr)
            minmax(620px, 0.59fr) !important;

        gap: 38px !important;
    }

    .hero-section .hero-content h1 {
        font-size: clamp(54px, 4.5vw, 70px) !important;
    }

    .hero-section .dashboard-window {
        width: min(100%, 790px) !important;
    }
}

/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
    :root {
        --public-page-gutter: 24px;
    }

    .site-header {
        min-height: 94px !important;
        height: auto !important;
    }

    .hero-section {
        padding-top: 56px !important;
        padding-bottom: 76px !important;
    }

    .hero-section .hero-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 52px !important;

        width: calc(100% - (var(--public-page-gutter) * 2)) !important;
        max-width: 850px !important;
    }

    .hero-section .hero-content {
        max-width: 740px !important;
        margin-inline: auto !important;
        text-align: center !important;
    }

    .hero-section .hero-content h1,
    .hero-section .hero-description,
    .hero-section .hero-actions,
    .hero-section .hero-trust-row,
    .hero-section .hero-statistics {
        max-width: 740px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-section .hero-trust-row {
        justify-content: center !important;
    }

    .hero-section .hero-dashboard-wrapper{

    width:100% !important;
    max-width:100% !important;

    overflow:visible !important;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:0 18px;
}

    .hero-section .dashboard-window{

        width:100% !important;
        max-width:430px !important;

        transform:none !important;

        margin:0 auto !important;

        height:auto !important;
}
}

/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 700px) {
    :root {
        --public-page-gutter: 15px;
    }

    .hero-section {
        padding-top: 42px !important;
        padding-bottom: 58px !important;
    }

    .hero-section .hero-content h1 {
        font-size: clamp(43px, 13vw, 62px) !important;
    }

    .hero-section .hero-actions {
        grid-template-columns: 1fr !important;
    }

    .hero-section .hero-dashboard-wrapper {
        width: 100% !important;
        max-height: 450px !important;
        overflow: hidden !important;
    }

    .hero-section .dashboard-window {
        width: 820px !important;
        max-width: none !important;

        transform: scale(0.67) !important;
        transform-origin: top left !important;

        margin-bottom: -220px !important;
    }
}

@media (max-width: 480px) {
    .hero-section .hero-dashboard-wrapper{

    padding:0 14px;
}

.hero-section .dashboard-window{

    width:100% !important;

    max-width:390px !important;

    transform:none !important;

    margin:0 auto !important;
}
}

/* Fixed-header anchor clearance */

#platform,
#industries,
#deployment,
#pricing,
#application {
    scroll-margin-top: 170px !important;
}

/* =========================================================
   ABOTRIX MOBILE COMMAND CENTER — FINAL OVERRIDE
   Removes obsolete scaled-desktop dashboard on mobile
   ========================================================= */

@media screen and (max-width: 700px) {
  .hero-section .hero-dashboard-wrapper {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 auto !important;
    padding: 0 15px !important;

    overflow: visible !important;
    transform: none !important;
  }

  .hero-section .dashboard-window {
    position: relative !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 430px !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 auto !important;
    margin-bottom: 0 !important;

    transform: none !important;
    transform-origin: center top !important;

    flex: none !important;
    overflow: hidden !important;
  }

  .hero-section .dashboard-body {
    width: 100% !important;
    padding: 18px !important;
  }

  .hero-section .metric-grid {
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .hero-section .dashboard-main-grid {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-section .chart-card,
  .hero-section .activity-card {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media screen and (max-width: 390px) {
  .hero-section .hero-dashboard-wrapper {
    padding-inline: 12px !important;
  }

  .hero-section .dashboard-window {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-section .dashboard-topbar {
    padding: 14px !important;
  }

  .hero-section .dashboard-body {
    padding: 14px !important;
  }
}

