/* ============================================================
   Shifty Puzzle – promotional site
   Palette taken from the game's UI (mint background, teal title outline, yellow buttons).
   ============================================================ */
:root {
  --mint1: #8DECD3;
  --mint2: #6CDAD2;
  --mint3: #5CCFCD;
  --teal: #1F8A80;
  --teal-dark: #053F46;
  --ink: #0B2E33;
  --text: #17363A;
  --muted: #3F6A6C;
  --yellow1: #FFDD42;
  --yellow2: #FFBC2A;
  --green1: #89FA95;
  --green2: #11C04A;
  --pink: #F2489A;
  --gold: #FFEB04;
  --white: #ffffff;
  --paper: #F3FFFB;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(5, 63, 70, .18);
  --font: 'Sen', system-ui, -apple-system, 'Segoe UI', Roboto, 'Hiragino Sans', 'Apple SD Gothic Neo', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}
/* Mobile browsers widen the layout viewport for any overflow (reveal offsets, blobs),
   ignoring body's overflow: clip it on a real box instead. */
main, .footer { overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* ------------------------------------------------ buttons (game style) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .7em 1.4em;
  border: 3px solid #12282b;
  border-radius: 16px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .01em;
  color: #fff; text-decoration: none; text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 2px rgba(0, 0, 0, .5);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .16), inset 0 3px 0 rgba(255, 255, 255, .45), 0 4px 0 #12282b;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), 0 1px 0 #12282b; }
.btn-yellow { background: linear-gradient(#FFE466, var(--yellow1) 45%, var(--yellow2)); }
.btn-small { padding: .45em 1em; font-size: .95rem; border-radius: 13px; }

/* ------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 max(16px, calc((100% - 1160px) / 2));
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.nav.scrolled {
  background: rgba(243, 255, 251, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(5, 63, 70, .12);
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; color: var(--teal-dark); }
.brand img { border-radius: 11px; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 700; color: var(--teal-dark); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--yellow2); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-links + .nav-actions { margin-left: 0; }
.lang {
  position: relative; display: flex; align-items: center;
  background: rgba(255, 255, 255, .75); border: 2px solid rgba(5, 63, 70, .15); border-radius: 12px;
  padding: 0 8px; height: 40px;
}
.lang svg { width: 18px; height: 18px; fill: var(--teal-dark); flex: none; }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent;
  font: 700 .95rem var(--font); color: var(--teal-dark); padding: 0 6px; height: 100%; cursor: pointer; outline: none;
}

/* ------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  background: linear-gradient(180deg, var(--mint1) 0%, var(--mint2) 55%, var(--mint3) 100%);
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: blob 18s ease-in-out infinite; }
.b1 { width: 520px; height: 520px; background: #FFF3B0; left: -120px; top: -140px; }
.b2 { width: 460px; height: 460px; background: #B8F7FF; right: -120px; top: 20%; animation-delay: -6s; }
.b3 { width: 380px; height: 380px; background: #FFC7E4; left: 35%; bottom: -200px; animation-delay: -11s; opacity: .4; }
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.12); }
  66% { transform: translate(-40px, 60px) scale(.92); }
}
.palms { position: absolute; bottom: -10px; width: min(420px, 45vw); opacity: .22; }
.palms-left { left: -60px; }
.palms-right { right: -60px; transform: scaleX(-1); }

.floaters span {
  position: absolute; bottom: -80px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .8), 0 6px 16px rgba(5, 63, 70, .08);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  from { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { transform: translateY(-120vh) rotate(220deg); opacity: 0; }
}

.hero-inner {
  position: relative; z-index: 2;
  width: min(1160px, 100% - 32px); margin: 0 auto;
  max-width: 980px; text-align: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.kicker {
  display: inline-block; margin: 0 0 14px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); color: var(--teal);
  font-weight: 800; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  animation: fadeDown .7s ease both .1s;
}
.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 7vw, 5.6rem);
  line-height: 1.02; font-weight: 800; letter-spacing: .015em;
  color: #fff;
  /* The game's title look: coloured fill with a clean dark teal outline (stroke painted under the fill). */
  -webkit-text-stroke: 9px var(--teal-dark);
  paint-order: stroke fill;
}
.hero-title .row-slide { display: block; }
/* CJK glyphs are wider and break anywhere: smaller size, no mid-phrase breaks. */
body.cjk .hero-title { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.18; word-break: keep-all; -webkit-text-stroke-width: 5px; }
.hero-title .accent { color: var(--yellow1); }
.row-slide { animation: rowIn .9s cubic-bezier(.2, 1.25, .35, 1) both; }
.row-slide.from-left { --from: -110vw; animation-delay: .15s; }
.row-slide.from-right { --from: 110vw; animation-delay: .35s; }
@keyframes rowIn {
  from { transform: translateX(var(--from)); }
  to { transform: translateX(0); }
}
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink); max-width: 36em; margin: 0 auto 28px; animation: fadeUp .8s ease both .6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .badges, .stats { justify-content: center; }
.badges.center { justify-content: center; }
.badge { display: block; border-radius: 12px; transition: transform .2s ease, filter .2s ease; }
.badge img { height: 56px; width: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .22)); }
.badge:hover { transform: translateY(-4px) scale(1.03); }
.download .badge img { height: 64px; }
.badge.primary img { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 8px 18px rgba(0, 0, 0, .3)); }
.pop-in { animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both .85s; }
.stats.pop-in { animation-delay: 1.05s; }
@keyframes pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }

.stats { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stats li {
  background: rgba(255, 255, 255, .72); border-radius: 999px; padding: 7px 14px;
  font-weight: 700; font-size: .92rem; color: var(--teal-dark);
  box-shadow: 0 4px 12px rgba(5, 63, 70, .1);
}
.stats b { color: var(--yellow2); text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }

/* ------------------------------------------------ phone frame (screenshot carousel) */
.phone {
  position: relative;
  width: min(340px, 82vw);
  aspect-ratio: 9 / 17;
  background: linear-gradient(145deg, #23343a, #0d171b);
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 0 0 2px #46595e inset, 0 40px 80px rgba(5, 63, 70, .35), 0 10px 20px rgba(5, 63, 70, .2);
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, var(--mint1), var(--mint3));
}
/* ------------------------------------------------ scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; width: 28px; height: 46px; border: 3px solid rgba(5, 63, 70, .5); border-radius: 16px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 6px; height: 10px; margin-left: -3px; border-radius: 3px; background: var(--teal-dark); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ------------------------------------------------ sections */
.section { position: relative; padding: clamp(70px, 10vw, 120px) 0; }
.section-title {
  margin: 0 0 10px; text-align: center;
  font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; line-height: 1.1; color: var(--teal-dark);
}
.section-title.big { font-size: clamp(2.4rem, 6vw, 4rem); color: #fff;
  -webkit-text-stroke: 8px var(--teal-dark); paint-order: stroke fill; }
.section-sub { margin: 0 auto 48px; text-align: center; color: var(--muted); font-size: 1.1rem; max-width: 36em; }
.light { color: #fff; }
.section-sub.light { color: rgba(255, 255, 255, .8); }

/* reveal: elements slide in like rows snapping into place */
[data-reveal] { opacity: 0; transition: opacity .8s ease, transform .9s cubic-bezier(.2, 1.15, .35, 1); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-80px); }
[data-reveal="right"] { transform: translateX(80px); }
[data-reveal="up"] { transform: translateY(50px); }
[data-reveal].in { opacity: 1; transform: none; }

/* ------------------------------------------------ how to play */
.how { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  position: relative; background: #fff; border-radius: var(--radius); padding: 28px 26px 30px; text-align: center;
  box-shadow: var(--shadow); border: 2px solid rgba(92, 207, 205, .35);
}
.step h3 { margin: 10px 0 8px; font-size: 1.5rem; color: var(--teal-dark); }
.step p { margin: 0; color: var(--muted); }
.step-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(#FFE466, var(--yellow2)); border: 3px solid #12282b; box-shadow: 0 3px 0 #12282b;
  font-weight: 800; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}
.step-art { position: relative; width: 168px; margin: 8px auto 6px; }
.mini { width: 168px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: repeat(3, 1fr); background: #0d2a2e; padding: 3px; gap: 3px; box-shadow: 0 10px 22px rgba(5, 63, 70, .2); }
.mini-row { position: relative; overflow: hidden; border-radius: 8px; background-size: 100% 300%; }
.art-slide .mini-row { background-image: url(../assets/steps/p34.webp); }
.art-slide .r0 { background-position: 0 0; }
.art-slide .r1 { background-position: 0 50%; }
.art-slide .r2 { background-position: 0 100%; }
.art-slide .sliding { background: none; }
.art-slide .strip {
  position: absolute; inset: 0 auto 0 0; width: 200%;
  background-image: url(../assets/steps/p34.webp), url(../assets/steps/p34.webp);
  background-size: 50% 300%, 50% 300%;
  background-position: 0 50%, 100% 50%;
  background-repeat: no-repeat;
  animation: stripSlide 4.5s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes stripSlide {
  0%, 18% { transform: translateX(-16.667%); }
  30%, 48% { transform: translateX(-33.333%); }
  60%, 78% { transform: translateX(-50%); }
  90%, 100% { transform: translateX(-16.667%); }
}
.art-lock .mini-row { background-image: url(../assets/steps/p67.webp); }
.art-lock .r0 { background-position: 0 0; }
.art-lock .r1 { background-position: 0 50%; }
.art-lock .r2 { background-position: 0 100%; }
.art-lock .scrambled { background-size: 100% 300%; background-position: 40% 50%; filter: saturate(.7) brightness(.85); transform: translateX(18%); }
.art-lock .scrambled2 { background-position: 70% 100%; filter: saturate(.7) brightness(.85); transform: translateX(-24%); }
.art-lock .locked { box-shadow: inset 0 0 0 3px var(--gold), 0 0 18px rgba(255, 235, 4, .8); animation: lockGlow 2.4s ease-in-out infinite; }
@keyframes lockGlow { 50% { box-shadow: inset 0 0 0 3px var(--gold), 0 0 30px rgba(255, 235, 4, 1); filter: brightness(1.15); } }
.lock-badge { position: absolute; right: -10px; top: -10px; font-size: 1.6rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-8deg); } }
.art-reveal .mini.full { display: block; padding: 0; background: url(../assets/steps/p36.webp) center / cover; position: relative; }
.shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); background-size: 250% 100%; animation: shine 3s ease-in-out infinite; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.spark { position: absolute; color: var(--gold); text-shadow: 0 0 10px rgba(255, 200, 0, .9); animation: twinkle 2s ease-in-out infinite; }
.s1 { top: -12px; left: -8px; font-size: 1.5rem; }
.s2 { top: 30%; right: -16px; font-size: 1.1rem; animation-delay: .6s; }
.s3 { bottom: -10px; left: 20%; font-size: 1.2rem; animation-delay: 1.2s; }
@keyframes twinkle { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1.2); opacity: 1; } }

/* ------------------------------------------------ gallery */
.gallery { background: radial-gradient(120% 80% at 50% 0%, #0E5B63 0%, var(--teal-dark) 60%); overflow: hidden; padding-bottom: clamp(70px, 9vw, 110px); }
.marquee { display: grid; gap: 18px; transform: rotate(-3deg) scale(1.06); }
.marquee-row { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; }
.marquee-row.reverse { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pic {
  width: clamp(130px, 16vw, 200px); aspect-ratio: 360 / 520; flex: none;
  border-radius: 16px; overflow: hidden; position: relative;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
  transition: transform .3s ease;
}
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic::after { content: ''; position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 0 0 3px rgba(30, 38, 44, .6), inset 0 0 0 6px rgba(255, 255, 255, .9); }
.pic:hover { transform: scale(1.06) rotate(1deg); z-index: 2; }

/* ------------------------------------------------ features */
.features { background: linear-gradient(180deg, var(--paper), #DDFBF3); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  border: 2px solid rgba(92, 207, 205, .3);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(5, 63, 70, .22); }
.f-icon {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(var(--c1), var(--c2)); border: 3px solid #12282b; box-shadow: 0 4px 0 #12282b, inset 0 3px 0 rgba(255, 255, 255, .4);
}
.f-icon svg { width: 32px; height: 32px; fill: #fff; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.feature:hover .f-icon { animation: wiggle .6s ease; }
@keyframes wiggle { 25% { transform: rotate(-8deg) scale(1.08); } 75% { transform: rotate(6deg) scale(1.08); } }
.feature h3 { margin: 0 0 6px; font-size: 1.3rem; color: var(--teal-dark); }
.feature p { margin: 0; color: var(--muted); }

/* ------------------------------------------------ screenshots carousel */
.screens { background: linear-gradient(180deg, #DDFBF3, var(--mint1)); overflow: hidden; }
.carousel { position: relative; }
.shots {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 60px calc(50% - min(130px, 34vw)) 40px;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; width: min(260px, 68vw); scroll-snap-align: center; position: relative; transition: transform .45s ease, opacity .45s ease; opacity: .55; transform: scale(.86); }
.shot.active { opacity: 1; transform: scale(1); }
.shot .phone { width: 100%; border-radius: 36px; padding: 9px; aspect-ratio: 9 / 16.6; }
.shot .phone-screen { border-radius: 28px; }
.shot .phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ribbon {
  position: absolute; z-index: 3; left: -10%; right: -10%; top: -26px;
  padding: 9px 12px; text-align: center; transform: rotate(-4deg);
  font-weight: 800; font-size: 1rem; line-height: 1.15; color: #fff; text-transform: uppercase;
  background: linear-gradient(180deg, var(--l), var(--b) 55%, var(--b));
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25), inset 0 -4px 0 rgba(0, 0, 0, .12);
  text-shadow: -2px -2px 0 var(--k), 2px -2px 0 var(--k), -2px 2px 0 var(--k), 2px 2px 0 var(--k), 0 3px 0 var(--k);
}
.ribbon.cjk { text-transform: none; }
.car-btn {
  position: absolute; top: 50%; z-index: 4; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%;
  border: 3px solid #12282b; background: linear-gradient(#FFE466, var(--yellow2)); color: #fff;
  font-size: 2rem; line-height: 1; font-weight: 800; box-shadow: 0 4px 0 #12282b; text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.car-btn.prev { left: max(16px, calc(50% - 560px)); }
.car-btn.next { right: max(16px, calc(50% - 560px)); }
.car-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #12282b; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.dots button { width: 12px; height: 12px; border-radius: 6px; border: 0; padding: 0; background: rgba(5, 63, 70, .25); transition: width .3s ease, background .3s ease; }
.dots button.on { width: 32px; background: var(--teal); }

/* ------------------------------------------------ trailer */
.trailer { background: radial-gradient(120% 90% at 50% 100%, #0E5B63 0%, var(--teal-dark) 65%); }
.video-wrap {
  position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: 24px; overflow: hidden; background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 255, 255, .15);
}
.video-wrap video { width: 100%; height: 100%; display: block; object-fit: cover; }
.play-btn {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border-radius: 50%; border: 4px solid #12282b; background: linear-gradient(#FFE466, var(--yellow2));
  box-shadow: 0 6px 0 #12282b, 0 0 0 0 rgba(255, 221, 66, .7); animation: ring 2s ease-out infinite;
}
.play-btn span { position: absolute; left: 38px; top: 28px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); }
.play-btn:hover { transform: scale(1.06); }
.play-btn.gone { display: none; }
@keyframes ring { 0% { box-shadow: 0 6px 0 #12282b, 0 0 0 0 rgba(255, 221, 66, .6); } 100% { box-shadow: 0 6px 0 #12282b, 0 0 0 30px rgba(255, 221, 66, 0); } }

/* ------------------------------------------------ download */
.download { background: linear-gradient(180deg, var(--mint1), var(--mint3)); overflow: hidden; text-align: center; }
.download-inner { position: relative; z-index: 2; }
.cta-icon { margin: 0 auto 18px; border-radius: 30px; box-shadow: 0 18px 36px rgba(5, 63, 70, .3); animation: float 4s ease-in-out infinite; }
.cta-icon.in { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }
.download .section-sub { color: var(--ink); }

/* ------------------------------------------------ footer */
.footer { background: #042F34; color: rgba(255, 255, 255, .78); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; }
.footer-brand img { border-radius: 9px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a, .footer-langs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-links a:hover, .footer-langs a:hover { color: var(--yellow1); }
.footer-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: .92rem; }
.footer-langs a.on { color: var(--yellow1); font-weight: 800; }
.copy { margin: 0; font-size: .85rem; opacity: .7; }

/* ------------------------------------------------ sticky CTA (phones) */
.sticky-cta {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 10px; padding: 8px 8px 8px 10px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 18px; box-shadow: 0 12px 30px rgba(5, 63, 70, .3);
  transform: translateY(140%); transition: transform .4s cubic-bezier(.2, 1.2, .4, 1);
}
.sticky-cta img { border-radius: 10px; }
.sticky-cta strong { color: var(--teal-dark); flex: 1; }
.sticky-cta.show { transform: none; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }

/* ------------------------------------------------ responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .steps { grid-template-columns: 1fr; gap: 40px; max-width: 460px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .car-btn { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .brand span { display: none; }
  .nav-actions .btn { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-title { -webkit-text-stroke-width: 7px; }
  .section-title.big { -webkit-text-stroke-width: 6px; }
  .badge img { height: 48px; }
  .download .badge img { height: 54px; }
  .feature-grid { grid-template-columns: 1fr; }
  .play-btn { transform: scale(.62); }
  .play-btn:hover { transform: scale(.66); }
  .scroll-cue { display: none; }
  .sticky-cta { display: flex; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .marquee { gap: 12px; }
  .marquee-row { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-row { animation: none; }
}
