/* HotFlick — Ribbon Stage landing (dark fire aesthetic) */
:root {
  --bg: #0a0612;
  --bg-elev: #14101f;
  --ink: #f8f5ff;
  --muted: #b8aec9;
  --flame-y: #ffe14a;
  --flame-o: #ff6b2c;
  --flame-p: #ff3d8a;
  --violet: #8b3dff;
  --green: #3dff9a;
  --glass: rgba(20, 16, 32, 0.72);
  --radius: 22px;
  --nav-h: 72px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --shadow-glow: 0 0 40px rgba(255, 107, 44, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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;
  }
  .stage__path { animation: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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; }
ul, ol { list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--flame-o);
  color: #111;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ===== Ambient ribbons ===== */
.stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stage__ribbons {
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.stage__path--a {
  animation: ribbonDrift 18s ease-in-out infinite alternate;
}
.stage__path--b {
  animation: ribbonDrift 24s ease-in-out infinite alternate-reverse;
}

@keyframes ribbonDrift {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(-28px) translateX(18px); }
}

.stage__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.stage__glow--flame {
  width: 48vw;
  height: 48vw;
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.45), transparent 70%);
}
.stage__glow--violet {
  width: 40vw;
  height: 40vw;
  bottom: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.35), transparent 70%);
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), backdrop-filter 0.25s;
}

.nav.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 225, 74, 0.35);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  position: relative;
}

.brand__name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--flame-y), var(--flame-o));
  transform: scaleX(0.85);
  transform-origin: left;
}

.nav__links {
  display: none;
  gap: 1.75rem;
}

.nav__links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  cursor: pointer;
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--ink); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.nav__burger:hover { background: rgba(255, 255, 255, 0.1); }

.drawer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem 1.25rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer[hidden] { display: none !important; }
.drawer a {
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
  cursor: pointer;
}
.drawer a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .drawer { display: none !important; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible {
  outline: 2px solid var(--flame-y);
  outline-offset: 3px;
}
.btn i { width: 1.15rem; height: 1.15rem; }

.btn--flame {
  background: linear-gradient(135deg, var(--flame-y) 0%, var(--flame-o) 55%, var(--flame-p) 100%);
  color: #1a0a08;
  box-shadow: var(--shadow-glow);
}
.btn--flame:hover { box-shadow: 0 0 48px rgba(255, 61, 138, 0.4); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
}
.btn--ghost:hover { border-color: rgba(255, 225, 74, 0.5); background: rgba(255, 225, 74, 0.08); }

.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn--store {
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  text-align: left;
  gap: 0.75rem;
  min-width: 180px;
}
.btn--store small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.75;
  line-height: 1.2;
}
.btn--store span { line-height: 1.15; font-size: 1.05rem; }
.btn--store i { width: 1.6rem; height: 1.6rem; }
.btn--store-alt {
  background: linear-gradient(135deg, #2a1638, #1a1028);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 1.5rem) 1.25rem 4rem;
  gap: 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.hero__cascade {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero__cascade-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.35;
  filter: saturate(1.15) contrast(1.05);
  transform: scale(1.05);
}
.hero__cascade-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 6, 18, 0.55) 0%, rgba(10, 6, 18, 0.75) 40%, var(--bg) 95%),
    radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(10, 6, 18, 0.7) 70%);
}

.hero__content {
  position: relative;
  max-width: 34rem;
}

.hero__eyebrow {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--flame-y);
  margin-bottom: 0.85rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero__title-line {
  display: block;
  color: #fff;
  text-shadow:
    -2px -2px 0 #0a0612,
    2px -2px 0 #0a0612,
    -2px 2px 0 #0a0612,
    2px 2px 0 #0a0612,
    0 6px 24px rgba(0, 0, 0, 0.45);
}

.hero__title-pill {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15em 0.55em 0.25em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--flame-y), #ffb020);
  color: #1a0a08;
  box-shadow: 0 10px 30px rgba(255, 177, 32, 0.35);
}

.hero__lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 32ch;
  margin-bottom: 1.75rem;
}

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

.hero__device {
  position: relative;
  justify-self: center;
  width: min(280px, 72vw);
}

.phone {
  position: relative;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
  animation: phoneFloat 5.5s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

.phone__bezel {
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #000;
  aspect-ratio: 506 / 900;
}
.phone__bezel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.float-chip {
  position: absolute;
  left: 50%;
  bottom: -1.25rem;
  transform: translateX(-50%);
  width: calc(100% + 2.5rem);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: #1a1020;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: chipPop 5.5s ease-in-out infinite;
}
@keyframes chipPop {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}
.float-chip img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.float-chip strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
}
.float-chip span {
  font-size: 0.72rem;
  color: #6b6280;
}
.float-chip__play {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--flame-p));
  color: #fff;
  flex-shrink: 0;
}
.float-chip__play i { width: 1rem; height: 1rem; }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: calc(var(--nav-h) + 2.5rem);
    padding-bottom: 5rem;
  }
  .hero__device { width: min(300px, 100%); justify-self: end; }
}

/* ===== Path features ===== */
.path {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 1.25rem 3rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}
.section-head h2,
.moments__copy h2,
.download__panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}
.section-head p,
.moments__copy > p {
  color: var(--muted);
  max-width: 42ch;
  margin-inline: auto;
  font-size: 1.05rem;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}
.section-head--row p { margin-inline: 0; }

.path__rail {
  display: grid;
  gap: 1.25rem;
  position: relative;
}
.path__rail::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--flame-y), var(--flame-o), var(--flame-p), var(--violet));
  opacity: 0.55;
}

.path__step {
  position: relative;
  margin-left: 2.75rem;
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.path__step:hover {
  border-color: rgba(255, 107, 44, 0.45);
  background: rgba(255, 107, 44, 0.06);
  box-shadow: 0 0 32px rgba(255, 107, 44, 0.12);
}

.path__num {
  position: absolute;
  left: -2.75rem;
  top: 1.35rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--flame-y), var(--flame-o));
  color: #1a0a08;
  z-index: 1;
}

.path__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, rgba(255, 225, 74, 0.2), rgba(255, 61, 138, 0.2));
  color: var(--flame-y);
}
.path__icon i { width: 1.25rem; height: 1.25rem; }

.path__step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.path__step p { color: var(--muted); font-size: 0.98rem; }

@media (min-width: 768px) {
  .path__rail {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }
  .path__rail::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .path__step {
    margin-left: 0;
  }
  .path__step--offset { margin-top: 2.5rem; }
  .path__num {
    left: auto;
    right: 1.1rem;
    top: 1.1rem;
  }
}

/* ===== Moments ===== */
.moments {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.moments__copy { max-width: 28rem; }
.moments__copy > p { margin-inline: 0; margin-bottom: 1.5rem; }

.moments__list {
  display: grid;
  gap: 0.85rem;
}
.moments__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.moments__list i {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--flame-y);
  flex-shrink: 0;
}

.moments__stage {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
}

.moments__phone {
  width: min(210px, 44vw);
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  /* Match phone screenshots 506×900 — no stretch */
  aspect-ratio: 506 / 900;
  background: #000;
}
.moments__phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.moments__phone--a {
  transform: rotate(-8deg) translateX(-18%);
  z-index: 1;
}
.moments__phone--b {
  position: absolute;
  width: min(210px, 44vw);
  transform: rotate(7deg) translateX(22%);
  z-index: 2;
  border-color: rgba(255, 225, 74, 0.7);
  box-shadow: 0 24px 48px rgba(255, 107, 44, 0.25);
}

.moments__deco {
  position: absolute;
  width: 72px;
  aspect-ratio: 506 / 900;
  object-fit: contain;
  bottom: 8%;
  right: 6%;
  border-radius: 16px;
  opacity: 0.9;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
  animation: phoneFloat 6s ease-in-out infinite reverse;
  z-index: 3;
}

@media (min-width: 900px) {
  .moments {
    grid-template-columns: 1fr 1.1fr;
    padding: 5rem 1.25rem;
  }
  .moments__stage { min-height: 480px; }
  .moments__phone,
  .moments__phone--b { width: 230px; }
}

/* ===== Stories rail ===== */
.stories {
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
  max-width: 1120px;
  margin: 0 auto;
}
.stories .section-head { padding: 0 1.25rem; }

.stories__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--flame-o) transparent;
}
.stories__track:focus-visible {
  outline: 2px solid var(--flame-y);
  outline-offset: 4px;
}

.stories__card {
  position: relative;
  flex: 0 0 min(200px, 56vw);
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  /* Unified phone frame — same as source 506×900 */
  aspect-ratio: 506 / 900;
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #0a0612;
  align-self: center;
}
.stories__card:hover {
  border-color: rgba(255, 107, 44, 0.65);
  box-shadow: 0 0 28px rgba(255, 107, 44, 0.25);
}
.stories__card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.stories__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: #ff3b5c;
  color: #fff;
}
.stories__badge--new { background: #3b82f6; }
.stories__badge--reward {
  background: linear-gradient(90deg, var(--flame-y), var(--flame-p));
  color: #1a0a08;
}

/* ===== Download ===== */
.download {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem 5rem;
  max-width: 720px;
  margin: 0 auto;
}

.download__panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(255, 107, 44, 0.18), rgba(139, 61, 255, 0.15) 50%, rgba(10, 6, 18, 0.9)),
    var(--bg-elev);
  border: 1px solid rgba(255, 225, 74, 0.25);
  box-shadow: 0 0 60px rgba(255, 61, 138, 0.15);
}

.download__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  box-shadow: 0 0 32px rgba(255, 225, 74, 0.4);
}

.download__panel p {
  color: var(--muted);
  margin: 0 auto 1.75rem;
  max-width: 36ch;
}

.download__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 1.25rem 2.5rem;
  background: rgba(0, 0, 0, 0.25);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.footer__links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s;
}
.footer__links a:hover,
.footer__links a:focus-visible { color: var(--flame-y); }

.footer__copy {
  color: #7a708f;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .footer__copy { justify-self: end; }
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.modal[hidden] { display: none !important; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 12, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__card {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #1c1528, #120c1c);
  border: 1px solid rgba(255, 225, 74, 0.3);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
}
.modal__close:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.modal__close i { width: 1.1rem; height: 1.1rem; }

.modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--flame-y), var(--flame-o));
  color: #1a0a08;
}
.modal__icon i { width: 1.5rem; height: 1.5rem; }

.modal__card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.modal__card p {
  color: var(--muted);
  margin-bottom: 1.35rem;
}

body.modal-open { overflow: hidden; }
