:root {
  --ink: #16202a;
  --muted: #65717c;
  --line: #dce4ea;
  --paper: #f8fbfd;
  --white: #ffffff;
  --green: #1d9a71;
  --teal: #1a8aa2;
  --amber: #c18421;
  --red: #c6534d;
  --navy: #21344a;
  --shadow: 0 24px 60px rgba(22, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(248, 251, 253, 0.92);
  border-bottom: 1px solid rgba(220, 228, 234, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark,
.icon,
.sensor-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-cta,
.primary-button,
.secondary-button,
.full-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.header-cta,
.primary-button,
.full-button {
  color: var(--white);
  background: var(--green);
}

.secondary-button {
  color: var(--ink);
  background: #e7eef3;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  min-height: calc(100vh - 150px);
  padding: clamp(38px, 6vw, 74px) clamp(18px, 5vw, 72px) 42px;
  background:
    linear-gradient(135deg, rgba(29, 154, 113, 0.12), rgba(26, 138, 162, 0.08)),
    var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 5.2vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.hero-text,
.section-heading p,
.contact-section p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

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

.hero-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #eef5f6;
  box-shadow: var(--shadow);
}

#signalCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dashboard-glass {
  position: absolute;
  inset: 34px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
}

.metric-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 16px 18px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(22, 32, 42, 0.08);
}

.metric-strip.aqua {
  border-left-color: var(--teal);
}

.metric-strip.coral {
  border-left-color: var(--red);
}

.metric-strip span {
  color: var(--muted);
  font-weight: 700;
}

.metric-strip strong {
  font-size: 1.4rem;
}

.pulse-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 10px rgba(29, 154, 113, 0.18);
  animation: pulse 2.4s infinite;
}

.node-one {
  top: 82px;
  left: 22%;
}

.node-two {
  top: 150px;
  right: 18%;
  background: var(--teal);
  box-shadow: 0 0 0 10px rgba(26, 138, 162, 0.18);
}

.node-three {
  top: 240px;
  left: 52%;
  background: var(--amber);
  box-shadow: 0 0 0 10px rgba(193, 132, 33, 0.18);
}

@keyframes pulse {
  50% {
    transform: scale(1.14);
  }
}

.trust-band,
.section,
.savings-band,
.contact-section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  background: var(--paper);
}

.trust-band div {
  min-height: 120px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.trust-band span {
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  margin-bottom: 34px;
}

.split-grid,
.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.feature-list,
.tool-list {
  display: grid;
  gap: 16px;
}

.feature-card,
.sensor-card,
.control-card,
.quiz-panel,
.tool-list article,
.invoice-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(22, 32, 42, 0.06);
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  padding: 22px;
}

.feature-card p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.invoice-panel,
.quiz-panel {
  padding: 24px;
}

.panel-title,
.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  font-weight: 800;
}

.status-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(29, 154, 113, 0.12);
  font-size: 0.78rem;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  padding: 20px;
  border-radius: 8px;
  background: #eef7f3;
}

.invoice-total span {
  color: var(--muted);
  font-weight: 800;
}

.invoice-total strong {
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.full-button {
  width: 100%;
}

.receipt-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.iot-section {
  background: #edf3f5;
}

.iot-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sensor-card,
.control-card {
  min-height: 290px;
  padding: 22px;
}

.sensor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sensor-card strong {
  display: block;
  margin: 16px 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.sensor-card p,
.control-card p,
.tool-list p {
  color: var(--muted);
  line-height: 1.62;
}

.energy .sensor-icon {
  background: var(--amber);
}

.water .sensor-icon {
  background: var(--teal);
}

.temperature .sensor-icon {
  background: var(--red);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--green);
}

.status-dot.warning {
  background: var(--amber);
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.toggle {
  position: relative;
  width: 54px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #cbd6dd;
  cursor: pointer;
}

.toggle span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s ease;
}

.toggle.is-on {
  background: var(--green);
}

.toggle.is-on span {
  transform: translateX(24px);
}

.savings-band {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: center;
  color: var(--white);
  background: var(--navy);
}

.savings-band .eyebrow {
  color: #8be0bd;
}

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

.savings-grid div {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.savings-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
}

.savings-grid span {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.quiz-option {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  padding: 0 14px;
}

.quiz-option.is-correct {
  border-color: var(--green);
  background: #e8f7f0;
}

.quiz-option.is-wrong {
  border-color: var(--red);
  background: #fff0ef;
}

.tool-list article {
  padding: 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 34px;
  align-items: start;
  background: #eaf1f3;
}

.contact-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-form .primary-button {
  width: 100%;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1020px) {
  .hero,
  .split-grid,
  .education-grid,
  .savings-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .iot-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .header-cta {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 430px;
  }

  .dashboard-glass {
    inset: 18px;
    padding: 16px;
  }

  .trust-band,
  .iot-dashboard,
  .savings-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card p {
    grid-column: auto;
  }

  footer {
    flex-direction: column;
  }
}
