:root {
  --bg: #f6fbfa;
  --paper: #ffffff;
  --ink: #151d1c;
  --muted: #667371;
  --line: #d8e6e2;
  --soft: #edf6f3;
  --teal: #3aa7a0;
  --green: #83c86b;
  --amber: #d6b46d;
  --red: #d97878;
  --charcoal: #1b2927;
  --shadow: 0 24px 70px rgba(36, 58, 54, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.site-header {
  position: relative;
  z-index: 20;
}

.hero__content,
.section__inner,
.contact__inner,
.site-footer {
  position: relative;
  z-index: 2;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(247, 251, 251, 0.78);
  box-shadow: 0 14px 42px rgba(18, 24, 24, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid var(--charcoal);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--paper), #dff4f0);
}

.brand__mark::after {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  content: "";
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--charcoal);
  font-size: 14px;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(0, 167, 165, 0.11);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, 86svh);
  align-items: center;
  overflow: hidden;
  padding: 118px 24px 68px;
  color: #ffffff;
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 24, 24, 0.86), rgba(18, 24, 24, 0.48) 44%, rgba(18, 24, 24, 0.12)),
    linear-gradient(0deg, rgba(18, 24, 24, 0.3), rgba(18, 24, 24, 0.05));
}

.hero__content {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #96fff1;
}

.hero h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-size: 64px;
  line-height: 1.02;
}

.hero__lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 21px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.button--primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 167, 165, 0.25);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #008f8d;
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.section {
  padding: 92px 24px;
}

.section--soft {
  background: rgba(255, 255, 255, 0.76);
}

.section--dark {
  border-top: 1px solid rgba(216, 230, 226, 0.86);
  border-bottom: 1px solid rgba(216, 230, 226, 0.86);
  background:
    radial-gradient(circle at 15% 30%, rgba(131, 200, 107, 0.15), transparent 34%),
    linear-gradient(135deg, #eaf5f2 0%, #f7fbfa 58%, #ffffff 100%);
  color: var(--ink);
}

.section__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section__heading {
  max-width: 770px;
  margin-bottom: 34px;
}

.section h2,
.contact h2 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.12;
}

.section p,
.contact p {
  color: var(--muted);
  font-size: 18px;
}

.section--dark p {
  color: var(--muted);
}

.section--dark .eyebrow {
  color: #438f88;
}

.intro {
  padding-top: 66px;
  padding-bottom: 66px;
}

.intro__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  align-items: start;
}

.intro h2 {
  margin-bottom: 0;
}

.intro p:last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  gap: 16px;
}

.cards--four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  --card-rgb: 58, 167, 160;
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-height: 272px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74)),
    var(--paper);
  box-shadow: 0 18px 44px rgba(25, 36, 34, 0.08);
}

.card::before {
  position: absolute;
  right: -46px;
  bottom: -54px;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 24px 24px, rgba(var(--card-rgb), 0.38) 0 3px, transparent 4px) 0 0 / 34px 34px,
    radial-gradient(circle, rgba(var(--card-rgb), 0.16), transparent 68%);
  content: "";
  opacity: 0.46;
}

.card::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 116px;
  height: 62px;
  border-bottom: 1px solid rgba(var(--card-rgb), 0.24);
  border-left: 1px solid rgba(var(--card-rgb), 0.18);
  background:
    linear-gradient(130deg, transparent 0 31%, rgba(var(--card-rgb), 0.26) 32% 34%, transparent 35% 52%, rgba(var(--card-rgb), 0.36) 53% 55%, transparent 56%),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(var(--card-rgb), 0.16) 16px 17px);
  content: "";
  opacity: 0.58;
}

.card--control {
  --card-rgb: 58, 167, 160;
}

.card--integration {
  --card-rgb: 124, 162, 150;
}

.card--visualization {
  --card-rgb: 116, 177, 140;
}

.card--commissioning {
  --card-rgb: 214, 180, 109;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card__index {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.2;
}

.card p {
  margin-bottom: 18px;
  font-size: 15px;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-right: 82px;
}

.card__tags span,
.dashboard-points span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(var(--card-rgb), 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 800;
}

.visual-section__grid,
.tech-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 48px;
  align-items: center;
}

.tech-grid {
  grid-template-columns: 1.04fr 0.96fr;
}

.visual-section__copy p {
  margin-bottom: 22px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--charcoal);
}

.check-list li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.photo-panel {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.photo-panel--wide img {
  aspect-ratio: 16 / 10;
}

.live-section {
  background: rgba(255, 255, 255, 0.62);
}

.live-section__grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 48px;
  align-items: center;
}

.live-section__copy p {
  margin-bottom: 0;
}

.dashboard-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(237, 246, 243, 0.66)),
    var(--bg);
}

.dashboard-section__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: center;
}

.dashboard-copy p {
  margin-bottom: 24px;
}

.dashboard-points {
  --card-rgb: 58, 167, 160;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-points span {
  min-height: 36px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-mockup {
  margin: 0;
}

.dashboard-mockup svg {
  display: block;
  width: 100%;
  height: auto;
}

.value-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.value-grid h2 {
  margin-bottom: 0;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric {
  min-height: 166px;
  padding: 22px;
  border: 1px solid rgba(198, 218, 212, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(38, 68, 62, 0.08);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 36px;
  line-height: 1;
}

.metric span {
  color: var(--charcoal);
}

.tech-copy p {
  margin-bottom: 24px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--charcoal);
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.timeline li {
  position: relative;
  min-height: 212px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  counter-increment: process;
}

.timeline li::before {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--charcoal);
  color: #ffffff;
  content: counter(process);
  font-weight: 800;
}

.timeline span {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 800;
}

.timeline p {
  margin-bottom: 0;
  font-size: 15px;
}

.contact {
  padding: 94px 24px;
  background:
    linear-gradient(90deg, rgba(27, 41, 39, 0.82), rgba(27, 41, 39, 0.66)),
    url("assets/hero-smart-bms.png") center / cover;
  color: #ffffff;
}

.contact__inner {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}

.contact p {
  max-width: 620px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #eaf2f0;
  color: #50615f;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    max-width: 360px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .section h2,
  .contact h2 {
    font-size: 34px;
  }

  .intro__grid,
  .visual-section__grid,
  .tech-grid,
  .live-section__grid,
  .dashboard-section__grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .cards--four,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 0;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    justify-content: flex-start;
    gap: 4px;
  }

  .nav a {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
  }

  .hero {
    min-height: 84svh;
    padding: 164px 18px 50px;
  }

  .hero__shade {
    background: linear-gradient(90deg, rgba(18, 24, 24, 0.91), rgba(18, 24, 24, 0.58));
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 66px 18px;
  }

  .section h2,
  .contact h2 {
    font-size: 29px;
  }

  .section p,
  .contact p {
    font-size: 16px;
  }

  .cards--four,
  .timeline {
    grid-template-columns: 1fr;
  }

  .card,
  .timeline li {
    min-height: 0;
  }

  .card__tags {
    padding-right: 0;
  }

  .photo-panel img,
  .photo-panel--wide img {
    aspect-ratio: 4 / 3;
  }

  .contact {
    padding: 72px 18px;
  }

  .site-footer {
    flex-direction: column;
    padding: 20px 18px;
  }
}
