:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: rgba(12, 18, 22, 0.78);
  --panel-strong: rgba(18, 28, 34, 0.92);
  --line: rgba(146, 232, 255, 0.2);
  --text: #edf8fb;
  --muted: #95aeb7;
  --cyan: #55e6ff;
  --green: #79ffbd;
  --amber: #f3d06b;
  --red: #ff6c86;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(85, 230, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(121, 255, 189, 0.08), transparent 26rem),
    linear-gradient(180deg, #050608 0%, #081013 50%, #050608 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  content: "";
}

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

#plexus-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(5, 6, 8, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  background:
    linear-gradient(135deg, transparent 38%, var(--cyan) 39% 47%, transparent 48%),
    radial-gradient(circle at 72% 30%, var(--green) 0 0.22rem, transparent 0.24rem),
    linear-gradient(135deg, rgba(85, 230, 255, 0.2), rgba(121, 255, 189, 0.08));
  border: 1px solid rgba(85, 230, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(85, 230, 255, 0.4);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(85, 230, 255, 0.11);
  color: var(--text);
}

main {
  position: relative;
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 74px);
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 3.5rem);
}

.page-hero.compact {
  display: block;
  max-width: 980px;
  min-height: auto;
  padding-bottom: 2rem;
}

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

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

h1 {
  max-width: 9.5em;
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 10vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 0 42px rgba(85, 230, 255, 0.28);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
}

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

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.lede {
  max-width: 680px;
  color: #c6d8de;
  font-size: clamp(1.05rem, 2vw, 1.36rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #031114;
  box-shadow: 0 0 34px rgba(85, 230, 255, 0.26);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(16, 25, 31, 0.92), rgba(9, 13, 17, 0.78));
  border: 1px solid rgba(85, 230, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42), inset 0 0 70px rgba(85, 230, 255, 0.08);
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(85, 230, 255, 0.18) 47% 48%, transparent 49%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.055) 32px);
  animation: scan 4s linear infinite;
  content: "";
}

.status-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.status-grid div {
  min-height: 7rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.status-grid span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-grid strong {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1;
}

.pulse-rings {
  position: absolute;
  inset: auto 1rem 1rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.pulse-rings span {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid rgba(85, 230, 255, 0.55);
  border-radius: 50%;
  animation: ring 3.6s ease-out infinite;
}

.pulse-rings span:nth-child(2) {
  animation-delay: 1.2s;
  border-color: rgba(121, 255, 189, 0.5);
}

.pulse-rings span:nth-child(3) {
  animation-delay: 2.4s;
  border-color: rgba(243, 208, 107, 0.45);
}

.section,
.split-section,
.detail-layout,
.iot-map,
.feature-band {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3.5rem);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

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

.service-card {
  min-height: 250px;
  padding: 1.35rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.service-card p,
.process-list p,
.copy-stack p,
.check-list {
  color: var(--muted);
  line-height: 1.65;
}

.card-icon {
  display: block;
  margin-bottom: 2.2rem;
  color: var(--cyan);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.process-list {
  display: grid;
  gap: 1rem;
}

.process-list div {
  padding: 1rem 0 1rem 1rem;
  border-left: 2px solid rgba(85, 230, 255, 0.55);
}

.process-list span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
  font-weight: 800;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-band a {
  min-height: 210px;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(85, 230, 255, 0.15), transparent 48%),
    var(--panel-strong);
  border: 1px solid rgba(85, 230, 255, 0.18);
  border-radius: var(--radius);
}

.feature-band span {
  display: block;
  margin-bottom: 4rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-band strong {
  display: block;
  max-width: 640px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.visual-module {
  position: sticky;
  top: 100px;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(85, 230, 255, 0.22), transparent 16rem),
    rgba(7, 12, 15, 0.82);
  border: 1px solid rgba(85, 230, 255, 0.2);
  border-radius: var(--radius);
}

.printer-module::before {
  position: absolute;
  inset: 16% 14% auto;
  height: 0.7rem;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(85, 230, 255, 0.5);
  content: "";
}

.print-head {
  position: absolute;
  top: 20%;
  left: 18%;
  width: 5.5rem;
  height: 4.5rem;
  background: #111c21;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  animation: printHead 4s ease-in-out infinite;
}

.print-head::after {
  position: absolute;
  left: 50%;
  bottom: -2.3rem;
  width: 0.8rem;
  height: 2.4rem;
  background: var(--amber);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
  content: "";
}

.printed-part {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 20%;
  height: 34%;
  background:
    repeating-linear-gradient(0deg, rgba(85, 230, 255, 0.3) 0 5px, rgba(121, 255, 189, 0.16) 6px 9px),
    linear-gradient(135deg, rgba(85, 230, 255, 0.25), rgba(121, 255, 189, 0.12));
  border: 1px solid rgba(121, 255, 189, 0.32);
  border-radius: 1rem 1rem var(--radius) var(--radius);
  clip-path: polygon(0 100%, 0 32%, 16% 32%, 16% 8%, 84% 8%, 84% 32%, 100% 32%, 100% 100%);
  animation: printGlow 2.2s ease-in-out infinite alternate;
}

.print-bed {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14%;
  height: 1rem;
  background: #202e35;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.copy-stack {
  display: grid;
  gap: 2rem;
}

.copy-stack article {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.check-list {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.2rem;
}

.consultation-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3.5rem) clamp(4rem, 8vw, 7rem);
}

.consultation-form,
.consultation-panel {
  background:
    linear-gradient(135deg, rgba(85, 230, 255, 0.09), transparent 42%),
    var(--panel-strong);
  border: 1px solid rgba(85, 230, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

.consultation-form {
  padding: clamp(1rem, 3vw, 2rem);
}

.consultation-panel {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.consultation-panel h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid label {
  display: grid;
  gap: 0.5rem;
}

.form-grid label.wide {
  grid-column: 1 / -1;
}

.form-grid span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-grid input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  outline: none;
}

.form-grid input:focus {
  border-color: rgba(85, 230, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(85, 230, 255, 0.11);
}

.form-submit {
  margin-top: 1.25rem;
  border: 0;
  cursor: pointer;
}

.form-note {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.prototype-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.5fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: 1rem clamp(1rem, 4vw, 3.5rem) clamp(4rem, 8vw, 7rem);
}

.sim-stage {
  min-height: 640px;
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 1100px;
  background:
    radial-gradient(circle at 50% 38%, rgba(85, 230, 255, 0.16), transparent 20rem),
    linear-gradient(135deg, rgba(121, 255, 189, 0.08), transparent 42%),
    rgba(7, 12, 15, 0.82);
  border: 1px solid rgba(85, 230, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: inset 0 0 70px rgba(85, 230, 255, 0.06), 0 24px 90px rgba(0, 0, 0, 0.34);
}

.sim-home {
  position: relative;
  width: min(64vw, 560px);
  aspect-ratio: 1.25;
  transform: translateY(-50px) rotateX(62deg) rotateZ(-38deg) scale(0.74);
  transform-style: preserve-3d;
  animation: homeDrift 8s ease-in-out infinite;
}

.room {
  position: absolute;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(16, 25, 31, 0.88);
  border: 2px solid rgba(85, 230, 255, 0.22);
  border-radius: 6px;
  box-shadow: inset 0 0 38px rgba(85, 230, 255, 0.04);
  transform-style: preserve-3d;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.room::before {
  position: absolute;
  inset: auto 0 -22px;
  height: 22px;
  background: rgba(8, 16, 19, 0.95);
  border-inline: 1px solid rgba(85, 230, 255, 0.12);
  content: "";
  transform: rotateX(-90deg);
  transform-origin: top;
}

.room-label {
  color: rgba(237, 248, 251, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateZ(32px) rotateZ(38deg) rotateX(-62deg);
}

.living {
  inset: 8% 40% 52% 6%;
}

.kitchen {
  inset: 8% 6% 52% 62%;
}

.bedroom {
  inset: 55% 46% 6% 6%;
}

.garage {
  inset: 55% 6% 6% 58%;
}

.device {
  position: absolute;
  transform: translateZ(48px);
  transform-style: preserve-3d;
}

.smart-light {
  top: 16%;
  right: 17%;
  width: 1.9rem;
  height: 1.9rem;
  background:
    radial-gradient(circle at 50% 42%, #fff7bd 0 18%, var(--amber) 19% 42%, #6a531b 43% 58%, transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(243, 208, 107, 0.35));
  border: 1px solid rgba(255, 246, 179, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(243, 208, 107, 0.82), 0 0 44px rgba(243, 208, 107, 0.34);
}

.smart-light::after {
  position: absolute;
  top: 56%;
  left: 50%;
  width: 5rem;
  height: 4.4rem;
  background: radial-gradient(ellipse at center, rgba(243, 208, 107, 0.34), rgba(243, 208, 107, 0) 72%);
  clip-path: polygon(48% 0, 100% 100%, 0 100%);
  opacity: 0.9;
  transform: translateX(-50%) rotate(8deg);
  transform-origin: top center;
  content: "";
  pointer-events: none;
}

.pendant-light::before {
  position: absolute;
  left: 50%;
  bottom: 86%;
  width: 0.22rem;
  height: 1.15rem;
  background: rgba(237, 248, 251, 0.74);
  box-shadow: 0 -4px 10px rgba(85, 230, 255, 0.25);
  transform: translateX(-50%);
  content: "";
}

.downlight {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
}

.lamp-light {
  top: 20%;
  right: 20%;
  border-radius: 0.4rem 0.4rem 50% 50%;
}

.smart-camera {
  bottom: 16%;
  left: 16%;
  width: 3.3rem;
  height: 1.6rem;
  background: linear-gradient(180deg, #e7f5f8, #7e9aa3);
  border: 1px solid rgba(237, 248, 251, 0.75);
  border-radius: 0.28rem 0.7rem 0.7rem 0.28rem;
  box-shadow: 0 0 18px rgba(85, 230, 255, 0.42);
}

.smart-camera::before {
  position: absolute;
  top: 50%;
  right: 0.28rem;
  width: 0.76rem;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, #031114 0 35%, var(--cyan) 36% 54%, #031114 55%);
  border-radius: 50%;
  transform: translateY(-50%);
  content: "";
}

.smart-camera::after {
  position: absolute;
  top: 46%;
  left: 92%;
  width: 7.5rem;
  height: 4.8rem;
  background: linear-gradient(90deg, rgba(85, 230, 255, 0.24), rgba(85, 230, 255, 0));
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%);
  opacity: 0.58;
  transform: translateY(-50%);
  transform-origin: left center;
  content: "";
  pointer-events: none;
}

.exterior-camera {
  left: 14%;
  bottom: 20%;
}

.exterior-camera::after {
  background: linear-gradient(90deg, rgba(255, 108, 134, 0.32), rgba(255, 108, 134, 0));
  opacity: 0.72;
}

.motion-sensor {
  right: 18%;
  bottom: 18%;
  width: 1.65rem;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(121, 255, 189, 0.95) 0 25%, rgba(121, 255, 189, 0.16) 26% 55%, transparent 56%),
    #d9eef0;
  border: 1px solid rgba(121, 255, 189, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(121, 255, 189, 0.55);
}

.motion-sensor::after {
  position: absolute;
  inset: -1.2rem;
  border: 1px solid rgba(121, 255, 189, 0.28);
  border-radius: 50%;
  animation: sensorSweep 2.2s ease-out infinite;
  content: "";
}

.thermostat {
  left: 18%;
  bottom: 18%;
  width: 2rem;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, #031114 0 38%, var(--cyan) 39% 43%, #edf8fb 44% 70%, #9fb4ba 71%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(85, 230, 255, 0.42);
}

.smart-lock {
  right: 18%;
  bottom: 20%;
  width: 1.45rem;
  height: 2rem;
  background: linear-gradient(180deg, #dce7ea, #607982);
  border: 1px solid rgba(237, 248, 251, 0.65);
  border-radius: 0.3rem;
  box-shadow: 0 0 20px rgba(255, 108, 134, 0.42);
}

.smart-lock::before {
  position: absolute;
  left: 50%;
  bottom: 78%;
  width: 1rem;
  height: 0.8rem;
  border: 0.18rem solid rgba(237, 248, 251, 0.8);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
  content: "";
}

.smart-lock::after {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0.24rem;
  height: 0.55rem;
  background: var(--red);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  content: "";
}

/*
  Legacy simulator device classes retained for older markup variants.
*/
.device.light {
  top: 18%;
  right: 18%;
  width: 1rem;
  aspect-ratio: 1;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(243, 208, 107, 0.72);
  transform: translateZ(44px);
}

.media-device,
.climate,
.lock,
.sensor {
  bottom: 18%;
  left: 18%;
  width: 1rem;
  aspect-ratio: 1;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(85, 230, 255, 0.55);
}

.sensor {
  left: auto;
  right: 18%;
  background: var(--green);
  box-shadow: 0 0 22px rgba(121, 255, 189, 0.55);
}

.lock {
  background: var(--red);
  box-shadow: 0 0 22px rgba(255, 108, 134, 0.55);
}

.hub-core {
  position: absolute;
  inset: 43% auto auto 45%;
  display: grid;
  place-items: center;
  width: 4.4rem;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-radius: 50%;
  color: #031114;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 0 42px rgba(85, 230, 255, 0.5);
  transform: translateZ(64px);
}

.signal-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(85, 230, 255, 0.8), transparent);
  box-shadow: 0 0 18px rgba(85, 230, 255, 0.55);
  transform: translateZ(38px);
  transform-origin: left center;
  animation: signalPulse 1.9s linear infinite;
}

.line-a {
  top: 45%;
  left: 27%;
  width: 20%;
  transform: translateZ(38px) rotate(-18deg);
}

.line-b {
  top: 41%;
  left: 51%;
  width: 18%;
  transform: translateZ(38px) rotate(-8deg);
}

.line-c {
  top: 55%;
  left: 31%;
  width: 18%;
  transform: translateZ(38px) rotate(31deg);
}

.line-d {
  top: 56%;
  left: 51%;
  width: 18%;
  transform: translateZ(38px) rotate(22deg);
}

.sim-controls {
  align-self: stretch;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--panel-strong);
  border: 1px solid rgba(85, 230, 255, 0.18);
  border-radius: var(--radius);
}

.case-buttons {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.case-button {
  min-height: 3.1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.case-button:hover,
.case-button.active {
  border-color: rgba(85, 230, 255, 0.62);
  background: rgba(85, 230, 255, 0.13);
}

.case-readout h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.case-readout p {
  color: var(--muted);
  line-height: 1.65;
}

.telemetry {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.telemetry div {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.telemetry dt,
.telemetry dd {
  margin: 0;
}

.telemetry dt {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.telemetry dd {
  color: var(--text);
  font-weight: 750;
}

.sim-stage[data-case="away"] .room {
  border-color: rgba(255, 108, 134, 0.42);
  box-shadow: inset 0 0 42px rgba(255, 108, 134, 0.06);
}

.sim-stage[data-case="away"] .device.light,
.sim-stage[data-case="away"] .smart-light {
  opacity: 0.28;
}

.sim-stage[data-case="away"] .smart-camera::after,
.sim-stage[data-case="away"] .exterior-camera::after {
  opacity: 0.92;
  animation: cameraScan 1.7s ease-in-out infinite;
}

.sim-stage[data-case="away"] .smart-lock {
  box-shadow: 0 0 26px rgba(255, 108, 134, 0.68);
}

.sim-stage[data-case="workshop"] .garage {
  border-color: rgba(243, 208, 107, 0.72);
  box-shadow: inset 0 0 54px rgba(243, 208, 107, 0.13), 0 0 34px rgba(243, 208, 107, 0.18);
}

.sim-stage[data-case="workshop"] .garage .smart-light,
.sim-stage[data-case="workshop"] .garage .smart-camera {
  filter: saturate(1.35) brightness(1.18);
}

.sim-stage[data-case="night"] .room {
  background:
    linear-gradient(135deg, rgba(85, 230, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 18, 0.92);
}

.sim-stage[data-case="night"] .sensor,
.sim-stage[data-case="night"] .lock,
.sim-stage[data-case="night"] .motion-sensor,
.sim-stage[data-case="night"] .smart-lock {
  animation: deviceAlert 1.3s ease-in-out infinite;
}

.sim-stage[data-case="night"] .smart-light {
  opacity: 0.42;
}

.sim-stage[data-case="night"] .smart-camera::after,
.sim-stage[data-case="night"] .exterior-camera::after {
  opacity: 1;
  animation: cameraScan 1.25s ease-in-out infinite;
}

.iot-map {
  padding-top: 1rem;
}

.home-frame {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(85, 230, 255, 0.24) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(121, 255, 189, 0.18) 50%, transparent 50.2%),
    rgba(8, 13, 17, 0.78);
  border: 1px solid rgba(85, 230, 255, 0.2);
  border-radius: var(--radius);
}

.home-frame::before {
  position: absolute;
  inset: 11% 12%;
  border: 2px solid rgba(255, 255, 255, 0.13);
  clip-path: polygon(50% 0, 100% 36%, 100% 100%, 0 100%, 0 36%);
  content: "";
}

.home-frame::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1rem;
  aspect-ratio: 1;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(121, 255, 189, 0.08), 0 0 40px rgba(121, 255, 189, 0.6);
  transform: translate(-50%, -50%);
  content: "";
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(6.2rem, 14vw, 10rem);
  aspect-ratio: 1;
  padding: 0.7rem;
  background: rgba(12, 18, 22, 0.92);
  border: 1px solid rgba(85, 230, 255, 0.28);
  border-radius: 50%;
  color: var(--text);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0 34px rgba(85, 230, 255, 0.14);
  animation: nodeFloat 4.4s ease-in-out infinite;
}

.lighting {
  top: 12%;
  left: 18%;
}

.climate {
  top: 14%;
  right: 18%;
  animation-delay: -1.2s;
}

.network {
  top: 42%;
  left: 42%;
  border-color: rgba(121, 255, 189, 0.5);
  animation-delay: -0.7s;
}

.access {
  bottom: 13%;
  left: 18%;
  animation-delay: -2.1s;
}

.media {
  bottom: 12%;
  right: 20%;
  animation-delay: -1.6s;
}

.sensors {
  top: 43%;
  right: 9%;
  animation-delay: -2.8s;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3.5rem);
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 900;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

@keyframes scan {
  from {
    transform: translateY(-12%);
  }
  to {
    transform: translateY(12%);
  }
}

@keyframes ring {
  from {
    opacity: 0.85;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(2.7);
  }
}

@keyframes printHead {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(210%);
  }
}

@keyframes printGlow {
  from {
    filter: drop-shadow(0 0 8px rgba(85, 230, 255, 0.2));
  }
  to {
    filter: drop-shadow(0 0 24px rgba(121, 255, 189, 0.32));
  }
}

@keyframes nodeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes homeDrift {
  0%,
  100% {
    transform: translateY(-50px) rotateX(62deg) rotateZ(-38deg) scale(0.74) translateZ(0);
  }
  50% {
    transform: translateY(-60px) rotateX(60deg) rotateZ(-36deg) scale(0.74) translateZ(14px);
  }
}

@keyframes signalPulse {
  from {
    opacity: 0.2;
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0.2;
    filter: hue-rotate(90deg);
  }
}

@keyframes deviceAlert {
  0%,
  100% {
    transform: translateZ(44px) scale(1);
  }
  50% {
    transform: translateZ(44px) scale(1.35);
  }
}

@keyframes cameraScan {
  0%,
  100% {
    transform: translateY(-50%) rotate(-5deg) scaleX(0.92);
  }
  50% {
    transform: translateY(-50%) rotate(7deg) scaleX(1.08);
  }
}

@keyframes sensorSweep {
  from {
    opacity: 0.9;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}

@media (max-width: 900px) {
  .hero,
  .detail-layout,
  .consultation-section,
  .prototype-zone,
  .split-section {
    grid-template-columns: 1fr;
  }

  .sim-stage {
    min-height: 520px;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel,
  .visual-module,
  .sim-stage {
    min-height: 390px;
  }

  .visual-module {
    position: relative;
    top: auto;
  }

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

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

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .hero,
  .page-hero,
  .section,
  .split-section,
  .detail-layout,
  .consultation-section,
  .prototype-zone,
  .iot-map,
  .feature-band {
    padding-inline: 1rem;
  }

  .sim-stage {
    min-height: 430px;
  }

  .room-label {
    font-size: 0.68rem;
  }

  .telemetry div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

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

  .status-grid {
    grid-template-columns: 1fr;
  }

  .home-frame {
    min-height: 440px;
  }

  .node {
    width: 6.4rem;
    font-size: 0.78rem;
  }

  .lighting {
    left: 8%;
  }

  .climate {
    right: 8%;
  }

  .network {
    left: 36%;
  }

  .access {
    left: 8%;
  }

  .media {
    right: 8%;
  }

  .sensors {
    right: 3%;
  }
}
