:root {
  color-scheme: light;
  --ink: #111315;
  --muted: #646a70;
  --line: #dfe4e8;
  --paper: #f7f8f7;
  --white: #ffffff;
  --green: #2c7a63;
  --blue: #276c8b;
  --gold: #c98f37;
  --shadow: 0 24px 70px rgba(20, 28, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 7px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: 3px;
  top: 3px;
  border-radius: 50%;
  background: currentColor;
}

.site-nav {
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0f1716;
}

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

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 11, 12, 0.86) 0%, rgba(4, 11, 12, 0.58) 36%, rgba(4, 11, 12, 0.12) 72%),
    linear-gradient(0deg, rgba(4, 11, 12, 0.38), rgba(4, 11, 12, 0.02) 42%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 112px);
  padding-top: 60px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.eyebrow.dark {
  color: var(--green);
}

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

h1 {
  margin-bottom: 24px;
  max-width: 720px;
  font-size: clamp(50px, 7vw, 96px);
  line-height: 0.98;
  font-weight: 780;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 760;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.16;
}

p {
  line-height: 1.65;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  font-size: clamp(18px, 2vw, 23px);
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 720;
  font-size: 15px;
}

.button.primary {
  background: #fff;
  color: #111315;
  border-color: #fff;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.section {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 6vw, 80px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
  background: #fff;
}

.intro p:last-child {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 19px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.services {
  background: #f2f5f4;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(210, 218, 220, 0.72);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(20, 28, 34, 0.05);
}

.service-card p,
.timeline p,
.feature-copy p,
.contact-copy p,
footer p {
  color: var(--muted);
}

.service-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green), var(--blue));
  position: relative;
}

.service-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.service-icon.shades::after {
  inset: 10px 8px;
  border-radius: 4px;
  box-shadow: inset 0 -8px 0 rgba(44, 122, 99, 0.32);
}

.service-icon.voice::after {
  inset: 9px 16px;
  border-radius: 999px;
}

.service-icon.app::after {
  inset: 8px 12px;
  border-radius: 5px;
}

.service-icon.climate::after {
  inset: 9px;
  background: conic-gradient(from 180deg, #fff, rgba(255, 255, 255, 0.38), #fff);
}

.service-icon.security::after {
  inset: 9px 12px;
  border-radius: 50% 50% 45% 45%;
}

.service-icon.video::after {
  inset: 13px 9px;
  border-radius: 4px;
}

.service-icon.video::before {
  content: "";
  position: absolute;
  right: 7px;
  top: 16px;
  width: 9px;
  height: 10px;
  clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 84%);
  background: rgba(255, 255, 255, 0.9);
}

.examples {
  background: #101415;
  color: #fff;
}

.examples .section-heading {
  max-width: 900px;
}

.examples .eyebrow.dark {
  color: #8ad8bf;
}

.three-home-scene {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #080a0f;
  box-shadow: var(--shadow);
}

.three-home-canvas {
  position: absolute;
  inset: 0;
}

.three-home-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.three-home-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.three-home-overlay {
  position: absolute;
  left: clamp(18px, 4vw, 46px);
  right: clamp(18px, 4vw, 46px);
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: none;
}

.three-home-overlay span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 740;
}

@media (max-width: 680px) {
  .three-home-scene {
    min-height: 620px;
  }

  .three-home-overlay {
    display: grid;
  }
}

.automation-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.56fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: stretch;
}

.smart-house {
  min-height: 640px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 18%, rgba(201, 143, 55, 0.24), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(44, 122, 99, 0.28), transparent 32%),
    linear-gradient(145deg, #17201f, #0f1415 72%);
  box-shadow: var(--shadow);
}

.house-shell {
  position: absolute;
  left: 8%;
  right: 27%;
  top: 23%;
  bottom: 10%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr 0.95fr;
  gap: 1px;
  padding: 1px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.roof {
  position: absolute;
  left: 5%;
  right: 5%;
  top: -82px;
  height: 92px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
}

.room {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.room::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.room-living {
  grid-row: span 2;
}

.room-climate {
  grid-column: span 2;
}

.room-name {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-size: 13px;
  font-weight: 760;
  color: rgba(255, 255, 255, 0.64);
}

.room-label {
  position: absolute;
  left: 18px;
  bottom: 17px;
  z-index: 2;
  font-size: 12px;
  font-weight: 740;
  color: rgba(255, 255, 255, 0.48);
}

.window-view {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 32%;
  height: 36%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 225, 154, 0.2), rgba(109, 168, 178, 0.18));
  overflow: hidden;
}

.blind {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  background: rgba(255, 255, 255, 0.86);
  transform-origin: top;
  animation: blindsMove 5s ease-in-out infinite;
}

.blind-one {
  top: 0;
}

.blind-two {
  top: 24%;
  animation-delay: 0.16s;
}

.blind-three {
  top: 48%;
  animation-delay: 0.32s;
}

.sun-glow {
  position: absolute;
  right: 12%;
  bottom: 18%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 198, 97, 0.86);
  box-shadow: 0 0 42px rgba(255, 198, 97, 0.72);
  opacity: 0.28;
  transition: opacity 300ms ease;
}

.ceiling-light,
.porch-light {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffe0a3;
  box-shadow: 0 0 0 rgba(255, 224, 163, 0);
  transform: translateX(-50%);
  transition: box-shadow 300ms ease, opacity 300ms ease;
}

.counter-light {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 34%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 224, 163, 0.3);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.voice-speaker {
  position: absolute;
  left: 24%;
  top: 42%;
  width: 26px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.sound-wave {
  position: absolute;
  left: 34%;
  top: 44%;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(138, 216, 191, 0.0);
  border-left-color: rgba(138, 216, 191, 0.72);
  border-radius: 50%;
  animation: soundPulse 2.2s ease-out infinite;
}

.wave-two {
  animation-delay: 0.5s;
}

.motion-sensor {
  position: absolute;
  right: 22%;
  top: 30%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.motion-sensor::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(138, 216, 191, 0.0);
  border-radius: 50%;
  animation: sensorPulse 2.6s ease-out infinite;
}

.path-light {
  position: absolute;
  bottom: 27%;
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 224, 163, 0.42);
  transition: box-shadow 300ms ease, background 300ms ease;
}

.path-light.one {
  left: 20%;
}

.path-light.two {
  left: 44%;
  transition-delay: 0.12s;
}

.path-light.three {
  left: 68%;
  transition-delay: 0.24s;
}

.security-camera {
  position: absolute;
  right: 18%;
  top: 30%;
  width: 44px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
}

.security-camera::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 6px;
  width: 12px;
  height: 10px;
  border-radius: 50%;
  background: #101415;
}

.camera-scan {
  position: absolute;
  right: 16%;
  top: 43%;
  width: 150px;
  height: 94px;
  background: conic-gradient(from 245deg, rgba(138, 216, 191, 0.28), transparent 34deg);
  transform-origin: top right;
  opacity: 0.18;
  animation: cameraSweep 3.8s ease-in-out infinite;
}

.climate-ring {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.12);
  border-top-color: #8ad8bf;
  border-right-color: #c98f37;
  transform: translate(-50%, -50%);
  animation: climateTurn 8s linear infinite;
}

.climate-value {
  position: absolute;
  left: 50%;
  top: 47%;
  font-size: 24px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.system-sun {
  position: absolute;
  left: 8%;
  top: 7%;
  z-index: 3;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.system-sun span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffc661;
  box-shadow: 0 0 44px rgba(255, 198, 97, 0.72);
  animation: sunPulse 3.8s ease-in-out infinite;
}

.control-hub {
  position: absolute;
  left: 50%;
  top: 13%;
  z-index: 5;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 50%;
  color: #101415;
  background: #8ad8bf;
  box-shadow: 0 0 0 10px rgba(138, 216, 191, 0.1), 0 28px 70px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
}

.control-hub strong {
  font-size: 18px;
}

.control-hub small {
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.hub-pulse {
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(138, 216, 191, 0.38);
  border-radius: 50%;
  animation: hubPulse 2.8s ease-out infinite;
}

.system-phone {
  position: absolute;
  right: 7%;
  top: 24%;
  width: min(270px, 36%);
  min-height: 360px;
  padding: 22px;
  border-radius: 34px;
  color: #fff;
  background: #0b0f10;
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.34);
}

.phone-speaker {
  display: block;
  width: 74px;
  height: 18px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: #20282a;
}

.system-phone strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.12;
}

.system-phone p {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.68);
}

.flow-line {
  position: absolute;
  z-index: 2;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(138, 216, 191, 0.92), transparent);
  opacity: 0.36;
  transform-origin: left center;
  animation: signalFlow 2.8s ease-in-out infinite;
}

.flow-line::after {
  content: "";
  position: absolute;
  right: 10%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ad8bf;
  box-shadow: 0 0 20px rgba(138, 216, 191, 0.8);
  transform: translateY(-50%);
}

.flow-sun {
  left: 16%;
  top: 16%;
  width: 30%;
  transform: rotate(8deg);
}

.flow-living {
  left: 41%;
  top: 30%;
  width: 16%;
  transform: rotate(142deg);
  animation-delay: 0.2s;
}

.flow-kitchen {
  left: 53%;
  top: 28%;
  width: 18%;
  transform: rotate(52deg);
  animation-delay: 0.5s;
}

.flow-hall {
  left: 50%;
  top: 30%;
  width: 22%;
  transform: rotate(109deg);
  animation-delay: 0.8s;
}

.flow-entry {
  left: 54%;
  top: 30%;
  width: 20%;
  transform: rotate(88deg);
  animation-delay: 1.1s;
}

.flow-phone {
  left: 58%;
  top: 20%;
  width: 31%;
  transform: rotate(16deg);
  animation-delay: 1.4s;
}

.scenario-list {
  display: grid;
  gap: 12px;
}

.scenario-card {
  width: 100%;
  min-height: 118px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 14px;
  align-content: center;
  text-align: left;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 180ms ease, border 180ms ease, color 180ms ease, transform 180ms ease;
}

.scenario-card span {
  grid-row: span 2;
  color: #8ad8bf;
  font-weight: 840;
}

.scenario-card strong {
  color: #fff;
  font-size: 17px;
}

.scenario-card small {
  font-size: 14px;
  line-height: 1.45;
}

.scenario-card.active,
.scenario-card:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(138, 216, 191, 0.56);
  background: rgba(44, 122, 99, 0.28);
  transform: translateY(-2px);
}

.automation-demo[data-scenario="morning"] .sun-glow {
  opacity: 1;
}

.automation-demo[data-scenario="morning"] .room-living,
.automation-demo[data-scenario="arrival"] .room-hall,
.automation-demo[data-scenario="away"] .room-entry,
.automation-demo[data-scenario="evening"] .room-living,
.automation-demo[data-scenario="evening"] .room-kitchen {
  background: rgba(44, 122, 99, 0.24);
  box-shadow: inset 0 0 0 1px rgba(138, 216, 191, 0.22);
}

.automation-demo[data-scenario="arrival"] .motion-sensor,
.automation-demo[data-scenario="arrival"] .path-light,
.automation-demo[data-scenario="evening"] .ceiling-light,
.automation-demo[data-scenario="evening"] .porch-light,
.automation-demo[data-scenario="evening"] .counter-light {
  background: #ffe0a3;
  box-shadow: 0 0 34px rgba(255, 224, 163, 0.9);
}

.automation-demo[data-scenario="away"] .security-camera {
  background: #8ad8bf;
}

.automation-demo[data-scenario="away"] .camera-scan {
  opacity: 0.68;
}

.automation-demo[data-scenario="away"] .flow-entry,
.automation-demo[data-scenario="arrival"] .flow-hall,
.automation-demo[data-scenario="morning"] .flow-sun,
.automation-demo[data-scenario="morning"] .flow-living,
.automation-demo[data-scenario="evening"] .flow-phone,
.automation-demo[data-scenario="evening"] .flow-kitchen {
  opacity: 0.86;
}

.automation-demo[data-scenario="evening"] .window-view {
  background: linear-gradient(180deg, rgba(26, 36, 42, 0.86), rgba(14, 19, 20, 0.92));
}

.automation-demo[data-scenario="evening"] .blind {
  animation-name: blindsClose;
}

.home-system {
  display: grid;
  gap: 22px;
}

.system-inputs,
.system-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.input-node,
.system-summary article {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.input-node {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 14px;
  align-content: center;
}

.node-icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.sun-icon {
  background: #ffc661;
  box-shadow: 0 0 28px rgba(255, 198, 97, 0.64);
  animation: diagramPulse 3s ease-in-out infinite;
}

.motion-icon {
  border: 2px solid #8ad8bf;
  background: transparent;
  box-shadow: inset 0 0 0 11px rgba(138, 216, 191, 0.12);
  animation: diagramRing 2.4s ease-in-out infinite;
}

.app-icon {
  border-radius: 10px;
  background: linear-gradient(145deg, #8ad8bf, #2c7a63);
}

.input-node strong,
.system-summary strong {
  display: block;
  color: #fff;
}

.input-node small,
.system-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.system-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 44%, rgba(44, 122, 99, 0.2), transparent 34%),
    #121819;
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: var(--shadow);
}

.system-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.line {
  fill: none;
  stroke: rgba(138, 216, 191, 0.34);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 15;
  animation: flowDash 4s linear infinite;
}

.line-sun,
.line-hub-shades {
  stroke: rgba(255, 198, 97, 0.72);
}

.line-motion,
.line-hub-lights {
  stroke: rgba(138, 216, 191, 0.74);
}

.line-app,
.line-hub-phone {
  stroke: rgba(120, 176, 205, 0.72);
}

.schematic-house {
  position: absolute;
  left: 31%;
  top: 16%;
  width: 38%;
  height: 72%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.schematic-roof {
  position: absolute;
  left: 2%;
  right: 2%;
  top: -78px;
  height: 82px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(255, 255, 255, 0.18);
}

.house-zone {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.house-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(138, 216, 191, 0);
  animation: zoneGlow 8s ease-in-out infinite;
}

.zone-title {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.zone-shades {
  grid-row: span 2;
}

.zone-climate {
  grid-column: span 2;
}

.zone-window {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 35%;
  height: 34%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 198, 97, 0.12);
  overflow: hidden;
}

.zone-window i {
  display: block;
  height: 22%;
  margin-bottom: 8%;
  background: rgba(255, 255, 255, 0.86);
  animation: blindsDiagram 5s ease-in-out infinite;
}

.bulb {
  position: absolute;
  top: 42%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffe0a3;
  box-shadow: 0 0 24px rgba(255, 224, 163, 0.86);
  animation: lightDiagram 2.8s ease-in-out infinite;
}

.bulb-one {
  left: 28%;
}

.bulb-two {
  right: 28%;
  animation-delay: 0.35s;
}

.sensor-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid #8ad8bf;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.sensor-wave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(138, 216, 191, 0.64);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: sensorDiagram 2.4s ease-out infinite;
}

.camera-body {
  position: absolute;
  left: 34%;
  top: 42%;
  width: 48px;
  height: 22px;
  border-radius: 6px;
  background: #8ad8bf;
}

.camera-body::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 6px;
  width: 12px;
  height: 10px;
  border-radius: 50%;
  background: #121819;
}

.camera-field {
  position: absolute;
  left: 46%;
  top: 52%;
  width: 92px;
  height: 58px;
  background: conic-gradient(from 235deg, rgba(138, 216, 191, 0.3), transparent 34deg);
  transform-origin: top left;
  animation: cameraDiagram 3.4s ease-in-out infinite;
}

.temperature-ring {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 86px;
  height: 86px;
  border: 9px solid rgba(255, 255, 255, 0.12);
  border-top-color: #8ad8bf;
  border-right-color: #c98f37;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: climateDiagram 7s linear infinite;
}

.temperature-value {
  position: absolute;
  left: 50%;
  top: 54%;
  font-size: 22px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.main-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  color: #101415;
  background: #8ad8bf;
  box-shadow: 0 0 0 12px rgba(138, 216, 191, 0.11), 0 24px 60px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
}

.main-hub span {
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(138, 216, 191, 0.4);
  border-radius: 50%;
  animation: hubDiagram 2.8s ease-out infinite;
}

.main-hub strong {
  font-size: 18px;
}

.phone-panel {
  position: absolute;
  right: 5%;
  top: 26%;
  width: 190px;
  min-height: 260px;
  padding: 16px;
  border-radius: 28px;
  background: #0b0f10;
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.36);
}

.phone-speaker {
  display: block;
  width: 58px;
  height: 14px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #20282a;
}

.phone-panel strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.phone-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.phone-row b {
  color: #8ad8bf;
}

.phone-row.active b {
  color: #ffc661;
}

.system-summary article span {
  display: inline-block;
  margin-bottom: 16px;
  color: #8ad8bf;
  font-weight: 840;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(38px, 8vw, 92px);
  align-items: center;
  padding: clamp(78px, 10vw, 140px) clamp(20px, 7vw, 94px);
  background: #fff;
}

.feature-copy {
  max-width: 760px;
}

.device-panel {
  min-height: 520px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 22%, rgba(201, 143, 55, 0.24), transparent 28%),
    linear-gradient(145deg, #edf3ef, #dce8e5);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.phone {
  position: absolute;
  right: 12%;
  top: 12%;
  width: min(260px, 62%);
  min-height: 370px;
  padding: 18px;
  border-radius: 34px;
  background: #101415;
  color: #fff;
  box-shadow: 0 34px 80px rgba(16, 20, 21, 0.34);
}

.phone-top {
  width: 72px;
  height: 18px;
  margin: 0 auto 26px;
  border-radius: 999px;
  background: #22282b;
}

.room-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 15px;
}

.scene {
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #20272a;
}

.scene.active {
  background: linear-gradient(135deg, #2c7a63, #c98f37);
}

.slider {
  height: 9px;
  margin-top: 28px;
  border-radius: 999px;
  background: #2a3336;
}

.slider span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.status-card {
  position: absolute;
  left: 12%;
  bottom: 14%;
  width: min(230px, 54%);
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(20, 28, 34, 0.14);
}

.status-card p {
  margin: 0;
  font-weight: 720;
  color: var(--ink);
}

.pulse {
  display: block;
  width: 11px;
  height: 11px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(44, 122, 99, 0.12);
}

.process {
  background: #f7f8f7;
}

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

.timeline article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.timeline span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--green);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.72fr);
  gap: clamp(36px, 8vw, 98px);
  padding: clamp(78px, 10vw, 140px) clamp(20px, 7vw, 94px);
  background: #eef3f1;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #3c4246;
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d7dde0;
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfc;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(44, 122, 99, 0.16);
  border-color: var(--green);
}

.dark-button {
  width: 100%;
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
}

.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 80px);
  background: #101415;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 960px) {
  .intro,
  .feature-band,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .smart-house {
    min-height: 580px;
  }

  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 62px;
    padding: 0 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 18px 18px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: 0 20px 40px rgba(20, 28, 34, 0.12);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-header.open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 780px;
    align-items: end;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 11, 12, 0.18) 0%, rgba(4, 11, 12, 0.34) 30%, rgba(4, 11, 12, 0.86) 78%),
      linear-gradient(90deg, rgba(4, 11, 12, 0.52), rgba(4, 11, 12, 0.06));
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 18px 56px;
    padding-top: 0;
  }

  h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  h2 {
    font-size: clamp(31px, 10vw, 48px);
  }

  .button {
    width: 100%;
  }

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

  .service-card,
  .contact-form {
    padding: 22px;
  }

  .smart-house {
    min-height: 640px;
  }

  .system-sun {
    left: 9%;
    top: 7%;
  }

  .control-hub {
    top: 8%;
    width: 104px;
    height: 104px;
  }

  .house-shell {
    left: 7%;
    right: 7%;
    top: 23%;
    bottom: 38%;
  }

  .system-phone {
    left: 10%;
    right: 10%;
    top: auto;
    bottom: 7%;
    width: auto;
    min-height: 230px;
    border-radius: 26px;
  }

  .flow-line {
    display: none;
  }

  .device-panel {
    min-height: 460px;
  }

  .phone {
    right: 8%;
    width: 68%;
  }

  .status-card {
    left: 8%;
    width: 60%;
  }

  footer {
    display: grid;
  }
}

@keyframes blindsMove {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }

  48%,
  64% {
    transform: translateY(-36%) scaleY(0.42);
  }
}

@keyframes blindsClose {
  0%,
  100% {
    transform: translateY(-36%) scaleY(0.42);
  }

  48%,
  64% {
    transform: translateY(0) scaleY(1);
  }
}

@keyframes sensorPulse {
  0% {
    opacity: 0.9;
    transform: scale(0.4);
    border-color: rgba(138, 216, 191, 0.6);
  }

  100% {
    opacity: 0;
    transform: scale(1.7);
    border-color: rgba(138, 216, 191, 0);
  }
}

@keyframes cameraSweep {
  0%,
  100% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(12deg);
  }
}

@keyframes climateTurn {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes signalFlow {
  0%,
  100% {
    opacity: 0.18;
  }

  50% {
    opacity: 0.72;
  }
}

@keyframes soundPulse {
  0% {
    opacity: 0.9;
    transform: scale(0.45);
    border-left-color: rgba(138, 216, 191, 0.72);
  }

  100% {
    opacity: 0;
    transform: scale(1.8);
    border-left-color: rgba(138, 216, 191, 0);
  }
}

@keyframes sunPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 44px rgba(255, 198, 97, 0.68);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 68px rgba(255, 198, 97, 0.88);
  }
}

@keyframes hubPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.82);
  }

  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

@media (max-width: 960px) {
  .system-inputs,
  .system-summary {
    grid-template-columns: 1fr;
  }

  .system-stage {
    min-height: 760px;
  }

  .schematic-house {
    left: 12%;
    top: 19%;
    width: 58%;
    height: 54%;
  }

  .phone-panel {
    left: 16%;
    right: 16%;
    top: auto;
    bottom: 28px;
    width: auto;
    min-height: 190px;
    border-radius: 24px;
  }

  .system-lines {
    opacity: 0.72;
  }
}

@media (max-width: 680px) {
  .system-stage {
    min-height: 700px;
  }

  .schematic-house {
    left: 8%;
    top: 20%;
    width: 84%;
    height: 45%;
  }

  .schematic-roof {
    top: -52px;
    height: 56px;
  }

  .main-hub {
    width: 82px;
    height: 82px;
  }

  .main-hub strong {
    font-size: 14px;
  }

  .phone-panel {
    left: 8%;
    right: 8%;
  }

  .system-lines {
    display: none;
  }
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -50;
  }
}

@keyframes diagramPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes diagramRing {
  0%,
  100% {
    box-shadow: inset 0 0 0 11px rgba(138, 216, 191, 0.12), 0 0 0 0 rgba(138, 216, 191, 0);
  }

  50% {
    box-shadow: inset 0 0 0 6px rgba(138, 216, 191, 0.22), 0 0 0 10px rgba(138, 216, 191, 0.08);
  }
}

@keyframes zoneGlow {
  0%,
  100% {
    background: rgba(138, 216, 191, 0);
  }

  45%,
  62% {
    background: rgba(138, 216, 191, 0.12);
  }
}

@keyframes blindsDiagram {
  0%,
  100% {
    transform: translateY(0);
  }

  45%,
  65% {
    transform: translateY(-70%);
  }
}

@keyframes lightDiagram {
  0%,
  100% {
    opacity: 0.45;
    box-shadow: 0 0 6px rgba(255, 224, 163, 0.35);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 28px rgba(255, 224, 163, 0.9);
  }
}

@keyframes sensorDiagram {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.35);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.45);
  }
}

@keyframes cameraDiagram {
  0%,
  100% {
    opacity: 0.26;
    transform: rotate(-8deg);
  }

  50% {
    opacity: 0.7;
    transform: rotate(10deg);
  }
}

@keyframes climateDiagram {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes hubDiagram {
  0% {
    opacity: 0.7;
    transform: scale(0.85);
  }

  100% {
    opacity: 0;
    transform: scale(1.24);
  }
}

.house-animation {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 78%, rgba(44, 122, 99, 0.22), transparent 26%),
    linear-gradient(180deg, #101117 0%, #171b21 44%, #0d1011 100%);
  box-shadow: var(--shadow);
  animation: skyShift 16s ease-in-out infinite;
}

.sky-cycle {
  position: absolute;
  inset: 0;
}

.sun-orbit,
.moon-orbit {
  position: absolute;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
}

.sun-orbit {
  left: 12%;
  top: 14%;
  background: #ffc661;
  box-shadow: 0 0 64px rgba(255, 198, 97, 0.72);
  animation: sunTravel 16s ease-in-out infinite;
}

.moon-orbit {
  right: 14%;
  top: 16%;
  background: #d9e7ef;
  box-shadow: 0 0 48px rgba(217, 231, 239, 0.48);
  opacity: 0;
  animation: moonTravel 16s ease-in-out infinite;
}

.moon-orbit::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -4px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #171b21;
}

.ground-plane {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 76px;
  height: 250px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 48px);
  transform: perspective(900px) rotateX(58deg) rotateZ(-8deg);
  transform-origin: center bottom;
}

.smart-diorama {
  position: absolute;
  left: 50%;
  bottom: 94px;
  width: min(940px, 92%);
  height: 500px;
  transform: translateX(-50%);
}

.main-house-model {
  position: absolute;
  left: 10%;
  bottom: 70px;
  width: 520px;
  height: 330px;
  transform: skewY(-4deg);
}

.roof-plane {
  position: absolute;
  z-index: 4;
  top: -78px;
  height: 112px;
  background: linear-gradient(135deg, #4a5356, #252b2d);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.roof-left {
  left: 20px;
  width: 310px;
  transform: skewX(-24deg) rotate(-4deg);
}

.roof-right {
  right: 22px;
  width: 250px;
  transform: skewX(25deg) rotate(4deg);
}

.solar-panel {
  position: absolute;
  left: 48px;
  top: 20px;
  width: 190px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 20px),
    linear-gradient(135deg, #83b8e5, #4d7eaa);
}

.panel-two {
  left: auto;
  right: 34px;
  top: 26px;
  width: 116px;
}

.house-floor {
  position: absolute;
  left: 32px;
  right: 34px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(248, 246, 237, 0.94);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
}

.upper-floor {
  top: 42px;
  height: 146px;
}

.lower-floor {
  top: 188px;
  height: 136px;
}

.cutaway-room,
.garage-space,
.utility-space,
.window-wall {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(19, 24, 25, 0.12);
}

.living-room {
  background: linear-gradient(180deg, #f6f0e5, #d8c7aa);
}

.window-wall {
  background: linear-gradient(180deg, #f7f8f6, #deded8);
}

.garage-space {
  background: linear-gradient(180deg, #f1f1ee, #d5d8d3);
}

.utility-space {
  background: linear-gradient(180deg, #fbfbf8, #e0e3dd);
}

.pendant {
  position: absolute;
  left: 42%;
  top: 24px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffd98e;
  box-shadow: 0 0 0 rgba(255, 217, 142, 0);
  animation: interiorLights 16s ease-in-out infinite;
}

.sofa-shape {
  position: absolute;
  left: 42px;
  bottom: 28px;
  width: 120px;
  height: 42px;
  border-radius: 12px 12px 4px 4px;
  background: #343738;
}

.tv-shape {
  position: absolute;
  right: 36px;
  bottom: 45px;
  width: 66px;
  height: 38px;
  border-radius: 3px;
  background: #151718;
}

.smart-window,
.side-window {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 112px;
  height: 74px;
  border: 3px solid #e8eeee;
  border-radius: 4px;
  background: rgba(114, 160, 190, 0.38);
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.small-window {
  top: 76%;
  width: 84px;
  height: 52px;
}

.smart-window i,
.side-window::before {
  display: block;
  height: 17px;
  margin-bottom: 7px;
  background: rgba(255, 255, 255, 0.9);
  animation: shadeCycle 16s ease-in-out infinite;
  content: "";
}

.smart-window b {
  position: absolute;
  inset: 0;
  background: rgba(255, 217, 142, 0);
  animation: windowGlow 16s ease-in-out infinite;
}

.car-shape {
  position: absolute;
  left: 44px;
  bottom: 30px;
  width: 150px;
  height: 54px;
  border-radius: 42px 42px 10px 10px;
  border: 6px solid #222;
  background: #f7f8f7;
}

.hub-box,
.battery-box {
  position: absolute;
  top: 46px;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #f7f8f7;
  border: 2px solid #c9d3cd;
}

.hub-box {
  left: 34px;
  display: grid;
  place-items: center;
  color: #2c7a63;
  font-weight: 900;
}

.battery-box {
  right: 42px;
}

.status-line {
  position: absolute;
  left: 106px;
  right: 108px;
  height: 5px;
  border-radius: 999px;
  background: #46d27f;
  box-shadow: 0 0 14px rgba(70, 210, 127, 0.74);
  animation: dataFlow 2.2s linear infinite;
}

.line-a {
  top: 58px;
}

.line-b {
  top: 88px;
  animation-delay: 0.7s;
}

.side-house-model {
  position: absolute;
  right: 8%;
  bottom: 128px;
  width: 240px;
  height: 210px;
  opacity: 0.76;
}

.side-roof {
  position: absolute;
  left: 20px;
  right: 10px;
  top: 0;
  height: 74px;
  background: linear-gradient(135deg, #3f484b, #22282a);
  transform: skewX(-24deg);
}

.side-wall {
  position: absolute;
  left: 48px;
  right: 34px;
  top: 72px;
  height: 120px;
  background: #ecece7;
}

.side-window {
  width: 72px;
  height: 48px;
}

.camera-post {
  position: absolute;
  right: 14%;
  bottom: 96px;
  width: 70px;
  height: 110px;
  z-index: 8;
}

.camera-post::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 34px;
  bottom: 0;
  width: 8px;
  border-radius: 999px;
  background: #d8dfdc;
}

.camera-head {
  position: absolute;
  left: 8px;
  top: 20px;
  width: 58px;
  height: 32px;
  border-radius: 8px;
  background: #f4f7f6;
}

.camera-head::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111315;
}

.camera-beam {
  position: absolute;
  right: 42px;
  top: 38px;
  width: 260px;
  height: 150px;
  background: conic-gradient(from 185deg, rgba(255, 238, 172, 0.0), rgba(255, 238, 172, 0.34), rgba(255, 238, 172, 0.0) 32deg);
  opacity: 0;
  transform-origin: top right;
  animation: nightCamera 16s ease-in-out infinite;
}

.garden-zone {
  position: absolute;
  left: 3%;
  bottom: 68px;
  width: 158px;
  height: 150px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(101, 72, 42, 0.95) 0 5px, transparent 5px 20px),
    linear-gradient(135deg, #557a46, #2f5135);
  transform: skewY(-10deg);
}

.animation-legend {
  position: absolute;
  left: clamp(18px, 4vw, 46px);
  right: clamp(18px, 4vw, 46px);
  bottom: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 10;
}

.animation-legend span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 740;
}

@media (max-width: 960px) {
  .house-animation {
    min-height: 680px;
  }

  .smart-diorama {
    width: 1000px;
    transform: translateX(-50%) scale(0.78);
    transform-origin: center bottom;
  }
}

@media (max-width: 680px) {
  .house-animation {
    min-height: 620px;
  }

  .smart-diorama {
    transform: translateX(-50%) scale(0.58);
  }

  .animation-legend {
    display: grid;
  }

  .sun-orbit,
  .moon-orbit {
    width: 50px;
    height: 50px;
  }
}

@keyframes skyShift {
  0%,
  48% {
    background:
      radial-gradient(circle at 18% 78%, rgba(44, 122, 99, 0.22), transparent 26%),
      linear-gradient(180deg, #18344c 0%, #243f4d 44%, #0d1011 100%);
  }

  72%,
  100% {
    background:
      radial-gradient(circle at 18% 78%, rgba(44, 122, 99, 0.16), transparent 26%),
      linear-gradient(180deg, #090a12 0%, #111827 48%, #0d1011 100%);
  }
}

@keyframes sunTravel {
  0% {
    opacity: 0;
    transform: translate(-80px, 120px);
  }

  18%,
  42% {
    opacity: 1;
  }

  56%,
  100% {
    opacity: 0;
    transform: translate(520px, -20px);
  }
}

@keyframes moonTravel {
  0%,
  54% {
    opacity: 0;
    transform: translate(60px, 80px);
  }

  70%,
  100% {
    opacity: 1;
    transform: translate(-360px, 0);
  }
}

@keyframes shadeCycle {
  0%,
  14% {
    transform: translateY(0);
  }

  28%,
  52% {
    transform: translateY(-58%);
  }

  72%,
  100% {
    transform: translateY(0);
  }
}

@keyframes interiorLights {
  0%,
  52% {
    opacity: 0.35;
    box-shadow: 0 0 0 rgba(255, 217, 142, 0);
  }

  68%,
  100% {
    opacity: 1;
    box-shadow: 0 0 42px rgba(255, 217, 142, 0.9), 0 60px 90px rgba(255, 217, 142, 0.18);
  }
}

@keyframes windowGlow {
  0%,
  55% {
    background: rgba(255, 217, 142, 0);
  }

  72%,
  100% {
    background: rgba(255, 217, 142, 0.42);
  }
}

@keyframes nightCamera {
  0%,
  58% {
    opacity: 0;
    transform: rotate(-8deg);
  }

  70%,
  100% {
    opacity: 1;
    transform: rotate(7deg);
  }
}

@keyframes dataFlow {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

.ngen-home-scene {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #090a0f;
  box-shadow: var(--shadow);
  perspective: 1200px;
  animation: ngenSky 18s ease-in-out infinite;
}

.scene-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scene-sun,
.scene-moon {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
}

.scene-sun {
  left: 9%;
  top: 16%;
  background: #ffc661;
  box-shadow: 0 0 80px rgba(255, 198, 97, 0.75);
  animation: ngenSun 18s ease-in-out infinite;
}

.scene-moon {
  right: 12%;
  top: 17%;
  background: #e6edf2;
  box-shadow: 0 0 56px rgba(230, 237, 242, 0.5);
  opacity: 0;
  animation: ngenMoon 18s ease-in-out infinite;
}

.scene-moon::after {
  content: "";
  position: absolute;
  right: -9px;
  top: -4px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #0d111b;
}

.scene-world {
  position: absolute;
  left: 50%;
  bottom: 54px;
  width: min(1080px, 94%);
  height: 560px;
  transform: translateX(-50%) rotateX(58deg) rotateZ(-36deg);
  transform-style: preserve-3d;
}

.scene-ground {
  position: absolute;
  inset: 8% 2% 4%;
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 54px),
    linear-gradient(135deg, #202a27, #101415);
  transform: translateZ(-8px);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
}

.yard {
  position: absolute;
  left: 28px;
  bottom: 36px;
  width: 170px;
  height: 160px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(122, 88, 47, 0.9) 0 5px, transparent 5px 19px),
    linear-gradient(135deg, #5c844b, #294832);
}

.driveway {
  position: absolute;
  right: 190px;
  bottom: 42px;
  width: 260px;
  height: 88px;
  background: rgba(222, 225, 218, 0.18);
}

.cutaway-house {
  position: absolute;
  left: 220px;
  top: 142px;
  width: 520px;
  height: 300px;
  transform-style: preserve-3d;
}

.house-shadow {
  position: absolute;
  inset: 38px 0 -24px 26px;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(18px);
  transform: translateZ(-12px);
}

.house-core {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.slab {
  position: absolute;
  left: 38px;
  right: 40px;
  height: 132px;
  background: #f0efe9;
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(17, 19, 20, 0.08);
}

.slab-upper {
  top: 24px;
  transform: translateZ(126px);
}

.slab-lower {
  top: 156px;
  transform: translateZ(42px);
}

.wall {
  position: absolute;
  background: #f8f8f4;
  border: 1px solid rgba(17, 19, 20, 0.1);
}

.wall-back {
  left: 38px;
  top: 24px;
  width: 442px;
  height: 264px;
  transform: translateY(-132px) rotateX(90deg) translateZ(132px);
}

.wall-left {
  left: 38px;
  top: 24px;
  width: 264px;
  height: 126px;
  transform-origin: left top;
  transform: rotateY(90deg) translateZ(0);
}

.wall-right {
  right: 40px;
  top: 24px;
  width: 264px;
  height: 126px;
  transform-origin: right top;
  transform: rotateY(-90deg) translateZ(0);
}

.roof-3d {
  position: absolute;
  top: -30px;
  height: 124px;
  background: linear-gradient(135deg, #596164, #24292b);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
}

.roof-main {
  left: 36px;
  width: 306px;
  transform: translateZ(205px) rotateY(-22deg) rotateX(8deg);
}

.roof-side {
  right: 52px;
  width: 250px;
  transform: translateZ(204px) rotateY(24deg) rotateX(8deg);
}

.pv {
  position: absolute;
  top: 22px;
  left: 42px;
  width: 190px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0 1px, transparent 1px 31px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #8ec5ec, #4e78a1);
}

.pv-b {
  left: auto;
  right: 26px;
  top: 28px;
  width: 104px;
}

.room3d {
  position: absolute;
  background: rgba(245, 242, 232, 0.92);
  border: 1px solid rgba(17, 19, 20, 0.08);
}

.living3d {
  left: 62px;
  top: 52px;
  width: 238px;
  height: 112px;
  transform: translateZ(128px);
}

.garage3d {
  left: 62px;
  top: 174px;
  width: 210px;
  height: 104px;
  transform: translateZ(44px);
}

.tech3d {
  left: 282px;
  top: 174px;
  width: 166px;
  height: 104px;
  transform: translateZ(44px);
}

.sofa3d {
  position: absolute;
  left: 34px;
  bottom: 26px;
  width: 100px;
  height: 34px;
  border-radius: 14px 14px 5px 5px;
  background: #333739;
}

.media3d {
  position: absolute;
  right: 34px;
  bottom: 38px;
  width: 58px;
  height: 34px;
  background: #131617;
}

.lamp3d {
  position: absolute;
  left: 48%;
  top: 22px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffd88d;
  animation: ngenLights 18s ease-in-out infinite;
}

.car3d {
  position: absolute;
  left: 34px;
  bottom: 24px;
  width: 132px;
  height: 46px;
  border: 5px solid #1a1d1e;
  border-radius: 38px 38px 10px 10px;
  background: #f8faf8;
}

.controller3d,
.module3d {
  position: absolute;
  top: 34px;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 2px solid #cbd5cf;
  background: #f8faf8;
}

.controller3d {
  left: 20px;
  display: grid;
  place-items: center;
  color: #2c7a63;
  font-weight: 900;
}

.module3d {
  right: 18px;
}

.energy {
  position: absolute;
  left: 78px;
  right: 74px;
  height: 5px;
  border-radius: 999px;
  background: #48e07f;
  box-shadow: 0 0 14px rgba(72, 224, 127, 0.82);
  animation: ngenEnergy 2s linear infinite;
}

.energy-a {
  top: 48px;
}

.energy-b {
  top: 72px;
  animation-delay: 0.7s;
}

.facade3d {
  position: absolute;
  right: 42px;
  top: 54px;
  width: 148px;
  height: 112px;
  background: #f8f8f4;
  transform: translateZ(132px);
}

.window3d {
  position: absolute;
  left: 24px;
  top: 22px;
  width: 80px;
  height: 56px;
  border: 3px solid #e7eeee;
  border-radius: 4px;
  background: rgba(115, 160, 190, 0.38);
  overflow: hidden;
}

.window-small {
  left: 38px;
  top: 82px;
  width: 58px;
  height: 38px;
}

.window3d i {
  display: block;
  height: 13px;
  margin-bottom: 5px;
  background: rgba(255, 255, 255, 0.9);
  animation: ngenBlinds 18s ease-in-out infinite;
}

.window3d b {
  position: absolute;
  inset: 0;
  background: rgba(255, 216, 141, 0);
  animation: ngenWindowGlow 18s ease-in-out infinite;
}

.secondary-house {
  position: absolute;
  right: 110px;
  top: 176px;
  width: 230px;
  height: 180px;
  transform-style: preserve-3d;
  opacity: 0.76;
}

.secondary-roof {
  position: absolute;
  left: 10px;
  top: -28px;
  width: 206px;
  height: 76px;
  background: linear-gradient(135deg, #4a5356, #24292b);
  transform: translateZ(80px) rotateY(-18deg);
}

.secondary-wall {
  position: absolute;
  left: 38px;
  top: 48px;
  width: 144px;
  height: 104px;
  background: #ecece7;
  transform: translateZ(36px);
}

.secondary-panel {
  position: absolute;
  left: 54px;
  top: 0;
  width: 96px;
  height: 36px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.36) 0 1px, transparent 1px 24px),
    linear-gradient(135deg, #8ec5ec, #4e78a1);
  transform: translateZ(88px) rotateY(-18deg);
}

.camera3d {
  position: absolute;
  right: 210px;
  bottom: 76px;
  width: 80px;
  height: 124px;
  transform-style: preserve-3d;
}

.camera-stand {
  position: absolute;
  left: 37px;
  top: 40px;
  width: 8px;
  height: 84px;
  border-radius: 999px;
  background: #dce5e2;
}

.camera-unit {
  position: absolute;
  left: 14px;
  top: 22px;
  width: 58px;
  height: 32px;
  border-radius: 8px;
  background: #f5f8f7;
}

.camera-unit::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111315;
}

.camera-lightcone {
  position: absolute;
  right: 43px;
  top: 36px;
  width: 300px;
  height: 170px;
  background: conic-gradient(from 185deg, rgba(255, 238, 172, 0), rgba(255, 238, 172, 0.34), rgba(255, 238, 172, 0) 32deg);
  opacity: 0;
  transform-origin: top right;
  animation: ngenCamera 18s ease-in-out infinite;
}

.scene-captions {
  position: absolute;
  left: clamp(18px, 4vw, 46px);
  right: clamp(18px, 4vw, 46px);
  bottom: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 10;
}

.scene-captions span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 740;
}

@media (max-width: 960px) {
  .ngen-home-scene {
    min-height: 720px;
  }

  .scene-world {
    width: 1120px;
    transform: translateX(-50%) rotateX(58deg) rotateZ(-36deg) scale(0.78);
    transform-origin: center bottom;
  }
}

@media (max-width: 680px) {
  .ngen-home-scene {
    min-height: 640px;
  }

  .scene-world {
    transform: translateX(-50%) rotateX(58deg) rotateZ(-36deg) scale(0.56);
  }

  .scene-captions {
    display: grid;
  }
}

@keyframes ngenSky {
  0%,
  52% {
    background: linear-gradient(180deg, #18344c 0%, #243f4d 45%, #090a0f 100%);
  }

  70%,
  100% {
    background: linear-gradient(180deg, #070812 0%, #111827 46%, #090a0f 100%);
  }
}

@keyframes ngenSun {
  0% {
    opacity: 0;
    transform: translate(-120px, 130px);
  }

  18%,
  45% {
    opacity: 1;
  }

  58%,
  100% {
    opacity: 0;
    transform: translate(520px, -12px);
  }
}

@keyframes ngenMoon {
  0%,
  58% {
    opacity: 0;
    transform: translate(70px, 96px);
  }

  72%,
  100% {
    opacity: 1;
    transform: translate(-360px, 4px);
  }
}

@keyframes ngenBlinds {
  0%,
  15% {
    transform: translateY(0);
  }

  30%,
  55% {
    transform: translateY(-58%);
  }

  72%,
  100% {
    transform: translateY(0);
  }
}

@keyframes ngenLights {
  0%,
  55% {
    opacity: 0.34;
    box-shadow: 0 0 0 rgba(255, 216, 141, 0);
  }

  70%,
  100% {
    opacity: 1;
    box-shadow: 0 0 38px rgba(255, 216, 141, 0.95), 0 60px 90px rgba(255, 216, 141, 0.18);
  }
}

@keyframes ngenWindowGlow {
  0%,
  55% {
    background: rgba(255, 216, 141, 0);
  }

  70%,
  100% {
    background: rgba(255, 216, 141, 0.42);
  }
}

@keyframes ngenCamera {
  0%,
  60% {
    opacity: 0;
    transform: rotate(-8deg);
  }

  72%,
  100% {
    opacity: 1;
    transform: rotate(8deg);
  }
}

@keyframes ngenEnergy {
  0%,
  100% {
    opacity: 0.36;
  }

  50% {
    opacity: 1;
  }
}
