/* =========================================================
   Lucky Sort: Water Puzzle — Official Landing
   Motif: light “tube-rack stage” + floating status pills + gold dock
   Inspired by in-game glass tubes / neon accents (adapted to light)
   ========================================================= */

:root {
  --ls-bg: #F3EEFF;
  --ls-bg-soft: #EAF8FF;
  --ls-surface: rgba(255, 255, 255, 0.72);
  --ls-surface-strong: #FFFFFF;
  --ls-ink: #2A1B4D;
  --ls-ink-muted: #5B4B7A;
  --ls-violet: #7C3AED;
  --ls-violet-soft: #A78BFA;
  --ls-cyan: #06B6D4;
  --ls-mint: #22C55E;
  --ls-gold: #D4A017;
  --ls-gold-bright: #F5D76E;
  --ls-rose: #F43F5E;
  --ls-border: rgba(124, 58, 237, 0.18);
  --ls-shadow: 0 18px 40px rgba(88, 50, 160, 0.12);
  --ls-radius-pill: 999px;
  --ls-radius: 22px;
  --ls-font-display: "Fraunces", Georgia, serif;
  --ls-font-brand: "Fredoka", "Nunito", sans-serif;
  --ls-font-body: "Nunito", system-ui, sans-serif;
  --ls-header-h: 72px;
  --ls-dock-h: 88px;
  --ls-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ls-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ls-font-body);
  color: var(--ls-ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #FFFFFF 0%, transparent 55%),
    radial-gradient(900px 500px at 10% 40%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(800px 480px at 90% 30%, rgba(167, 139, 250, 0.28), transparent 55%),
    linear-gradient(180deg, var(--ls-bg) 0%, var(--ls-bg-soft) 45%, #F8F4FF 100%);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(var(--ls-dock-h) + 24px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.ls-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ls-violet);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 8px;
}

.ls-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---- Atmosphere ---- */
.ls-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ls-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: ls-float 18s var(--ls-ease) infinite alternate;
}

.ls-blob--violet {
  width: 420px;
  height: 420px;
  background: #C4B5FD;
  top: 8%;
  right: -80px;
}

.ls-blob--cyan {
  width: 360px;
  height: 360px;
  background: #A5F3FC;
  bottom: 18%;
  left: -60px;
  animation-delay: -6s;
}

.ls-blob--mint {
  width: 280px;
  height: 280px;
  background: #BBF7D0;
  top: 48%;
  left: 42%;
  animation-delay: -11s;
}

.ls-sparkles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 20%, rgba(245, 215, 110, 0.9) 0 1.5px, transparent 2px),
    radial-gradient(circle at 85% 60%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 75%, rgba(167, 139, 250, 0.7) 0 1.5px, transparent 2px);
  opacity: 0.55;
}

@keyframes ls-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -30px, 0) scale(1.08); }
}

/* ---- Floating status-pill header ---- */
.ls-pills {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 16px 8px;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.ls-pills.is-stuck {
  background: rgba(243, 238, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(88, 50, 160, 0.08);
}

.ls-pills__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.ls-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: var(--ls-radius-pill);
  background: var(--ls-surface);
  border: 1.5px solid var(--ls-border);
  box-shadow: var(--ls-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ls-pill:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 12px 28px rgba(88, 50, 160, 0.16);
}

.ls-pill__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.35);
}

.ls-pill__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.ls-pill__icon--brand {
  background: linear-gradient(145deg, #A78BFA, #7C3AED);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}

.ls-pill__icon--cash {
  background: linear-gradient(145deg, #4ADE80, #16A34A);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.ls-pill__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.ls-pill__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ls-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ls-pill__value {
  font-family: var(--ls-font-brand);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ls-ink);
  white-space: nowrap;
}

.ls-pill__action {
  margin-left: 4px;
  padding: 6px 12px;
  border-radius: var(--ls-radius-pill);
  background: linear-gradient(180deg, #6EE7B7, #10B981);
  color: #064E3B;
  font-weight: 800;
  font-size: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ls-pill--nav {
  gap: 4px;
  padding: 6px;
  flex: 1;
  justify-content: center;
  max-width: 420px;
}

.ls-navlink {
  padding: 10px 16px;
  border-radius: var(--ls-radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ls-ink-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.ls-navlink:hover,
.ls-navlink.is-active {
  color: var(--ls-violet);
  background: rgba(124, 58, 237, 0.1);
}

.ls-pill--cta {
  cursor: pointer;
}

.ls-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  place-items: center;
  background: var(--ls-surface-strong);
  border: 1.5px solid var(--ls-border);
  color: var(--ls-violet);
  box-shadow: var(--ls-shadow);
}

.ls-burger svg {
  width: 22px;
  height: 22px;
}

/* ---- Main ---- */
.ls-main {
  position: relative;
  z-index: 1;
}

.ls-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: var(--ls-radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--ls-border);
  color: var(--ls-violet);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.ls-kicker svg {
  width: 16px;
  height: 16px;
}

/* ---- Hero / tube stage ---- */
.ls-hero {
  padding: 28px 20px 48px;
}

.ls-hero__stage {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.ls-hero__copy {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ls-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
}

.ls-phone {
  position: relative;
  z-index: 2;
  width: min(100%, 300px);
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #3B2766, #1F123F);
  border: 3px solid var(--ls-gold-bright);
  box-shadow:
    0 0 0 4px rgba(245, 215, 110, 0.22),
    0 28px 56px rgba(42, 27, 77, 0.35);
}

.ls-phone img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  display: block;
}

.ls-rack--side {
  position: absolute;
  right: -4%;
  bottom: 8%;
  z-index: 1;
  gap: 8px;
  padding: 0;
  opacity: 0.9;
  pointer-events: none;
}

.ls-rack--side::after {
  display: none;
}

.ls-rack--side .ls-tube {
  width: 36px;
}

.ls-rack--side .ls-tube__glass {
  height: 110px;
}

.ls-level {
  margin: 0 0 14px;
  font-family: var(--ls-font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ls-level__word {
  display: inline-block;
  background: linear-gradient(180deg, #F8E7A0 0%, #C9920E 45%, #7A5208 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.85)) drop-shadow(0 6px 16px rgba(212, 160, 23, 0.35));
}

.ls-level__word--accent {
  background: linear-gradient(180deg, #E9D5FF 0%, #7C3AED 55%, #4C1D95 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-left: 0.18em;
}

.ls-lead {
  max-width: 34rem;
  margin: 0 0 22px;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--ls-ink-muted);
  font-weight: 600;
}

.ls-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.ls-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.2s var(--ls-ease), box-shadow 0.2s ease, filter 0.2s ease;
}

.ls-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.ls-btn:focus-visible,
.ls-navlink:focus-visible,
.ls-dock-btn:focus-visible,
.ls-dock__orb:focus-visible,
.ls-burger:focus-visible,
.ls-modal__close:focus-visible {
  outline: 3px solid var(--ls-cyan);
  outline-offset: 2px;
}

.ls-btn--store {
  min-width: 168px;
  background: linear-gradient(180deg, #3B2766, #1F123F);
  color: #fff;
  border: 2px solid var(--ls-gold-bright);
  box-shadow:
    0 0 0 2px rgba(212, 160, 23, 0.25),
    0 12px 24px rgba(42, 27, 77, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: left;
}

.ls-btn--store small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.75;
  line-height: 1.1;
}

.ls-btn--store span {
  line-height: 1.15;
  font-size: 0.95rem;
}

.ls-btn--store svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ls-btn--play {
  background: linear-gradient(180deg, #0E7490, #155E75);
}

.ls-btn--primary {
  background: linear-gradient(180deg, #6EE7B7, #10B981);
  color: #064E3B;
  border: 2px solid rgba(4, 120, 87, 0.25);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.3);
  padding: 12px 28px;
}

/* Progress ribbon */
.ls-progress {
  width: min(100%, 420px);
  margin-bottom: 0;
  padding: 14px 16px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(237, 233, 254, 0.9));
  border: 1.5px solid rgba(212, 160, 23, 0.55);
  box-shadow:
    0 0 0 3px rgba(245, 215, 110, 0.2),
    var(--ls-shadow);
}

.ls-progress__track {
  height: 14px;
  border-radius: var(--ls-radius-pill);
  background: #2A1B4D;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.ls-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22D3EE, #4ADE80, #A3E635);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
  animation: ls-progress-glow 2.4s ease-in-out infinite alternate;
}

@keyframes ls-progress-glow {
  from { filter: brightness(1); }
  to { filter: brightness(1.12); }
}

.ls-progress__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ls-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* CSS glass tubes rack */
.ls-rack {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 3vw, 22px);
  width: 100%;
  padding: 28px 12px 0;
  position: relative;
}

.ls-rack::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -6px;
  height: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #C4B5FD, #8B5CF6);
  box-shadow: 0 10px 20px rgba(109, 40, 217, 0.25);
  opacity: 0.55;
}

.ls-tube {
  width: clamp(42px, 9vw, 68px);
  position: relative;
  z-index: 1;
}

.ls-tube__glass {
  height: clamp(130px, 28vw, 210px);
  border-radius: 12px 12px 22px 22px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.05) 18%, transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 0 0 1px rgba(124, 58, 237, 0.15),
    inset -6px 0 12px rgba(255, 255, 255, 0.35),
    0 14px 28px rgba(88, 50, 160, 0.18);
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  backdrop-filter: blur(2px);
  position: relative;
}

.ls-tube__glass::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 22%;
  width: 18%;
  height: 55%;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), transparent);
  pointer-events: none;
}

.ls-layer {
  display: block;
  height: 28%;
  background: var(--c);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.45);
  animation: ls-liquid 3.6s ease-in-out infinite alternate;
}

.ls-tube:nth-child(2) .ls-layer { animation-delay: -0.6s; }
.ls-tube:nth-child(3) .ls-layer { animation-delay: -1.2s; }
.ls-tube:nth-child(4) .ls-layer { animation-delay: -1.8s; }

.ls-tube--pour {
  transform: translateY(-18px) rotate(-8deg);
  transform-origin: bottom center;
}

.ls-tube--empty .ls-tube__glass {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.05) 18%, transparent 40%),
    rgba(255, 255, 255, 0.25);
}

@keyframes ls-liquid {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

/* ---- Features as vials on a shelf ---- */
.ls-features {
  padding: 40px 20px 64px;
  max-width: 1100px;
  margin: 0 auto;
}

.ls-section-head {
  text-align: center;
  margin-bottom: 36px;
}

.ls-section-title {
  margin: 0 0 10px;
  font-family: var(--ls-font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--ls-ink);
  letter-spacing: -0.02em;
}

.ls-section-sub {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--ls-ink-muted);
  font-weight: 600;
}

.ls-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 48px;
  position: relative;
}

.ls-shelf::before {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -14px;
  height: 22px;
  border-radius: 14px;
  background: linear-gradient(90deg, #DDD6FE, #C4B5FD, #A5F3FC);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.15);
  z-index: 0;
}

.ls-vial {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ls-vial__cap {
  width: 46%;
  height: 14px;
  border-radius: 8px 8px 2px 2px;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent);
  margin-bottom: -2px;
}

.ls-vial__body {
  width: 100%;
  padding: 28px 18px 22px;
  border-radius: 18px 18px 28px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 243, 255, 0.88));
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(124, 58, 237, 0.08),
    0 16px 32px rgba(88, 50, 160, 0.12);
  min-height: 240px;
  transition: transform 0.25s var(--ls-ease), box-shadow 0.25s ease;
}

.ls-vial:hover .ls-vial__body {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px rgba(124, 58, 237, 0.12),
    0 22px 40px rgba(88, 50, 160, 0.18);
}

.ls-vial__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 85%, white), var(--accent));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 40%, transparent);
}

.ls-vial__icon svg {
  width: 24px;
  height: 24px;
}

.ls-vial h3 {
  margin: 0 0 8px;
  font-family: var(--ls-font-brand);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ls-ink);
}

.ls-vial p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ls-ink-muted);
  font-weight: 550;
}

/* How-to strip */
.ls-howto {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  margin-bottom: 36px;
  border-radius: 28px;
  background: var(--ls-surface);
  border: 1.5px solid var(--ls-border);
  box-shadow: var(--ls-shadow);
  backdrop-filter: blur(12px);
}

.ls-howto h3 {
  margin: 0 0 14px;
  font-family: var(--ls-font-display);
  font-size: 1.6rem;
}

.ls-howto ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ls-ink-muted);
  font-weight: 600;
}

.ls-howto li {
  margin-bottom: 10px;
}

.ls-howto li::marker {
  color: var(--ls-violet);
  font-weight: 800;
}

.ls-howto__shot {
  margin: 0;
  justify-self: center;
}

.ls-howto__shot img {
  border-radius: 24px;
  border: 3px solid rgba(212, 160, 23, 0.55);
  box-shadow:
    0 0 0 4px rgba(245, 215, 110, 0.2),
    0 24px 48px rgba(88, 50, 160, 0.2);
  max-height: 420px;
  width: auto;
  margin: 0 auto;
  object-fit: cover;
}

/* ---- Screenshot gallery rail ---- */
.ls-gallery {
  padding: 20px 0 64px;
  max-width: 100%;
  overflow: hidden;
}

.ls-gallery .ls-section-head {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.ls-gallery__rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px 28px;
  -webkit-overflow-scrolling: touch;
}

.ls-shot {
  flex: 0 0 auto;
  width: 220px;
  margin: 0;
  text-align: center;
  cursor: default;
  transition: transform 0.25s var(--ls-ease);
}

.ls-shot:hover {
  transform: translateY(-6px);
}

.ls-shot img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 3px solid rgba(212, 160, 23, 0.5);
  box-shadow:
    0 0 0 3px rgba(245, 215, 110, 0.18),
    0 16px 32px rgba(88, 50, 160, 0.18);
}

.ls-shot figcaption {
  margin-top: 10px;
  font-family: var(--ls-font-brand);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ls-ink-muted);
}

.ls-download__icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 12px;
  box-shadow: 0 12px 28px rgba(88, 50, 160, 0.25);
}

.ls-modal__logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 12px;
  display: block;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.3);
}

.ls-footer__brand img {
  border-radius: 10px;
}

/* ---- Download panel ---- */
.ls-download {
  padding: 20px 20px 80px;
  max-width: 780px;
  margin: 0 auto;
}

.ls-download__panel {
  text-align: center;
  padding: 40px 28px;
  border-radius: 32px;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(167, 139, 250, 0.35), transparent 70%),
    linear-gradient(180deg, #FFFFFF, #F5F3FF);
  border: 2px solid rgba(212, 160, 23, 0.45);
  box-shadow:
    0 0 0 4px rgba(245, 215, 110, 0.15),
    var(--ls-shadow);
}

.ls-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

/* Dock-style square buttons */
.ls-dock-btn {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  gap: 2px;
  background: linear-gradient(180deg, #5B21B6, #312E81);
  color: #fff;
  border: 3px solid var(--ls-gold-bright);
  box-shadow:
    0 0 0 2px rgba(124, 58, 237, 0.35),
    0 10px 20px rgba(49, 46, 129, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s var(--ls-ease), filter 0.2s ease, box-shadow 0.2s ease;
}

.ls-dock-btn span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.ls-download__actions .ls-dock-btn {
  width: auto;
  min-width: 120px;
  height: auto;
  padding: 14px 18px;
  grid-auto-flow: column;
  gap: 8px;
  border-radius: 16px;
}

.ls-download__actions .ls-dock-btn span {
  font-size: 0.9rem;
}

.ls-dock-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    0 0 16px rgba(245, 215, 110, 0.45),
    0 14px 28px rgba(49, 46, 129, 0.4);
}

.ls-dock-btn--accent {
  background: linear-gradient(180deg, #34D399, #059669);
  border-color: #A7F3D0;
}

.ls-dock-btn svg {
  width: 22px;
  height: 22px;
}

/* ---- Fixed bottom dock ---- */
.ls-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  pointer-events: none;
}

.ls-dock > * {
  pointer-events: auto;
}

.ls-dock__tray {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(49, 46, 129, 0.92), rgba(30, 27, 75, 0.95));
  border: 2px solid rgba(245, 215, 110, 0.65);
  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.2),
    0 16px 36px rgba(30, 27, 75, 0.4);
  backdrop-filter: blur(10px);
}

.ls-dock__orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #A78BFA, #6D28D9);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 22px rgba(109, 40, 217, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ls-dock__orb:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.ls-dock__orb svg {
  width: 20px;
  height: 20px;
}

.ls-dock .ls-dock-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

/* ---- Footer ---- */
.ls-footer {
  position: relative;
  z-index: 1;
  padding: 40px 20px 32px;
  border-top: 1px solid var(--ls-border);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.ls-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.ls-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ls-font-brand);
  font-weight: 600;
  color: var(--ls-violet);
}

.ls-footer__brand svg {
  width: 20px;
  height: 20px;
}

.ls-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
}

.ls-footer__links a {
  font-weight: 700;
  color: var(--ls-ink-muted);
  transition: color 0.2s ease;
}

.ls-footer__links a:hover {
  color: var(--ls-violet);
  text-decoration: underline;
}

.ls-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ls-ink-muted);
}

/* ---- Modal ---- */
.ls-modal[hidden] {
  display: none !important;
}

.ls-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ls-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 27, 77, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.ls-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 32px 28px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #FFFFFF, #F5F3FF);
  border: 2px solid rgba(212, 160, 23, 0.5);
  box-shadow: 0 24px 60px rgba(42, 27, 77, 0.3);
  text-align: center;
  animation: ls-modal-in 0.28s var(--ls-ease);
}

@keyframes ls-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ls-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ls-ink-muted);
  background: rgba(124, 58, 237, 0.08);
}

.ls-modal__close:hover {
  background: rgba(124, 58, 237, 0.16);
  color: var(--ls-violet);
}

.ls-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #A78BFA, #7C3AED);
  color: #fff;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.35);
}

.ls-modal__icon svg {
  width: 26px;
  height: 26px;
}

.ls-modal__dialog h2 {
  margin: 0 0 8px;
  font-family: var(--ls-font-display);
  font-size: 1.6rem;
}

.ls-modal__dialog p {
  margin: 0 0 20px;
  color: var(--ls-ink-muted);
  font-weight: 600;
}

body.ls-modal-open {
  overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .ls-hero__stage {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .ls-hero__copy {
    align-items: center;
    text-align: center;
  }

  .ls-hero__cta {
    justify-content: center;
  }

  .ls-rack--side {
    display: none;
  }

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

  .ls-howto {
    grid-template-columns: 1fr;
  }

  .ls-howto__shot {
    order: -1;
  }

  .ls-howto__shot img {
    max-height: 360px;
  }
}

@media (max-width: 780px) {
  .ls-pill--nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    max-width: none;
    flex-direction: column;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--ls-shadow);
  }

  .ls-pill--nav.is-open {
    display: flex;
  }

  .ls-pills__inner {
    position: relative;
  }

  .ls-burger {
    display: grid;
  }

  .ls-pill--cta .ls-pill__meta,
  .ls-pill--cta .ls-pill__label {
    display: none;
  }

  .ls-pill--brand .ls-pill__label {
    display: none;
  }
}

@media (max-width: 560px) {
  .ls-shelf {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ls-vial__body {
    min-height: 210px;
    padding: 22px 12px 16px;
  }

  .ls-vial h3 {
    font-size: 0.95rem;
  }

  .ls-vial p {
    font-size: 0.8rem;
  }

  .ls-dock__orb:first-child {
    display: none;
  }

  .ls-hero {
    padding-top: 16px;
  }

  .ls-phone {
    width: min(100%, 260px);
  }

  .ls-hero__visual {
    min-height: 0;
  }

  .ls-tube--pour {
    transform: translateY(-10px) rotate(-6deg);
  }
}

@media (max-width: 400px) {
  .ls-shelf {
    grid-template-columns: 1fr;
  }

  .ls-shelf::before {
    display: none;
  }

  .ls-download__actions .ls-dock-btn {
    flex: 1 1 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ls-blob,
  .ls-layer,
  .ls-progress__fill,
  .ls-modal__dialog {
    animation: none !important;
  }

  .ls-btn:hover,
  .ls-dock-btn:hover,
  .ls-vial:hover .ls-vial__body,
  .ls-dock__orb:hover {
    transform: none;
  }
}
