:root {
  --bg: #090d12;
  --ink: #edf5f3;
  --muted: #a4b1ae;
  --panel: #111820;
  --line: #29343c;
  --teal: #20b8aa;
  --teal-dark: #63dfd2;
  --amber: #e0a044;
  --graphite: #0c1218;
  --steel: #182229;
  --blue: #2563eb;
  --red: #b91c1c;
  --shadow: 0 20px 50px rgba(17, 24, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 64px);
  color: #f8fffd;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(9, 13, 18, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.hero-metrics,
.contact,
.tabs,
.kpi-row {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 146px;
  height: auto;
}

.brand .brand-logo-dark { display: none; }
.site-header.is-scrolled .brand-logo-light { display: block; }
.site-header.is-scrolled .brand .brand-logo-dark { display: none; }

.nav {
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.93rem;
  font-weight: 700;
}

.nav a,
.header-action {
  opacity: 0.88;
}

.nav a:hover,
.header-action:hover {
  opacity: 1;
}

.header-action,
.button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  white-space: nowrap;
}

.header-action {
  border: 1px solid currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 118px clamp(20px, 6vw, 88px) 64px;
  color: white;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 14, 14, 0.92) 0%, rgba(8, 14, 14, 0.72) 45%, rgba(8, 14, 14, 0.15) 100%),
    linear-gradient(0deg, rgba(8, 14, 14, 0.84) 0%, rgba(8, 14, 14, 0) 42%);
}

.hero-content {
  width: min(800px, 100%);
}

.hero-logo {
  display: block;
  width: min(292px, 72vw);
  height: auto;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4.15vw, 4.15rem);
  line-height: 1.06;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 2.8vw, 2.9rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.button-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.24);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 16px;
}

.hero-metrics div {
  min-width: 150px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 1.45rem;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

section:not(.hero) {
  padding: clamp(64px, 10vw, 116px) clamp(20px, 6vw, 88px);
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow),
.demo-copy > p,
.contact p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.compact {
  max-width: 760px;
}

.proposal {
  background: var(--bg);
}

.proposal-grid,
.product-grid,
.sales-grid,
.fit-grid {
  display: grid;
  gap: 18px;
}

.proposal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.proposal-grid article,
.product-card,
.sales-grid article,
.fit-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 28px;
  box-shadow: 0 10px 28px rgba(17, 24, 23, 0.04);
}

.proposal-grid article {
  min-height: 245px;
}

.fit-grid article {
  min-height: 260px;
  background: #10171e;
}

.fit-grid span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--graphite);
  color: white;
  font-weight: 800;
}

.product-card {
  grid-column: span 2;
  min-height: 270px;
}

.product-card.featured {
  grid-column: span 4;
  background: #152127;
}

.proposal-grid p,
.product-card p,
.sales-grid p,
.fit-grid p,
.panel-text p,
.panel-text li {
  color: var(--muted);
  line-height: 1.62;
}

.product-points {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.product-points li {
  color: var(--muted);
  line-height: 1.52;
}

.product-card small,
.panel-text small {
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
}

.product-card strong {
  display: block;
  margin-top: 22px;
  color: var(--teal-dark);
  line-height: 1.45;
}

.icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 8px;
  background: var(--steel);
  color: var(--teal-dark);
  font-weight: 800;
}

.products,
.commercial-map,
.sales {
  background: #0c1117;
}

.demo-section {
  background: var(--graphite);
  color: white;
}

.demo-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.6fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  margin-bottom: 32px;
}

.demo-copy > p {
  color: rgba(255, 255, 255, 0.67);
}

.tabs {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 16px;
}

.tab.is-active,
.tab:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #151a18;
}

.demo-panels {
  position: relative;
}

.demo-panel {
  display: none;
  grid-template-columns: minmax(260px, 0.58fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
  background: #202b29;
}

.demo-panel.is-active {
  display: grid;
}

.panel-text h3 {
  font-size: clamp(1.75rem, 2.7vw, 2.45rem);
}

.demo-panel .panel-text p {
  color: rgba(255, 255, 255, 0.76);
}

.panel-text ul {
  padding-left: 18px;
  margin: 22px 0 0;
}

.panel-text li {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.panel-text li strong {
  color: rgba(255, 255, 255, 0.92);
}

.screen,
.screen-shot {
  width: 100%;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--ink);
  padding: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.screen-shot {
  margin: 0;
  min-height: 0;
  padding: 14px;
  color: #17201f;
}

.screen-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--steel);
}

.screen-shot figcaption {
  margin-top: 12px;
  color: #5a6764;
  font-size: 0.84rem;
  font-weight: 800;
}

.screen-shot figcaption strong {
  color: #111817;
}

.screen-gallery {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.screen-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.screen-gallery-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screen-gallery-grid .screen-shot {
  padding: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.screen-gallery-grid .screen-shot img {
  aspect-ratio: 16 / 9;
}

.screen-gallery-grid .screen-shot figcaption {
  min-height: 40px;
  margin-top: 9px;
  font-size: 0.74rem;
  line-height: 1.35;
}

.screen-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
}

.screen-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8d3cf;
}

.screen-title {
  margin-bottom: 16px;
  font-weight: 800;
}

.kpi-row {
  gap: 12px;
  margin-bottom: 22px;
}

.kpi-row div,
.advisor-card {
  flex: 1;
  min-height: 82px;
  border-radius: 8px;
  background: var(--steel);
  padding: 14px;
}

.kpi-row small,
.advisor-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.kpi-row strong,
.advisor-card strong {
  color: var(--teal-dark);
  font-size: 1.35rem;
}

.chart-lines {
  position: relative;
  height: 128px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #edf5f2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.chart-lines i {
  position: absolute;
  bottom: 22px;
  width: 18%;
  border-radius: 8px 8px 0 0;
  background: var(--teal);
}

.chart-lines i:nth-child(1) { left: 8%; height: 42%; }
.chart-lines i:nth-child(2) { left: 31%; height: 62%; background: var(--amber); }
.chart-lines i:nth-child(3) { left: 54%; height: 48%; }
.chart-lines i:nth-child(4) { left: 77%; height: 76%; background: var(--blue); }

.table-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.table-lines span,
.advisor-note,
.cad-side b {
  height: 14px;
  border-radius: 999px;
  background: #dfe8e5;
}

.kanban,
.cad-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kanban section {
  min-height: 285px;
  border-radius: 8px;
  background: var(--steel);
  padding: 14px;
}

.kanban strong {
  display: block;
  margin-bottom: 14px;
  color: var(--teal-dark);
}

.kanban span {
  display: block;
  height: 58px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: white;
  border-left: 4px solid var(--teal);
}

.cad-layout {
  grid-template-columns: 1fr 0.42fr;
}

.cad-canvas {
  position: relative;
  min-height: 280px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    #ffffff;
  background-size: 28px 28px;
  border: 1px solid var(--line);
}

.cad-canvas span {
  position: absolute;
  border: 3px solid var(--teal);
  border-radius: 8px;
}

.cad-canvas span:nth-child(1) {
  width: 150px;
  height: 92px;
  left: 20%;
  top: 28%;
  transform: rotate(-12deg);
}

.cad-canvas span:nth-child(2) {
  width: 110px;
  height: 110px;
  right: 16%;
  top: 32%;
  border-color: var(--amber);
  transform: rotate(18deg);
}

.cad-canvas span:nth-child(3) {
  width: 56px;
  height: 170px;
  left: 45%;
  bottom: 10%;
  border-color: var(--blue);
}

.cad-side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: var(--steel);
}

.map-grid {
  position: relative;
  min-height: 215px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #dcece8, #f6fbf9);
  border: 1px solid var(--line);
}

.map-grid i {
  position: absolute;
  width: 140px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(15, 118, 110, 0.25);
}

.map-grid i:nth-child(1) { left: 12%; top: 18%; }
.map-grid i:nth-child(2) { left: 46%; top: 12%; }
.map-grid i:nth-child(3) { left: 28%; top: 52%; }
.map-grid i:nth-child(4) { left: 66%; top: 56%; }

.pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(185, 28, 28, 0.14);
}

.pin.one { left: 32%; top: 34%; }
.pin.two { left: 61%; top: 24%; }
.pin.three { left: 74%; top: 66%; }

.water-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 12px;
  height: 92px;
  margin-top: 16px;
}

.water-chart span {
  border-radius: 8px 8px 0 0;
  background: var(--blue);
}

.water-chart span:nth-child(1) { height: 42%; }
.water-chart span:nth-child(2) { height: 68%; }
.water-chart span:nth-child(3) { height: 54%; background: var(--teal); }
.water-chart span:nth-child(4) { height: 82%; background: var(--amber); }

.advisor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.advisor-note {
  grid-column: 1 / -1;
  height: 96px;
}

.advisor-note.short {
  height: 54px;
  width: 72%;
}

.sales-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sales-grid article {
  min-height: 220px;
}

.sales-grid strong {
  color: var(--teal-dark);
}

.contact {
  justify-content: space-between;
  gap: 24px;
  background: #121b21;
}

.contact h2 {
  max-width: 760px;
  margin-bottom: 12px;
}

@media (max-width: 1080px) {
  .product-card,
  .product-card.featured {
    grid-column: span 3;
  }

  .demo-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .header-action {
    justify-self: end;
  }

  .proposal-grid,
  .product-grid,
  .sales-grid,
  .fit-grid,
  .demo-copy {
    grid-template-columns: 1fr;
  }

  .product-card,
  .product-card.featured {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 96vh;
    padding: 104px 18px 44px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button,
  .hero-actions,
  .tab {
    width: 100%;
  }

  .hero-metrics div,
  .contact .button {
    width: 100%;
  }

  .screen {
    min-height: 310px;
    padding: 14px;
  }

  section:not(.hero) {
    scroll-margin-top: 78px;
  }

  .screen-gallery-grid,
  .screen-gallery-grid-three {
    grid-template-columns: 1fr;
  }

  .kpi-row,
  .kanban,
  .cad-layout,
  .advisor {
    grid-template-columns: 1fr;
  }

  .kpi-row {
    display: grid;
  }

  .kanban section {
    min-height: 150px;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }
}
