* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  background: #050505;
  color: white;
}

#intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: #000;
}

.room {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.45)),
    url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=2400&q=90")
    center / cover no-repeat;
  transform: scale(1.05);
  transition: transform 2.5s ease, filter 2s ease;
}

.room-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.logo {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 8px;
}

.room-content p {
  margin-top: 15px;
  font-size: 12px;
  letter-spacing: 5px;
  opacity: .7;
}

.curtain {
  position: absolute;
  top: 0;
  width: 51%;
  height: 100%;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.92) 0px, rgba(255,255,255,.58) 14px, rgba(190,190,190,.38) 28px, rgba(255,255,255,.82) 43px, rgba(210,210,210,.42) 57px, rgba(255,255,255,.92) 72px);
  z-index: 10;
  transition: transform 2.2s cubic-bezier(.77,0,.18,1);
}

.curtain-left {
  left: 0;
}

.curtain-right {
  right: 0;
}

.power-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  color: #171717;
  transition: opacity .7s ease, transform .7s ease;
}

#powerButton {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(20,20,20,.9);
  color: white;
  cursor: pointer;
  font-size: 34px;
  box-shadow: 0 0 35px rgba(255,255,255,.12);
}

.power-text {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.power-text strong {
  font-size: 12px;
  letter-spacing: 3px;
}

.power-text span {
  font-size: 11px;
  opacity: .5;
}

#intro.active .curtain-left {
  transform: translateX(-100%);
}

#intro.active .curtain-right {
  transform: translateX(100%);
}

#intro.active .room {
  transform: scale(1);
  filter: brightness(1.15);
}

#intro.active .power-container {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
}

#website {
  min-height: 100vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  background: #080808;
}

#website.visible {
  opacity: 1;
  pointer-events: auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
}

nav {
  display: flex;
  gap: 35px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  opacity: .7;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 10%;
  overflow: hidden;
  background: #f3f1ec;
}

/* New animated smart-home image */
.hero::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: -2;

  background:
    url("hero-smart-home-v2.png")
    center 42% / cover no-repeat;

  animation: heroImageMotion 18s ease-in-out infinite alternate;
  will-change: transform;
}

/* Keeps the white ceiling clear and improves text visibility */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 24%,
    rgba(0, 0, 0, 0.16) 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

@keyframes heroImageMotion {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(-1%, -1%, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.48);
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}

.hero-content {
  max-width: 650px;
}

.hero-content > span {
  font-size: 11px;
  letter-spacing: 4px;
  opacity: .65;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(52px, 7vw, 100px);
  line-height: .95;
  font-weight: 300;
}

.hero h1 strong {
  font-weight: 700;
}

.hero p {
  margin-top: 30px;
  max-width: 480px;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
}

.discover {
  margin-top: 35px;
  padding: 16px 25px;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: white;
}

@media (max-width: 768px) {
  header {
    padding: 25px;
  }

  nav {
    display: none;
  }

  .logo {
    font-size: 29px;
    letter-spacing: 4px;
  }

  .hero {
    padding: 100px 28px;
  }

  .hero h1 {
    font-size: 50px;
  }
}

/* Clean curtain opening */
.room-content {
  display: none;
}

.curtain-right {
  background-position: 36px 0;
}

/* Premium power switch */
#powerButton {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(20,20,20,.18);
  background: rgba(255,255,255,.78);
  color: #171717;
  box-shadow:
    0 12px 35px rgba(0,0,0,.22),
    inset 0 0 18px rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.power-text {
  margin-top: 14px;
  padding: 9px 16px;
  color: #171717;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(20,20,20,.1);
  border-radius: 30px;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.power-text span {
  color: #292929;
  opacity: 1;
  font-size: 12px;
  font-weight: 600;
}

/* =========================
   ECOSYSTEM SECTION
========================= */

.ecosystem {
  padding: 120px 8%;
  background:
    radial-gradient(circle at top right, rgba(80,150,190,.18), transparent 35%),
    #090a0b;
  color: white;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 60px;
}

.section-heading > span {
  display: block;
  margin-bottom: 18px;
  color: #9edcff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
}

.section-heading h2 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -2px;
}

.section-heading p {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(255,255,255,.62);
  font-size: 17px;
  line-height: 1.8;
}

.ecosystem-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flow-card {
  min-height: 260px;
  padding: 36px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.flow-card > span {
  display: block;
  margin-bottom: 60px;
  color: #9edcff;
  font-size: 12px;
  letter-spacing: 2px;
}

.flow-card h3 {
  margin-bottom: 14px;
  font-size: 23px;
  font-weight: 500;
}

.flow-card p {
  color: rgba(255,255,255,.58);
  line-height: 1.7;
}


/* =========================
   SOLUTIONS SECTION
========================= */

.solutions {
  padding: 120px 8%;
  background: #f2f0ec;
  color: #141414;
}

.solutions .section-heading > span {
  color: #487c98;
}

.solutions .section-heading p {
  color: rgba(20,20,20,.6);
}

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

.solution-card {
  min-height: 280px;
  padding: 34px;
  border: 1px solid rgba(20,20,20,.1);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
}

.card-number {
  display: block;
  margin-bottom: 70px;
  color: #487c98;
  font-size: 12px;
  letter-spacing: 2px;
}

.solution-card h3 {
  margin-bottom: 14px;
  font-size: 23px;
  font-weight: 600;
}

.solution-card p {
  color: rgba(20,20,20,.62);
  line-height: 1.7;
}

.compatibility {
  width: fit-content;
  margin: 50px auto 0;
  padding: 13px 22px;
  border: 1px solid rgba(20,20,20,.14);
  border-radius: 30px;
  color: rgba(20,20,20,.7);
  font-size: 12px;
  letter-spacing: 1.5px;
}


/* =========================
   NEW SECTIONS — MOBILE
========================= */

@media (max-width: 900px) {
  .ecosystem,
  .solutions {
    padding: 85px 25px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2 {
    font-size: 44px;
    letter-spacing: -1px;
  }

  .section-heading p {
    font-size: 15px;
  }

  .ecosystem-flow,
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .flow-card,
  .solution-card {
    min-height: auto;
  }

  .flow-card > span,
  .card-number {
    margin-bottom: 45px;
  }
}

/* Mobile header fix */
@media (max-width: 900px) {
  header {
    position: absolute;
    top: 0;
  }
}

/* Website logo */
.nav-logo img {
  display: block;
  width: 220px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .nav-logo img {
    width: 170px;
  }
}

/* Smooth transition from intro to website */
#intro {
  opacity: 1;
  transition: opacity 1.5s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity;
}

#intro.leaving {
  opacity: 0;
  pointer-events: none;
}

#intro .room {
  transition:
    transform 3.4s ease,
    filter 1.5s ease,
    opacity 1.5s ease;
}

#intro.leaving .room {
  transform: scale(1.1);
  filter: blur(2px);
  opacity: 0.2;
}

#website {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease;
}

#website.visible {
  opacity: 1;
  visibility: visible;
}

/* WhatsApp consultation button */
.whatsapp-button {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 999;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px 12px 13px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 40px;

  background: #25d366;
  color: white;

  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 15px 40px rgba(0, 0, 0, .3);

  opacity: 1;
  transform: translateY(0);

  transition:
    opacity .5s ease,
    transform .3s ease,
    background .3s ease;
}

.whatsapp-button img {
  width: 27px;
  height: 27px;
  display: block;
}

.whatsapp-button:hover {
  background: #128c4a;
  transform: translateY(-4px);
}

/* Hide the button until the curtains open */
#website:not(.visible) ~ .whatsapp-button {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Mobile */
@media (max-width: 600px) {
  .whatsapp-button {
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    padding: 13px;
  }

  .whatsapp-button span {
    display: none;
  }

  .whatsapp-button img {
    width: 29px;
    height: 29px;
  }
}
/* =========================
   SAMS-SMART AI ASSISTANT
========================= */

.ai-button {
  position: fixed;
  left: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 999;

  width: 58px;
  height: 58px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;

  background:
    linear-gradient(145deg, #139ee8, #0754a8);

  color: white;
  cursor: pointer;

  box-shadow:
    0 15px 40px rgba(0,0,0,.3),
    0 0 25px rgba(19,158,232,.3);

  transition: transform .3s ease;
}

.ai-button:hover {
  transform: translateY(-4px);
}

.ai-button span {
  font-size: 17px;
  line-height: 16px;
}

.ai-button strong {
  font-size: 10px;
  letter-spacing: 1px;
}

/* Chat window */
.ai-chat {
  position: fixed;
  left: 22px;
  bottom: calc(94px + env(safe-area-inset-bottom));
  z-index: 998;

  width: 360px;
  max-width: calc(100% - 44px);

  overflow: hidden;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;

  background: rgba(12,18,25,.96);
  color: white;

  box-shadow: 0 25px 70px rgba(0,0,0,.45);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.96);

  transition:
    opacity .35s ease,
    visibility .35s ease,
    transform .35s ease;
}

.ai-chat.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px;

  border-bottom: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(135deg, rgba(19,158,232,.22), transparent);
}

.ai-chat-header div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-chat-header strong {
  font-size: 14px;
  letter-spacing: 1px;
}

.ai-chat-header span {
  color: rgba(255,255,255,.55);
  font-size: 11px;
}

#aiClose {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 26px;
  cursor: pointer;
}

/* Messages */
.ai-messages {
  max-height: 190px;
  padding: 20px;
  overflow-y: auto;
}

.ai-message {
  width: fit-content;
  max-width: 90%;

  padding: 13px 15px;
  border-radius: 16px 16px 16px 4px;

  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.78);

  font-size: 13px;
  line-height: 1.6;
}

.ai-message.user {
  margin-left: auto;
  border-radius: 16px 16px 4px 16px;
  background: #087ec1;
  color: white;
}

/* Options */
.ai-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  padding: 0 20px 20px;
}

.ai-options button {
  padding: 10px 12px;

  border: 1px solid rgba(158,220,255,.22);
  border-radius: 20px;

  background: rgba(158,220,255,.08);
  color: #bce8ff;

  font-size: 11px;
  cursor: pointer;
}

/* Hide AI until curtains open */
#website:not(.visible) ~ .ai-button,
#website:not(.visible) ~ .ai-chat {
  opacity: 0;
  pointer-events: none;
}

/* Mobile */
@media (max-width: 600px) {
  .ai-button {
    left: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .ai-chat {
    left: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: calc(100% - 32px);
    max-width: none;
  }
}

/* =========================
   INTERACTIVE SMART ROOM
========================= */

.smart-room-section {
  padding: 120px 6%;
  background: #071014;
  color: white;
}

.smart-room-section .section-heading {
  max-width: 760px;
  margin-bottom: 55px;
}

.smart-room-section .section-heading > span {
  color: #65c9ff;
  font-size: 12px;
  letter-spacing: 4px;
}

.smart-room-section .section-heading h2 {
  margin-top: 15px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
}

.smart-room-section .section-heading p {
  margin-top: 22px;
  max-width: 620px;
  color: rgba(255,255,255,.6);
  font-size: 17px;
  line-height: 1.7;
}

.smart-room-demo {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 34px;
  background: #11191d;
  box-shadow: 0 35px 90px rgba(0,0,0,.4);
}

.demo-room {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.28)),
    url("smart-room-v2.png")
    center / cover no-repeat;
  transition: filter .8s ease;
}

.room-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(255,190,95,0);
  mix-blend-mode: screen;
  transition: background 1s ease;
}

.demo-room.lights-on .room-light {
  background: rgba(255,190,95,.32);
}

.demo-curtain {
  position: absolute;
  top: 0;
  z-index: 3;
  width: 51%;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.95) 0,
      rgba(220,225,224,.68) 25px,
      rgba(255,255,255,.96) 52px
    );
  box-shadow: inset 0 0 55px rgba(0,0,0,.16);
  transition: transform 1.8s cubic-bezier(.77,0,.18,1);
}

.demo-curtain-left {
  left: 0;
  transform-origin: left;
}

.demo-curtain-right {
  right: 0;
  transform-origin: right;
}

.demo-room.curtains-open .demo-curtain-left {
  transform: translateX(-94%);
}

.demo-room.curtains-open .demo-curtain-right {
  transform: translateX(94%);
}

.demo-room.cinema-mode {
  filter: brightness(.38) saturate(.75);
}

.demo-room.cinema-mode .room-light {
  background: rgba(30,80,160,.22);
}

.room-status {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px;
  background: rgba(5,12,16,.55);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.room-status span {
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

.room-status strong {
  color: #79d4ff;
  font-size: 15px;
}

.room-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
}

.room-control {
  min-height: 145px;
  padding: 25px;
  border: 0;
  background: #10191d;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transition: background .35s ease;
}

.room-control span {
  margin-bottom: 16px;
  font-size: 27px;
}

.room-control strong {
  margin-bottom: 7px;
  font-size: 15px;
}

.room-control small {
  color: rgba(255,255,255,.42);
  font-size: 9px;
  letter-spacing: 2px;
}

.room-control.active {
  background: linear-gradient(145deg, #087ec1, #064e83);
}

.room-control.active small {
  color: white;
}

@media (max-width: 700px) {
  .smart-room-section {
    padding: 90px 18px;
  }

  .demo-room {
    min-height: 510px;
  }

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

  .room-control {
    min-height: 125px;
  }

  .room-status {
    top: 15px;
    right: 15px;
  }
}

/* =========================
   SCROLL REVEAL ANIMATION
========================= */

.reveal-item {
  opacity: 0;
  transform: translateY(55px);
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

.reveal-item.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .12s;
}

.reveal-delay-2 {
  transition-delay: .24s;
}

.reveal-delay-3 {
  transition-delay: .36s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* REAL SMART ROOM DETAILS */

/* Curtains positioned only over the window */
.demo-curtain {
  top: 0;
  width: 8.5%;
  height: 100%;
}

.demo-curtain-left {
  left: 83%;
  right: auto;
  transform-origin: left center;
}

.demo-curtain-right {
  right: 0;
  left: auto;
  transform-origin: right center;
}

.demo-room.curtains-open .demo-curtain-left,
.demo-room.curtains-open .demo-curtain-right {
  transform: scaleX(.16);
}

/* Real ceiling spotlight glow */
.room-light {
  opacity: 0;
  background:
    radial-gradient(circle at 22% 8%, rgba(255,220,150,.95) 0, rgba(255,190,90,.3) 7%, transparent 23%),
    radial-gradient(circle at 27% 15%, rgba(255,220,150,.9) 0, rgba(255,190,90,.25) 7%, transparent 22%),
    radial-gradient(circle at 74% 8%, rgba(255,220,150,.95) 0, rgba(255,190,90,.3) 7%, transparent 23%),
    radial-gradient(circle at 78% 15%, rgba(255,220,150,.9) 0, rgba(255,190,90,.25) 7%, transparent 22%),
    rgba(255,185,90,.12);
  mix-blend-mode: screen;
  transition: opacity .8s ease;
}

.demo-room.lights-on .room-light {
  opacity: 1;
  background:
    radial-gradient(circle at 22% 8%, rgba(255,220,150,.95) 0, rgba(255,190,90,.3) 7%, transparent 23%),
    radial-gradient(circle at 27% 15%, rgba(255,220,150,.9) 0, rgba(255,190,90,.25) 7%, transparent 22%),
    radial-gradient(circle at 74% 8%, rgba(255,220,150,.95) 0, rgba(255,190,90,.3) 7%, transparent 23%),
    radial-gradient(circle at 78% 15%, rgba(255,220,150,.9) 0, rgba(255,190,90,.25) 7%, transparent 22%),
    rgba(255,185,90,.12);
}

@media (max-width: 700px) {
  .demo-room {
    background-position: right center;
  }
}

/* FIX SMART ROOM PROPORTIONS */

.demo-room {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

@media (max-width: 700px) {
  .demo-room {
    min-height: 0;
    aspect-ratio: 16 / 9;
    background-position: center;
  }

  .room-status {
    top: 10px;
    right: 10px;
    gap: 8px;
    padding: 8px 11px;
  }

  .room-status span {
    font-size: 9px;
  }

  .room-status strong {
    font-size: 11px;
  }
}

/* REALISTIC WINDOW CURTAINS */

.demo-room::after {
  content: "";
  position: absolute;
  top: 2.5%;
  left: 82.5%;
  z-index: 4;
  width: 17.5%;
  height: 4px;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    #f4f4f4,
    #7d8285 48%,
    #dadada
  );
  box-shadow:
    0 3px 7px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.35);
}

.demo-curtain {
  top: 3%;
  height: 94%;
  opacity: .78;
  border-radius: 0 0 14px 14px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(235,235,228,.82) 0%,
      rgba(255,255,250,.6) 10%,
      rgba(170,175,174,.38) 20%,
      rgba(250,250,244,.72) 31%,
      rgba(145,150,150,.28) 42%,
      rgba(242,242,236,.76) 54%
    );
  box-shadow:
    inset 8px 0 14px rgba(255,255,255,.22),
    inset -8px 0 16px rgba(40,45,45,.18),
    4px 8px 14px rgba(0,0,0,.22);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  transition:
    transform 1.8s cubic-bezier(.77,0,.18,1),
    opacity 1.2s ease;
}

.demo-curtain-left {
  border-right: 1px solid rgba(90,95,95,.22);
}

.demo-curtain-right {
  border-left: 1px solid rgba(255,255,255,.35);
}

.demo-room.curtains-open .demo-curtain-left,
.demo-room.curtains-open .demo-curtain-right {
  transform: scaleX(.24);
  opacity: .92;
}


.room-light {
  z-index: 5;
}

.demo-room::after {
  z-index: 6;
}

.room-status {
  z-index: 7;
}

/* =========================
   AC & SPEAKER ANIMATIONS
========================= */

/* AC airflow — positioned under the AC */
.ac-airflow {
  position: absolute;
  left: 21%;
  top: 27%;
  z-index: 5;
  width: 10.5%;
  height: 12%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}

.ac-airflow span {
  position: absolute;
  left: 10%;
  width: 80%;
  height: 20px;
  border-bottom: 2px solid rgba(115,220,255,.8);
  border-radius: 50%;
  filter: drop-shadow(0 0 5px rgba(70,190,255,.8));
  animation: acWind 1.8s ease-in-out infinite;
}

.ac-airflow span:nth-child(1) {
  top: 0;
}

.ac-airflow span:nth-child(2) {
  top: 25%;
  animation-delay: .35s;
}

.ac-airflow span:nth-child(3) {
  top: 50%;
  animation-delay: .7s;
}

.demo-room.ac-active .ac-airflow {
  opacity: 1;
}

@keyframes acWind {
  0% {
    opacity: 0;
    transform: translateY(-5px) scaleX(.65);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(28px) scaleX(1);
  }
}

/* Speaker waves — positioned over the wall speaker */
.speaker-waves {
  position: absolute;
  left: 12.3%;
  top: 34%;
  z-index: 5;
  width: 5%;
  aspect-ratio: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}

.speaker-waves span {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(95,205,255,.85);
  border-radius: 50%;
  filter: drop-shadow(0 0 5px rgba(50,180,255,.8));
  animation: speakerPulse 1.8s ease-out infinite;
}

.speaker-waves span:nth-child(2) {
  animation-delay: .5s;
}

.speaker-waves span:nth-child(3) {
  animation-delay: 1s;
}

.demo-room.speaker-on .speaker-waves {
  opacity: 1;
}

@keyframes speakerPulse {
  0% {
    opacity: .9;
    transform: scale(.45);
  }

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

/* FIVE SMART ROOM CONTROLS */

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

@media (max-width: 700px) {
  .room-controls {
    grid-template-columns: repeat(2, 1fr);
  }

  .room-control:last-child {
    grid-column: 1 / -1;
  }
}

/* =========================
   INTERACTIVE SMART LOCK
========================= */

.smart-lock-point {
  position: absolute;
  left: 8.35%;
  top: 50%;
  z-index: 7;
  width: clamp(16px, 2.3vw, 36px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.lock-glow {
  position: absolute;
  inset: 0;
  display: block;
  border: 2px solid #4cff9a;
  border-radius: 50%;
  background: rgba(30,255,130,.12);
  box-shadow:
    0 0 8px rgba(30,255,130,.9),
    0 0 20px rgba(30,255,130,.6);
  animation: lockPulse 1.8s ease-in-out infinite;
}

.smart-lock-point strong {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  padding: 5px 8px;
  border-radius: 12px;
  background: rgba(5,12,16,.72);
  color: #70ffae;
  font-size: clamp(5px, .65vw, 9px);
  letter-spacing: 1px;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.smart-lock-point.unlocked .lock-glow {
  border-color: #ff9b55;
  background: rgba(255,120,55,.14);
  box-shadow:
    0 0 8px rgba(255,120,55,.9),
    0 0 20px rgba(255,120,55,.55);
}

.smart-lock-point.unlocked strong {
  color: #ffad72;
}

@keyframes lockPulse {
  0%, 100% {
    transform: scale(.85);
    opacity: .7;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* =========================
   SMART ROOM SCENES
========================= */

.room-scenes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(135deg, #101a1f, #081116);
}

.scene-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 190px;
}

.scene-title span {
  color: #65c9ff;
  font-size: 9px;
  letter-spacing: 3px;
}

.scene-title strong {
  color: white;
  font-size: 16px;
}

.scene-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  width: 100%;
  max-width: 590px;
}

.scene-buttons button {
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.72);
  font-size: 11px;
  cursor: pointer;
  transition:
    background .3s ease,
    border-color .3s ease,
    transform .3s ease;
}

.scene-buttons button span {
  display: block;
  margin-bottom: 4px;
  color: #85dbff;
  font-size: 17px;
}

.scene-buttons button.active {
  border-color: rgba(100,210,255,.7);
  background: linear-gradient(145deg, #138fcf, #07598d);
  color: white;
  box-shadow: 0 8px 25px rgba(0,140,210,.25);
  transform: translateY(-2px);
}

.scene-buttons button.active span {
  color: white;
}

@media (max-width: 700px) {
  .room-scenes {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 20px;
  }

  .scene-buttons {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .scene-buttons button {
    min-height: 65px;
  }
}

/* =========================
   PRODUCT CATALOG LINKS
========================= */

.solution-card {
  display: flex;
  flex-direction: column;
}

.catalog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
}

.catalog-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(25, 150, 220, .25);
  border-radius: 50px;
  background: rgba(20, 145, 210, .07);
  color: #087fc1;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform .3s ease,
    background .3s ease,
    color .3s ease,
    box-shadow .3s ease;
}

.catalog-links a span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: linear-gradient(145deg, #24b9ff, #076ca9);
  color: white;
  font-size: 13px;
  box-shadow: 0 5px 14px rgba(0, 135, 205, .25);
}

.catalog-links a::after {
  content: "↗";
  margin-left: 3px;
  font-size: 14px;
}

.catalog-links a:hover {
  color: white;
  background: linear-gradient(145deg, #139edc, #086ba5);
  box-shadow: 0 12px 30px rgba(0, 125, 190, .22);
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .catalog-links {
    flex-direction: column;
    padding-top: 22px;
  }

  .catalog-links a {
    width: 100%;
    justify-content: flex-start;
  }

  .catalog-links a::after {
    margin-left: auto;
  }
}

/* =========================
   CATALOG VIEWER
========================= */

body.catalog-is-open {
  overflow: hidden;
}

.catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 10, 14, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.catalog-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.catalog-viewer {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  height: min(900px, 94dvh);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 25px;
  background: #f4f4f2;
  box-shadow: 0 35px 100px rgba(0,0,0,.55);
  transform: translateY(25px) scale(.98);
  transition: transform .4s ease;
}

.catalog-modal.open .catalog-viewer {
  transform: translateY(0) scale(1);
}

.catalog-viewer-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 18px 12px 24px;
  background: linear-gradient(135deg, #0d1b22, #071116);
  color: white;
}

.catalog-viewer-header strong {
  font-size: 15px;
  letter-spacing: .5px;
}

#catalogClose {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

#catalogFrame {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.catalog-loading {
  position: absolute;
  inset: 68px 0 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f4f4f2;
  color: #26343b;
  font-size: 13px;
  letter-spacing: 1px;
}

.catalog-loading::before {
  content: "";
  width: 25px;
  height: 25px;
  border: 3px solid rgba(10,130,195,.18);
  border-top-color: #0b93d2;
  border-radius: 50%;
  animation: catalogSpin .8s linear infinite;
}

.catalog-loading.hidden {
  display: none;
}

@keyframes catalogSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .catalog-modal {
    padding: 0;
  }

  .catalog-viewer {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .catalog-viewer-header {
    padding-top: max(12px, env(safe-area-inset-top));
  }
}

/* Multipage PDF catalogue */

.catalog-pages {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px;
  background: #d9dcde;
  -webkit-overflow-scrolling: touch;
}

.catalog-pages canvas {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 5px;
  background: white;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}

.catalog-pages:empty {
  padding: 0;
}

@media (max-width: 600px) {
  .catalog-pages {
    gap: 10px;
    padding: 8px;
  }

  .catalog-pages canvas {
    border-radius: 2px;
  }
}

/* ==================================
   SMART HOME PLANNER
================================== */

.smart-planner {
  padding: 120px 7%;
  background:
    radial-gradient(circle at top right, rgba(14, 157, 255, .13), transparent 35%),
    #071116;
  color: #fff;
}

.planner-heading {
  max-width: 760px;
  margin-bottom: 55px;
}

.planner-heading > span {
  display: block;
  margin-bottom: 16px;
  color: #52bfff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
}

.planner-heading h2 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
  letter-spacing: -3px;
}

.planner-heading p {
  max-width: 650px;
  color: rgba(255, 255, 255, .62);
  font-size: 17px;
  line-height: 1.8;
}

.planner-box {
  max-width: 1100px;
  padding: 45px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 32px;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 35px 90px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.planner-step {
  padding: 35px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.planner-step:first-child {
  padding-top: 0;
}

.planner-number {
  display: block;
  margin-bottom: 13px;
  color: #52bfff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
}

.planner-step h3 {
  margin: 0 0 24px;
  font-size: 27px;
}

.planner-options,
.planner-products {
  display: grid;
  gap: 14px;
}

.planner-options {
  grid-template-columns: repeat(3, 1fr);
}

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

.planner-options label,
.planner-products label {
  position: relative;
  cursor: pointer;
}

.planner-options input,
.planner-products input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.planner-options label span,
.planner-products label span {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 17px;
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  transition: .3s ease;
}

.planner-options label span::before,
.planner-products label span::before {
  content: "";
  width: 17px;
  height: 17px;
  margin-right: 13px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  transition: .3s ease;
}

.planner-options input:checked + span,
.planner-products input:checked + span {
  border-color: #38adf7;
  background: linear-gradient(
    135deg,
    rgba(0, 148, 255, .28),
    rgba(0, 91, 170, .12)
  );
  color: #fff;
  box-shadow: 0 12px 35px rgba(0, 145, 255, .14);
  transform: translateY(-2px);
}

.planner-options input:checked + span::before,
.planner-products input:checked + span::before {
  border-color: #64c8ff;
  background: #38adf7;
  box-shadow:
    inset 0 0 0 4px #0b1b23,
    0 0 16px rgba(56, 173, 247, .7);
}

#plannerRooms {
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 17px;
  outline: none;
  background: #102027;
  color: #fff;
  font-size: 15px;
}

.planner-submit {
  width: 100%;
  min-height: 68px;
  margin-top: 35px;
  padding: 18px 25px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #22a8f5, #075fbc);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 135, 230, .25);
  transition: .3s ease;
}

.planner-submit span {
  display: inline-block;
  margin-left: 10px;
  transition: transform .3s ease;
}

.planner-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 135, 230, .38);
}

.planner-submit:hover span {
  transform: translateX(6px);
}

.planner-note {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, .42);
  font-size: 11px;
  text-align: center;
  letter-spacing: 1px;
}

/* Planner Mobile */

@media (max-width: 700px) {
  .smart-planner {
    padding: 90px 22px;
  }

  .planner-heading {
    margin-bottom: 38px;
  }

  .planner-heading h2 {
    font-size: 46px;
    letter-spacing: -2px;
  }

  .planner-box {
    padding: 27px 20px;
    border-radius: 25px;
  }

  .planner-step {
    padding: 30px 0;
  }

  .planner-options,
  .planner-products {
    grid-template-columns: 1fr;
  }

  .planner-options label span,
  .planner-products label span {
    min-height: 58px;
  }
}

/* ==================================
   HOW IT WORKS
================================== */

.process-section {
  padding: 120px 7%;
  background:
    radial-gradient(circle at bottom left, rgba(20, 151, 255, .12), transparent 34%),
    #050b0f;
  color: #fff;
}

.process-heading {
  max-width: 760px;
  margin-bottom: 65px;
}

.process-heading > span {
  display: block;
  margin-bottom: 17px;
  color: #52bfff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
}

.process-heading h2 {
  margin: 0 0 20px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1;
  letter-spacing: -3px;
}

.process-heading p {
  max-width: 650px;
  color: rgba(255, 255, 255, .6);
  font-size: 17px;
  line-height: 1.8;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 72px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(72, 183, 255, .65),
    transparent
  );
}

.process-card {
  position: relative;
  min-height: 360px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 26px;
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .22);
  overflow: hidden;
  transition:
    transform .4s ease,
    border-color .4s ease,
    background .4s ease;
}

.process-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -65px;
  bottom: -65px;
  border-radius: 50%;
  background: rgba(29, 166, 255, .15);
  filter: blur(20px);
  transition: .4s ease;
}

.process-card:hover {
  transform: translateY(-10px);
  border-color: rgba(71, 185, 255, .5);
  background: rgba(22, 132, 205, .09);
}

.process-card:hover::after {
  transform: scale(1.5);
}

.process-number {
  display: block;
  margin-bottom: 25px;
  color: #56c1ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
}

.process-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 45px;
  border: 1px solid rgba(90, 197, 255, .5);
  border-radius: 50%;
  background: rgba(36, 165, 243, .13);
  color: #8bd8ff;
  font-size: 22px;
  box-shadow: 0 0 28px rgba(21, 164, 255, .17);
}

.process-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.25;
}

.process-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, .52);
  font-size: 13px;
  line-height: 1.75;
}

/* Tablet */

@media (max-width: 1050px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid::before {
    display: none;
  }

  .process-card:last-child {
    grid-column: 1 / -1;
  }
}

/* Mobile */

@media (max-width: 650px) {
  .process-section {
    padding: 90px 22px;
  }

  .process-heading {
    margin-bottom: 42px;
  }

  .process-heading h2 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .process-card,
  .process-card:last-child {
    grid-column: auto;
    min-height: auto;
    padding: 28px 25px 32px;
  }

  .process-icon {
    margin-bottom: 28px;
  }
}

/* ==================================
   HORIZONTAL SWIPE SECTIONS
================================== */

.ecosystem-flow,
.solutions-grid,
.process-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 18px;
  width: 100%;
  padding: 10px 4px 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.ecosystem-flow::-webkit-scrollbar,
.solutions-grid::-webkit-scrollbar,
.process-grid::-webkit-scrollbar {
  display: none;
}

.ecosystem-flow:active,
.solutions-grid:active,
.process-grid:active {
  cursor: grabbing;
}

.flow-card,
.solution-card,
.process-card,
.process-card:last-child {
  flex: 0 0 clamp(290px, 34vw, 390px) !important;
  width: auto !important;
  min-width: 0;
  grid-column: auto !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Remove the old line behind How It Works */

.process-grid::before {
  display: none !important;
}

/* Small swipe indicator */

.ecosystem-flow::after,
.solutions-grid::after,
.process-grid::after {
  content: "";
  flex: 0 0 3px;
}

/* Mobile */

@media (max-width: 700px) {
  .ecosystem-flow,
  .solutions-grid,
  .process-grid {
    margin-right: -22px;
    padding-right: 22px;
    gap: 14px;
  }

  .flow-card,
  .solution-card,
  .process-card,
  .process-card:last-child {
    flex-basis: 84vw !important;
    max-width: 360px;
  }
}

/* ==================================
   SMART PLANNER POPUP
================================== */

.planner-open {
  width: min(720px, 100%);
  margin: 45px auto 0;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  color: white;
  cursor: pointer;
  border: 1px solid rgba(80, 190, 255, 0.35);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(19, 166, 255, 0.22), rgba(16, 33, 48, 0.88));
  box-shadow: 0 22px 60px rgba(0, 145, 255, 0.18);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.planner-open:hover {
  transform: translateY(-5px);
  border-color: rgba(80, 190, 255, 0.8);
}

.planner-open > span {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  color: white;
  background: linear-gradient(135deg, #24c2ff, #0874e8);
  box-shadow: 0 0 30px rgba(36, 194, 255, 0.45);
}

.planner-open div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.planner-open strong {
  font-size: 20px;
}

.planner-open small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.planner-open b {
  font-size: 25px;
  color: #5bd2ff;
}

/* Dark background behind popup */
body.planner-is-open {
  overflow: hidden;
}

body.planner-is-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1998;
  background: rgba(1, 8, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Planner popup */
.smart-planner > .planner-box {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1999;
  width: min(920px, calc(100% - 32px));
  max-height: 88vh;
  margin: 0;
  overflow-y: auto;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate(-50%, -45%) scale(0.96);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease;
}

.smart-planner > .planner-box.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.planner-modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -10px -10px 30px;
  padding: 18px 10px;
  background: rgba(8, 22, 30, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.planner-modal-header span {
  color: #55ccff;
  font-size: 10px;
  letter-spacing: 3px;
}

.planner-modal-header h3 {
  margin-top: 6px;
  color: white;
  font-size: clamp(25px, 4vw, 38px);
}

.planner-close {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-size: 27px;
}

@media (max-width: 600px) {
  .planner-open {
    padding: 18px;
    border-radius: 20px;
  }

  .planner-open > span {
    width: 47px;
    height: 47px;
  }

  .planner-open strong {
    font-size: 16px;
  }

  .smart-planner > .planner-box {
    width: calc(100% - 18px);
    max-height: calc(100dvh - 18px);
    padding: 20px;
    border-radius: 24px;
  }
}


/* Improve hero and navigation text visibility */

#website > header {
  padding-top: 22px;
  padding-bottom: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.55)
  );
  border-bottom: 1px solid rgba(20, 30, 38, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

nav a {
  color: #15212a;
  opacity: 0.88;
  font-weight: 600;
  text-shadow: none;
}

nav a:hover {
  color: #087fc1;
  opacity: 1;
}

.hero-content {
  color: #151b20;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.8);
}

.hero-content > span {
  color: #0876ad;
  opacity: 1;
  font-weight: 700;
}

.hero h1 {
  color: #151b20;
  text-shadow: 0 3px 20px rgba(255, 255, 255, 0.85);
}

.hero p {
  color: rgba(21, 27, 32, 0.82);
  font-weight: 500;
}

.discover {
  color: #151b20;
  font-weight: 700;
  border-color: rgba(21, 27, 32, 0.45);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.discover:hover {
  color: white;
  background: #087fc1;
  border-color: #087fc1;
}

/* ==================================
   RESPONSIVE NAVIGATION MENU
================================== */

#website > header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

/* Menu button */
.menu-toggle {
  position: relative;
  z-index: 110;
  width: 48px;
  height: 48px;
  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 1px solid rgba(15, 32, 44, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.1);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 10px;
  background: #14212a;

  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
}

/* Turn menu icon into X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown menu */
#website > header nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 5%;

  width: 270px;
  padding: 13px;

  display: flex;
  flex-direction: column;
  gap: 7px;

  overflow: visible;

  border: 1px solid rgba(20, 38, 50, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);

  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

#website > header nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#website > header nav a {
  display: flex;
  align-items: center;
  min-height: 47px;
  padding: 11px 16px;

  border-radius: 14px;
  color: #15212a;
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
  white-space: nowrap;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    padding-left 0.25s ease;
}

#website > header nav a:hover,
#website > header nav a:active {
  color: #087fc1;
  padding-left: 21px;
  background: rgba(8, 127, 193, 0.09);
}

/* Mobile and tablet */
@media (max-width: 768px) {
  #website > header {
    padding: 12px 16px;
  }

  #website > header .nav-logo img {
    width: 145px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  #website > header nav {
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .hero {
    padding-top: 120px;
  }
}

/* =========================
   ABOUT SAMS SMART MODAL
========================= */

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 12, 17, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.about-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.about-box {
  position: relative;
  width: min(760px, 100%);
  max-height: 85vh;
  padding: 46px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(17, 37, 46, 0.97),
    rgba(4, 15, 21, 0.98));
  border: 1px solid rgba(82, 195, 255, 0.28);
  border-radius: 30px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.45s ease;
}

.about-modal.open .about-box {
  transform: translateY(0) scale(1);
}

.about-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 25px;
  cursor: pointer;
}

.about-label {
  display: block;
  margin-bottom: 15px;
  color: #48c8ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
}

.about-box h2 {
  margin: 0 45px 22px 0;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.05;
}

.about-content {
  max-height: 43vh;
  padding-right: 12px;
  overflow-y: auto;
}

.about-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.75;
}

.about-signature {
  display: block;
  margin-top: 22px;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 1px;
}

.about-contact {
  margin-top: 24px;
  padding: 15px 22px;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(135deg, #20bfff, #0877e8);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 600px) {
  .about-modal {
    padding: 14px;
  }

  .about-box {
    max-height: 88vh;
    padding: 35px 24px 25px;
    border-radius: 24px;
  }

  .about-content {
    max-height: 48vh;
  }

  .about-box h2 {
    font-size: 31px;
  }
}
/* =========================
   SAMS SMART FOOTER
========================= */

.site-footer {
  position: relative;
  padding: 70px 7% 25px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 0%, rgba(32, 191, 255, 0.13), transparent 35%),
    linear-gradient(145deg, #07141b, #02090d);
  border-top: 1px solid rgba(72, 200, 255, 0.18);
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 45px;
  max-width: 1250px;
  margin: 0 auto;
}

.footer-brand h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 26px;
  letter-spacing: 2px;
}

.footer-brand p {
  margin: 0 0 15px;
  color: #48c8ff;
  font-size: 14px;
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.footer-links,
.footer-contact,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #48c8ff;
  transform: translateX(4px);
}

.footer-social a {
  min-width: 125px;
  padding: 10px 17px;
  color: #ffffff;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  transition: 0.3s ease;
}

.footer-social a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #20bfff, #0877e8);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1250px;
  margin: 50px auto 0;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 850px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 55px 25px 22px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-links,
  .footer-contact,
  .footer-social {
    align-items: center;
  }

  .footer-bottom {
    margin-top: 38px;
    line-height: 1.7;
  }
}

/* Original social media icons */
.footer-social {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.footer-social .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.footer-social .social-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* Instagram original gradient */
.footer-social .instagram,
.footer-social .instagram:hover {
  background:
    radial-gradient(circle at 30% 105%,
      #fdf497 0%, #fdf497 5%,
      #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

/* Facebook original blue */
.footer-social .facebook,
.footer-social .facebook:hover {
  background: #1877f2;
}

/* WhatsApp original green */
.footer-social .whatsapp,
.footer-social .whatsapp:hover {
  background: #25d366;
}

.footer-social .social-icon:hover {
  border: 0;
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.08);
}

@media (max-width: 560px) {
  .footer-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .footer-social {
    flex-direction: row;
    justify-content: center;
    gap: 17px;
  }

  .footer-social .social-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
  }

  .footer-social .social-icon img {
    width: 27px;
    height: 27px;
  }
}
