:root {
  color-scheme: light;
  --carbon: #101412;
  --panel: #f3f8f7;
  --ink: #101c19;
  --muted: #63736f;
  --aqua: #13c9b7;
  --lime: #a3e635;
  --amber: #f59e0b;
  --steel: #d8e5e2;
  --line: rgba(16, 28, 25, 0.16);
  --shadow: 0 22px 48px rgba(16, 20, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(19, 201, 183, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(19, 201, 183, 0.06) 1px, transparent 1px),
    var(--panel);
  background-size: 44px 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 20, 18, 0.94);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 950;
}

.brand span:first-child {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(19, 201, 183, 0.48);
  border-radius: 8px;
  color: var(--aqua);
}

.brand span:first-child::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 8px rgba(19, 201, 183, 0.18);
}

.nav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav-pills a,
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-pills a[aria-current="page"] {
  border-color: var(--aqua);
  background: rgba(19, 201, 183, 0.2);
  color: #d9fffb;
}

.header-cta {
  color: var(--lime);
  font-size: 14px;
  font-weight: 950;
}

.nav-pills a:hover,
.button:hover {
  box-shadow: 0 12px 26px rgba(19, 201, 183, 0.16);
  transform: translateY(-1px);
}

.button.is-pressed,
.nav-pills a.is-pressed {
  transform: translateY(1px) scale(0.98);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(19, 201, 183, 0.3);
  border-radius: 8px;
  background: rgba(19, 201, 183, 0.12);
  color: var(--aqua);
  cursor: pointer;
}

.menu-toggle span:not(.menu-label) {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle .menu-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding: 64px max(22px, calc((100vw - 1180px) / 2)) 36px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: center;
  min-height: 560px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  background: var(--carbon);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 74px;
  line-height: 0.96;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border-color: var(--aqua);
  background: var(--aqua);
  color: var(--carbon);
}

.button.alt {
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #ffffff;
}

.gallery-lock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(16, 20, 18, 0.18);
  border-radius: 8px;
  background: var(--carbon);
  color: var(--aqua);
  box-shadow: 0 16px 34px rgba(16, 20, 18, 0.26);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.hero-visual {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.meter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--steel);
}

.meter {
  padding: 18px;
  background: #ffffff;
}

.meter strong {
  display: block;
  color: var(--carbon);
  font-size: 28px;
  line-height: 1;
}

.meter span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 58px max(22px, calc((100vw - 1180px) / 2));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: 56px;
  line-height: 1;
}

.section-heading p,
.spec p,
.service p,
.timeline p,
.panel p {
  color: var(--muted);
  line-height: 1.6;
}

.spec-grid,
.service-grid,
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.spec,
.service,
.timeline,
.panel,
form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(16, 20, 18, 0.08);
}

.spec,
.service,
.timeline,
.panel {
  padding: 24px;
}

.interactive-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.interactive-card:hover {
  border-color: rgba(19, 201, 183, 0.42);
  box-shadow: 0 22px 42px rgba(16, 20, 18, 0.14);
  transform: translateY(-4px);
}

.spec strong,
.service strong,
.timeline strong,
.panel strong {
  display: block;
  color: var(--carbon);
  font-size: 20px;
}

.spec code {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(19, 201, 183, 0.12);
  color: #08776d;
  font-family: inherit;
  font-size: 12px;
  font-weight: 950;
}

.diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.diagram-map {
  min-height: 400px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 24%, rgba(19, 201, 183, 0.18) 0 11%, transparent 12%),
    radial-gradient(circle at 72% 30%, rgba(163, 230, 53, 0.24) 0 13%, transparent 14%),
    radial-gradient(circle at 42% 72%, rgba(245, 158, 11, 0.18) 0 15%, transparent 16%),
    linear-gradient(90deg, rgba(16, 28, 25, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(16, 28, 25, 0.08) 1px, transparent 1px),
    #ffffff;
  background-size: auto, auto, auto, 36px 36px, 36px 36px, auto;
}

.panel-list {
  display: grid;
  gap: 14px;
}

.panel-list .panel {
  box-shadow: none;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tab-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--carbon);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
}

.tab-button.is-active {
  border-color: var(--aqua);
  background: var(--carbon);
  color: var(--aqua);
}

.system-panels {
  display: grid;
}

.system-panel {
  display: none;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 20, 18, 0.08);
}

.system-panel.is-active {
  display: block;
}

.system-panel strong {
  color: var(--carbon);
  font-size: 24px;
}

.system-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 20, 18, 0.08);
}

.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.review-card strong {
  display: block;
  margin-top: 16px;
  color: var(--carbon);
}

.gallery-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
}

.gallery-row img {
  width: 100%;
  height: 330px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(16, 20, 18, 0.08);
}

.gallery-row img:first-child {
  height: 430px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-trigger {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--carbon);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  text-align: left;
}

.faq-panel {
  display: none;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
}

.faq-panel.is-open {
  display: block;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}

form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--carbon);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #08776d;
  font-size: 14px;
  font-weight: 950;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px max(22px, calc((100vw - 1180px) / 2));
  background: var(--carbon);
  color: rgba(255, 255, 255, 0.74);
}

.footer a {
  color: var(--aqua);
  font-weight: 900;
}

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

  .nav-pills {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .nav-pills.is-open {
    display: grid;
  }

  .nav-pills a {
    width: 100%;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .header-cta {
    grid-column: 1 / -1;
  }

  .gallery-lock {
    right: 14px;
    bottom: 14px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    overflow: hidden;
    text-indent: -999px;
  }

  .gallery-lock::before {
    content: "<";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 20px;
    text-indent: 0;
  }

  .hero-shell,
  .diagram,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual {
    min-height: 440px;
  }

  h1 {
    font-size: 44px;
  }

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

  .spec-grid,
  .service-grid,
  .timeline-grid,
  .meter-row,
  .review-grid,
  .gallery-row {
    grid-template-columns: 1fr;
  }

  .gallery-row img,
  .gallery-row img:first-child {
    height: 300px;
  }
}
