/* ==========================================================================
   GrowShines — Light SaaS hero + navigation
   File: public_html/assets/home/hero-light.css
   Load AFTER home.css (it reuses the --gs-* tokens defined there).
   ========================================================================== */

:root {
  /* fallbacks so this file also works standalone */
  --ls-bg: var(--gs-bg, #f8fafc);
  --ls-card: var(--gs-card, #ffffff);
  --ls-line: var(--gs-line, #e2e8f0);
  --ls-line-2: var(--gs-line-2, #cbd5e1);
  --ls-text: var(--gs-text, #0f172a);
  --ls-muted: var(--gs-muted, #475569);
  --ls-dim: var(--gs-dim, #64748b);
  --ls-primary: var(--gs-primary, #2563eb);
  --ls-primary-strong: var(--gs-primary-strong, #1d4ed8);
  --ls-primary-soft: var(--gs-primary-soft, #eff6ff);
  --ls-emerald: var(--gs-emerald, #059669);
  --ls-radius: 12px;
  --ls-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --ls-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.1);
  --ls-shell: 1200px;
}

body.ls-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------- header */
.ls-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--ls-line);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.ls-header.is-stuck {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.ls-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--ls-shell));
  margin-inline: auto;
  min-height: 68px;
}

.ls-brand img {
  display: block;
  width: auto;
  height: 40px;
  max-width: 46vw;
  object-fit: contain;
}

.ls-nav__links {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ls-nav__links a {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ls-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.ls-nav__links a:hover {
  background: var(--ls-primary-soft);
  color: var(--ls-primary-strong);
}

.ls-nav__actions {
  display: none;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------- buttons */
.ls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: var(--ls-radius);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.ls-btn svg {
  width: 17px;
  height: 17px;
}

.ls-btn--primary {
  background: var(--ls-primary);
  border-color: var(--ls-primary);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.22);
}

.ls-btn--primary:hover {
  background: var(--ls-primary-strong);
  border-color: var(--ls-primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.ls-btn--ghost {
  background: #ffffff;
  border-color: var(--ls-line);
  color: var(--ls-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ls-btn--ghost:hover {
  background: #f8fafc;
  border-color: var(--ls-line-2);
}

.ls-btn--lg {
  min-height: 52px;
  padding-inline: 26px;
  font-size: 1rem;
}

.ls-btn:active {
  transform: translateY(1px);
}

/* --------------------------------------------------------------- burger */
.ls-burger {
  display: inline-grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ls-line);
  border-radius: 11px;
  background: #ffffff;
  cursor: pointer;
}

.ls-burger span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--ls-text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.ls-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ls-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.ls-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------- mobile panel */
.ls-mobile {
  display: grid;
  gap: 2px;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ls-line);
  background: #ffffff;
  box-shadow: var(--ls-shadow);
  animation: ls-slide 0.24s ease-out;
}

.ls-mobile[hidden] {
  display: none;
}

.ls-mobile a {
  padding: 13px 10px;
  border-radius: 10px;
  color: var(--ls-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.ls-mobile a:hover {
  background: var(--ls-primary-soft);
  color: var(--ls-primary-strong);
}

.ls-mobile__cta {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ls-line);
}

@keyframes ls-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------- hero */
.ls-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 32px, var(--ls-shell));
  margin-inline: auto;
  padding-block: clamp(44px, 9vw, 88px) clamp(30px, 6vw, 56px);
  text-align: center;
}

.ls-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -20% auto;
  height: 460px;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.1), transparent 60%),
    radial-gradient(circle at 72% 20%, rgba(5, 150, 105, 0.09), transparent 60%);
  filter: blur(20px);
}

.ls-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid var(--ls-line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--ls-shadow);
  color: var(--ls-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ls-pill:hover {
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.ls-pill__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ls-emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.ls-pill__arrow {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--ls-primary);
}

.ls-hero__title {
  max-width: 18ch;
  margin: 0 0 16px;
  color: var(--ls-text);
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.ls-hero__accent {
  background: linear-gradient(120deg, #2563eb, #0891b2 55%, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ls-hero__sub {
  max-width: 58ch;
  margin: 0 0 28px;
  color: var(--ls-muted);
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  line-height: 1.65;
}

.ls-hero__actions {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 380px;
}

.ls-hero__note {
  margin: 16px 0 0;
  color: var(--ls-dim);
  font-size: 0.8rem;
}

/* -------------------------------------------------------- product shot */
.ls-shot {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: clamp(32px, 6vw, 56px) 0 0;
  padding: 8px;
  border: 1px solid var(--ls-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--ls-shadow-lg);
}

.ls-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ls-line);
  border-radius: 12px;
}

/* --------------------------------------------------------- breakpoints */
@media (min-width: 768px) {
  .ls-hero__actions {
    display: flex;
    max-width: none;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .ls-nav__links,
  .ls-nav__actions {
    display: flex;
  }

  .ls-burger,
  .ls-mobile {
    display: none !important;
  }

  .ls-nav {
    min-height: 76px;
  }
}

@media (max-width: 400px) {
  .ls-brand img {
    height: 34px;
  }

  .ls-hero__title {
    font-size: clamp(1.75rem, 8.5vw, 2.2rem);
  }

  .ls-shot {
    padding: 5px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-mobile,
  .ls-btn,
  .ls-pill {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   LIVE ANIMATION LAYER
   Aurora clouds, floating brand chips, pointer parallax, staggered reveal.
   All CSS-driven; the only JS is the parallax + .is-ready flag.
   ========================================================================== */

.ls-hero {
  --px: 0;
  --py: 0;
  isolation: isolate;
  overflow: hidden;
}

/* ------------------------------------------------------------ background */
.ls-hero__bg {
  position: absolute;
  inset: -6% -4%;
  z-index: -3;
  pointer-events: none;
}

.ls-aurora {
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(90px);
  will-change: transform;
  animation: ls-drift 22s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.ls-aurora--1 {
  top: -16%;
  left: -10%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 68%);
  transform: translate3d(calc(var(--px) * 18px), calc(var(--py) * 18px), 0);
}

.ls-aurora--2 {
  top: 2%;
  right: -14%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.5), transparent 68%);
  animation-delay: -7s;
  animation-duration: 26s;
}

.ls-aurora--3 {
  bottom: -22%;
  left: 34%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.38), transparent 68%);
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes ls-drift {
  from { translate: -3% 0; scale: 1; }
  to   { translate: 4% 4%; scale: 1.14; }
}

/* faint technical grid, faded out at the edges */
.ls-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 38%, #000 28%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 58% at 50% 38%, #000 28%, transparent 76%);
}

/* slow moving light sparks */
.ls-hero__spark {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(circle, rgba(37, 99, 235, 0.5) 1.2px, transparent 1.4px),
    radial-gradient(circle, rgba(5, 150, 105, 0.45) 1.2px, transparent 1.4px);
  background-size: 220px 180px, 320px 260px;
  background-position: 0 0, 80px 60px;
  animation: ls-spark 26s linear infinite;
}

@keyframes ls-spark {
  from { background-position: 0 0, 80px 60px; }
  to   { background-position: 220px -180px, 400px -200px; }
}

/* -------------------------------------------------------- floating chips */
.ls-orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ls-chip {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  border: 1px solid var(--ls-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ls-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translate3d(calc(var(--px) * 14px), calc(var(--py) * 14px), 0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  animation: ls-float 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.ls-chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@keyframes ls-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* ------------------------------------------------------ headline shimmer */
.ls-hero__accent {
  background-size: 200% 100%;
  animation: ls-shimmer 8s linear infinite;
}

@keyframes ls-shimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

/* --------------------------------------------------- button light sweep */
.ls-btn--primary {
  position: relative;
  overflow: hidden;
}

.ls-btn--primary::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: inset-inline-start 0.65s ease;
  pointer-events: none;
}

.ls-btn--primary:hover::after {
  inset-inline-start: 130%;
}

/* --------------------------------------------------- staggered entrance */
.ls-in {
  opacity: 0;
  transform: translateY(22px);
}

.ls-hero.is-ready .ls-in {
  animation: ls-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.12s + 0.1s);
}

@keyframes ls-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* the product shot gets a soft glow pool once it is in */
.ls-shot::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 6% -8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.18), transparent 70%);
  filter: blur(40px);
}

/* ------------------------------------------------------- mobile tuning */
@media (max-width: 767px) {
  .ls-aurora--3,
  .ls-hero__spark {
    display: none;
  }

  .ls-aurora {
    filter: blur(58px);
  }

  .ls-chip {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .ls-chip img {
    width: 20px;
    height: 20px;
  }

  /* keep the headline area clear on small screens */
  .ls-chip:nth-child(3),
  .ls-chip:nth-child(4) {
    display: none;
  }
}

@media (max-width: 400px) {
  .ls-chip:nth-child(5),
  .ls-chip:nth-child(6) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-aurora,
  .ls-hero__spark,
  .ls-chip,
  .ls-hero__accent,
  .ls-hero.is-ready .ls-in {
    animation: none !important;
  }

  .ls-in {
    opacity: 1;
    transform: none;
  }

  .ls-chip,
  .ls-aurora--1 {
    transform: none !important;
    transition: none !important;
  }
}