/* Water Pouring Puzzle — dark neon + juicy accents (distinct from other app landings) */

:root {
  --bg-deep: #070714;
  --bg-mid: #0f0f23;
  --bg-purple: #1a0f2e;
  --neon-green: #2ee59d;
  --neon-green-dim: #1fb87a;
  --juice-cyan: #22d3ee;
  --juice-amber: #fbbf24;
  --juice-magenta: #e879f9;
  --juice-rose: #fb7185;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --panel: rgba(15, 23, 42, 0.55);
  --panel-border: rgba(34, 211, 238, 0.22);
  --glow-green: 0 0 32px rgba(46, 229, 157, 0.35);
  --glow-cyan: 0 0 28px rgba(34, 211, 238, 0.25);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(900px 600px at 100% 20%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #0a0618 100%);
  background-attachment: fixed;
}

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

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

button {
  font-family: inherit;
}

.shell {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* --- Background stage (decorative vials) --- */
.bg-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-stage__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.bg-stage__glow--a {
  width: 420px;
  height: 420px;
  background: #7c3aed;
  top: 15%;
  right: -8%;
}

.bg-stage__glow--b {
  width: 360px;
  height: 360px;
  background: #0ea5e9;
  bottom: 5%;
  left: -10%;
  opacity: 0.25;
}

.bg-stage__vials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding-bottom: 6vh;
  opacity: 0.35;
}

.vial {
  position: relative;
  width: 36px;
  border-radius: 10px 10px 18px 18px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--glow-cyan);
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
}

.vial--sm {
  height: 100px;
}

.vial--md {
  height: 140px;
}

.vial__liquid {
  width: 100%;
}

.vial__liquid--grape {
  height: 45%;
  background: linear-gradient(180deg, #c084fc, #7c3aed);
}

.vial__liquid--cyan {
  height: 38%;
  background: linear-gradient(180deg, #67e8f9, #0891b2);
}

.vial__liquid--amber {
  height: 32%;
  background: linear-gradient(180deg, #fde047, #ea580c);
}

.vial__liquid--berry {
  height: 40%;
  background: linear-gradient(180deg, #f472b6, #db2777);
}

.vial__liquid--mango {
  height: 55%;
  background: linear-gradient(180deg, #fcd34d, #f97316);
}

.vial__liquid--lime {
  height: 48%;
  background: linear-gradient(180deg, #86efac, #16a34a);
}

/* --- Shared panels --- */
.neon-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.65rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.92;
}

.brand__img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: var(--glow-cyan);
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav--desktop .nav__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav--desktop a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav--desktop a:hover {
  color: var(--juice-cyan);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: var(--glow-cyan);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: calc(var(--header-h) + 0.5rem) 1.25rem 1.25rem;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(6px);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer__panel {
  padding: 1.5rem;
  max-width: 360px;
  margin-left: auto;
}

.mobile-drawer__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.mobile-drawer__list a {
  display: block;
  padding: 0.85rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-drawer__list a:hover {
  color: var(--neon-green);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--neon {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-green-dim));
  color: #042014;
  box-shadow: var(--glow-green);
}

.btn--neon:hover {
  box-shadow: 0 0 40px rgba(46, 229, 157, 0.55);
}

.btn--juice {
  background: linear-gradient(135deg, var(--juice-amber), #f97316);
  color: #1a0a00;
  box-shadow: 0 12px 36px rgba(251, 191, 36, 0.35);
}

.btn--juice:hover {
  box-shadow: 0 14px 42px rgba(251, 191, 36, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(148, 163, 184, 0.45);
}

.btn--outline:hover {
  border-color: rgba(34, 211, 238, 0.75);
  color: var(--juice-cyan);
  box-shadow: var(--glow-cyan);
}

.btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 7vw, 4.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.pill--live {
  background: rgba(46, 229, 157, 0.12);
  border: 1px solid rgba(46, 229, 157, 0.35);
  color: var(--neon-green);
}

.hero__title {
  margin: 0 0 1rem;
  line-height: 1.05;
}

.hero__title-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  letter-spacing: 0.02em;
}

/* Splash-style dual title treatment */
.hero__title-line--a {
  background: linear-gradient(180deg, #e0f2fe 0%, #22d3ee 55%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(8, 47, 73, 0.9)) drop-shadow(0 4px 12px rgba(34, 211, 238, 0.35));
}

.hero__title-line--b {
  background: linear-gradient(180deg, #fef9c3 0%, #fbbf24 45%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(120, 53, 15, 0.85)) drop-shadow(0 6px 18px rgba(251, 191, 36, 0.35));
}

.hero__lead {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero__stats strong {
  color: var(--text);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__device {
  width: min(100%, 380px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.device-frame {
  position: relative;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 2px solid rgba(34, 211, 238, 0.28);
  box-shadow: var(--glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.device-frame__shine {
  position: absolute;
  top: 18px;
  left: 14px;
  right: 14px;
  height: 40%;
  border-radius: 28px 28px 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.device-frame__img {
  border-radius: 26px;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-purple);
}

.hero__device-caption {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--juice-magenta);
  margin: 0 0 0.65rem;
}

.eyebrow--soft {
  color: var(--juice-cyan);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.section__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section__title--tight {
  margin-bottom: 0.35rem;
}

/* --- Bento grid --- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento__card {
  padding: 1.5rem 1.5rem 1.6rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.bento__card:hover {
  border-color: rgba(46, 229, 157, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), var(--glow-green);
}

@media (min-width: 901px) {
  .bento__card--wide {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
  }

  .bento__card:nth-of-type(2) {
    grid-column: 8 / span 5;
    grid-row: 1;
  }

  .bento__card:nth-of-type(3) {
    grid-column: 8 / span 5;
    grid-row: 2;
  }

  .bento__card--tall {
    grid-column: 1 / span 12;
    grid-row: 3;
  }
}

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

  .bento__card--wide,
  .bento__card--tall,
  .bento__card:nth-of-type(2),
  .bento__card:nth-of-type(3) {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

.bento__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(124, 58, 237, 0.25));
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--juice-cyan);
}

.bento__icon svg {
  width: 24px;
  height: 24px;
}

.bento__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.bento__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.section--screenshots {
  padding-top: 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.screenshot-card {
  margin: 0;
  padding: 0.55rem;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.screenshot-card:hover {
  border-color: rgba(232, 121, 249, 0.4);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5), 0 0 28px rgba(232, 121, 249, 0.15);
}

.screenshot-card img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  display: block;
}

.section--download {
  padding-top: 0;
}

.download-banner {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.45), rgba(30, 58, 138, 0.5));
  border-color: rgba(167, 139, 250, 0.35);
}

.download-banner__art {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: min(440px, 52vw);
  object-position: center;
}

.download-banner__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.download-banner__sub {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.download-banner__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-chip:hover {
  border-color: rgba(46, 229, 157, 0.55);
  box-shadow: var(--glow-green);
}

.store-chip svg {
  width: 22px;
  height: 22px;
}

.store-chip--alt:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: var(--glow-cyan);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer__grid {
  display: grid;
  gap: 1.25rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.footer__tag {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer__links a {
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(148, 163, 184, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer__links a:hover {
  color: var(--juice-cyan);
  text-decoration-color: rgba(34, 211, 238, 0.8);
}

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal[hidden] {
  display: none;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 1.75rem 1.75rem 1.5rem;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: rgba(34, 211, 238, 0.22);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__title {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.modal__body {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy {
    order: 1;
  }

  .hero__visual {
    order: 0;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .nav--desktop {
    display: none;
  }

  .header__actions .btn--sm {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }

  .download-banner__body {
    flex-direction: column;
    text-align: center;
  }

  .download-banner__stores {
    justify-content: center;
  }

  .download-banner__art {
    max-height: min(320px, 55vw);
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    width: min(640px, 100%);
    margin-inline: auto;
  }
}

@media (min-width: 901px) {
  .menu-toggle {
    display: none;
  }

  .mobile-drawer {
    display: none !important;
  }
}
