#smartlights-root {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  background: linear-gradient(180deg, rgba(12, 14, 24, 0.95), rgba(9, 10, 18, 0.98));
  color: #f5f7ff;
}

#smartlights-root .smartlights {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

#smartlights-root .smartlights__header {
  text-align: center;
  display: grid;
  gap: 0.75rem;
}

#smartlights-root .smartlights__title {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0;
}

#smartlights-root .smartlights__subtitle {
  margin: 0 auto;
  max-width: 640px;
  color: rgba(245, 247, 255, 0.7);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.6;
}

#smartlights-root .smartlights__layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: stretch;
}

#smartlights-root .smartlights__phone {
  position: relative;
  background: radial-gradient(circle at top, rgba(37, 46, 70, 0.45), transparent 62%),
    linear-gradient(170deg, #0f1322, #05060c 78%);
  border-radius: 42px;
  padding: 64px 28px 44px;
  box-shadow: 0 36px 70px rgba(5, 6, 12, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

#smartlights-root .smartlights__phone::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 52px;
  background:
    linear-gradient(#606470, #2f3342) calc(100% - 10px) 55%/4px 96px no-repeat,
    linear-gradient(#606470, #2f3342) 18px 46%/3px 48px no-repeat,
    linear-gradient(#606470, #2f3342) 18px 63%/3px 36px no-repeat,
    linear-gradient(135deg, #454954, #1c1f2d 35%, #0e101a 70%, #1f2334 100%);
  z-index: -1;
  box-shadow: 0 50px 85px rgba(4, 5, 9, 0.75);
}

#smartlights-root .smartlights__phone::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  height: 32px;
  background:
    linear-gradient(#1a1f2d, #1a1f2d) 50% 64%/64px 6px no-repeat,
    radial-gradient(circle at 20px 14px, rgba(95, 118, 255, 0.75) 0, rgba(21, 27, 46, 0.95) 10px, rgba(6, 7, 11, 0.95) 12px),
    #03050a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 4px 6px rgba(0, 0, 0, 0.45);
}

#smartlights-root .smartlights__phone-header {
  padding-top: 8px;
  display: grid;
  gap: 0.3rem;
}

#smartlights-root .smartlights__phone-title {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin: 0;
}

#smartlights-root .smartlights__phone-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(245, 247, 255, 0.6);
}

#smartlights-root .smartlights__bulk {
  display: flex;
  gap: 12px;
}

#smartlights-root .smartlights__voice {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#smartlights-root .smartlights__voice-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  background: linear-gradient(150deg, rgba(90, 118, 255, 0.65), rgba(255, 125, 215, 0.65));
  color: #0a0d18;
  box-shadow: 0 12px 24px rgba(11, 17, 32, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#smartlights-root .smartlights__voice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(11, 17, 32, 0.55);
}

#smartlights-root .smartlights__voice-btn[data-state="listening"] {
  background: linear-gradient(150deg, rgba(255, 125, 215, 0.8), rgba(82, 220, 255, 0.8));
  color: #0a0d18;
}

#smartlights-root .smartlights__voice-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#smartlights-root .smartlights__voice-btn[data-state="listening"] .smartlights__voice-ring {
  opacity: 1;
  animation: smartlights-voice-pulse 1.4s ease-in-out infinite;
}

#smartlights-root .smartlights__voice-icon {
  width: 20px;
  height: 20px;
}

#smartlights-root .smartlights__voice-text {
  display: grid;
  gap: 2px;
}

#smartlights-root .smartlights__voice-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(245, 247, 255, 0.68);
  margin: 0;
}

#smartlights-root .smartlights__voice-status {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(245, 247, 255, 0.58);
}

@keyframes smartlights-voice-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}

#smartlights-root .smartlights__voice[ data-unsupported="true" ] {
  background: rgba(255, 255, 255, 0.03);
}

#smartlights-root .smartlights__btn {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

#smartlights-root .smartlights__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 20px rgba(12, 18, 32, 0.25);
}

#smartlights-root .smartlights__btn:active {
  transform: translateY(1px);
}

#smartlights-root .smartlights__rooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 20, 32, 0.85) rgba(0, 0, 0, 0.55);
}

#smartlights-root .smartlights__rooms::-webkit-scrollbar {
  width: 7px;
}

#smartlights-root .smartlights__rooms::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.65);
  border-radius: 999px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
}

#smartlights-root .smartlights__rooms::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a1d29 0%, #080a12 100%);
  border-radius: 999px;
  border: 1px solid rgba(48, 52, 70, 0.8);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.65);
  transition: background 180ms ease, box-shadow 180ms ease;
}

#smartlights-root .smartlights__rooms::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #242836 0%, #0f111c 100%);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5), 0 0 6px rgba(90, 118, 255, 0.35);
}

#smartlights-root .smartlights__rooms::-webkit-scrollbar-corner {
  background: transparent;
}
#smartlights-root .smartlights__tile {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: background 200ms ease, border 200ms ease, transform 200ms ease;
}

#smartlights-root .smartlights__tile[data-active="true"] {
  background: linear-gradient(135deg, rgba(90, 118, 255, 0.2), rgba(255, 125, 215, 0.18));
  border-color: rgba(255, 255, 255, 0.12);
}

#smartlights-root .smartlights__tile:hover {
  transform: translateY(-2px);
}

#smartlights-root .smartlights__room {
  display: grid;
  gap: 6px;
}

#smartlights-root .smartlights__room-name {
  font-weight: 600;
  font-size: 0.92rem;
}

#smartlights-root .smartlights__room-status {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245, 247, 255, 0.6);
}

#smartlights-root .smartlights__toggle-btn {
  border: none;
  border-radius: 14px;
  padding: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
  width: 100%;
  color: #0a0d18;
  background: linear-gradient(165deg, #f5f7ff, #cfd6f7);
  box-shadow: 0 10px 20px rgba(8, 12, 28, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: transform 150ms ease, box-shadow 150ms ease, background 200ms ease;
}

#smartlights-root .smartlights__toggle-btn[data-active="true"] {
  background: linear-gradient(150deg, #5970ff, #ff78d1);
  color: #fdfdff;
  box-shadow: 0 14px 26px rgba(82, 103, 240, 0.35);
}

#smartlights-root .smartlights__toggle-btn:hover {
  transform: translateY(-2px);
}

#smartlights-root .smartlights__toggle-btn:active {
  transform: translateY(1px);
}

#smartlights-root .smartlights__visual {
  position: relative;
  background: rgba(12, 14, 22, 0.65);
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#smartlights-root .smartlights__scene {
  position: relative;
  width: min(640px, 100%);
  aspect-ratio: 4 / 3;
}

#smartlights-root .smartlights__base {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 20px;
}

#smartlights-root .smartlights__overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#smartlights-root .smartlights__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

#smartlights-root .smartlights__overlay[data-active="true"] {
  opacity: 1;
}

}

#smartlights-root .smartlights__overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: 20px;
  transition: opacity 200ms ease;
}

#smartlights-root .smartlights__overlay[data-active="true"] {
  opacity: 1;
}

#smartlights-root .smartlights__caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(9, 11, 18, 0.65);
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 247, 255, 0.72);
  backdrop-filter: blur(8px);
}

@media (max-width: 1024px) {
  #smartlights-root .smartlights__layout {
    grid-template-columns: 1fr;
  }

  #smartlights-root .smartlights__phone {
    max-width: 420px;
    margin: 0 auto;
  }

  #smartlights-root .smartlights__visual {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  #smartlights-root {
    padding: clamp(2.5rem, 10vw, 4rem) 1rem;
  }

  #smartlights-root .smartlights__phone {
    border-radius: 38px;
    padding: 56px 20px 36px;
  }

  #smartlights-root .smartlights__rooms {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #smartlights-root .smartlights__voice {
    flex-wrap: wrap;
    gap: 10px;
  }
  #smartlights-root .smartlights__voice-text {
    text-align: left;
  }
}

@media (max-width: 460px) {
  #smartlights-root .smartlights__rooms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  #smartlights-root {
    padding: clamp(2.25rem, 12vw, 3.5rem) 0.75rem;
  }

  #smartlights-root .smartlights__phone {
    padding: 48px 18px 32px;
  }

  #smartlights-root .smartlights__tile {
    padding: 10px;
  }

  #smartlights-root .smartlights__room-name {
    font-size: 0.88rem;
  }

  #smartlights-root .smartlights__toggle-btn {
    padding: 9px;
    font-size: 0.72rem;
  }
  #smartlights-root .smartlights__voice {
    flex-direction: column;
    align-items: stretch;
  }
  #smartlights-root .smartlights__voice-btn {
    margin: 0 auto;
  }
  #smartlights-root .smartlights__voice-text {
    text-align: center;
  }
}


