/* ===== Automation Page Design System & Theme ===== */
:root {
  --bg-color: #EAEDF0;
  --text-color: #1d1d1f;
  --text-muted: #86868b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-card-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(0, 0, 0, 0.08);
  --section-border: rgba(0, 0, 0, 0.06);
  --accent-color: #0071e3;
  --accent-teal: #0891b2;
  --accent-amber: #ea580c;
  --accent-knx: #0284c7;
  --accent-wireless: #10b981;
  --page-pd: clamp(24px, 6vw, 100px);
  --transition-base: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-color="dark"] {
  --bg-color: #09090b;
  --text-color: #f5f5f7;
  --text-muted: #86868b;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-card-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --section-border: rgba(255, 255, 255, 0.08);
  --accent-color: #38bdf8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
  user-select: none;
  -webkit-user-select: none;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: clip;
}
html::-webkit-scrollbar { display: none; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  overflow-x: clip;
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s ease;
  -webkit-font-smoothing: antialiased;
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-color, #1d1d1f);
  border: 1.5px solid transparent;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
}
.custom-cursor.visible { opacity: 1; }
.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(3);
  background-color: transparent !important;
  border: 1.5px solid var(--text-color, #1d1d1f) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body[data-color="dark"] .custom-cursor { background-color: #ffffff; }
body[data-color="dark"] .custom-cursor.hover { background-color: transparent !important; border-color: #ffffff !important; }

@media (max-width: 991px) {
  .custom-cursor { display: none !important; }
  * { cursor: auto !important; }
  a, button, [role="button"], select, option, .mobile-menu-btn, .deck-card-photo, .deck-card-item, .config-pill { cursor: pointer !important; }
}

/* =========================================================================
   PREMIUM FLOATING CARDS INTRO & PAGE TEXT FADE-IN
   ========================================================================= */

#intellihome-loader.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 38px 24px 34px;
  background: #EAEDF0;
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-color="dark"] #intellihome-loader.loader-overlay {
  background: #09090b;
}

#intellihome-loader.loader-overlay.fade-out-overlay {
  opacity: 0;
  visibility: hidden;
}

.loader-brand-header {
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.loader-brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.loader-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: 0.5px;
}

body[data-color="dark"] .loader-brand-title {
  color: #f5f5f7;
}

/* Bottom Progress Status */
.loader-footer-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.loader-progress-track {
  width: 120px;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

body[data-color="dark"] .loader-progress-track {
  background: rgba(255, 255, 255, 0.1);
}

.loader-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-color);
  border-radius: 10px;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-overlay.animate-in .loader-progress-fill {
  width: 100%;
}

.loader-status-text {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #86868b;
}

.loader-overlay.fade-out-overlay .loader-brand-header,
.loader-overlay.fade-out-overlay .loader-footer-status {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Navbar Initial Hidden State (Fades in on reveal) */
/* ===== Transparent Navigation Container & Elements ===== */
.w-list-unstyled {
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.w-inline-block {
  max-width: 100%;
  display: inline-block;
}

.container-2 {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  pointer-events: auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cont-name-logo {
  display: flex;
  align-items: center;
  background: transparent !important;
}

/* Brand Logo / Text */
.nav-name {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #222226 !important;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 6px 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: color 0.4s ease, opacity 0.3s ease;
}

.nav-name:hover {
  opacity: 0.85;
  background: transparent !important;
  box-shadow: none !important;
}

.nav-name .ih-brand-logo {
  filter: none;
  transition: filter 0.4s ease;
}

body[data-color="dark"] .nav-name {
  color: #ffffff !important;
}
body[data-color="dark"] .nav-name .ih-brand-logo {
  filter: brightness(0) invert(1);
}

.nav-name-jm {
  font-weight: 600;
  font-size: 17px;
  color: inherit;
}

.dot-jm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-color, #0071e3);
  display: inline-block;
  margin: 0 2px;
  transition: background-color 0.4s ease;
}

/* Center Nav (.nav-menu) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: all 0.4s ease;
}

.nav-menu .cont-social-link {
  display: flex;
  align-items: center;
}

.nav-menu .nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #48484a !important;
  text-decoration: none;
  padding: 6px 12px;
  background: transparent !important;
  border: none !important;
  transition: color 0.4s ease, opacity 0.25s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active,
.nav-menu .w--current {
  color: #111113 !important;
  opacity: 1;
  background: transparent !important;
}

body[data-color="dark"] .nav-menu .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
}
body[data-color="dark"] .nav-menu .nav-link:hover,
body[data-color="dark"] .nav-menu .nav-link.active {
  color: #ffffff !important;
}

.dropdown-chevron {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-dropdown-item:hover .dropdown-chevron,
.nav-dropdown-item:focus-within .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 160px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 1005;
}

.nav-dropdown-item:hover .nav-dropdown-menu,
.nav-dropdown-item:focus-within .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 8px 14px;
  border-radius: 9px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #222226 !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  text-align: left;
}

.dropdown-link:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000000 !important;
  transform: translateX(2px);
}

body[data-color="dark"] .nav-dropdown-menu {
  background: rgba(24, 24, 28, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

body[data-color="dark"] .dropdown-link {
  color: #f5f5f7 !important;
}

body[data-color="dark"] .dropdown-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

.jm-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  border-radius: 50%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.3s ease;
}

.jm-icon:hover {
  transform: scale(1.15);
}

.jm-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: none;
  transition: filter 0.4s ease;
}

body[data-color="dark"] .jm-icon img {
  filter: brightness(0) invert(1);
}

/* Right Nav Social Wrapper (.nav-social-wrapper) */
.nav-social-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: all 0.4s ease;
}

.nav-social-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #48484a !important;
  text-decoration: none;
  padding: 6px 8px;
  background: transparent !important;
  border: none !important;
  transition: color 0.4s ease, opacity 0.2s ease;
}

.nav-social-link:hover {
  color: #111113 !important;
  opacity: 1;
  background: transparent !important;
}

body[data-color="dark"] .nav-social-link {
  color: rgba(255, 255, 255, 0.88) !important;
}
body[data-color="dark"] .nav-social-link:hover {
  color: #ffffff !important;
}

/* Mobile Bottom Floating Nav - Transparent */
.nav-menu-mobile {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 8px 24px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 10001;
  transition: all 0.4s ease;
}

.nav-link-mobile {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #222226 !important;
  text-decoration: none;
  padding: 6px 10px;
  background: transparent !important;
  transition: color 0.4s ease;
}

.nav-menu-mobile .jm-icon img {
  filter: none;
  transition: filter 0.4s ease;
}

body[data-color="dark"] .nav-link-mobile {
  color: #ffffff !important;
}
body[data-color="dark"] .nav-menu-mobile .jm-icon img {
  filter: brightness(0) invert(1);
}

/* Mobile Dropdown Menu */
.mobile-dropdown-wrapper {
  position: relative;
}

.mobile-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10005;
}

.mobile-dropdown-wrapper:hover .mobile-dropdown-menu,
.mobile-dropdown-wrapper.open .mobile-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-dropdown-link {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #111113 !important;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s;
  white-space: nowrap;
  text-align: left;
}

.mobile-dropdown-link:hover {
  background: rgba(0, 0, 0, 0.06);
}

body[data-color="dark"] .mobile-dropdown-menu {
  background: rgba(24, 24, 28, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
}

body[data-color="dark"] .mobile-dropdown-link {
  color: #ffffff !important;
}

body[data-color="dark"] .mobile-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media screen and (min-width: 992px) {
  .nav-menu-mobile { display: none !important; }
}
@media screen and (max-width: 991px) {
  .nav-menu { display: none !important; }
  .nav-social-wrapper { display: none !important; }
  .nav-menu-mobile { display: flex !important; }
  .container-2 { justify-content: center; }
}

/* Viewport Lock for Fixed In-Place Gesture Experience */
html.automation-page,
body.automation-page {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* =========================================================================
   HERO SECTION (2-STAGE IN-PLACE GESTURE CHOREOGRAPHY)
   ========================================================================= */

.hero-section-wrap {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  padding: 95px var(--page-pd) 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 15%, rgba(0, 113, 227, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 85% 65%, rgba(234, 88, 12, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 15% 65%, rgba(8, 145, 178, 0.06) 0%, transparent 50%);
  background-position: center 0px;
  transition: background-position 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-section-wrap.is-stage-2 {
  background-position: center -60px;
}

/* Header Content with Full-Page Vertical Scroll Morph & Staggered Entrance */
.hero-header-area {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: 95px;
  margin: 0 auto;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  perspective: 1000px;
  opacity: 0;
  transform: translate3d(0, -22px, 0);
  filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, filter 0.8s ease 0.12s;
}

body.reveal-active .hero-header-area {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0px);
  pointer-events: auto;
}

.hero-header-stage-1,
.hero-header-stage-2 {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.75s ease;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.hero-header-stage-1 {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  filter: blur(0px);
}

.hero-header-stage-2 {
  transform: translate3d(0, 130px, 0);
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
}

/* Stage 2 Active Header: Full-Page Vertical Scroll Up */
.hero-header-area.is-stage-2 .hero-header-stage-1 {
  transform: translate3d(0, -130px, 0);
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
}

.hero-header-area.is-stage-2 .hero-header-stage-2 {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
}

.hero-title-top {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 2.4vw, 28.5px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2px;
}

.hero-title-main {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-color);
  text-align: center;
  margin: 0 auto;
}

/* Card Deck Stage (TOP LAYER: z-index 30) */
.hero-deck-stage {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: 1440px;
  height: clamp(380px, 48vh, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  perspective: 1200px;
  transform-style: preserve-3d;
  --card-w: 240px;
  --card-gap-aligned: 32px;
  --card-gap-arc: 8px;
}

@media (min-width: 1400px) {
  .hero-deck-stage {
    --card-w: 260px;
    --card-gap-aligned: 38px;
    --card-gap-arc: 12px;
  }
}

@media (max-width: 1280px) {
  .hero-deck-stage {
    --card-w: 220px;
    --card-gap-aligned: 26px;
    --card-gap-arc: 6px;
  }
}

@media (max-width: 1050px) {
  .hero-deck-stage {
    --card-w: 200px;
    --card-gap-aligned: 20px;
    --card-gap-arc: 2px;
  }
}

/* Item Container */
.deck-card-item {
  position: absolute;
  width: var(--card-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: bottom center;
  will-change: transform;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* The Home Upgrade Frosted Glass Card */
.deck-card-photo.product-card {
  position: relative;
  width: 100%;
  height: clamp(330px, 44vh, 380px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 8px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-color="dark"] .deck-card-photo.product-card {
  background: rgba(20, 20, 25, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.deck-card-item:hover {
  z-index: 60 !important;
}

.deck-card-item:hover .deck-card-photo.product-card {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.1);
}

.deck-card-photo .product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-card-item:hover .deck-card-photo .product-card-image {
  transform: scale(1.06);
}

/* Floating Frosted Glass Bottom Overlay */
/* Floating Frosted Glass Bottom Overlay (Unified for Page & Loader) */
.deck-card-photo .product-card-overlay,
.loader-card-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: calc(100% - 16px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 16px;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  text-align: left;
  z-index: 2;
}

body[data-color="dark"] .deck-card-photo .product-card-overlay,
body[data-color="dark"] .loader-card-overlay {
  background: rgba(18, 18, 18, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
}

.product-card-tag,
.loader-card-tag {
  font-size: 7.5px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0;
  display: block;
}

.product-card-name,
.loader-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-color="dark"] .product-card-name,
body[data-color="dark"] .loader-card-name {
  color: #f5f5f7;
}

.product-card-sub,
.loader-card-sub {
  font-size: 8px;
  color: #6b7280;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-color="dark"] .product-card-sub,
body[data-color="dark"] .loader-card-sub {
  color: #9ca3af;
}

.deck-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 2px;
}

.deck-sub-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-sub-metric {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-color);
}

.deck-sub-rating {
  font-size: 11px;
  font-weight: 600;
  color: #ea580c;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Initial Floating Entrance (Cards float up from bottom to center) */
.deck-card-0,
.deck-card-1,
.deck-card-2 {
  transform: translate3d(0, 80vh, 0) scale(0.85);
  opacity: 0;
  filter: blur(10px);
  will-change: transform, opacity, filter;
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s ease;
}

/* Default Bunched State (Grouped Stack in Center - 3 Cards) */
body.cards-floating-up .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-0,
body.reveal-active .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-0 { 
  transform: translate3d(-12px, 0, 0) rotate(-3.5deg) scale(0.97); 
  opacity: 1; 
  filter: blur(0px); 
  z-index: 1; 
  transition-delay: 0.05s; 
}

body.cards-floating-up .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-1,
body.reveal-active .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-1 { 
  transform: translate3d(0, -4px, 0) rotate(0deg) scale(1.0); 
  opacity: 1; 
  filter: blur(0px); 
  z-index: 3; 
}

body.cards-floating-up .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-2,
body.reveal-active .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-2 { 
  transform: translate3d(12px, 0, 0) rotate(3.5deg) scale(0.97); 
  opacity: 1; 
  filter: blur(0px); 
  z-index: 2; 
  transition-delay: 0.05s; 
}

/* Stage 1 (1st Scroll: Curved Fan Arc with 3 Overlapping Cards) */
.hero-deck-stage.is-arc .deck-card-0 {
  transform: translate3d(calc(-1 * (var(--card-w) + var(--card-gap-arc))), 16px, 0) rotate(-8deg) scale(1) !important;
  opacity: 1 !important;
  filter: blur(0px) !important;
  z-index: 1;
}
.hero-deck-stage.is-arc .deck-card-1 {
  transform: translate3d(0px, 0px, 0) rotate(0deg) scale(1.02) !important;
  opacity: 1 !important;
  filter: blur(0px) !important;
  z-index: 3;
}
.hero-deck-stage.is-arc .deck-card-2 {
  transform: translate3d(calc(1 * (var(--card-w) + var(--card-gap-arc))), 16px, 0) rotate(8deg) scale(1) !important;
  opacity: 1 !important;
  filter: blur(0px) !important;
  z-index: 2;
}

/* Stage 2 (2nd Scroll: Aligned Horizontal Row with 3 Cards) */
.hero-deck-stage.is-aligned .deck-card-0 {
  transform: translate3d(calc(-1 * (var(--card-w) + var(--card-gap-aligned))), 0px, 0) rotate(0deg) scale(1) !important;
  opacity: 1 !important;
  filter: blur(0px) !important;
  z-index: 1;
}
.hero-deck-stage.is-aligned .deck-card-1 {
  transform: translate3d(0px, 0px, 0) rotate(0deg) scale(1) !important;
  opacity: 1 !important;
  filter: blur(0px) !important;
  z-index: 2;
}
.hero-deck-stage.is-aligned .deck-card-2 {
  transform: translate3d(calc(1 * (var(--card-w) + var(--card-gap-aligned))), 0px, 0) rotate(0deg) scale(1) !important;
  opacity: 1 !important;
  filter: blur(0px) !important;
  z-index: 1;
}

/* Compact Landscape Screen Optimization (e.g. mobile/tablet rotated landscape) */
@media (max-height: 650px) and (orientation: landscape) {
  .hero-section-wrap {
    padding: 70px var(--page-pd) 10px;
  }
  .hero-header-area {
    height: 75px;
  }
  .hero-title-top {
    font-size: 18px;
  }
  .hero-title-main {
    font-size: 34px;
  }
  .hero-deck-stage {
    height: 270px;
    --card-w: 130px;
    --card-gap-aligned: 14px;
    --card-gap-arc: 8px;
  }
  .deck-card-photo {
    height: 200px;
  }
  .deck-card-sub-info {
    padding-top: 4px;
  }
}

/* Bottom Footer / Action Area with Full-Page Vertical Scroll Morph & Staggered Entrance */
.hero-footer-area {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  min-height: 80px;
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s, filter 0.8s ease 0.22s;
}

body.reveal-active .hero-footer-area {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0px);
  pointer-events: auto;
}

.hero-footer-stage-1,
.hero-footer-stage-2 {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease, filter 0.65s ease;
  will-change: transform, opacity, filter;
}

.hero-footer-stage-1 {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

.hero-footer-stage-2 {
  opacity: 0;
  transform: translateY(85px);
  filter: blur(4px);
  pointer-events: none;
}

/* Stage 2 Active Footer: Full-Page Vertical Scroll Up */
.hero-footer-area.is-stage-2 .hero-footer-stage-1 {
  opacity: 0;
  transform: translateY(-85px);
  filter: blur(4px);
  pointer-events: none;
}

.hero-footer-area.is-stage-2 .hero-footer-stage-2 {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
  pointer-events: auto;
}

/* Stage Navigation Indicator Dots */
.stage-indicator-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 0;
  z-index: 10;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}

body.reveal-active .stage-indicator-bar {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.stage-dot {
  width: 22px;
  height: 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  padding: 0;
  outline: none;
}

.stage-dot:hover {
  background: rgba(0, 0, 0, 0.3);
}

.stage-dot.active {
  width: 44px;
  background: var(--accent-color);
}

.hero-bottom-editorial {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.hero-editorial-line {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(10px, 1.05vw, 11.5px);
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.5;
  text-align: center;
}

.explore-more-pill {
  background: #1d1d1f;
  color: #ffffff;
  padding: 9px 24px;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

.explore-more-pill:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.scroll-arrow-icon {
  animation: scrollDownPulse 1.6s infinite ease-in-out;
}

@keyframes scrollDownPulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(3.5px);
    opacity: 1;
  }
}

/* =========================================================================
   SYSTEM DETAIL SCENE MORPH & SCROLLABLE IN-DEPTH BLUEPRINT VIEW
   ========================================================================= */

/* Hero elements exit when detail is active */
.hero-section-wrap.is-detail-active .hero-header-area,
.hero-section-wrap.is-detail-active .hero-deck-stage,
.hero-section-wrap.is-detail-active .hero-footer-area,
.hero-section-wrap.is-detail-active .stage-indicator-bar {
  opacity: 0 !important;
  transform: scale(0.92) !important;
  pointer-events: none !important;
  filter: blur(4px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

/* Detail Scene Overlay - Full Screen Scrollable Modal */
.system-detail-scene {
  position: absolute;
  inset: 0;
  padding: 85px var(--page-pd) 40px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(234, 237, 240, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
  box-sizing: border-box;
}

body[data-color="dark"] .system-detail-scene {
  background: rgba(10, 10, 14, 0.94);
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.hero-section-wrap.is-detail-active .system-detail-scene {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Top Navigation Bar with Back Button */
.detail-top-nav {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  z-index: 60;
  pointer-events: auto;
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  padding: 7px 15px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

body[data-color="dark"] .detail-back-btn {
  background: rgba(26, 26, 32, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.detail-back-btn:hover {
  background: #ffffff;
  color: var(--accent-color);
  transform: translateX(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Detail Scroll Content Container */
.detail-scroll-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 30px;
}

/* Split Container (Top Hero View) */
.detail-split-container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4.5vw, 60px);
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

/* Left Photo Showcase */
.detail-photo-showcase {
  position: relative;
  width: 100%;
  height: clamp(340px, 54vh, 480px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #111827;
  transform: translate3d(60px, 0, 0) scale(0.92);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  will-change: transform, opacity;
}

.hero-section-wrap.is-detail-active .detail-photo-showcase {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-photo-showcase:hover .detail-hero-img {
  transform: scale(1.03);
}

.detail-tag-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1d1d1f;
  padding: 4px 11px;
  border-radius: 50px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Right Detail Info Panel */
.detail-info-panel {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 16px;
  justify-content: center;
  transform: translate3d(0, 60px, 0);
  opacity: 0;
  filter: blur(4px);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.08s, opacity 0.65s ease 0.08s, filter 0.65s ease 0.08s;
  will-change: transform, opacity, filter;
}

.hero-section-wrap.is-detail-active .detail-info-panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  filter: blur(0px);
}

/* Staggered Rising Elements */
.detail-header-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translate3d(0, 20px, 0);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.14s, opacity 0.6s ease 0.14s;
}

.detail-system-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(21px, 2.55vw, 33px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-color);
  margin: 0;
}

.detail-price-metric {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(12px, 1.35vw, 16.5px);
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: -0.01em;
}

.detail-description-text {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(10px, 0.85vw, 11.5px);
  color: #4b5563;
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
  transform: translate3d(0, 20px, 0);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.22s, opacity 0.6s ease 0.22s;
}

body[data-color="dark"] .detail-description-text {
  color: #9ca3af;
}

/* Configuration Pill Selectors */
.detail-config-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translate3d(0, 20px, 0);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.28s, opacity 0.6s ease 0.28s;
}

.detail-section-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #1f2937;
}

body[data-color="dark"] .detail-section-label {
  color: #e5e7eb;
}

.detail-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.config-pill {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #1f2937;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

body[data-color="dark"] .config-pill {
  background: #18181b;
  border-color: #27272a;
  color: #e4e4e7;
}

.config-pill:hover {
  border-color: #18181b;
}

.config-pill.active {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
}

body[data-color="dark"] .config-pill.active {
  background: #ffffff;
  color: #18181b;
  border-color: #ffffff;
}

/* Primary Action CTA */
.detail-action-block {
  margin-top: 4px;
  transform: translate3d(0, 20px, 0);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.34s, opacity 0.6s ease 0.34s;
}

.hero-section-wrap.is-detail-active .detail-header-block,
.hero-section-wrap.is-detail-active .detail-description-text,
.hero-section-wrap.is-detail-active .detail-config-section,
.hero-section-wrap.is-detail-active .detail-action-block {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.detail-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: #18181b;
  color: #ffffff !important;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  width: fit-content;
}

.detail-cta-button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 113, 227, 0.28);
}

/* Scroll Down Hint Pill */
.detail-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-color);
  margin: 10px auto 0;
  padding: 6px 14px;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 50px;
  animation: scrollDownPulse 2s infinite ease-in-out;
}

/* In-Depth Technical Deep Dive Sections */
.detail-deep-dive-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  margin-top: 10px;
}

.detail-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 8px 0;
}

.detail-section-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

body[data-color="dark"] .detail-section-divider::before {
  background: rgba(255, 255, 255, 0.08);
}

.detail-divider-label {
  position: relative;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0, 113, 227, 0.15);
}

body[data-color="dark"] .detail-divider-label {
  background: #18181b;
}

/* 4-Pillar Tech Spec Grid */
.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
}

.detail-spec-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

body[data-color="dark"] .detail-spec-card {
  background: rgba(24, 24, 28, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.spec-card-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.spec-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-card-label {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6b7280;
}

body[data-color="dark"] .spec-card-label {
  color: #9ca3af;
}

.spec-card-value {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.25;
}

/* Features Block */
.detail-features-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body[data-color="dark"] .detail-features-block {
  background: rgba(24, 24, 28, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.detail-subheading {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.detail-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.detail-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  color: #374151;
  line-height: 1.45;
}

body[data-color="dark"] .detail-highlight-item {
  color: #d1d5db;
}

.highlight-check-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Recommended Application / Environment Box */
.detail-ideal-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(0, 113, 227, 0.04);
  border: 1px solid rgba(0, 113, 227, 0.15);
}

.detail-ideal-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-ideal-icon {
  font-size: 13px;
}

.detail-ideal-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-color);
}

.detail-ideal-text {
  font-size: 10px;
  line-height: 1.5;
  color: #4b5563;
  margin: 0;
}

body[data-color="dark"] .detail-ideal-text {
  color: #9ca3af;
}

/* 4-Step Turnkey Process Grid */
.detail-process-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-steps-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.detail-mini-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

body[data-color="dark"] .detail-mini-step {
  background: rgba(24, 24, 28, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

.mini-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-color);
}

.detail-mini-step h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.detail-mini-step p {
  font-size: 8.5px;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

body[data-color="dark"] .detail-mini-step p {
  color: #9ca3af;
}

/* Bottom Consultation Banner */
.detail-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 245, 255, 0.85) 100%);
  border: 1px solid rgba(0, 113, 227, 0.2);
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.06);
}

body[data-color="dark"] .detail-bottom-cta {
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.85) 0%, rgba(15, 25, 40, 0.85) 100%);
  border-color: rgba(0, 113, 227, 0.3);
}

.detail-cta-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 3px;
}

.detail-cta-text p {
  font-size: 9.5px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

body[data-color="dark"] .detail-cta-text p {
  color: #9ca3af;
}

/* Responsive adjustments for Detail Scene */
@media (max-width: 900px) {
  .system-detail-scene {
    padding: calc(65px + 12px) 16px 40px;
  }
  .detail-top-nav {
    margin-bottom: 12px;
  }
  .detail-split-container {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
  }
  .detail-photo-showcase {
    height: clamp(200px, 30vh, 260px);
    border-radius: 20px;
    transform: translate3d(0, 20px, 0) scale(0.95);
  }
  .detail-info-panel {
    gap: 14px;
    transform: translate3d(0, 20px, 0);
  }
  .detail-system-title {
    font-size: clamp(16.5px, 4.5vw, 22.5px);
    line-height: 1.1;
  }
  .detail-price-metric {
    font-size: 10px;
  }
  .detail-description-text {
    font-size: 10px;
    line-height: 1.55;
    max-width: 100%;
  }
  .detail-section-label {
    font-size: 8px;
  }
  .detail-pill-group {
    gap: 6px;
  }
  .config-pill {
    padding: 6px 12px;
    font-size: 8.5px;
    border-radius: 8px;
  }
  .detail-cta-button {
    width: 100%;
    padding: 10px 16px;
    font-size: 10.5px;
    justify-content: center;
    box-sizing: border-box;
  }
  .detail-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .detail-highlights-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .detail-steps-mini-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .detail-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
  }
  .detail-bottom-cta .detail-cta-button {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .detail-specs-grid {
    grid-template-columns: 1fr;
  }
  .detail-steps-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   RESPONSIVE DECK STAGE & 3-STAGE CHOREOGRAPHY FOR MOBILE & TABLET
   ========================================================================= */

@media (max-width: 900px) {
  .hero-section-wrap {
    padding: 85px 16px 16px;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }
  .hero-header-area {
    height: 72px;
  }
  .hero-title-top {
    font-size: clamp(11.5px, 3vw, 15px);
    margin-bottom: 2px;
  }
  .hero-title-main {
    font-size: clamp(19.5px, 5.25vw, 28.5px);
    line-height: 1.05;
  }
}

@media (max-width: 768px) {
  .hero-deck-stage {
    height: clamp(320px, 46vh, 380px);
    --card-w: 135px;
    --card-h: clamp(245px, 36vh, 290px);
  }

  .deck-card-photo.product-card {
    height: var(--card-h, clamp(245px, 36vh, 290px));
    border-radius: 18px;
    padding: 6px;
  }

  .deck-card-photo .product-card-overlay {
    padding: 6px 8px;
    border-radius: 10px;
    bottom: 6px;
    left: 6px;
    width: calc(100% - 12px);
    gap: 1.5px;
  }
  .deck-card-photo .product-card-name {
    font-size: 9px;
  }
  .deck-card-photo .product-card-tag {
    font-size: 7px;
  }
  .deck-card-photo .product-card-sub {
    display: none;
  }

  /* Stage 0 (Bunched Stack on Mobile - 3 Cards) */
  body.cards-floating-up .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-0,
  body.reveal-active .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-0 { 
    transform: translate3d(-8px, 0, 0) rotate(-3.5deg) scale(0.96); 
    opacity: 1; 
    filter: blur(0px); 
    z-index: 1; 
  }
  body.cards-floating-up .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-1,
  body.reveal-active .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-1 { 
    transform: translate3d(0px, -3px, 0) rotate(0deg) scale(1.0); 
    opacity: 1; 
    filter: blur(0px); 
    z-index: 3; 
  }
  body.cards-floating-up .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-2,
  body.reveal-active .hero-deck-stage:not(.is-arc):not(.is-aligned) .deck-card-2 { 
    transform: translate3d(8px, 0, 0) rotate(3.5deg) scale(0.96); 
    opacity: 1; 
    filter: blur(0px); 
    z-index: 2; 
  }

  /* Stage 1 (Curved Arc on Mobile - 3 Cards) */
  .hero-deck-stage.is-arc .deck-card-0 {
    transform: translate3d(-70px, 12px, 0) rotate(-9deg) scale(0.94);
    z-index: 1;
  }
  .hero-deck-stage.is-arc .deck-card-1 {
    transform: translate3d(0px, 0px, 0) rotate(0deg) scale(1.02);
    z-index: 3;
  }
  .hero-deck-stage.is-arc .deck-card-2 {
    transform: translate3d(70px, 12px, 0) rotate(9deg) scale(0.94);
    z-index: 2;
  }

  /* Stage 2 (Aligned 3-Card Single Row on Mobile) */
  .hero-deck-stage.is-aligned {
    --grid-card-w: clamp(96px, 28vw, 116px);
    --grid-card-h: clamp(160px, 24vh, 195px);
  }
  .hero-deck-stage.is-aligned .deck-card-item {
    width: var(--grid-card-w);
  }
  .hero-deck-stage.is-aligned .deck-card-photo.product-card {
    height: var(--grid-card-h);
    border-radius: 14px;
    padding: 5px;
  }
  .hero-deck-stage.is-aligned .deck-card-photo .product-card-overlay {
    padding: 4px 6px;
    border-radius: 8px;
    bottom: 4px;
    left: 4px;
    width: calc(100% - 8px);
    background: rgba(255, 255, 255, 0.92);
  }
  .hero-deck-stage.is-aligned .deck-card-photo .product-card-name {
    font-size: 8px;
  }
  .hero-deck-stage.is-aligned .deck-card-photo .product-card-tag {
    font-size: 6.5px;
  }
  .hero-deck-stage.is-aligned .deck-card-photo .product-card-sub {
    display: none;
  }

  /* 3 Cards Aligned Row */
  .hero-deck-stage.is-aligned .deck-card-0 {
    transform: translate3d(calc(-1 * (var(--grid-card-w) + 8px)), 0px, 0) rotate(0deg) scale(1);
    z-index: 1;
  }
  .hero-deck-stage.is-aligned .deck-card-1 {
    transform: translate3d(0px, 0px, 0) rotate(0deg) scale(1);
    z-index: 2;
  }
  .hero-deck-stage.is-aligned .deck-card-2 {
    transform: translate3d(calc(1 * (var(--grid-card-w) + 8px)), 0px, 0) rotate(0deg) scale(1);
    z-index: 3;
  }

  .hero-footer-area {
    min-height: 64px;
    margin: 4px auto 0;
    max-width: 100%;
  }
  .hero-editorial-line {
    font-size: 9px;
    line-height: 1.35;
  }
  .explore-more-pill {
    padding: 8px 18px;
    font-size: 9.5px;
    margin-top: 4px;
  }
  .stage-indicator-bar {
    margin: 4px auto 0;
    gap: 6px;
  }
  .stage-dot {
    height: 5px;
    width: 18px;
  }
  .stage-dot.active {
    width: 36px;
  }
}

@media (max-width: 480px) {
  .hero-deck-stage {
    height: clamp(285px, 42vh, 335px);
    --card-w: 125px;
    --card-h: clamp(225px, 33vh, 265px);
  }
  .hero-deck-stage.is-arc .deck-card-0 {
    transform: translate3d(-58px, 10px, 0) rotate(-10deg) scale(0.92);
  }
  .hero-deck-stage.is-arc .deck-card-1 {
    transform: translate3d(0px, 0px, 0) rotate(0deg) scale(1.02);
  }
  .hero-deck-stage.is-arc .deck-card-2 {
    transform: translate3d(58px, 10px, 0) rotate(10deg) scale(0.92);
  }

  .hero-deck-stage.is-aligned {
    --grid-card-w: clamp(90px, 28vw, 104px);
    --grid-card-h: clamp(145px, 22vh, 175px);
  }
}

/* =========================================================================
   COMPARISON SECTION: KNX WIRED VS WIRELESS
   ========================================================================= */

.types-section {
  padding: clamp(70px, 8vw, 110px) var(--page-pd);
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--section-border);
}
.types-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 12px;
  display: inline-block;
}
.section-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-color);
  margin-bottom: 16px;
}
.section-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.type-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.16);
}
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  width: fit-content;
}
.type-badge-knx {
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-knx);
  border: 1px solid rgba(2, 132, 199, 0.2);
}
.type-badge-wireless {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-wireless);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.type-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.type-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
}
.feature-list li .check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-knx { background: rgba(2, 132, 199, 0.15); color: var(--accent-knx); }
.check-wireless { background: rgba(16, 185, 129, 0.15); color: var(--accent-wireless); }

.type-ideal-for {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}
.type-ideal-for strong {
  color: var(--text-color);
}

@media (max-width: 860px) {
  .types-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   SPECIALIZED SYSTEMS SHOWCASE (CURTAINS, SENSORS, DALI, KEYPADS)
   ========================================================================= */

.showcase-section {
  padding: clamp(70px, 8vw, 120px) var(--page-pd);
  border-top: 1px solid var(--section-border);
}
.showcase-container {
  max-width: 1300px;
  margin: 0 auto;
}
.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.showcase-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.showcase-img-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #dfe3e8;
}
.showcase-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.showcase-card:hover .showcase-img-box img {
  transform: scale(1.04);
}
.showcase-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.showcase-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 8px;
}
.showcase-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.showcase-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.showcase-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.spec-pill {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color);
}

@media (max-width: 900px) {
  .showcase-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .showcase-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   5-STEP PROJECT EXECUTION LIFECYCLE ("PROJECT TO COMPLETE PROJECT")
   ========================================================================= */

.workflow-section {
  padding: clamp(70px, 8vw, 120px) var(--page-pd);
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid var(--section-border);
}
.workflow-container {
  max-width: 1200px;
  margin: 0 auto;
}
.workflow-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px;
}
.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
}
.step-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #1d1d1f;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.step-highlight {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-color);
  background: rgba(0, 113, 227, 0.06);
  padding: 6px 12px;
  border-radius: 8px;
  width: fit-content;
}

/* =========================================================================
   BUTTONS & CTA
   ========================================================================= */

.glass-pill-btn {
  background: #1d1d1f;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.glass-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.outline-pill-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.outline-pill-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.cta-section {
  padding: clamp(80px, 10vw, 140px) var(--page-pd);
  background: #1d1d1f;
  color: #ffffff;
  border-top: 1px solid var(--section-border);
  position: relative;
  overflow: hidden;
}
.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.cta-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.cta-actions {
  max-width: 440px;
}
.cta-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #a1a1a6;
  margin-bottom: 24px;
}
.cta-btn-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cta-inner .glass-pill-btn {
  background: #ffffff;
  color: #1d1d1f;
}
.cta-inner .glass-pill-btn:hover {
  background: #f5f5f7;
}

@media (max-width: 860px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* Footer */
footer {
  padding: 40px var(--page-pd);
  background-color: var(--bg-color);
  border-top: 1px solid var(--section-border);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-credits p {
  font-size: 13px;
  color: var(--text-muted);
}
