/* LolZap landing page. The app's "sticker pop" look: ink outlines, hard
   offset shadows, tilted stickers, Zap yellow and the magenta→violet glow. */

@font-face { font-family: Bricolage; src: url(/fonts/BricolageGrotesque-800.woff) format("woff"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: Jakarta; src: url(/fonts/PlusJakartaSans-500.woff) format("woff"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Jakarta; src: url(/fonts/PlusJakartaSans-700.woff) format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: Jakarta; src: url(/fonts/PlusJakartaSans-800.woff) format("woff"); font-weight: 800 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --yellow: #FFD60A; --orange: #FF9F1C; --coral: #FF7A45; --pink: #FF4D6D; --magenta: #E455FD;
  --violet: #6E09F7; --violet2: #7F5AF0; --lime: #C4F03C; --aqua: #35E0C2; --bubble: #FF8AD8; --tongue: #FD5B7E;
  --ink: #111114; --bg: #FAF8F5; --card: #ffffff; --text: #111114; --muted: #5d5d6b; --line: #E8E3DD;
  --edge: #111114; --shadow: #111114;
  --display: Bricolage, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: Jakarta, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 22px;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0F0E13; --card: #18171E; --text: #F2F1F6; --muted: #A9A7B8; --line: #2E2B38; --edge: #3a3646; --shadow: #000; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 500 16px/1.6 var(--body); color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { display: block; }
a { color: var(--pink); }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 0; }

/* ───────── shared bits */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; bottom: .04em; height: .42em;
  background: var(--yellow); border-radius: .2em; transform: skew(-8deg) scaleX(var(--hl, 1)); transform-origin: left;
  transition: transform .9s var(--ease-pop) .35s;
}
.reveal .hl, .sec-head:not(.in) .hl { --hl: 0; }
.in .hl { --hl: 1; }
.hero .hl::after, .final .hl::after { background: linear-gradient(90deg, var(--magenta), var(--violet)); opacity: .9; }

.sticker {
  display: inline-block; font: 800 14px/1 var(--body); padding: 9px 14px; border-radius: 12px;
  color: var(--ink); background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.sticker-lime { background: var(--lime); }
.sticker-pink { background: var(--bubble); }
.sticker-yellow { background: var(--yellow); }
.tilt-l { transform: rotate(-3deg); } .tilt-r { transform: rotate(3deg); }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px;
  border-radius: 18px; border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font: 800 18px/1 var(--body); color: var(--ink); text-decoration: none; overflow: hidden;
  transition: transform .18s var(--ease-pop), box-shadow .18s ease;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: .7; margin-bottom: 3px; letter-spacing: .02em; }
.btn-sm { height: 42px; padding: 0 16px; font-size: 15px; border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); }
.btn-yellow, .btn-play { background: var(--yellow); }
.btn-play::after { /* a shine that sweeps across every few seconds */
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .75), transparent); animation: shine 3.6s ease-in-out infinite;
}
.btn-apple { background: #fff; cursor: default; overflow: visible; }
.btn-apple:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
.soon { position: absolute; top: -11px; right: -10px; transform: rotate(8deg); border: 2px solid var(--ink); font: 800 9px/1 var(--body); font-style: normal; text-transform: uppercase; letter-spacing: .08em;
  background: var(--pink); color: #fff; padding: 3px 5px; border-radius: 5px; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--edge); box-shadow: 4px 4px 0 var(--shadow); height: 52px; font-size: 16px; }

/* ───────── header */
.bar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px max(16px, calc((100% - 1160px) / 2)); transition: background .3s, box-shadow .3s;
}
.bar.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6); box-shadow: 0 1px 0 var(--line); }
.brand img { height: 46px; width: auto; background: #000; border: 2.5px solid var(--ink); border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg); transition: transform .3s var(--ease-pop); }
.brand:hover img { transform: rotate(3deg) scale(1.06); }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; transition: color .2s; }
.bar nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) { .bar nav a:not(.btn) { display: none; } }

/* ───────── hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #000;
  margin: 4px clamp(8px, 2vw, 24px) 0; border-radius: 36px; border: 3px solid var(--ink);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px;
  padding: clamp(40px, 6vw, 84px) max(24px, calc((100% - 1120px) / 2)) clamp(48px, 6vw, 80px);
  min-height: min(860px, calc(100svh - 80px));
}
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.hero .g1 { width: 640px; height: 640px; right: -180px; top: -260px; background: radial-gradient(closest-side, rgb(228 85 253 / .55), transparent); animation: drift 14s ease-in-out infinite alternate; }
.hero .g2 { width: 560px; height: 560px; left: -200px; bottom: -280px; background: radial-gradient(closest-side, rgb(110 9 247 / .7), transparent); animation: drift 18s ease-in-out infinite alternate-reverse; }
.hero .g3 { width: 300px; height: 300px; left: 40%; top: 30%; background: radial-gradient(closest-side, rgb(255 214 10 / .18), transparent); animation: drift 11s ease-in-out infinite alternate; }
.hero::before { /* faint dotted grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: radial-gradient(rgb(255 255 255 / .55) 1px, transparent 1.4px); background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000, transparent 75%);
}
.hero-title { font-size: clamp(52px, 8.6vw, 112px); margin: 22px 0 18px; }
.hero-title .word { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(6deg) scale(.9); animation: wordIn .8s var(--ease-pop) forwards; }
.hero-title .word:nth-child(2) { animation-delay: .12s; }
.hero-title .word:nth-child(3) { animation-delay: .24s; color: var(--yellow); }
.hero-title .word.hl { --hl: 1; }
.hero-title .word.hl::after { transition-delay: .9s; }
.lead { font-size: clamp(18px, 2vw, 21px); color: rgb(255 255 255 / .78); max-width: 32ch; margin: 0 0 30px; }
.rotator { display: inline-grid; color: #fff; font-weight: 800; }
.rotator span { display: inline-block; padding: 0 .28em; border-radius: 8px; background: rgb(255 255 255 / .12); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .2); transition: transform .35s var(--ease-pop), opacity .25s; }
.rotator span.out { transform: translateY(-60%) rotate(-6deg); opacity: 0; }
.rotator span.pre { transform: translateY(60%) rotate(6deg); opacity: 0; transition: none; }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.stores.center { justify-content: center; }
.qr { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 800 12px/1.2 var(--body); transform: rotate(2deg); }
.qr img { width: 62px; height: 62px; }
@media (hover: none), (max-width: 900px) { .qr { display: none; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.chips li { font-size: 14px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); }

/* the phone */
.hero-phone { position: relative; display: grid; place-items: center; min-height: 620px; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 48px; padding: 12px; background: #1b1a22;
  border: 3px solid #2f2c3a; box-shadow: 0 0 0 2px #000, 0 40px 80px -20px rgb(110 9 247 / .6), 0 18px 40px rgb(0 0 0 / .5), inset 0 0 0 2px #3a3646;
  transform: perspective(1400px) rotateY(var(--ry, -12deg)) rotateX(var(--rx, 6deg)) rotateZ(2deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); animation: phoneIn 1.1s var(--ease-pop) .2s backwards;
}
.notch { position: absolute; z-index: 3; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: 37px; background: #0F0E13; color: #F2F1F6; }
.app-top { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 52px 14px 10px;
  background: linear-gradient(#0F0E13 70%, transparent); font-size: 13px; }
.app-top img { border-radius: 8px; }
.tabs { display: flex; gap: 12px; flex: 1; }
.tabs b { font-weight: 800; border-bottom: 2.5px solid var(--yellow); padding-bottom: 2px; }
.tabs span { color: #8d8a9c; font-weight: 700; }
.bell { position: relative; font-size: 15px; }
.bell i { position: absolute; top: -2px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid #0F0E13; animation: pulse 2s infinite; }
.feed { position: absolute; inset: 0; padding: 96px 10px 20px; display: flex; flex-direction: column; gap: 12px; will-change: transform; }

.post { background: #18171E; border: 1px solid #2E2B38; border-radius: 20px; padding: 10px; flex: none; }
.post header { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-bottom: 8px; }
.post header b { font-weight: 800; }
.post header span { color: #8d8a9c; font-size: 11px; }
.av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 800 10px/1 var(--body); font-style: normal; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); flex: none; }
.meme { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; padding: 18px; text-align: center; color: #fff; overflow: hidden; }
.meme p { margin: 0; font: 800 17px/1.25 var(--display); letter-spacing: -.01em; text-shadow: 0 2px 10px rgb(0 0 0 / .25); }
.meme .emoji-art { font-size: 74px; line-height: 1; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .3)); }
.meme .cap { position: absolute; left: 8px; right: 8px; font: 900 16px/1 Impact, var(--display); text-transform: uppercase; color: #fff; -webkit-text-stroke: 1px #000; letter-spacing: .02em; }
.meme .cap.top { top: 10px; } .meme .cap.bottom { bottom: 10px; }
.post footer { display: flex; gap: 14px; padding: 8px 4px 2px; font-size: 12px; font-weight: 700; color: #cfcbe0; }
.g-sunset { background: linear-gradient(135deg, #FF9F1C, #FF4D6D); }
.g-violet { background: linear-gradient(135deg, #7F5AF0, #FF4D6D); }
.g-ocean { background: linear-gradient(135deg, #00B4DB, #3F5EFB); }
.g-mint { background: linear-gradient(135deg, #11998E, #38D97D); }
.g-night { background: linear-gradient(135deg, #2B2935, #4A4658); }
.g-zap { background: linear-gradient(135deg, #E455FD, #6E09F7); }
.g-sun { background: linear-gradient(135deg, #FFD60A, #FF7A45); }

.react-fab { position: absolute; z-index: 4; right: 14px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; font-size: 28px;
  background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .15s var(--ease-pop); animation: nudge 3.2s ease-in-out 2s infinite; }
.react-fab:active { transform: scale(.85); }
.toast { position: absolute; z-index: 5; left: 10px; right: 10px; top: 48px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px;
  background: rgb(40 38 50 / .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgb(255 255 255 / .12); font-size: 12px; line-height: 1.3;
  transform: translateY(-140%); opacity: 0; transition: transform .55s var(--ease-pop), opacity .3s; }
.toast.show { transform: none; opacity: 1; }
.toast img { border-radius: 8px; flex: none; }
.toast b { display: block; font-size: 11px; color: #bdb9cf; }
.hint { position: absolute; bottom: -6px; right: 12%; margin: 0; font: 800 14px/1 var(--body); color: var(--yellow); transform: rotate(-4deg); animation: bob 2s ease-in-out infinite; }

.float { position: absolute; z-index: 3; font-size: 54px; pointer-events: none; transition: transform .4s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 10px 18px rgb(0 0 0 / .4)); }
.float.sticker { font-size: 18px; }
.f-lol { top: 12%; left: 2%; rotate: -12deg; animation: floaty 5s ease-in-out infinite; }
.f-dead { top: 6%; right: 8%; animation: floaty 6s ease-in-out 1s infinite; }
.f-fire { bottom: 18%; left: -2%; rotate: 8deg; animation: floaty 5.5s ease-in-out .5s infinite; }
.f-clown { bottom: 8%; right: 2%; animation: floaty 7s ease-in-out 2s infinite; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; min-height: 0; }
  .hero-phone { min-height: 560px; margin-top: 8px; }
  .phone { width: 270px; height: 550px; }
}

/* flying reactions */
.burst { position: fixed; z-index: 100; pointer-events: none; font-size: 30px; will-change: transform, opacity; }

/* ───────── marquees */
.marquee { overflow: hidden; border-block: 3px solid var(--ink); white-space: nowrap; position: relative; z-index: 2; }
.m-yellow { background: var(--yellow); color: var(--ink); transform: rotate(-2deg); margin: 46px -10px 0; }
.m-violet { background: linear-gradient(90deg, var(--magenta), var(--violet)); color: #fff; transform: rotate(1.5deg); margin: -6px -10px 0; }
.track { display: inline-flex; gap: 34px; padding: 14px 0; animation: marquee 26s linear infinite; font: 800 clamp(20px, 3vw, 30px)/1 var(--display); letter-spacing: -.01em; }
.rev .track { animation-direction: reverse; animation-duration: 34s; }
.marquee:hover .track { animation-play-state: paused; }

/* ───────── sections */
.section { padding: clamp(72px, 10vw, 128px) max(20px, calc((100% - 1120px) / 2)); position: relative; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2, .notify h2, .final h2 { font-size: clamp(40px, 6vw, 72px); margin: 18px 0 14px; }
.sec-head p, .notify-copy p { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 52ch; }

/* reactions playground */
.play { display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 80px); }
.post.big { background: var(--card); border: 2.5px solid var(--edge); box-shadow: 6px 6px 0 var(--shadow); border-radius: 26px; padding: 14px; color: var(--text); transform: rotate(-1.5deg); }
.post.big header span { color: var(--muted); }
.post.big .meme p { font-size: clamp(22px, 3vw, 28px); transition: opacity .25s, transform .4s var(--ease-pop); }
.post.big .meme p.swap { opacity: 0; transform: scale(.92) rotate(-2deg); }
.mood { position: absolute; right: 14px; bottom: 10px; font-size: 40px; transition: transform .4s var(--ease-pop); }
.totals { display: flex; flex-wrap: wrap; gap: 6px; min-height: 36px; padding: 10px 2px 0; }
.totals span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 14px; background: color-mix(in srgb, var(--yellow) 22%, transparent); border: 1.5px solid color-mix(in srgb, var(--yellow) 60%, transparent); animation: popIn .4s var(--ease-pop); }
.totals span.bump { animation: bump .35s var(--ease-pop); }

.picker-wrap { position: relative; display: grid; justify-items: center; gap: 18px; padding-top: 86px; }
.picker { position: absolute; top: 0; display: flex; gap: 6px; padding: 8px; border-radius: 999px; background: var(--card); border: 2.5px solid var(--edge); box-shadow: 4px 4px 0 var(--shadow);
  transform: translateY(18px) scale(.6); opacity: 0; pointer-events: none; transition: transform .35s var(--ease-pop), opacity .2s; }
.picker.open { transform: none; opacity: 1; pointer-events: auto; }
.picker button { width: 50px; height: 50px; border: 0; border-radius: 50%; background: transparent; font-size: 30px; transition: transform .2s var(--ease-pop); transform: translateY(14px); opacity: 0; }
.picker.open button { transform: none; opacity: 1; }
.picker.open button:nth-child(2) { transition-delay: .03s; } .picker.open button:nth-child(3) { transition-delay: .06s; }
.picker.open button:nth-child(4) { transition-delay: .09s; } .picker.open button:nth-child(5) { transition-delay: .12s; } .picker.open button:nth-child(6) { transition-delay: .15s; }
.picker button:hover, .picker button:focus-visible { transform: translateY(-10px) scale(1.45); outline: none; }
.laugh { display: grid; place-items: center; gap: 2px; width: 150px; height: 150px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform .15s var(--ease-pop), box-shadow .15s; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.laugh span { font-size: 64px; line-height: 1; }
.laugh b { font: 800 15px/1 var(--body); margin-top: -18px; }
.laugh:hover { transform: rotate(-6deg) scale(1.04); }
.laugh.press { transform: scale(.88); box-shadow: 2px 2px 0 var(--ink); }
.laugh::before { /* hold ring */
  content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 3px dashed var(--violet2); opacity: 0; transition: opacity .2s; animation: spin 8s linear infinite;
}
.laugh { position: relative; }
.laugh.holding::before { opacity: 1; }
.next { background: none; border: 0; color: var(--muted); font-weight: 800; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.next:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
@media (max-width: 760px) { .play { grid-template-columns: 1fr; justify-items: center; } .post.big { width: 100%; max-width: 420px; } }
@media (max-width: 420px) { .picker { gap: 2px; padding: 6px; } .picker button { width: 42px; height: 42px; font-size: 25px; } }

/* bento of meme types */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile { background: var(--card); border: 2.5px solid var(--edge); border-radius: 26px; padding: 14px 14px 20px; box-shadow: 5px 5px 0 var(--shadow);
  transform: perspective(800px) rotateX(var(--tx, 0)) rotateY(var(--ty, 0)); transition: transform .25s ease, box-shadow .25s; }
.tile:hover { box-shadow: 8px 8px 0 var(--shadow); }
.tile h3 { font-size: 22px; margin: 16px 4px 6px; }
.tile p { margin: 0 4px; color: var(--muted); font-size: 15px; }
.tile-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 18px; border: 0; padding: 0; overflow: hidden; color: #fff; }
.pic { background: radial-gradient(circle at 30% 30%, #4D7CFF, #1b1a40); }
.pic .scene { font-size: 84px; animation: zoomies 1.6s ease-in-out infinite; }
.pic .cap { position: absolute; left: 0; right: 0; font: 900 clamp(15px, 1.6vw, 20px)/1 Impact, var(--display); -webkit-text-stroke: 1.2px #000; letter-spacing: .03em; }
.pic .top { top: 12px; } .pic .bottom { bottom: 12px; }
.clip { background: linear-gradient(160deg, #11998E, #0b3d3a); }
.clip .scene { font-size: 84px; transition: transform .3s; }
.clip.playing .scene { animation: dance .5s ease-in-out infinite alternate; }
.playbtn { position: absolute; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--ink); font-size: 22px; padding-left: 4px;
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .3s var(--ease-pop), opacity .3s; }
.playing .playbtn { transform: scale(0); opacity: 0; }
.progress { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .25); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--yellow); }
.playing .progress i { animation: grow 6s linear forwards; }
.badge { position: absolute; top: 10px; right: 10px; font: 800 11px/1 var(--body); padding: 5px 8px; border-radius: 8px; background: rgb(0 0 0 / .45); }
.sound { background: linear-gradient(135deg, var(--magenta), var(--violet)); }
.wave { display: flex; align-items: center; gap: 4px; height: 90px; }
.wave i { width: 7px; height: 30%; border-radius: 4px; background: #fff; opacity: .9; }
.sound.playing .wave i { animation: eq .9s ease-in-out infinite alternate; }
.wave i:nth-child(odd) { animation-delay: -.3s !important; } .wave i:nth-child(3n) { animation-delay: -.55s !important; } .wave i:nth-child(4n) { animation-delay: -.15s !important; }
.wave i:nth-child(1), .wave i:nth-child(14) { height: 20%; } .wave i:nth-child(5), .wave i:nth-child(9) { height: 70%; } .wave i:nth-child(7) { height: 95%; }
.sound .playbtn { bottom: 14px; right: 14px; width: 46px; height: 46px; font-size: 17px; }
.text { padding: 22px; transition: background .4s; }
.text p { margin: 0; font: 800 clamp(18px, 1.9vw, 23px)/1.22 var(--display); min-height: 3.6em; }
.text p::after { content: "▍"; animation: blink 1s steps(1) infinite; margin-left: 2px; opacity: .8; }
.shuffle { position: absolute; bottom: 10px; font: 700 11px/1 var(--body); opacity: .75; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bento { gap: 12px; } .tile h3 { font-size: 18px; } .tile p { font-size: 13px; } }

/* notifications */
.notify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.notify-copy p { margin: 0 0 26px; }
.lock { position: relative; border-radius: 34px; padding: 34px 18px 22px; min-height: 420px; color: #fff; overflow: hidden; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow);
  background: radial-gradient(circle at 20% 0%, #E455FD 0, transparent 55%), radial-gradient(circle at 100% 100%, #6E09F7 0, transparent 60%), #120f1d; }
.lock-time { text-align: center; margin-bottom: 18px; }
.lock-time b { display: block; font: 800 64px/1 var(--display); letter-spacing: -.04em; }
.lock-time span { font-size: 13px; opacity: .8; }
.stack { display: grid; gap: 10px; }
.note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; line-height: 1.3; animation: noteIn .6s var(--ease-pop) both; }
.note .av { width: 38px; height: 38px; font-size: 13px; }
.note .t { flex: 1; min-width: 0; }
.note .t b { display: flex; justify-content: space-between; font-size: 11px; opacity: .75; font-weight: 700; }
.note .t span { display: block; font-weight: 700; }
.note .thumb { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 20px; flex: none; }
.note.leave { animation: noteOut .4s ease forwards; }
@media (max-width: 860px) { .notify { grid-template-columns: 1fr; } .lock { max-width: 440px; width: 100%; justify-self: center; } }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 2.5px solid var(--edge); border-radius: 26px; padding: 24px; box-shadow: 5px 5px 0 var(--shadow);
  transform: perspective(800px) rotateX(var(--tx, 0)) rotateY(var(--ty, 0)); transition: transform .25s ease; }
.card:nth-child(odd) { rotate: -1deg; } .card:nth-child(even) { rotate: 1deg; }
.ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--c) 28%, transparent); border: 2px solid color-mix(in srgb, var(--c) 70%, transparent); margin-bottom: 16px; transition: transform .4s var(--ease-pop); }
.card:hover .ic { transform: rotate(-10deg) scale(1.15); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.langs { margin-bottom: 8px !important; }
.langs span { display: inline-block; font: 800 20px/1.3 var(--display); color: var(--text); transition: opacity .3s, transform .4s var(--ease-pop); }
.langs span.swap { opacity: 0; transform: translateY(8px); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card { rotate: 0deg !important; } }

/* final CTA */
.final { position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff; background: #000;
  margin: 0 clamp(8px, 2vw, 24px) 24px; border-radius: 36px; border: 3px solid var(--ink); padding: clamp(64px, 9vw, 110px) 20px; }
.final .g1 { width: 600px; height: 600px; left: -200px; top: -260px; background: radial-gradient(closest-side, rgb(228 85 253 / .5), transparent); animation: drift 12s ease-in-out infinite alternate; }
.final .g2 { width: 600px; height: 600px; right: -220px; bottom: -300px; background: radial-gradient(closest-side, rgb(110 9 247 / .65), transparent); animation: drift 16s ease-in-out infinite alternate-reverse; }
.final .mark { margin: 0 auto; border-radius: 28px; border: 3px solid #2f2c3a; box-shadow: 0 0 60px rgb(228 85 253 / .45); animation: markBounce 2.8s var(--ease-pop) infinite; }
.final h2 { margin-top: 26px; }
.final p { color: rgb(255 255 255 / .75); font-size: 19px; margin: 0 0 32px; }
.confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.confetti i { position: absolute; top: -10%; font-style: normal; font-size: 22px; animation: fall linear infinite; opacity: .85; }

/* footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 28px max(20px, calc((100% - 1120px) / 2)) 120px; color: var(--muted); font-size: 14px; }
.foot .brand img { height: 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--text); }
@media (min-width: 901px) { .foot { padding-bottom: 40px; } }

/* mobile dock */
.dock { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: none; align-items: center; gap: 10px; padding: 8px 8px 8px 10px;
  border-radius: 20px; background: rgb(17 17 20 / .92); color: #fff; border: 2px solid #2f2c3a; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgb(0 0 0 / .35); transform: translateY(150%); transition: transform .45s var(--ease-pop); }
.dock img { border-radius: 11px; }
.dock div { flex: 1; min-width: 0; line-height: 1.25; }
.dock b { display: block; font: 800 15px/1.2 var(--display); }
.dock span { font-size: 12px; opacity: .75; }
.dock.show { transform: none; }
@media (max-width: 900px) { .dock { display: flex; } }

/* scroll reveal */
.reveal { opacity: 0; translate: 0 34px; scale: .98; transition: opacity .7s ease, translate .8s var(--ease-pop), scale .8s var(--ease-pop), transform .25s ease; }
.reveal.in { opacity: 1; translate: none; scale: none; }
.cards .reveal:nth-child(2), .bento .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .bento .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .bento .reveal:nth-child(4) { transition-delay: .24s; }

/* ───────── keyframes */
@keyframes wordIn { to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { opacity: 0; transform: perspective(1400px) translateY(80px) rotateY(-30deg) rotateX(18deg) rotateZ(8deg) scale(.85); } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(255 77 109 / .7); } 70% { box-shadow: 0 0 0 8px rgb(255 77 109 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 77 109 / 0); } }
@keyframes nudge { 0%, 86%, 100% { rotate: 0deg; scale: 1; } 90% { rotate: -14deg; scale: 1.12; } 94% { rotate: 12deg; } 97% { rotate: -6deg; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes popIn { from { transform: scale(0); } }
@keyframes bump { 50% { transform: scale(1.25); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes zoomies { 0%, 100% { transform: translateX(-14px) rotate(-4deg); } 50% { transform: translateX(14px) rotate(4deg); } }
@keyframes dance { from { transform: rotate(-12deg) translateY(4px); } to { transform: rotate(12deg) translateY(-8px); } }
@keyframes grow { to { width: 100%; } }
@keyframes eq { from { height: 14%; } to { height: 100%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes noteIn { from { opacity: 0; transform: translateY(-30px) scale(.9); } }
@keyframes noteOut { to { opacity: 0; transform: translateX(60px); } }
@keyframes markBounce { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-14px) rotate(-6deg); } 86% { transform: translateY(0) rotate(4deg); } 92% { transform: rotate(-2deg); } }
@keyframes fall { to { transform: translateY(120vh) rotate(540deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-title .word { opacity: 1; transform: none; translate: none; scale: none; }
  .confetti { display: none; }
}
