/* =========================================================
   ABOTRIX PUBLIC WEBSITE V27
   UNIVERSAL ADAPTIVE DISPLAY
   Large Monitor / Desktop / Laptop / Tablet / Mobile
   ========================================================= */

html {
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

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

body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

/* Universal content container */
.container {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* Prevent grid/flex children from forcing overflow */
.hero-layout,
.hero-grid,
.platform-grid,
.product-experience-grid,
.analytics-grid,
.operations-grid,
.executive-dashboard-grid,
.industry-solutions-grid,
.pricing-grid,
.application-grid,
.dashboard-window,
.dashboard-body,
.dashboard-main-grid,
.metric-grid,
.command-metrics {
  min-width: 0;
}

/* =========================================================
   LARGE MONITOR
   ========================================================= */

@media (min-width: 1600px) {

  .container {
    width: min(1320px, calc(100% - 80px));
  }

  .hero-layout,
  .hero-grid {
    gap: clamp(48px, 5vw, 90px);
  }

  .hero h1,
  .hero-title,
  .hero-content h1 {
    font-size: clamp(58px, 4.4vw, 78px);
  }
}

/* =========================================================
   NORMAL DESKTOP
   ========================================================= */

@media (min-width: 1280px) and (max-width: 1599px) {

  .container {
    width: min(1180px, calc(100% - 48px));
  }

  .hero h1,
  .hero-title,
  .hero-content h1 {
    font-size: clamp(52px, 4.5vw, 68px);
  }
}

/* =========================================================
   LAPTOP
   1024 - 1279
   ========================================================= */

@media (min-width: 1024px) and (max-width: 1279px) {

  .container {
    width: calc(100% - 40px);
    max-width: 1080px;
  }

  .navigation-container {
    gap: 16px;
  }

  .brand-logo {
    max-width: 150px;
    height: auto;
  }

  .desktop-navigation {
    gap: 16px;
  }

  .desktop-navigation a {
    font-size: 13px;
  }

  .hero-layout,
  .hero-grid {
    gap: 34px;
  }

  .hero h1,
  .hero-title,
  .hero-content h1 {
    font-size: clamp(44px, 5vw, 58px);
    line-height: 1.02;
  }

  .hero-description {
    font-size: 15px;
  }

  .dashboard-window,
  .hero-dashboard-wrapper,
  .command-center-preview,
  .product-preview,
  .analytics-preview,
  .operations-preview,
  .executive-preview {
    max-width: 100%;
    min-width: 0;
  }

  .metric-grid,
  .command-metrics {
    gap: 10px;
  }

  section {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1023px) {

  .container {
    width: calc(100% - 32px);
    max-width: 900px;
  }

  .desktop-navigation,
  .desktop-login,
  .desktop-application {
    display: none !important;
  }

  .mobile-menu-button {
    display: flex !important;
  }

  .hero-layout,
  .hero-grid,
  .platform-grid,
  .product-experience-grid,
  .analytics-grid,
  .operations-grid,
  .executive-dashboard-grid,
  .industry-solutions-grid,
  .pricing-grid,
  .application-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-layout,
  .hero-grid {
    gap: 38px !important;
  }

  .hero h1,
  .hero-title,
  .hero-content h1 {
    font-size: clamp(42px, 7vw, 58px);
  }

  .hero-dashboard-wrapper,
  .dashboard-window,
  .command-center-preview,
  .product-preview,
  .analytics-preview,
  .operations-preview,
  .executive-preview {
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }

  .metric-grid,
  .command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .desktop-navigation,
  .desktop-login,
  .desktop-application {
    display: none !important;
  }

  .mobile-menu-button {
    display: flex !important;
  }

  .hero-layout,
  .hero-grid,
  .platform-grid,
  .product-experience-grid,
  .analytics-grid,
  .operations-grid,
  .executive-dashboard-grid,
  .industry-solutions-grid,
  .pricing-grid,
  .application-grid,
  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero h1,
  .hero-title,
  .hero-content h1 {
    font-size: clamp(36px, 11vw, 52px) !important;
    line-height: 1.02 !important;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .hero-actions .button {
    width: 100% !important;
  }

  .hero-dashboard-wrapper,
  .dashboard-window,
  .command-center-preview,
  .product-preview,
  .analytics-preview,
  .operations-preview,
  .executive-preview {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
  }

  .metric-grid,
  .command-metrics {
    grid-template-columns: 1fr !important;
  }

  section {
    height: auto !important;
    min-height: 0 !important;
    overflow-x: hidden;
  }

  input,
  select,
  textarea {
    max-width: 100%;
    font-size: 16px;
  }
}

/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 390px) {

  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .brand-logo {
    width: 128px !important;
    max-width: 42vw !important;
  }

  .hero h1,
  .hero-title,
  .hero-content h1 {
    font-size: 34px !important;
  }

  .hero-statistics,
  .hero-stats {
    grid-template-columns: 1fr !important;
  }
}
