/* Meow Movie landing */
:root {
  --bg: #080A20;
  --bg-2: #0E1130;
  --card: rgba(255, 255, 255, .04);
  --card-hi: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --text: #F4F5FF;
  --muted: #9A9EC4;
  --o1: #F4452C;
  --o2: #FD6629;
  --mag: #B517C9;
  --pur: #6B2EE8;
  --grad: linear-gradient(135deg, var(--o2), var(--o1));
  --grad-wide: linear-gradient(90deg, var(--o2), var(--o1) 35%, var(--mag) 70%, var(--pur));
  --radius: 24px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Yekan", Tahoma, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: normal; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.grad-text {
  background: var(--grad-wide);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll progress */
.progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 60;
  background: var(--grad-wide);
  transform-origin: right;
  transform: scaleX(var(--p, 0));
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  right: 0;
  left: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 10, 32, .55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: system-ui, sans-serif; font-weight: 800; letter-spacing: -.3px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand b { color: var(--o2); font-weight: 800; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--card-hi); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 16px;
  font-size: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--card-hi); border-color: rgba(255, 255, 255, .18); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.btn span { line-height: 1.3; }
.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(244, 69, 44, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary small { color: rgba(255, 255, 255, .8); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 16px 40px -8px rgba(244, 69, 44, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-sm { padding: 8px 18px; border-radius: 999px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  z-index: -1;
  filter: blur(90px);
  opacity: .55;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 520px; height: 520px; left: 8%; top: 18%; background: var(--o1); }
.aurora i:nth-child(2) { width: 460px; height: 460px; left: 26%; top: 34%; background: var(--mag); animation-delay: -6s; }
.aurora i:nth-child(3) { width: 380px; height: 380px; left: 0; top: 46%; background: var(--pur); animation-delay: -12s; }
@keyframes drift {
  to { transform: translate(60px, -40px) scale(1.15); }
}
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .5;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  color: var(--muted);
}
.eyebrow em {
  font-style: normal;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.3;
  letter-spacing: -.5px;
}
.hero-lead {
  margin-top: 20px;
  max-width: 520px;
  color: var(--muted);
  font-size: 19px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stats b { display: block; font-size: 28px; line-height: 1.2; font-weight: normal; }
.stats span { color: var(--muted); font-size: 14px; }

/* phones */
.phone {
  position: relative;
  padding: 3.2%;
  border-radius: 15% / 7%;
  background: linear-gradient(145deg, #3a3b48, #121219 30%, #0b0b10 70%, #2a2b36);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 40px 80px -20px rgba(0, 0, 0, .7),
    0 0 60px -10px rgba(244, 69, 44, .25);
}
.phone::before {
  content: "";
  position: absolute;
  top: 4.6%;
  left: 50%;
  width: 30%;
  height: 3.4%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
/* screen keeps the exact screenshot ratio, the frame wraps around it */
.phone img,
.phone .screens {
  width: 100%;
  height: auto;
  aspect-ratio: 1179 / 2556;
  border-radius: 12% / 5.6%;
  overflow: hidden;
}
.phone-stack {
  position: relative;
  height: 600px;
  perspective: 1400px;
}
.phone-stack .tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.phone-stack .phone { position: absolute; width: 250px; top: 50%; left: 50%; }
.phone-stack .p1 { transform: translate(-50%, -50%) translateZ(60px); z-index: 3; }
.phone-stack .p2 { transform: translate(-112%, -44%) rotate(-9deg); z-index: 2; filter: brightness(.7); }
.phone-stack .p3 { transform: translate(12%, -44%) rotate(9deg); z-index: 1; filter: brightness(.7); }
.float-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 17, 48, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  animation: bob 6s ease-in-out infinite;
}
.float-chip i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--grad);
  font-style: normal;
  font-size: 14px;
}
.float-chip.c1 { top: 3%; right: -4%; }
.float-chip.c2 { bottom: 14%; left: -4%; animation-delay: -3s; }
@keyframes bob {
  50% { transform: translateY(-12px); }
}

/* ---------- section heads ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--o2);
  font-size: 15px;
  letter-spacing: .5px;
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); }
.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- story (sticky phone) ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
}
.story-steps { display: flex; flex-direction: column; }
.step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .28;
  transition: opacity .5s;
}
.step.active { opacity: 1; }
.step-num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 18px;
  transition: background .4s, border-color .4s;
}
.step.active .step-num { background: var(--grad); border-color: transparent; }
.step h3 { font-size: clamp(26px, 3vw, 36px); }
.step p { margin-top: 14px; max-width: 480px; color: var(--muted); font-size: 18px; }
.step .phone { display: none; }
.story-phone {
  position: sticky;
  top: calc(50vh - 340px);
  height: 680px;
  display: flex;
  align-items: center;
}
.story-phone::before {
  content: "";
  position: absolute;
  inset: 15% -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 69, 44, .45), rgba(181, 23, 201, .25) 45%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.story-phone .phone { width: 300px; margin: 0 auto; }
.screens { position: relative; background: #000; }
.screens img {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
  opacity: 0;
  transition: opacity .6s;
}
.screens img.on { opacity: 1; }

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(253, 102, 41, .16), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card.wide { grid-column: span 2; }
.card .ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(253, 102, 41, .22), rgba(181, 23, 201, .18));
  border: 1px solid rgba(253, 102, 41, .3);
}
.card .ico svg { width: 26px; height: 26px; color: var(--o2); }
.card h3 { font-size: 22px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.card .big {
  display: block;
  margin-bottom: 6px;
  font-size: 64px;
  line-height: 1.1;
}
.card.wide .peek {
  position: absolute;
  left: 30px;
  bottom: -140px;
  width: 180px;
  transform: rotate(-8deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.card.wide:hover .peek { transform: rotate(-4deg) translateY(-20px); }
.card.wide .card-body { max-width: 56%; }

/* ---------- download ---------- */
.download-card {
  position: relative;
  margin-top: 60px;
  padding: 80px 40px 56px;
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(244, 69, 44, .35), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(107, 46, 232, .3), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line);
}
.download-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-wide);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .6;
  pointer-events: none;
}
.cat-peek {
  position: absolute;
  top: -78px;
  left: 50%;
  width: 150px;
  transform: translateX(-50%);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.download-card:hover .cat-peek { transform: translateX(-50%) translateY(-8px); }
.download-card h2 { font-size: clamp(32px, 4.5vw, 54px); }
.download-card > p { margin: 14px auto 0; max-width: 520px; color: var(--muted); }
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 40px auto 0;
}
.platforms .btn { justify-content: center; padding: 16px; }

/* ---------- support ---------- */
.support {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.support .card { display: flex; flex-direction: column; justify-content: center; }
.tg {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tg-ico {
  width: 64px;
  height: 64px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  box-shadow: 0 12px 30px -8px rgba(34, 158, 217, .6);
}
.tg-ico svg { width: 32px; height: 32px; }
.tg .btn { margin-top: 16px; }

/* ---------- footer ---------- */
.footer {
  margin-top: 100px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand { color: var(--text); }

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .stats { justify-content: center; }
  .phone-stack { height: 520px; }
  .phone-stack .phone { width: 210px; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-phone { display: none; }
  .step { min-height: 0; padding: 40px 0; opacity: 1; text-align: center; align-items: center; }
  .step .phone { display: block; width: 240px; margin: 32px auto 0; }
  .step p { margin-inline: auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
  .support { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .phone-stack { height: 440px; }
  .phone-stack .phone { width: 180px; }
  .float-chip { font-size: 12px; padding: 8px 12px; }
  .float-chip.c1 { right: 0; }
  .float-chip.c2 { left: 0; }
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .card.wide .card-body { max-width: none; }
  .card.wide .peek { position: static; width: 160px; margin: 26px auto -100px; }
  .platforms { grid-template-columns: 1fr; }
  .download-card { padding: 70px 20px 40px; }
  .stats { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
