/* ==========================================================================
   Pegasus SmartHomes — dark luxury theme (smarthomes.html)
   Loaded after styles.css; everything is scoped to .theme-dark / .lx-*
   ========================================================================== */

.theme-dark {
  --lx-bg: #0b0b0c;
  --lx-bg-2: #111113;
  --lx-text: #f3efe7;
  --lx-muted: #a8a39a;
  --lx-line: rgba(243, 239, 231, 0.12);
  --lx-gold: #c9b48a;
  --lx-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --lx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.theme-dark {
  background: var(--lx-bg);
  color: var(--lx-text);
}

/* ---------- Dark navbar ---------- */
.theme-dark .navbar {
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--lx-line);
}

.theme-dark .nav-link {
  color: var(--lx-text);
}

.theme-dark .nav-link:hover,
.theme-dark .nav-item.is-open .nav-link {
  color: var(--lx-gold);
}

.theme-dark .nav-link::after {
  background: var(--lx-gold);
}

.theme-dark .mega {
  background: #121214;
  border: 1px solid var(--lx-line);
  border-top: 0;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.theme-dark .mega__heading {
  color: var(--lx-text);
  border-bottom-color: var(--lx-line);
}

.theme-dark a.mega__heading:hover,
.theme-dark .mega__list a:hover {
  color: var(--lx-gold);
}

.theme-dark .mega__list a {
  color: var(--lx-muted);
}

.theme-dark .mega__label {
  color: var(--lx-gold);
}

.theme-dark .navbar__toggle span {
  background: var(--lx-text);
}

/* ---------- Dark footer ---------- */
.theme-dark .footer {
  background: #080809;
  color: var(--lx-muted);
  border-top: 1px solid var(--lx-line);
}

.theme-dark .footer__heading,
.theme-dark .footer__phone,
.theme-dark .footer__value {
  color: var(--lx-text);
}

.theme-dark .footer a:hover {
  color: var(--lx-gold);
}

.theme-dark .footer__label,
.theme-dark .footer__bottom p {
  color: var(--lx-muted);
}

.theme-dark .footer__social a {
  background: #161618;
  color: var(--lx-text);
  box-shadow: none;
  border: 1px solid var(--lx-line);
}

.theme-dark .footer__social a:hover {
  background: var(--lx-gold);
  color: #0b0b0c;
}

.theme-dark .footer__top {
  color: var(--lx-gold);
}

.theme-dark .contact-fab {
  background: var(--lx-text);
  color: #0b0b0c;
}

.theme-dark .contact-fab:hover {
  box-shadow: 0 8px 28px rgba(201, 180, 138, 0.45), 0 0 0 2px var(--lx-gold);
}

/* ---------- Typography & shared pieces ---------- */
.lx em {
  font-style: italic;
  color: var(--lx-gold);
}

.lx-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lx-gold);
}

.lx-title {
  margin-top: 18px;
  font-family: var(--lx-serif);
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--lx-text);
}

.lx-section {
  padding-block: clamp(96px, 12vw, 168px);
}

.lx-section--alt {
  background: var(--lx-bg-2);
}

.lx-head {
  max-width: 760px;
  margin-bottom: 80px;
}

.lx-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: none;
}

.lx-head__text {
  max-width: 420px;
  line-height: 1.75;
  color: var(--lx-muted);
}

.lx-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 30px;
  border: 1px solid rgba(243, 239, 231, 0.45);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lx-text);
  transition: background-color 0.4s var(--lx-ease), border-color 0.4s var(--lx-ease), color 0.4s var(--lx-ease);
}

.lx-btn:hover {
  border-color: var(--lx-text);
  background: rgba(243, 239, 231, 0.06);
}

.lx-btn--solid {
  background: var(--lx-text);
  border-color: var(--lx-text);
  color: #0b0b0c;
}

.lx-btn--solid:hover {
  background: var(--lx-gold);
  border-color: var(--lx-gold);
}

.lx-btn:focus-visible,
.lx-scene:focus-visible,
.lx-scroll:focus-visible {
  outline: 1px solid var(--lx-gold);
  outline-offset: 4px;
}

.lx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.lx-actions--center {
  justify-content: center;
}

.lx-specs {
  margin-top: 32px;
  border-top: 1px solid var(--lx-line);
}

.lx-specs li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--lx-line);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.lx-specs li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 1px;
  background: var(--lx-gold);
}

.lx-specs--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  border-top: 0;
}

.lx-specs--inline li {
  padding-block: 6px;
  border-bottom: 0;
}

/* ---------- Hero ---------- */
.lx-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100vh - var(--navbar-height)), 980px);
  min-height: min(calc(100svh - var(--navbar-height)), 980px); /* full screen, capped on very tall displays */
  overflow: hidden;
  isolation: isolate;
}

.lx-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: lx-zoom 18s var(--lx-ease) forwards;
}

.lx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--lx-bg) 2%, rgba(11, 11, 12, 0.55) 42%, rgba(11, 11, 12, 0.2) 72%, rgba(11, 11, 12, 0.55) 100%),
    radial-gradient(ellipse at 15% 85%, rgba(11, 11, 12, 0.65), transparent 60%);
}

@keyframes lx-zoom {
  to { transform: scale(1); }
}

.lx-hero__inner {
  padding-block: 140px 104px;
}

.lx-hero__logo {
  width: auto;
  height: 30px;
  margin-bottom: 40px;
}

.lx-hero__title {
  font-family: var(--lx-serif);
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.lx-hero__text {
  max-width: 520px;
  margin-top: 28px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(243, 239, 231, 0.82);
}

.lx-scroll {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lx-muted);
}

.lx-scroll i {
  position: relative;
  width: 1px;
  height: 64px;
  overflow: hidden;
  background: var(--lx-line);
}

.lx-scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 24px;
  background: var(--lx-gold);
  animation: lx-scroll 2.4s var(--lx-ease) infinite;
}

@keyframes lx-scroll {
  from { top: -24px; }
  to   { top: 64px; }
}

/* ---------- Manifesto ---------- */
.lx-manifesto {
  text-align: center;
}

.lx-statement {
  max-width: 1000px;
  margin: 28px auto 0;
  font-family: var(--lx-serif);
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  font-weight: 300;
  line-height: 1.25;
}

.lx-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 104px;
  border-top: 1px solid var(--lx-line);
  text-align: left;
}

.lx-pillar {
  padding: 44px 40px 0;
  border-left: 1px solid var(--lx-line);
}

.lx-pillar:first-child {
  padding-left: 0;
  border-left: 0;
}

.lx-pillar__num {
  font-family: var(--lx-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--lx-gold);
}

.lx-pillar h3 {
  margin-top: 12px;
  font-family: var(--lx-serif);
  font-size: 2.125rem;
  font-weight: 400;
}

.lx-pillar p {
  margin-top: 14px;
  line-height: 1.75;
  color: var(--lx-muted);
}

/* ---------- A day in the suite ---------- */
.lx-moment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(48px, 8vw, 128px);
}

.lx-moment + .lx-moment {
  margin-top: clamp(96px, 10vw, 150px);
}

.lx-moment--flip .lx-moment__media {
  order: 2;
}

.lx-moment__media {
  position: relative;
  overflow: hidden;
}

.lx-moment__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.6s var(--lx-ease);
}

/* fine champagne frame inset into each photograph */
.lx-moment__media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201, 180, 138, 0.4);
  pointer-events: none;
}

.lx-moment:hover .lx-moment__media img {
  transform: scale(1.04);
}

.lx-moment__text {
  max-width: 470px;
}

.lx-moment__num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--lx-serif);
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 180, 138, 0.6);
}

.lx-moment__title {
  margin-top: 16px;
  font-family: var(--lx-serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
}

.lx-moment__body {
  margin-top: 20px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--lx-muted);
}

/* ---------- Sensors ---------- */
.lx-sensors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--lx-line);
  border: 1px solid var(--lx-line);
}

.lx-sensor {
  position: relative;
  padding: 40px 32px 44px;
  background: var(--lx-bg-2);
  transition: background-color 0.5s var(--lx-ease);
}

/* brand gradient hairline draws in on hover */
.lx-sensor::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #2f63f5, #8b5cf6, #e24fc9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--lx-ease);
}

.lx-sensor:hover {
  background: #17171a;
}

.lx-sensor:hover::before {
  transform: scaleX(1);
}

.lx-sensor svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--lx-gold);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lx-sensor h3 {
  margin-top: 36px;
  font-family: var(--lx-serif);
  font-size: 1.75rem;
  font-weight: 400;
}

.lx-sensor p {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--lx-muted);
}

/* ---------- Scale ---------- */
.lx-scale {
  position: relative;
  padding-block: clamp(120px, 14vw, 200px);
  overflow: hidden;
  isolation: isolate;
}

.lx-scale__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.lx-scale::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--lx-bg), rgba(11, 11, 12, 0.5) 30%, rgba(11, 11, 12, 0.55) 70%, var(--lx-bg));
}

.lx-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.lx-tier {
  padding: 36px 32px 40px;
  border: 1px solid rgba(243, 239, 231, 0.18);
  background: rgba(11, 11, 12, 0.5);
  backdrop-filter: blur(12px);
}

.lx-tier h3 {
  margin-top: 18px;
  font-family: var(--lx-serif);
  font-size: 2.125rem;
  font-weight: 400;
}

.lx-tier p:last-child {
  margin-top: 14px;
  line-height: 1.75;
  color: rgba(243, 239, 231, 0.75);
}

/* ---------- Scene controller ---------- */
.lx-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.lx-control__body {
  max-width: 480px;
  margin-top: 24px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--lx-muted);
}

.lx-control .lx-specs--inline {
  margin-top: 28px;
}

.lx-hint {
  margin-top: 28px;
  font-family: var(--lx-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--lx-gold);
}

.lx-panel {
  position: relative;
  padding: 36px;
  overflow: hidden;
  border: 1px solid rgba(243, 239, 231, 0.14);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

/* ambient "room light" that follows the active scene */
.lx-panel__glow {
  position: absolute;
  top: -170px;
  right: -130px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 190, 120, 0.55), rgba(226, 79, 201, 0.16) 45%, transparent 70%);
  opacity: var(--glow, 0.9);
  filter: blur(10px);
  pointer-events: none;
  transition: opacity 1.2s var(--lx-ease);
}

.lx-panel__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.lx-panel__guest {
  margin-top: 8px;
  font-family: var(--lx-serif);
  font-size: 2.125rem;
  font-weight: 300;
}

.lx-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.lx-panel__status i,
.lx-panel__sensors i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 8px #3ddc97;
}

.lx-panel__scenes {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.lx-scene {
  padding: 10px 22px;
  border: 1px solid var(--lx-line);
  border-radius: 999px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--lx-text);
  transition: background-color 0.4s var(--lx-ease), border-color 0.4s var(--lx-ease), color 0.4s var(--lx-ease);
}

.lx-scene:hover {
  border-color: var(--lx-gold);
}

.lx-scene.is-active {
  background: var(--lx-text);
  border-color: var(--lx-text);
  color: #0b0b0c;
}

.lx-panel__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--lx-line);
  border-radius: 16px;
  background: var(--lx-line);
}

.lx-panel__grid > div {
  padding: 20px 22px;
  background: rgba(11, 11, 12, 0.72);
}

.lx-panel__grid dt {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lx-muted);
}

.lx-panel__grid dd {
  margin-top: 6px;
  font-family: var(--lx-serif);
  font-size: 1.625rem;
  transition: opacity 0.3s ease;
}

.lx-panel__grid dd.is-changing {
  opacity: 0;
}

.lx-panel__sensors {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--lx-muted);
}

.lx-panel__sensors span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Connected ---------- */
.lx-connect {
  padding-block: 56px;
  border-block: 1px solid var(--lx-line);
  text-align: center;
}

.lx-connect__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 20px;
  font-family: var(--lx-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.lx-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lx-gold);
}

/* ---------- Close ---------- */
.lx-close {
  position: relative;
  padding-block: clamp(140px, 16vw, 220px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.lx-close__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lx-close::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--lx-bg), rgba(11, 11, 12, 0.55) 35%, rgba(11, 11, 12, 0.8));
}

.lx-close__title {
  margin-top: 20px;
  font-family: var(--lx-serif);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
}

.lx-close__text {
  max-width: 560px;
  margin: 28px auto 0;
  line-height: 1.75;
  color: rgba(243, 239, 231, 0.8);
}

.lx-close__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 56px;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--lx-muted);
}

.lx-close__contact a {
  transition: color 0.3s ease;
}

.lx-close__contact a:hover {
  color: var(--lx-gold);
}

/* ---------- How it works (glowing wave journey) ---------- */
.theme-dark {
  --lx-violet: #8b5cf6;
}

.lx-how__track {
  position: relative;
}

.lx-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
}

.lx-wave path {
  fill: none;
  stroke: url(#lx-wave-grad);
  vector-effect: non-scaling-stroke;
}

.lx-wave__line {
  stroke-width: 2;
}

.lx-wave__glow {
  stroke-width: 10;
  opacity: 0.35;
  filter: blur(8px);
}

.lx-anim .lx-wave__line,
.lx-anim .lx-wave__glow {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: lx-draw 3.2s var(--lx-ease) 0.3s forwards;
}

@keyframes lx-draw {
  to { stroke-dashoffset: 0; }
}

.lx-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
}

.lx-step:nth-child(odd)  { padding-top: 10px; }
.lx-step:nth-child(even) { padding-top: 70px; }

.lx-step__ring {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.7);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), rgba(11, 11, 12, 0.9) 70%);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.45), inset 0 0 18px rgba(139, 92, 246, 0.25);
}

.lx-step__ring svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #d8ccff;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lx-step__num {
  display: block;
  margin-top: 28px;
  font-family: var(--lx-serif);
  font-style: italic;
  color: var(--lx-gold);
}

.lx-step h3 {
  margin-top: 6px;
  font-family: var(--lx-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
}

.lx-step p {
  margin-top: 10px;
  line-height: 1.7;
  color: var(--lx-muted);
}

/* ---------- The collection (products) ---------- */
.lx-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.lx-product + .lx-product {
  margin-top: clamp(88px, 10vw, 140px);
}

.lx-product--flip .lx-product__stage {
  order: 2;
}

.lx-product__stage {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid var(--lx-line);
  border-radius: 4px;
  background: #070708;
}

.lx-product__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--lx-ease);
}

.lx-product:hover .lx-product__stage img {
  transform: scale(1.04);
}

.lx-product__text {
  max-width: 500px;
}

.lx-product__name {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #cbb8ff;
}

.lx-product__title {
  margin-top: 18px;
  font-family: var(--lx-serif);
  font-size: clamp(2.125rem, 3.2vw, 3rem);
  font-weight: 300;
  line-height: 1.05;
}

.lx-product__body {
  margin-top: 20px;
  line-height: 1.8;
  color: var(--lx-muted);
}

.lx-product__feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  border: 1px solid var(--lx-line);
  background: var(--lx-line);
}

.lx-product__feats li {
  padding: 18px 20px;
  background: var(--lx-bg-2);
}

.lx-product__feats strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
}

.lx-product__feats span {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--lx-muted);
}

/* ---------- One app ---------- */
.lx-app {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.lx-app__phone {
  position: relative;
  justify-self: center;
  width: min(320px, 100%);
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a2a2f, #0e0e10);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 120px rgba(139, 92, 246, 0.35);
}

.lx-app__screen {
  padding: 16px 16px 24px;
  border-radius: 36px;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.28), transparent 55%), #0b0b0e;
}

.lx-app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 10px 0;
  font-size: 0.6875rem;
  color: var(--lx-muted);
}

.lx-app__notch {
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: #000;
}

.lx-app__logo {
  width: auto;
  height: 22px;
  margin: 22px 6px 0;
}

.lx-app__tabs {
  display: flex;
  gap: 18px;
  margin: 20px 6px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lx-line);
  font-size: 0.8125rem;
  color: var(--lx-muted);
}

.lx-app__tabs .is-active {
  position: relative;
  color: #d8ccff;
}

.lx-app__tabs .is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  background: var(--lx-violet);
}

.lx-app__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.lx-app__tile {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #16161b;
}

.lx-app__tile i {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #26262d;
}

.lx-app__tile.is-on i {
  background: radial-gradient(circle, #ffd89a 20%, #f0a93b 60%, transparent 62%);
  box-shadow: 0 0 16px rgba(240, 169, 59, 0.6);
}

.lx-app__tile strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
}

.lx-app__tile span {
  font-size: 0.6875rem;
  color: var(--lx-muted);
}

.lx-app__feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 36px;
}

.lx-app__feats li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9375rem;
}

.lx-app__feats svg {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
  fill: none;
  stroke: #d8ccff;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lx-app__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.lx-app__stores span {
  padding: 8px 16px;
  border: 1px solid var(--lx-line);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lx-muted);
}

/* ---------- Scroll reveal (enabled by JS; content is visible without it) ---------- */
.lx-anim .lx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--lx-ease), transform 1.1s var(--lx-ease);
}

.lx-anim .lx-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lx-wave path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .lx-hero__bg,
  .lx-scroll i::after {
    animation: none;
  }

  .lx-hero__bg {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .theme-dark .navbar__nav {
    background: #121214;
    border-top-color: var(--lx-line);
  }

  .theme-dark .nav-item {
    border-bottom-color: var(--lx-line);
  }

  .theme-dark .mega {
    border: 0;
  }

  .lx-moment,
  .lx-control,
  .lx-product,
  .lx-app {
    grid-template-columns: 1fr;
  }

  .lx-product--flip .lx-product__stage {
    order: 0;
  }

  .lx-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .lx-step:nth-child(n) {
    padding-top: 0;
  }

  .lx-wave {
    display: none;
  }

  .lx-moment--flip .lx-moment__media {
    order: 0;
  }

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

  .lx-tiers,
  .lx-pillars {
    grid-template-columns: 1fr;
  }

  .lx-pillar,
  .lx-pillar:first-child {
    padding: 36px 0 0;
    border-left: 0;
  }

  .lx-head--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* The scroll cue needs clear space under the hero buttons */
@media (max-height: 940px) {
  .lx-scroll {
    display: none;
  }
}

@media (max-width: 600px) {
  .lx-sensors,
  .lx-steps,
  .lx-product__feats,
  .lx-app__feats {
    grid-template-columns: 1fr;
  }

  .lx-panel {
    padding: 24px;
  }

  .lx-scroll {
    display: none;
  }

  .lx-hero__inner {
    padding-block: 96px 72px;
  }
}
