/* A light, scalable illustration: one hub, six animated functions. */
.smart-home { position: relative; aspect-ratio: 480 / 440; background: #edf3f4; isolation: isolate; }
.smart-top { position: absolute; z-index: 3; top: 24px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.smart-top > span:first-child { font-size: 7px; letter-spacing: 1.3px; color: #688692; display: flex; align-items: center; gap: 7px; }
.smart-top i { width: 5px; height: 5px; border-radius: 50%; background: #75a5b6; }
.smart-demo { font-size: 6px; letter-spacing: 1px; color: #829da8; border: 1px solid #ccdce1; border-radius: 3px; padding: 4px 5px; }
.smart-network { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; pointer-events: none; }
.smart-ring { stroke: #cddfe4; stroke-width: .7; }
.smart-ring.outer { opacity: .5; }
.smart-ring.inner { stroke: #bcd4dd; }
.smart-connection { stroke: #cddfe4; stroke-width: 1; opacity: .65; }
.smart-connection.is-active { stroke: #5b9ab3; stroke-width: 1.8; stroke-dasharray: 2 10; stroke-linecap: round; opacity: 1; }
.smart-hub { position: absolute; z-index: 2; left: 50%; top: 48%; transform: translate(-50%, -50%); width: 27%; aspect-ratio: 1; border-radius: 13%; background: #152c37; box-shadow: 0 16px 30px #1c4b5c16; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #d9ebf2; }
.smart-hub > svg { width: 39%; height: auto; fill: none; stroke: #acd3e2; stroke-width: 1.2; margin-bottom: 8%; }
.smart-house-window { fill: #b7dfeb24; stroke: none; }
.smart-hub-name { font-family: var(--heading); font-size: clamp(9px, 1vw, 13px); letter-spacing: 1.7px; font-weight: 650; }
.smart-hub-name > span { color: #e74967; }
.smart-hub-state { font-size: clamp(7px, .75vw, 9px); color: #86adbe; margin-top: 6%; }
.smart-hub-glow { position: absolute; inset: -9%; border: 1px solid #86adbe42; border-radius: 17%; pointer-events: none; }
.smart-node { position: absolute; z-index: 3; left: var(--node-x); top: var(--node-y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 9px; width: 19%; padding: 0; background: transparent; color: #688692; border: none; }
.smart-icon-box { width: 73%; aspect-ratio: 1; border: 1px solid #d4e2e7; background: #ffffffed; border-radius: 18%; display: grid; place-items: center; box-shadow: 0 5px 16px #244a5907; transition: background .3s, border-color .3s, color .3s, box-shadow .3s; }
.smart-icon-box > svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.smart-node-label { font-size: clamp(8px, .75vw, 10px); white-space: nowrap; line-height: 1.4; }
.smart-node.is-active { color: #1a526b; }
.smart-node.is-active .smart-icon-box { background: #d9ecf4; border-color: #88b5c7; box-shadow: 0 7px 20px #30738e12; }
.smart-node:hover .smart-icon-box { border-color: #5a96ae; }
.smart-node:focus-visible { outline: 2px solid #4189a6; outline-offset: 7px; border-radius: 4px; }
.smart-bulb-glow { fill: none; stroke: none; }
.smart-node.is-active .smart-bulb-glow { fill: #78b7d43d; }
.smart-sensor-ring { stroke: #8fafbe; }
.smart-security-check { stroke-dasharray: 26; stroke-dashoffset: 0; }
.smart-scene-tile { fill: transparent; }
.smart-bottom { position: absolute; z-index: 4; bottom: 22px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.smart-bottom > span { font-size: 8px; color: #78939f; line-height: 1.6; }
.smart-pause { border: 0; padding: 5px 7px; border-radius: 3px; background: transparent; color: #78939f; font-size: 8px; display: flex; gap: 6px; align-items: center; }
.smart-pause[hidden] { display: none; }
.smart-pause:hover { background: #ccdee642; color: #2c647b; }
.smart-pause-symbol { display: inline-block; width: 10px; text-align: center; font-size: 10px; }
.smart-home.has-entered .smart-node { animation: smart-appear .65s both; animation-delay: var(--appear-delay); }
.smart-home.is-running .smart-connection.is-active { animation: smart-signal 1.4s linear infinite; }
.smart-home.is-running .smart-hub-glow { animation: smart-hub-pulse 3s ease-out infinite; }
.smart-home.is-running .smart-node.is-active .smart-bulb-glow { animation: smart-light 2s ease-in-out infinite; }
.smart-home.is-running .smart-node.is-active .smart-shutter-slats { transform-origin: 20px 8px; animation: smart-shutter 2.5s ease-in-out infinite; }
.smart-home.is-running .smart-node.is-active .smart-shutter-pull { animation: smart-pull 2.5s ease-in-out infinite; }
.smart-home.is-running .smart-node.is-active .smart-wave { animation: smart-wave 1.3s ease-out infinite; }
.smart-home.is-running .smart-node.is-active .wave-two { animation-delay: .2s; }
.smart-home.is-running .smart-node.is-active .smart-sensor-ring { transform-origin: 20px 20px; animation: smart-sense 1.8s ease-out infinite; }
.smart-home.is-running .smart-node.is-active .ring-two { animation-delay: .25s; }
.smart-home.is-running .smart-node.is-active .smart-scene-tile { animation: smart-tile 2s ease-in-out infinite; }
.smart-home.is-running .smart-node.is-active .tile-two { animation-delay: .2s; }
.smart-home.is-running .smart-node.is-active .tile-three { animation-delay: .4s; }
.smart-home.is-running .smart-node.is-active .tile-four { animation-delay: .6s; }
.smart-home.is-running .smart-node.is-active .smart-security-check { animation: smart-check 2.5s ease-in-out infinite; }
@keyframes smart-appear { from { opacity: 0; transform: translate(-50%, -43%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes smart-signal { to { stroke-dashoffset: -24; } }
@keyframes smart-hub-pulse { 0% { opacity: .8; transform: scale(.96); } 80%, 100% { opacity: 0; transform: scale(1.13); } }
@keyframes smart-light { 0%, 100% { fill-opacity: .35; } 50% { fill-opacity: 1; } }
@keyframes smart-shutter { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.4); } }
@keyframes smart-pull { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes smart-wave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes smart-sense { 0% { opacity: .3; transform: scale(.8); } 65% { opacity: 1; } 100% { opacity: .15; transform: scale(1.08); } }
@keyframes smart-tile { 0%, 100% { fill: transparent; } 50% { fill: #6baac94d; } }
@keyframes smart-check { 0% { stroke-dashoffset: 26; } 35%, 100% { stroke-dashoffset: 0; } }
@media (max-width: 850px) {
  .smart-home { aspect-ratio: 480 / 440; }
  .smart-top { top: 17px; left: 16px; right: 16px; }
  .smart-top > span:first-child { font-size: 6px; letter-spacing: .9px; }
  .smart-bottom { bottom: 16px; left: 16px; right: 16px; }
  .smart-bottom > span, .smart-pause { font-size: 7px; }
  .smart-node { gap: 7px; }
}
@media (max-width: 650px) {
  .smart-home { aspect-ratio: 480 / 450; }
  .smart-network { height: 97.78%; }
  .smart-hub { top: 46.93%; }
  .smart-node { top: calc(var(--node-y) * .9778); }
  .smart-node-label { font-size: 9px; }
  .smart-hub-name { font-size: 10px; }
  .smart-hub-state { font-size: 8px; }
  .smart-icon-box { width: 77%; }
  .smart-top > span:first-child { font-size: 6px; }
  .smart-bottom > span, .smart-pause { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .smart-home .smart-node { opacity: 1; transform: translate(-50%, -50%); }
  .smart-hub-glow, .smart-pause { display: none; }
}
