:root {
  --landing-bg: #f6f8f7;
  --landing-surface: #ffffff;
  --landing-ink: #10231f;
  --landing-muted: #5f746f;
  --landing-border: #dce7e3;
  --landing-brand: #0f4d40;
  --landing-brand-strong: #0a352d;
  --landing-accent: #b9ff68;
  --landing-accent-soft: #efffda;
  --landing-shadow: 0 18px 50px rgba(15, 77, 64, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.landing-body a {
  color: inherit;
}

.landing-header {
  position: sticky;
  z-index: 20;
  top: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1420px, calc(100% - 32px));
  margin: 14px auto 0;
  border: 1px solid rgba(220, 231, 227, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  padding: 8px 10px;
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 26px rgba(16, 35, 31, 0.055);
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.landing-header.is-scrolled {
  border-color: var(--landing-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--landing-shadow);
}

.landing-brand,
.landing-nav,
.landing-header-actions,
.landing-actions,
.platform-callouts,
.project-tabs,
.landing-footer nav {
  display: flex;
  align-items: center;
}

.landing-brand {
  gap: 9px;
  text-decoration: none;
  color: var(--landing-ink);
  font-size: 18px;
  font-weight: 760;
}

.landing-brand-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: #008b5f;
}

.landing-brand-mark svg,
.line-icon svg,
.landing-signals svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.landing-nav {
  justify-content: center;
  gap: 30px;
}

.landing-nav a,
.landing-link,
.landing-footer a {
  color: var(--landing-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.landing-nav a:hover,
.landing-link:hover,
.landing-footer a:hover {
  color: var(--landing-brand);
}

.landing-header-actions,
.landing-actions {
  gap: 10px;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 17px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.landing-button:hover {
  transform: translateY(-1px);
}

.landing-button:focus-visible,
.landing-menu-button:focus-visible,
.project-tabs button:focus-visible {
  outline: 3px solid rgba(185, 255, 104, 0.85);
  outline-offset: 3px;
}

.landing-button-primary {
  background: var(--landing-brand);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 77, 64, 0.18);
}

.landing-button-primary:visited,
.landing-header .landing-button-primary,
.landing-header .landing-button-primary:visited {
  color: #ffffff;
}

.landing-button-primary:hover {
  background: #0b4238;
  color: #ffffff;
}

.landing-button-secondary {
  border-color: var(--landing-border);
  background: var(--landing-surface);
  color: var(--landing-brand-strong);
}

.landing-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  background: var(--landing-surface);
}

.landing-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--landing-brand);
}

.landing-hero,
.landing-section,
.final-cta,
.landing-footer {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 68px 0 50px;
}

.landing-eyebrow {
  margin: 0 0 14px;
  color: var(--landing-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-hero h1,
.landing-section h2,
.final-cta h2 {
  margin: 0;
  color: var(--landing-ink);
  font-weight: 760;
  letter-spacing: 0;
}

.landing-hero h1 {
  max-width: 620px;
  font-size: clamp(44px, 5.15vw, 78px);
  line-height: 1.02;
}

.landing-hero-copy > p:not(.landing-eyebrow):not(.landing-signals),
.landing-section-heading > p:not(.landing-eyebrow),
.platform-copy > p:not(.landing-eyebrow),
.final-cta p,
.project-card p {
  color: var(--landing-muted);
  font-size: 18px;
  line-height: 1.6;
}

.landing-hero-copy > p:not(.landing-eyebrow):not(.landing-signals) {
  max-width: 590px;
}

.landing-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--landing-ink);
  font-size: 14px;
  font-weight: 650;
}

.landing-signals span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-signals svg {
  width: 19px;
  height: 19px;
  color: #008b5f;
}

.landing-hero-visual {
  position: relative;
  perspective: 1200px;
}

.browser-mockup,
.platform-shot,
.project-card {
  border: 1px solid var(--landing-border);
  border-radius: 28px;
  background: var(--landing-surface);
  box-shadow: 0 20px 60px rgba(15, 77, 64, 0.11);
}

.browser-mockup {
  overflow: hidden;
  transform: rotateX(2deg) rotateY(-5deg);
}

.browser-bar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--landing-border);
  background: #fbfdfc;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--landing-border);
}

.browser-mockup img,
.platform-shot img,
.project-card img {
  display: block;
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  background: linear-gradient(135deg, #eef5f2, #ffffff);
}

.floating-status {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(220, 231, 227, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--landing-brand);
  padding: 0 15px;
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 12px 28px rgba(16, 35, 31, 0.095);
}

.floating-status::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 999px;
  background: #00a36c;
  box-shadow: 0 0 0 4px rgba(0, 163, 108, 0.1);
}

.status-door {
  top: 17%;
  left: -32px;
}

.status-leak {
  right: -24px;
  top: 16%;
}

.status-temp {
  right: -36px;
  bottom: 27%;
}

.status-normal {
  left: -12px;
  bottom: 9%;
}

.landing-section {
  padding: 72px 0;
}

.landing-section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.landing-section h2,
.final-cta h2 {
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.08;
}

.solution-grid,
.bento-grid {
  display: grid;
  gap: 16px;
}

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

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

.solution-grid article,
.bento-grid article,
.flow-steps article {
  border: 1px solid rgba(220, 231, 227, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  padding: 26px;
  box-shadow: 0 10px 26px rgba(16, 35, 31, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.solution-grid article:hover,
.bento-grid article:hover {
  border-color: rgba(15, 77, 64, 0.18);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(16, 35, 31, 0.07);
}

.line-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 139, 95, 0.14);
  border-radius: 16px;
  background: #f8fbfa;
  color: var(--landing-brand);
}

.line-icon svg {
  width: 24px;
  height: 24px;
}

.solution-grid h3,
.bento-grid h3,
.project-card h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 720;
}

.solution-grid p,
.bento-grid p {
  margin: 0;
  color: var(--landing-muted);
  line-height: 1.55;
}

.how-section {
  text-align: center;
}

.how-section .landing-section-heading {
  margin-right: auto;
  margin-left: auto;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-steps article {
  position: relative;
  display: grid;
  gap: 12px;
  text-align: left;
}

.flow-steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 12px;
  height: 2px;
  background: var(--landing-brand);
}

.flow-steps span {
  color: var(--landing-brand);
  font-size: 12px;
  font-weight: 850;
}

.platform-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: center;
}

.platform-callouts {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.platform-callouts span {
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  background: var(--landing-surface);
  color: var(--landing-brand);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 750;
}

.platform-shot {
  overflow: hidden;
}

.project-tabs {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tabs button {
  min-height: 38px;
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  background: var(--landing-surface);
  color: var(--landing-muted);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.project-tabs button.is-active {
  border-color: var(--landing-brand);
  background: var(--landing-brand);
  color: #ffffff;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.6fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: 28px;
}

.project-card img {
  border: 1px solid var(--landing-border);
  border-radius: 20px;
  min-height: 220px;
}

.final-cta {
  margin-top: 48px;
  margin-bottom: 64px;
  border-radius: 34px;
  background: var(--landing-brand-strong);
  color: #ffffff;
  padding: 56px;
  text-align: center;
  box-shadow: var(--landing-shadow);
}

.final-cta h2,
.final-cta p,
.final-cta .landing-eyebrow {
  color: #ffffff;
}

.final-cta .landing-button-primary {
  background: #ffffff;
  color: var(--landing-brand-strong);
}

.landing-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0 42px;
  color: var(--landing-muted);
}

.landing-footer p {
  margin: 5px 0 0;
}

.landing-footer nav {
  gap: 18px;
}

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

.section-reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .landing-menu-button {
    display: block;
    justify-self: end;
  }

  .landing-nav,
  .landing-header-actions {
    grid-column: 1 / -1;
    display: none;
    justify-content: flex-start;
  }

  .landing-header.is-open .landing-nav,
  .landing-header.is-open .landing-header-actions {
    display: flex;
  }

  .landing-nav,
  .landing-header-actions {
    flex-wrap: wrap;
  }

  .landing-hero,
  .platform-section,
  .project-card {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 0;
    padding-top: 52px;
  }

  .solution-grid,
  .bento-grid,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-grid article:first-child {
    grid-column: auto;
  }

  .flow-steps article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .landing-header,
  .landing-hero,
  .landing-section,
  .final-cta,
  .landing-footer {
    width: min(100% - 22px, 1180px);
  }

  .landing-hero h1 {
    font-size: 44px;
  }

  .landing-actions,
  .landing-header-actions,
  .landing-nav,
  .landing-footer,
  .landing-footer nav {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-button,
  .landing-link {
    width: 100%;
  }

  .browser-mockup {
    transform: none;
  }

  .floating-status {
    display: none;
  }

  .solution-grid,
  .bento-grid,
  .flow-steps,
  .landing-footer {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding: 48px 0;
  }

  .final-cta {
    padding: 34px 22px;
  }
}

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

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

  .section-reveal {
    opacity: 1;
    transform: none;
  }
}
