:root {
  --ink: #08111d;
  --panel: #0e1a28;
  --panel-soft: #14263a;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7fbff;
  --muted: #aebdcc;
  --brand: #24b6ff;
  --green: #3ddc97;
  --amber: #ffbf47;
  --red: #ff5b67;
  --paper: #f5f7f9;
  --deep: #07111f;
  --shadow: 0 24px 70px rgba(2, 8, 23, 0.36);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: white;
  transition: background 180ms ease, border-color 180ms ease;
  border-bottom: 1px solid transparent;
}

.site-header[data-elevated="true"] {
  background: rgba(7, 17, 31, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 142px;
  height: 48px;
  object-fit: contain;
}

.main-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a,
.header-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.header-action:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.header-action {
  color: #06111e;
  background: var(--green);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--text);
  background: var(--deep);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7,17,31,0.95), rgba(7,17,31,0.74) 44%, rgba(7,17,31,0.45)),
    linear-gradient(180deg, rgba(7,17,31,0.35), rgba(7,17,31,0.92));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 112px clamp(18px, 4vw, 56px) 64px;
}

.hero-content.home-hero {
  grid-template-columns: minmax(0, 820px);
  align-content: center;
}

.hero-copy {
  max-width: 730px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
}

.button.primary {
  color: #04111d;
  background: var(--brand);
}

.button.secondary {
  color: white;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.simulator {
  max-width: 560px;
  justify-self: end;
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 21, 34, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: clamp(16px, 2.2vw, 24px);
}

.simulator-top,
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.panel-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.simulator h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.status-chip {
  min-width: 92px;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: #052018;
  background: var(--green);
}

.status-chip[data-status="alarm"] {
  color: white;
  background: var(--red);
}

.house {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  height: clamp(230px, 28vw, 292px);
  margin: 22px 0 14px;
  padding: 8px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 182, 255, 0.13), rgba(61, 220, 151, 0.08)),
    #0a1521;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.house[data-mode="night"] {
  background:
    linear-gradient(135deg, rgba(45, 64, 122, 0.34), rgba(9, 19, 31, 0.92)),
    #08111d;
}

.room {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.room:hover,
.room.active {
  transform: translateY(-2px);
  background: rgba(36, 182, 255, 0.16);
  box-shadow: inset 0 0 42px rgba(36, 182, 255, 0.12);
}

.room span {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 2;
  color: white;
  font-size: 13px;
  font-weight: 850;
}

.living { grid-row: span 2; }

.bulb,
.sensor,
.camera-dot,
.curtain {
  position: absolute;
  display: block;
}

.bulb {
  right: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 34px rgba(255, 191, 71, 0.8);
  opacity: 0;
  transition: opacity 180ms ease;
}

.lights-on .bulb,
.room.active .bulb {
  opacity: 1;
}

.curtain {
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: repeating-linear-gradient(90deg, rgba(36,182,255,0.25), rgba(36,182,255,0.25) 11px, rgba(255,255,255,0.08) 12px, rgba(255,255,255,0.08) 22px);
  transform: translateY(52%);
  transition: transform 220ms ease;
}

.curtains-closed .curtain { transform: translateY(0); }

.sensor {
  right: 22px;
  bottom: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(61, 220, 151, 0.13);
}

.camera-dot {
  right: 18px;
  bottom: 18px;
  width: 30px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--brand);
}

.camera {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: rgba(61, 220, 151, 0.1);
}

.camera::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--green);
}

.c1 { left: 18px; bottom: 18px; }
.c2 { right: 18px; top: 54%; }

.alarm-ring {
  position: absolute;
  inset: 16px;
  border: 2px solid transparent;
  border-radius: 8px;
  pointer-events: none;
}

.alarm-on .alarm-ring {
  border-color: var(--red);
  animation: alarmPulse 950ms ease infinite;
}

@keyframes alarmPulse {
  50% { box-shadow: 0 0 0 12px rgba(255, 91, 103, 0.12); }
}

.metric-row {
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--line);
}

.metric-row div {
  min-width: 78px;
}

.metric-row strong {
  display: block;
  font-size: 22px;
}

.metric-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.controls,
.scenes {
  display: grid;
  gap: 8px;
}

.controls {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
}

.control,
.scenes button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-weight: 850;
}

.control.active,
.scenes button:hover {
  color: #04111d;
  background: var(--brand);
}

.scenes {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.smart-sim {
  color: var(--text);
  background:
    radial-gradient(circle at 32% 14%, rgba(36, 182, 255, 0.14), transparent 30%),
    linear-gradient(90deg, #081326, #04070d 72%);
}

.sim-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.sim-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 900;
}

.sim-heading p:not(.eyebrow) {
  color: #9facbd;
  font-size: 16px;
  line-height: 1.6;
}

.automation-console {
  width: 100%;
  max-width: 1236px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 284px minmax(420px, 1fr) 284px;
  gap: 32px;
  align-items: stretch;
}

.sim-left,
.sim-main,
.sim-right,
.status-card,
.energy-card {
  min-width: 0;
  border: 1px solid rgba(137, 165, 205, 0.22);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14, 27, 48, 0.94), rgba(9, 16, 31, 0.94));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.sim-left {
  min-height: 690px;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
}

.system-wide,
.system-card,
.scenario-grid button,
.room-tabs button,
.floating-room-tag {
  min-height: 44px;
  border: 1px solid rgba(125, 158, 204, 0.18);
  border-radius: 14px;
  color: #aebad0;
  background: rgba(11, 20, 39, 0.84);
  cursor: pointer;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.system-wide {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #12bafc;
  border-color: #08a9f3;
  background: #071225;
}

.sim-icon {
  color: #12bafc;
  font-size: 20px;
  line-height: 1;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.system-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  height: 76px;
  padding: 9px 7px;
  background: linear-gradient(180deg, rgba(25, 43, 70, 0.94), rgba(14, 27, 49, 0.94));
}

.system-card strong {
  max-width: 100%;
  font-size: 11px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-card i {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(125, 158, 204, 0.5);
}

.system-card.active i,
.system-wide.active + .system-grid .system-card:first-child i {
  background: #32e6a2;
  border-color: #32e6a2;
  box-shadow: 0 0 14px rgba(50, 230, 162, 0.9);
}

.system-card.active,
.system-wide.active,
.scenario-grid button:hover,
.room-tabs button.active,
.floating-room-tag:hover {
  color: white;
  border-color: #08a9f3;
  background: linear-gradient(180deg, rgba(22, 159, 226, 0.95), rgba(0, 126, 196, 0.95));
}

.scenario-panel {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(137, 165, 205, 0.18);
}

.scenario-panel p {
  margin: 0 0 12px;
  color: #6f7f99;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.scenario-grid button {
  min-height: 32px;
  border-radius: 10px;
  font-size: 11px;
  text-transform: uppercase;
}

.sim-main {
  padding: 16px;
}

.room-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  min-height: 78px;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: rgba(9, 17, 36, 0.82);
  scrollbar-width: none;
}

.room-tabs::-webkit-scrollbar {
  display: none;
}

.room-tabs button {
  min-height: 30px;
  padding: 0 14px;
  border-color: transparent;
  border-radius: 999px;
  font-size: 11px;
}

.sim-viewer {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 16px;
  background: #091326;
}

.sim-viewer > img {
  width: 100%;
  height: 525px;
  object-fit: cover;
}

.sim-viewer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(6, 11, 22, 0.72));
}

.sim-viewer.real-house::after {
  display: none;
}

.home-model {
  position: relative;
  height: 525px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(36, 182, 255, 0.18), transparent 26%),
    radial-gradient(circle at 76% 76%, rgba(61, 220, 151, 0.16), transparent 28%),
    linear-gradient(145deg, #0b1426, #06101e 68%, #03070e);
}

.home-model::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.55;
}

.house-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.75fr;
  grid-template-rows: 0.8fr 0.74fr 0.72fr;
  gap: 10px;
  padding: 18px;
  border: 3px solid rgba(193, 217, 237, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 31, 52, 0.9), rgba(9, 17, 30, 0.92)),
    #0a1324;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.04),
    inset 0 0 70px rgba(36, 182, 255, 0.08),
    0 26px 60px rgba(0, 0, 0, 0.36);
}

.roof-line {
  position: absolute;
  left: 12%;
  right: 12%;
  top: -18px;
  height: 34px;
  border-radius: 18px 18px 0 0;
  border: 2px solid rgba(36, 182, 255, 0.36);
  border-bottom: 0;
  opacity: 0.8;
}

.model-room {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: block;
  border: 2px solid rgba(162, 190, 220, 0.22);
  border-radius: 10px;
  color: white;
  background:
    linear-gradient(145deg, rgba(28, 50, 78, 0.9), rgba(16, 30, 47, 0.94));
  cursor: pointer;
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.model-room::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 70% 22%, rgba(255, 191, 71, 0.38), transparent 32%);
  transition: opacity 160ms ease;
}

.model-room:hover,
.model-room.active {
  transform: translateY(-2px);
  border-color: #12bafc;
  box-shadow:
    inset 0 0 40px rgba(18, 186, 252, 0.2),
    0 0 0 3px rgba(18, 186, 252, 0.1);
}

.model-room.active::before,
.home-model[data-system="lights"] .model-room::before,
.home-model[data-scene="party"] .model-room::before {
  opacity: 1;
}

.home-model[data-scene="night"] .model-room::before,
.home-model[data-scene="cinema"] .model-room::before {
  opacity: 0.35;
}

.model-room span {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.model-garden {
  grid-column: 1;
  grid-row: 1;
  background:
    radial-gradient(circle at 24% 70%, rgba(61, 220, 151, 0.26), transparent 20%),
    linear-gradient(145deg, rgba(21, 73, 60, 0.9), rgba(11, 41, 42, 0.95));
}

.model-living {
  grid-column: 1;
  grid-row: 2 / span 2;
}

.model-kitchen {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.model-bedroom {
  grid-column: 3;
  grid-row: 1;
}

.model-bath {
  grid-column: 3;
  grid-row: 2;
  background: linear-gradient(145deg, rgba(28, 66, 84, 0.88), rgba(14, 33, 53, 0.94));
}

.model-pool {
  grid-column: 2;
  grid-row: 3;
  background:
    repeating-linear-gradient(135deg, rgba(0, 183, 255, 0.18), rgba(0, 183, 255, 0.18) 8px, rgba(255, 255, 255, 0.05) 9px, rgba(255, 255, 255, 0.05) 18px),
    linear-gradient(145deg, rgba(8, 89, 122, 0.88), rgba(8, 35, 58, 0.95));
}

.model-garage {
  grid-column: 3;
  grid-row: 3;
  background: linear-gradient(145deg, rgba(48, 54, 67, 0.9), rgba(20, 28, 42, 0.96));
}

.device {
  position: absolute;
  z-index: 3;
  display: block;
}

.light-device,
.garden-light,
.pool-light {
  right: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffbd42;
  box-shadow: 0 0 24px rgba(255, 189, 66, 0.82);
}

.climate-device {
  right: 18px;
  bottom: 18px;
  width: 32px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #12bafc;
  box-shadow: 0 0 18px rgba(18, 186, 252, 0.42);
}

.camera-device {
  right: 15px;
  bottom: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid #3ddc97;
  box-shadow: 0 0 20px rgba(61, 220, 151, 0.55);
}

.camera-device::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #3ddc97;
}

.sensor-device {
  right: 18px;
  bottom: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #12bafc;
  box-shadow: 0 0 0 9px rgba(18, 186, 252, 0.15);
}

.door-device {
  left: 20px;
  bottom: 14px;
  width: 56px;
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #8796a7, #8796a7 8px, #5c6a7a 9px, #5c6a7a 15px);
}

.curtain-device {
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 24px;
  border-radius: 7px;
  background: repeating-linear-gradient(90deg, rgba(18, 186, 252, 0.35), rgba(18, 186, 252, 0.35) 8px, rgba(255, 255, 255, 0.08) 9px, rgba(255, 255, 255, 0.08) 18px);
}

.furniture {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sofa {
  left: 30px;
  bottom: 54px;
  width: 96px;
  height: 38px;
}

.counter {
  left: 34px;
  bottom: 44px;
  width: 84px;
  height: 108px;
}

.bed {
  left: 24px;
  bottom: 28px;
  width: 82px;
  height: 56px;
}

.connection-lines {
  position: absolute;
  inset: 18px;
  pointer-events: none;
}

.connection-lines i {
  position: absolute;
  left: 16%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 186, 252, 0.55), transparent);
  opacity: 0.5;
}

.connection-lines i:nth-child(1) { top: 30%; }
.connection-lines i:nth-child(2) { top: 50%; transform: rotate(16deg); }
.connection-lines i:nth-child(3) { top: 66%; transform: rotate(-10deg); }
.connection-lines i:nth-child(4) { top: 78%; }

.home-model[data-scene="away"] .house-shell {
  box-shadow:
    inset 0 0 0 2px rgba(255, 91, 103, 0.18),
    inset 0 0 80px rgba(255, 91, 103, 0.09),
    0 0 0 3px rgba(255, 91, 103, 0.16);
}

.home-model[data-scene="night"] {
  background:
    radial-gradient(circle at 22% 18%, rgba(45, 76, 150, 0.24), transparent 26%),
    linear-gradient(145deg, #050914, #02050b);
}

.home-model[data-scene="cinema"] .model-room:not(.model-living),
.home-model[data-scene="night"] .model-room:not(.active) {
  filter: brightness(0.56) saturate(0.85);
}

.home-model[data-scene="party"] .light-device,
.home-model[data-scene="party"] .pool-light,
.home-model[data-scene="party"] .garden-light {
  animation: partyLight 850ms ease-in-out infinite alternate;
}

@keyframes partyLight {
  from { background: #ffbd42; box-shadow: 0 0 24px rgba(255, 189, 66, 0.82); }
  to { background: #12bafc; box-shadow: 0 0 28px rgba(18, 186, 252, 0.85); }
}

.floating-room-tag {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  min-height: 38px;
  padding: 0 18px;
  color: white;
  background: rgba(5, 10, 23, 0.88);
  border-color: rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  font-size: 12px;
}

.sim-viewer figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aebad0;
  font-size: 13px;
  font-weight: 900;
  background: rgba(12, 18, 36, 0.9);
}

.sim-right {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
}

.status-card,
.energy-card {
  padding: 20px;
}

.status-line {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(137, 165, 205, 0.14);
}

.status-line p,
.energy-card p {
  margin: 0 0 8px;
  color: #12bafc;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-line span {
  display: block;
  color: #8d9bb0;
  font-size: 12px;
  line-height: 1.55;
}

.status-line strong {
  min-width: 54px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #16f0a6;
  background: rgba(28, 226, 161, 0.12);
  border: 1px solid rgba(28, 226, 161, 0.25);
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.status-list div {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid rgba(137, 165, 205, 0.11);
  border-radius: 10px;
  background: rgba(6, 12, 26, 0.48);
}

.status-list dt {
  color: #8391a9;
  font-size: 10px;
}

.status-list dd {
  margin: 0;
  color: #14c6ff;
  font-size: 10px;
  font-weight: 900;
}

.status-list dd[data-state="aktif"] {
  color: #16f0a6;
}

.readouts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(137, 165, 205, 0.12);
  border-bottom: 1px solid rgba(137, 165, 205, 0.12);
}

.readouts span {
  color: #71829c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.readouts strong {
  color: white;
  font-size: 11px;
  text-align: right;
}

#profileValue {
  color: #ffd23f;
}

.activity-log {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.activity-log li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  color: #8d9bb0;
  font-size: 11px;
}

.activity-log time {
  color: #71829c;
}

.activity-log span {
  color: #aebad0;
}

.activity-log li:first-child span {
  color: #16f0a6;
  font-weight: 900;
}

.energy-card {
  min-height: 302px;
}

.energy-card p {
  color: #71829c;
}

.energy-card strong {
  display: block;
  margin-top: 6px;
  color: white;
  font-size: 34px;
  line-height: 1;
}

.energy-card strong span {
  color: #12bafc;
  font-size: 13px;
}

.energy-graph {
  height: 96px;
  display: flex;
  align-items: end;
  gap: 0;
  margin-top: 80px;
  border-bottom: 2px solid #02aeea;
  background: linear-gradient(180deg, transparent, rgba(0, 174, 234, 0.15));
}

.energy-graph i {
  flex: 1;
  height: 42%;
  border-top: 2px solid #02aeea;
  transform: skewY(-1deg);
}

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

.section h2 {
  margin-bottom: 12px;
  font-size: clamp(31px, 4.2vw, 56px);
  line-height: 1.05;
  font-weight: 900;
}

.section p {
  color: #526170;
  font-size: 17px;
  line-height: 1.6;
}

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

.service-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: white;
}

.service-grid span {
  color: var(--brand);
  font-weight: 900;
}

.service-grid h3 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.proof {
  display: grid;
  grid-template-columns: 0.68fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  color: white;
  background: #101b26;
}

.proof p {
  color: #bac6d1;
}

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

.gallery img {
  width: 100%;
  height: clamp(230px, 34vw, 420px);
  object-fit: cover;
  border-radius: 8px;
}

.partners {
  background: white;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.brand-strip img {
  width: 100%;
  height: 94px;
  object-fit: contain;
  padding: 18px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #fff;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: #e9eef3;
}

.contact-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 8px;
  background: white;
  border: 1px solid #d7e0e8;
}

.contact-panel a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: #0b1a28;
  background: #f4f7fa;
  font-weight: 850;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: white;
  background: var(--deep);
}

footer img {
  width: 132px;
}

footer p {
  margin: 0;
  color: var(--muted);
}

.float-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  color: #04111d;
  background: var(--green);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  font-weight: 900;
}

.not-found {
  min-height: 100svh;
  color: white;
  background:
    linear-gradient(90deg, rgba(7,17,31,0.96), rgba(7,17,31,0.75)),
    url("/media/media4.jpg") center/cover;
}

.not-found-wrap {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding: 40px clamp(18px, 6vw, 72px);
}

.not-found-wrap h1 {
  font-size: clamp(40px, 7vw, 82px);
}

.not-found-wrap p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .hero-content,
  .proof,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: end;
    padding-top: 100px;
  }

  .simulator {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    align-self: auto;
  }

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

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

  .sim-left {
    min-height: auto;
  }

  .sim-right {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .brand img {
    width: 118px;
  }

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

  .main-nav,
  .header-action {
    display: none;
  }

  .site-header.menu-open .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 76px;
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid var(--line);
  }

  .site-header.menu-open .main-nav a {
    justify-content: flex-start;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .house {
    height: 380px;
  }

  .controls,
  .scenes,
  .service-grid,
  .brand-strip,
  .gallery,
  .sim-right {
    grid-template-columns: 1fr;
  }

  .smart-sim {
    padding-left: 14px;
    padding-right: 14px;
  }

  .automation-console {
    gap: 14px;
  }

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

  .system-card strong {
    white-space: normal;
    text-overflow: clip;
  }

  .sim-main {
    padding: 10px;
  }

  .room-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .room-tabs button {
    flex: 0 0 auto;
  }

  .sim-viewer img {
    height: 390px;
  }

  .metric-row {
    align-items: stretch;
  }

  .metric-row div {
    min-width: 0;
  }

  .gallery img {
    height: 260px;
  }
}

@media (max-width: 430px) {
  .hero-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .simulator {
    padding: 14px;
  }

  .house {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 96px);
    height: 400px;
  }

  .living {
    grid-row: auto;
  }

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

.smart-sim {
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
  color: #f8fbff;
  background:
    radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.14), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(16, 185, 129, 0.12), transparent 28%),
    linear-gradient(135deg, #050914, #0b1323 42%, #03060b 100%);
}

.sim-shell {
  max-width: 1280px;
  margin: 0 auto;
}

.sim-heading--interra {
  max-width: none;
  margin: 0 0 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.sim-heading-copy {
  max-width: 720px;
}

.sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.08);
  color: #5dd8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sim-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0ea5e9;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.7);
  animation: interraPing 2.2s ease-in-out infinite;
}

.sim-heading--interra h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.sim-heading--interra p:not(.eyebrow) {
  color: #8f9db1;
  font-size: 15px;
  line-height: 1.7;
}

.time-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
}

.time-switcher-label {
  padding: 0 10px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.time-switcher button,
.interra-room-tabs button,
.scenario-grid button,
.system-selector__all,
.system-chip {
  border: 1px solid transparent;
  cursor: pointer;
  transition: 180ms ease;
}

.time-switcher button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 14px;
  color: #94a3b8;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.time-switcher button:hover,
.time-switcher button.active {
  color: #fff;
  border-color: rgba(14, 165, 233, 0.3);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.95), rgba(2, 132, 199, 0.92));
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.18);
}

.interra-console {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: stretch;
}

.interra-sidebar,
.interra-stage,
.interra-status-card,
.interra-energy-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.interra-sidebar {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.system-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system-selector__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 18px;
  color: #5dd8ff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.95));
  font-weight: 900;
}

.system-selector__all.active,
.system-chip.active,
.scenario-grid button:hover,
.scenario-grid button:focus-visible,
.interra-room-tabs button.active,
.interra-room-tabs button:hover {
  border-color: rgba(14, 165, 233, 0.42);
  color: #fff;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.96), rgba(3, 105, 161, 0.94));
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.16);
}

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

.system-chip {
  position: relative;
  min-height: 92px;
  padding: 12px 10px;
  border-radius: 18px;
  color: #9aa8bb;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92));
  font-size: 11px;
  font-weight: 900;
}

.system-chip strong {
  display: block;
  margin-top: 8px;
  line-height: 1.2;
}

.system-chip i {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid rgba(100, 116, 139, 0.6);
}

.system-chip.is-online i,
.system-chip.active i {
  background: #34d399;
  border-color: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.8);
}

.system-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5dd8ff;
  font-size: 20px;
  line-height: 1;
}

.scenario-panel--interra {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.scenario-panel--interra p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.scenario-grid button {
  min-height: 38px;
  border-radius: 14px;
  color: #a7b4c8;
  background: rgba(2, 6, 23, 0.55);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.interra-stage {
  padding: 16px;
}

.interra-room-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.7);
}

.interra-room-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #97a6ba;
  background: rgba(2, 6, 23, 0.32);
  font-size: 11px;
  font-weight: 900;
}

.interra-viewer {
  margin: 0;
}

.interra-model {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: #020617;
}

.interra-backdrop {
  position: absolute;
  inset: 0;
}

.interra-sky,
.interra-ground,
.interra-glow,
.interra-villa,
.interra-pool-water,
.interra-garden-strip,
.interra-room-lights {
  position: absolute;
}

.interra-sky {
  inset: 0;
  background:
    radial-gradient(circle at 20% 14%, rgba(56, 189, 248, 0.18), transparent 22%),
    radial-gradient(circle at 80% 24%, rgba(59, 130, 246, 0.14), transparent 24%),
    linear-gradient(180deg, #09111f 0%, #0b1325 44%, #0a1020 60%, #030712 100%);
  transition: 300ms ease;
}

.interra-glow--left {
  left: -8%;
  top: 20%;
  width: 36%;
  height: 34%;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  filter: blur(40px);
}

.interra-glow--right {
  right: -10%;
  top: 10%;
  width: 34%;
  height: 40%;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  filter: blur(44px);
}

.interra-ground {
  left: -5%;
  right: -5%;
  bottom: -6%;
  height: 35%;
  background: radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.55), transparent 50%), linear-gradient(180deg, rgba(10, 15, 26, 0), #020617 55%);
}

.interra-villa {
  left: 10%;
  right: 9%;
  bottom: 18%;
  height: 56%;
}

.interra-villa-main {
  left: 8%;
  right: 18%;
  bottom: 2%;
  height: 54%;
  border-radius: 24px 24px 12px 12px;
  background:
    linear-gradient(180deg, rgba(226, 232, 240, 0.12), rgba(30, 41, 59, 0.68)),
    linear-gradient(90deg, rgba(100, 116, 139, 0.24) 1px, transparent 1px);
  background-size: auto, 15% 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.interra-villa-top {
  left: 18%;
  right: 34%;
  top: 0;
  height: 34%;
  border-radius: 22px 22px 10px 10px;
  background:
    linear-gradient(180deg, rgba(226, 232, 240, 0.16), rgba(30, 41, 59, 0.8)),
    linear-gradient(90deg, rgba(100, 116, 139, 0.22) 1px, transparent 1px);
  background-size: auto, 18% 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.interra-pool-water {
  right: 2%;
  bottom: -1%;
  width: 28%;
  height: 26%;
  border-radius: 22px;
  background:
    radial-gradient(circle at 35% 45%, rgba(125, 211, 252, 0.55), transparent 38%),
    repeating-linear-gradient(135deg, rgba(56, 189, 248, 0.32), rgba(56, 189, 248, 0.32) 8px, rgba(255, 255, 255, 0.08) 8px, rgba(255, 255, 255, 0.08) 16px),
    linear-gradient(180deg, rgba(14, 165, 233, 0.5), rgba(8, 47, 73, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.32);
  animation: interraPoolGlow 3.2s ease-in-out infinite;
}

.interra-garden-strip {
  left: 0;
  right: 22%;
  bottom: -7%;
  height: 14%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.26), rgba(20, 83, 45, 0.65));
  filter: blur(1px);
}

.interra-room-lights {
  background: rgba(251, 191, 36, 0.82);
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.55);
  opacity: 0.18;
  transition: 240ms ease;
}

.interra-room-lights--living {
  left: 21%;
  bottom: 16%;
  width: 18%;
  height: 16%;
  clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
}

.interra-room-lights--kitchen {
  left: 41%;
  bottom: 16%;
  width: 16%;
  height: 18%;
}

.interra-room-lights--bedroom {
  left: 28%;
  bottom: 37%;
  width: 13%;
  height: 12%;
}

.interra-room-lights--bath {
  left: 46%;
  bottom: 38%;
  width: 10%;
  height: 10%;
}

.interra-room-lights--garage {
  left: 10%;
  bottom: 8%;
  width: 12%;
  height: 14%;
}

.interra-hotspot {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.interra-hotspot-ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.4);
  animation: interraPing 2s ease-in-out infinite;
}

.interra-hotspot-core {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #0ea5e9;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.85);
  transition: 180ms ease;
}

.interra-hotspot:hover .interra-hotspot-core,
.interra-hotspot.active .interra-hotspot-core {
  transform: scale(1.14);
  background: #f59e0b;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.85);
}

.interra-hotspot-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(2, 6, 23, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  transition: 160ms ease;
  pointer-events: none;
}

.interra-hotspot:hover .interra-hotspot-label,
.interra-hotspot.active .interra-hotspot-label {
  opacity: 1;
}

.interra-stage-note {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
}

.interra-stage-note p {
  margin: 0;
  color: #a7b4c8;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.interra-status {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
}

.interra-status-card,
.interra-energy-card {
  padding: 20px;
}

.interra-status-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.interra-status-head p,
.interra-energy-card p {
  margin: 0 0 8px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.interra-status-head span {
  color: #8d9bb0;
  font-size: 12px;
  line-height: 1.6;
}

.interra-status-head strong {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #34d399;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interra-metrics,
.interra-readouts {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.interra-metrics div,
.interra-readouts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.interra-metrics span,
.interra-readouts span {
  color: #718196;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interra-metrics strong,
.interra-readouts strong {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

#securityState[data-state="aktif"] {
  color: #34d399;
}

#securityState[data-state="deaktif"] {
  color: #f59e0b;
}

.interra-activity-log {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 112px;
  overflow: hidden;
}

.interra-activity-log li {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
  color: #8fa0b6;
  font-size: 11px;
}

.interra-activity-log time {
  color: #64748b;
  font-family: "Courier New", monospace;
}

.interra-energy-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.interra-energy-card strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.interra-energy-card strong span {
  color: #38bdf8;
  font-size: 13px;
  font-weight: 800;
}

.interra-energy-chart {
  width: 100%;
  height: 72px;
  margin-top: 24px;
  overflow: visible;
}

.interra-model[data-time="day"] .interra-sky {
  background:
    radial-gradient(circle at 18% 15%, rgba(125, 211, 252, 0.26), transparent 22%),
    linear-gradient(180deg, #8cd6ff 0%, #d7f0ff 48%, #d9f6ff 58%, #bbd3f0 100%);
}

.interra-model[data-time="day"] .interra-villa-main,
.interra-model[data-time="day"] .interra-villa-top {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(203, 213, 225, 0.88)),
    linear-gradient(90deg, rgba(148, 163, 184, 0.28) 1px, transparent 1px);
  border-color: rgba(148, 163, 184, 0.28);
}

.interra-model[data-time="day"] .interra-ground {
  background: linear-gradient(180deg, rgba(173, 230, 255, 0.05), rgba(147, 197, 253, 0.18) 30%, #0f172a 100%);
}

.interra-model[data-time="day"] .interra-room-lights {
  opacity: 0.1;
}

.interra-model[data-time="evening"] .interra-sky {
  background:
    radial-gradient(circle at 28% 20%, rgba(251, 191, 36, 0.18), transparent 18%),
    linear-gradient(180deg, #253154 0%, #512f55 45%, #130f20 100%);
}

.interra-model[data-time="evening"] .interra-room-lights {
  opacity: 0.36;
}

.interra-model[data-time="night"] .interra-room-lights,
.interra-model[data-scene="party"] .interra-room-lights,
.interra-model[data-scene="cinema"] .interra-room-lights--living,
.interra-model[data-room="living"] .interra-room-lights--living,
.interra-model[data-room="kitchen"] .interra-room-lights--kitchen,
.interra-model[data-room="bedroom"] .interra-room-lights--bedroom,
.interra-model[data-room="bath"] .interra-room-lights--bath,
.interra-model[data-room="garage"] .interra-room-lights--garage {
  opacity: 0.78;
  animation: interraPulseGlow 2.8s ease-in-out infinite;
}

.interra-model[data-room="pool"] .interra-pool-water,
.interra-model[data-system="pool"] .interra-pool-water,
.interra-model[data-scene="party"] .interra-pool-water {
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.42);
  transform: scale(1.02);
}

.interra-model[data-system="security"] .interra-viewer,
.interra-model[data-scene="away"] {
  box-shadow: inset 0 0 0 2px rgba(239, 68, 68, 0.18);
}

.interra-model[data-system="security"]::after,
.interra-model[data-scene="away"]::after,
.interra-model[data-scene="holiday"]::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  box-shadow: inset 0 0 38px rgba(239, 68, 68, 0.22);
  animation: interraSecurityPulse 2.1s ease-in-out infinite;
  pointer-events: none;
}

.interra-model[data-system="lights"] .interra-room-lights,
.interra-model[data-scene="morning"] .interra-room-lights {
  opacity: 0.82;
}

.interra-model[data-system="landscape"] .interra-garden-strip {
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
}

.interra-model[data-system="garage"] .interra-room-lights--garage {
  opacity: 0.8;
}

.interra-model[data-system="cameras"] .interra-hotspot-core,
.interra-model[data-room="garden"] .interra-hotspot-core {
  background: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.85);
}

.interra-model[data-scene="party"] .interra-room-lights,
.interra-model[data-scene="party"] .interra-hotspot-core {
  animation: interraPartyLight 0.9s ease-in-out infinite alternate;
}

.interra-model[data-scene="night"] .interra-hotspot:not(.active) .interra-hotspot-core,
.interra-model[data-scene="cinema"] .interra-hotspot:not(.active) .interra-hotspot-core {
  opacity: 0.7;
}

@keyframes interraPing {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.9;
  }
}

@keyframes interraPulseGlow {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.42);
  }

  50% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
  }
}

@keyframes interraPoolGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.26);
  }

  50% {
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.48);
  }
}

@keyframes interraSecurityPulse {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 1;
  }
}

@keyframes interraPartyLight {
  from {
    background: #f59e0b;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.7);
  }

  to {
    background: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
  }
}

@media (max-width: 1180px) {
  .interra-console {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }

  .interra-sidebar {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .sim-heading--interra {
    flex-direction: column;
    align-items: stretch;
  }

  .time-switcher {
    width: fit-content;
  }

  .interra-console {
    grid-template-columns: 1fr;
  }

  .interra-model {
    min-height: 520px;
  }
}

@media (max-width: 680px) {
  .smart-sim {
    padding-left: 14px;
    padding-right: 14px;
  }

  .system-selector__grid,
  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .interra-room-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .interra-room-tabs button {
    flex: 0 0 auto;
  }

  .interra-model {
    min-height: 430px;
  }

  .interra-stage-note {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .interra-energy-card strong {
    font-size: 34px;
  }
}

@media (max-width: 460px) {
  .time-switcher {
    flex-wrap: wrap;
    width: 100%;
  }

  .time-switcher-label {
    width: 100%;
    padding-bottom: 4px;
  }

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

  .interra-model {
    min-height: 390px;
  }

  .interra-status-head {
    flex-direction: column;
  }
}

.smart-sim {
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #0d1730, #091225 48%, #060b16);
  background-size: 28px 28px, 28px 28px, auto;
}

.sim-heading-copy {
  max-width: 620px;
}

.sim-heading--interra h2 {
  max-width: 560px;
  font-size: clamp(32px, 4vw, 56px);
}

.sim-badge {
  display: none;
}

.interra-console {
  grid-template-columns: 238px minmax(0, 1fr) 236px;
  gap: 24px;
}

.interra-sidebar,
.interra-stage,
.interra-status-card,
.interra-energy-card {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 25, 48, 0.9), rgba(10, 17, 33, 0.96));
  border-color: rgba(110, 139, 187, 0.18);
}

.interra-sidebar {
  min-height: 575px;
}

.system-selector__all {
  min-height: 38px;
  border-radius: 14px;
  font-size: 11px;
  color: #8fd8ff;
}

.system-selector__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
}

.system-chip {
  min-height: 64px;
  padding: 10px 8px;
  border-radius: 14px;
  font-size: 10px;
}

.system-chip strong {
  margin-top: 6px;
  font-size: 10px;
}

.system-chip.active[data-system="security"],
.system-chip[data-system="security"] {
  border-color: rgba(255, 68, 102, 0.6);
}

.system-chip.active[data-system="security"] .system-icon,
.system-chip[data-system="security"] .system-icon {
  color: #ff5576;
}

.scenario-panel--interra {
  margin-top: auto;
}

.scenario-grid button {
  min-height: 28px;
  border-radius: 11px;
  font-size: 10px;
}

.scenario-grid button.active,
.scenario-grid button:focus-visible {
  background: linear-gradient(180deg, #ff9f0a, #f18700);
  border-color: rgba(255, 174, 41, 0.4);
  color: #fff;
}

.interra-stage {
  padding: 14px;
}

.interra-room-tabs {
  min-height: 64px;
  align-content: start;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 20px;
}

.interra-room-tabs button {
  min-height: 28px;
  padding: 0 12px;
  font-size: 10px;
}

.interra-model {
  min-height: 470px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #0b1326, #070d19);
  background-size: 26px 26px, 26px 26px, auto;
}

.interra-scene-shell {
  position: absolute;
  inset: 14px 14px 20px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 60, 90, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 90, 120, 0.08);
}

.interra-scene-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  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% 0%, rgba(255, 0, 76, 0.08), transparent 56%);
  background-size: 24px 24px, 24px 24px, auto;
  pointer-events: none;
}

.interra-scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 500ms ease, filter 350ms ease, opacity 260ms ease;
}

.interra-scene-ui {
  position: absolute;
  inset: 12px 14px auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.interra-scene-badge,
.interra-scene-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(7, 13, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.interra-scene-badge {
  color: #ff5878;
  border-color: rgba(255, 68, 102, 0.36);
  box-shadow: 0 0 24px rgba(255, 68, 102, 0.18);
}

.interra-scene-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  border: 2px solid currentColor;
  box-sizing: border-box;
}

.interra-stage-note {
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 16, 31, 0.82);
  border-radius: 0 0 14px 14px;
  border-color: rgba(255, 50, 85, 0.18);
  box-shadow: inset 0 2px 0 rgba(255, 52, 87, 0.55);
}

.interra-stage-note p {
  font-size: 11px;
}

.interra-model[data-time="day"] .interra-scene-image {
  filter: brightness(1.08) saturate(1.02);
}

.interra-model[data-time="evening"] .interra-scene-image {
  filter: brightness(0.94) saturate(1.06) contrast(1.02);
}

.interra-model[data-time="night"] .interra-scene-image {
  filter: brightness(0.78) saturate(1.04) contrast(1.04);
}

.interra-model[data-room="pool"] .interra-scene-image,
.interra-model[data-room="garden"] .interra-scene-image {
  transform: scale(1.04);
}

.interra-model[data-room="bedroom"] .interra-scene-image,
.interra-model[data-room="bath"] .interra-scene-image {
  transform: scale(1.015);
}

.interra-model[data-scene="party"] .interra-scene-overlay {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 18% 22%, rgba(255, 0, 128, 0.14), transparent 25%),
    radial-gradient(circle at 78% 76%, rgba(0, 200, 255, 0.12), transparent 28%);
  background-size: 24px 24px, 24px 24px, auto, auto;
}

.interra-model[data-scene="night"] .interra-scene-overlay,
.interra-model[data-scene="away"] .interra-scene-overlay,
.interra-model[data-scene="holiday"] .interra-scene-overlay {
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 10, 21, 0.08), rgba(3, 8, 18, 0.24));
  background-size: 24px 24px, 24px 24px, auto;
}

.interra-model[data-scene="morning"] .interra-scene-image {
  filter: brightness(1.12) saturate(1.05);
}

.interra-status {
  gap: 18px;
}

.interra-status-card,
.interra-energy-card {
  padding: 16px 18px;
}

.interra-status-head {
  padding-bottom: 12px;
}

.interra-status-head p,
.interra-energy-card p {
  margin-bottom: 6px;
  font-size: 10px;
}

.interra-status-head span {
  font-size: 11px;
}

.interra-status-head strong {
  font-size: 9px;
  line-height: 1;
}

.interra-security-mode {
  margin-top: 16px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.interra-security-mode__label {
  display: block;
  margin-bottom: 10px;
  color: #6f7f96;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.interra-security-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.interra-security-action {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(110, 139, 187, 0.18);
  background: rgba(13, 20, 38, 0.86);
  color: #95a5ba;
  font-size: 10px;
  font-weight: 800;
}

.interra-security-action--active {
  color: #ffffff;
  background: linear-gradient(180deg, #19cb86, #08a768);
  border-color: rgba(36, 232, 146, 0.2);
}

.interra-metrics,
.interra-readouts {
  gap: 8px;
}

.interra-metrics div,
.interra-readouts div {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
}

.interra-metrics span,
.interra-readouts span {
  font-size: 9px;
}

.interra-metrics strong,
.interra-readouts strong {
  font-size: 11px;
}

.interra-activity-log {
  max-height: 90px;
}

.interra-activity-log li {
  font-size: 10px;
}

.interra-energy-card {
  min-height: 220px;
}

.interra-energy-card strong {
  font-size: 24px;
}

.interra-energy-chart {
  height: 54px;
  margin-top: auto;
}

@media (max-width: 1180px) {
  .interra-console {
    grid-template-columns: 1fr;
  }

  .interra-sidebar {
    min-height: auto;
  }
}
