/* Foxylang landing page */

:root {
  --orange: #ff7a1a;
  --orange-dark: #e25e05;
  --orange-deep: #c24d00;
  --orange-soft: #fff1e3;
  --cream: #fffaf4;
  --ink: #2b1b12;
  --ink-2: #5d4a3f;
  --ink-3: #8a776b;
  --line: #f1e3d6;
  --white: #fff;

  --tint-peach: #ffe9d6;
  --tint-lavender: #ece6ff;
  --tint-yellow: #fff2c6;
  --tint-mint: #dcf5e7;
  --tint-sky: #dff0ff;
  --tint-pink: #ffe2e7;

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 6px rgba(80, 40, 10, .06);
  --shadow: 0 12px 32px -12px rgba(120, 60, 10, .22);
  --shadow-lg: 0 30px 60px -20px rgba(120, 60, 10, .28);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--orange-dark); }
a:hover { color: var(--orange-deep); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  --btn-shadow: var(--orange-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), translate .25s ease-out, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn::after {
  content: ""; position: absolute; top: -2px; bottom: -2px; left: -60%; width: 45%; z-index: -1;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); opacity: 0; pointer-events: none;
}
.btn:hover::after { animation: shine .75s ease forwards; }
@keyframes shine { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
.btn-primary {
  z-index: 0;
  background: linear-gradient(180deg, #ff8f35, var(--orange) 60%, #ff6f0a);
  color: var(--white);
  box-shadow: 0 4px 0 var(--btn-shadow), 0 10px 22px -8px rgba(226, 94, 5, .6);
}
.btn-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-shadow), 0 16px 28px -10px rgba(226, 94, 5, .6); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-shadow), 0 4px 10px -4px rgba(226, 94, 5, .5); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--orange-deep); border-color: #f3c9a5; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost::after { background: linear-gradient(105deg, transparent, rgba(255, 180, 110, .3), transparent); }
.btn-light { background: var(--white); color: var(--orange-dark); box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.btn-light:hover { color: var(--orange-deep); transform: translateY(-3px) scale(1.03); box-shadow: 0 7px 0 rgba(0, 0, 0, .15), 0 18px 30px -12px rgba(90, 30, 0, .5); }
.btn-light::after { background: linear-gradient(105deg, transparent, rgba(255, 170, 90, .35), transparent); }
.btn-sm { font-size: .95rem; padding: .7em 1.2em; }
.btn-lg { font-size: 1.1rem; padding: 1em 1.7em; }

/* ---------- Promo bar ---------- */
.promo {
  position: relative;
  background: linear-gradient(90deg, #ffe4c9, #fff3e6 50%, #ffe4c9);
  color: var(--ink);
  font-size: .9rem; font-weight: 600;
  text-align: center;
  padding: 8px 44px;
}
.promo p { margin: 0; }
.promo strong { color: #e0332a; }
.promo-code {
  font: inherit; font-weight: 800; letter-spacing: .02em;
  color: var(--orange-dark); background: var(--white);
  border: 1.5px dashed #f6a76b; border-radius: 8px;
  padding: 1px 8px; cursor: pointer;
}
.promo-code { transition: background-color .2s, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.promo-code:hover { border-style: solid; background: #fff6ee; transform: scale(1.06) rotate(-2deg); }
.promo-code.copied::after { content: " ✓ copied"; color: #2c9a5a; }
.promo-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-2); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.promo-close:hover { background: rgba(0, 0, 0, .06); }
.promo[hidden] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(80, 40, 10, .4); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; isolation: isolate;
  color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .98rem;
  padding: 8px 14px; border-radius: 999px; transition: color .2s;
}
.nav-links a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--orange-soft); opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.nav-links a:hover { color: var(--orange-deep); }
.nav-links a:hover::before { opacity: 1; transform: scale(1); }
.brand img { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover img { transform: rotate(-12deg) scale(1.12); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--orange-soft);
  cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 85% 30%, #ffd9b3 0%, rgba(255, 217, 179, 0) 70%),
    radial-gradient(40% 50% at 0% 100%, #ffe9d2 0%, rgba(255, 233, 210, 0) 70%),
    var(--cream);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 5vw, 56px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.eyebrow {
  display: inline-block;
  font-weight: 800; font-size: .9rem; color: var(--orange-dark);
  background: var(--white); border: 1px solid #ffd8b8;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hl {
  color: var(--orange);
  background: linear-gradient(transparent 68%, #ffd9a8 68%, #ffd9a8 92%, transparent 92%);
  padding-inline: .05em;
}
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 38em; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: .95rem; font-weight: 700; color: var(--ink-3); margin: 0; }

.hero-art { position: relative; max-width: 460px; width: 100%; justify-self: center; aspect-ratio: 1; }
.hero-blob {
  position: absolute; inset: 6% 4% 2%;
  background: radial-gradient(circle at 38% 28%, #fff7ee, #ffdcb5 55%, #ffbf85);
  border: 6px solid rgba(255, 255, 255, .8);
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  box-shadow: inset 0 -24px 40px rgba(255, 140, 50, .25), var(--shadow-lg);
  animation: blob 14s ease-in-out infinite alternate;
}
.hero-fox { position: absolute; left: 50%; bottom: 4%; width: 70%; transform: translateX(-50%); filter: drop-shadow(0 16px 14px rgba(120, 50, 0, .25)); }
.sticker { position: absolute; filter: drop-shadow(0 8px 10px rgba(120, 60, 10, .2)); animation: float 6s ease-in-out infinite; }
.s-star { width: 22%; left: -4%; top: 6%; animation-delay: -1s; }
.s-thumbs { width: 16%; right: -2%; top: 14%; animation-delay: -3s; }
.s-donut { width: 17%; right: -3%; bottom: 14%; animation-delay: -2s; }
.s-burger { width: 15%; left: -2%; bottom: 18%; animation-delay: -4s; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes blob {
  0% { border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; }
  100% { border-radius: 55% 45% 44% 56% / 46% 56% 44% 54%; }
}

.platforms {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 18px 24px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.platforms p { margin: 0; font-weight: 800; color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badges a { display: block; border-radius: 10px; transition: transform .15s; }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 48px; width: auto; }
.badges-left { justify-content: flex-start; }

/* ---------- Languages strip ---------- */
.languages { padding: 22px 0; border-bottom: 1px solid var(--line); }
.flag-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.flag-list li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-weight: 700; font-size: .88rem; color: var(--ink); white-space: nowrap;
}
.flag-list img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.languages .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 16px; }
.languages-label { flex: none; margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-soft { background: var(--cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head h2 { margin: 0; }
.kicker {
  display: inline-block; margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark);
}
.kicker-light { color: #ffe2c4; }

.tag {
  display: inline-block; margin-bottom: 14px;
  font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.tag-orange { background: var(--tint-peach); color: var(--orange-deep); }
.tag-purple { background: var(--tint-lavender); color: #5b3fc4; }

.tint-peach { background: var(--tint-peach); }
.tint-lavender { background: var(--tint-lavender); }
.tint-yellow { background: var(--tint-yellow); }
.tint-mint { background: var(--tint-mint); }
.tint-sky { background: var(--tint-sky); }
.tint-pink { background: var(--tint-pink); }

/* Screens holding the app recordings */
.screen { background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.screen-phone { width: min(100%, 250px); aspect-ratio: 9 / 15.5; padding: 6px; }
.screen-phone video { border-radius: 18px; }
.screen-wide { width: 100%; aspect-ratio: 1350 / 764; padding: 8px; }
.screen-wide video { object-fit: contain; }
.screen-dark { background: #0f3a33; }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
.feature-reverse .feature-copy { order: 2; }
.feature-copy p { font-size: 1.1rem; max-width: 34em; }
.feature-illo { width: min(100%, 300px); margin-top: 12px; }
.feature-media {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  display: grid; place-items: center;
  min-height: 360px;
}

/* Technique cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.tech-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 14px 14px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.tech-card h3, .tech-card p { padding-inline: 12px; }
.tech-card h3 { margin-top: 22px; }
.tech-card p { margin: 0; font-size: 1rem; }
.tech-media {
  position: relative; border-radius: 24px; padding: 28px 20px;
  display: grid; place-items: center;
}
.tech-media .screen-phone { width: min(100%, 200px); }
.tech-illo { position: absolute; right: 6px; bottom: -18px; width: 42%; max-width: 150px; filter: drop-shadow(0 8px 10px rgba(80, 40, 10, .15)); }

/* Map */
.map-section {
  background:
    radial-gradient(50% 60% at 90% 10%, rgba(255, 200, 140, .5), transparent 70%),
    linear-gradient(150deg, #ff8a2a, #f05d00);
  color: #fff4ea;
  padding-block: var(--section-y);
  overflow: hidden;
}
.map-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.map-copy h2 { color: var(--white); }
.map-copy p { font-size: 1.12rem; max-width: 32em; margin-bottom: 28px; }
.map-media { display: grid; place-items: center; }
.map-media .screen-phone { width: min(100%, 270px); box-shadow: 0 30px 60px -18px rgba(90, 30, 0, .55); transform: rotate(3deg); }

/* Mini cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 24px); }
.mini-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.mini-card h3 { font-size: 1.25rem; margin-top: 18px; }
.mini-card p { margin: 0; font-size: 1rem; }
.icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; }
.icon img { width: 38px; height: 38px; object-fit: contain; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro img { width: 120px; margin-top: 24px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.faq-list details[open] { border-color: #ffd2ad; box-shadow: var(--shadow); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink);
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e25e05' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background-color .3s, scale .3s;
}
.faq-list details[open] summary::after { transform: rotate(135deg); background-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq-list details.closing summary::after { transform: rotate(0); background-color: var(--orange-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e25e05' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq-list details.closing { border-color: var(--line); box-shadow: var(--shadow-sm); }
.faq-body { overflow: hidden; }
.faq-inner { padding: 0 22px 8px; }
.faq-inner p { margin: 0 0 1em; font-size: 1rem; }

/* CTA */
.cta-section { padding-block: var(--section-y); }
.cta-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 90% at 100% 100%, #ffc58f, transparent 70%),
    linear-gradient(135deg, #fff1e1, #ffe0c2);
  border: 1px solid #ffd6b3;
}
.cta-copy { position: relative; z-index: 1; max-width: 560px; }
.cta-copy p { font-size: 1.12rem; margin-bottom: 24px; }
.cta-copy .badges img { height: 44px; }
.cta-fox { width: clamp(160px, 22vw, 260px); margin-bottom: calc(-1 * clamp(32px, 5vw, 56px)); align-self: end; }
.cta-party { position: absolute; width: 90px; top: 18px; right: 30%; opacity: .9; transform: rotate(-12deg); }

/* Footer */
.site-footer { background: #24170f; color: #d9c8bb; padding-top: 56px; }
.site-footer .brand { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 32px; align-items: start; }
.footer-brand p { margin: 12px 0 0; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 8px; }
.footer-links a { color: #f3e6db; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.socials { display: flex; gap: 12px; }
.socials a { display: block; border-radius: 50%; transition: transform .15s; }
.socials a:hover { transform: translateY(-2px); }
.socials img { width: 36px; height: 36px; }
.footer-bottom { margin-top: 40px; font-size: .9rem; }
.footer-bottom p { margin: 0; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; translate: none; }

/* ---------- Interactions & hover polish ---------- */

/* Scroll progress bar under the header */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: linear-gradient(90deg, #ffb35c, var(--orange), #e0332a);
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  border-radius: 0 3px 3px 0; pointer-events: none;
}

/* Language chips */
.flag-list li {
  cursor: default;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .25s, box-shadow .25s, background-color .25s, color .25s;
}
.flag-list img { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.flag-list li:hover {
  transform: translateY(-4px) scale(1.06);
  border-color: #ffc796; background: #fffaf4; color: var(--orange-deep);
  box-shadow: 0 10px 20px -10px rgba(226, 94, 5, .5);
}
.flag-list li:hover img { transform: rotate(-14deg) scale(1.18); }
.js .flag-list li {
  opacity: 0; translate: 0 12px;
  transition-property: transform, border-color, box-shadow, background-color, color, opacity, translate;
  transition-duration: .35s, .25s, .25s, .25s, .25s, .5s, .6s;
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1), ease, ease, ease, ease, ease, cubic-bezier(.2, .7, .2, 1);
  transition-delay: 0s, 0s, 0s, 0s, 0s, calc(var(--i, 0) * 55ms), calc(var(--i, 0) * 55ms);
}
.js .flag-list.in li { opacity: 1; translate: none; }
.languages-label::after { content: " →"; color: var(--orange); display: inline-block; margin-left: 2px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* Hero: parallax driven by --px/--py (set from JS, -1..1) */
.hero-art { --px: 0; --py: 0; }
.hero-blob, .sticker { transition: translate .6s cubic-bezier(.2, .7, .2, 1); }
.hero-blob { translate: calc(var(--px) * -10px) calc(var(--py) * -10px); }
.hero-fox {
  translate: calc(var(--px) * 14px) calc(var(--py) * 8px); rotate: calc(var(--px) * 3deg);
  transition: translate .6s cubic-bezier(.2, .7, .2, 1), rotate .6s cubic-bezier(.2, .7, .2, 1), filter .3s;
}
.s-star { translate: calc(var(--px) * 30px) calc(var(--py) * 24px); }
.s-thumbs { translate: calc(var(--px) * 22px) calc(var(--py) * 30px); }
.s-donut { translate: calc(var(--px) * -26px) calc(var(--py) * 18px); }
.s-burger { translate: calc(var(--px) * -18px) calc(var(--py) * -24px); }
.hero-art { pointer-events: none; }
.hero-fox, .sticker { pointer-events: auto; }
.hero-fox:hover { filter: drop-shadow(0 22px 20px rgba(120, 50, 0, .3)) brightness(1.04); }
.sticker:hover { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-14deg) scale(1.15); } 60% { transform: rotate(10deg) scale(1.1); } }
.eyebrow { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.eyebrow:hover { transform: translateY(-2px) rotate(-1.5deg); box-shadow: var(--shadow); }

/* Store badges & socials */
.badges a { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.badges a:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .55); }
.badges a:active { transform: translateY(0) scale(.98); }
.socials a { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.socials a:hover { transform: translateY(-4px) rotate(-10deg) scale(1.12); box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .6); }

/* Tilt + spotlight cards: --rx/--ry/--mx/--my set from JS */
.tilt {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --lift: 0px;
  position: relative;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
}
.tilt, .js .tilt.reveal {
  transition: opacity .7s ease, translate .8s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.tilt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 150, 60, .16), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.tilt:hover { --lift: -6px; box-shadow: var(--shadow-lg); border-color: #ffd2ad; }
.tilt:hover::before { opacity: 1; }
.tilt.tracking, .js .tilt.reveal.tracking { transition: opacity .7s ease, translate .8s cubic-bezier(.2, .7, .2, 1), transform .12s linear, box-shadow .35s, border-color .35s; }

/* Technique cards */
.tech-media .screen { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.tech-illo { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.tech-card:hover .tech-media .screen { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-lg); }
.tech-card:hover .tech-illo { transform: translate(-6px, -10px) rotate(-6deg) scale(1.08); }
.tech-card h3, .mini-card h3 { transition: color .25s; }
.tech-card:hover h3, .mini-card:hover h3 { color: var(--orange-deep); }

/* Mini cards */
.icon { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.mini-card:hover .icon { transform: rotate(-10deg) scale(1.15); box-shadow: 0 10px 18px -10px rgba(120, 60, 10, .45); }
.mini-card:hover .icon img { animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1); } }

/* Feature rows */
.feature-media { transition: box-shadow .4s; }
.feature-media .screen { transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.feature-media:hover { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), var(--shadow); }
.feature-media:hover .screen { transform: translateY(-8px) rotate(-1.5deg) scale(1.03); box-shadow: var(--shadow-lg); }
.feature-reverse .feature-media:hover .screen { transform: translateY(-8px) rotate(1deg) scale(1.02); }
.feature-illo { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.feature-illo:hover { transform: rotate(-4deg) scale(1.06); }
.tag { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.feature:hover .tag { transform: translateY(-2px) rotate(-3deg); }

/* Map */
.map-media .screen-phone { transition: transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.map-media:hover .screen-phone { transform: rotate(0deg) scale(1.04); box-shadow: 0 40px 70px -20px rgba(90, 30, 0, .6); }

/* FAQ */
.faq-list summary:hover { color: var(--orange-deep); }
.faq-list summary:hover::after { scale: 1.12; }
.faq-list details:not([open]):hover { transform: translateX(4px); border-color: #ffd2ad; }
.faq-intro img { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.faq-intro img:hover { transform: rotate(-10deg) scale(1.1); }

/* CTA */
.cta-fox { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 100%; }
.cta-card:hover .cta-fox { transform: translateY(-8px) rotate(-3deg) scale(1.04); }
.cta-party { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.cta-card:hover .cta-party { transform: rotate(10deg) scale(1.15); }

/* Footer links: underline slides in */
.footer-links a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px; transition: background-size .3s ease, color .2s;
}
.footer-links a:hover { text-decoration: none; background-size: 100% 2px; }

/* Touch devices: no hover lift/tilt */
@media (hover: none) {
  .tilt:hover { --lift: 0px; }
  .tilt::before { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards-3, .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 .tech-card:last-child { grid-column: 1 / -1; }
  .cards-3 .tech-card:last-child .tech-media { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .socials { grid-column: 2; justify-self: start; }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(80, 40, 10, .35);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .menu-toggle { display: inline-flex; }
  .nav-actions { margin-left: auto; }

  .hero-grid, .feature, .map-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-art { max-width: 300px; }
  .feature-reverse .feature-copy { order: 0; }
  .feature-copy { text-align: center; }
  .feature-copy p { margin-inline: auto; }
  .feature-illo { margin-inline: auto; width: min(70%, 240px); }
  .feature-media { min-height: 0; }
  .map-copy { text-align: center; }
  .map-copy p { margin-inline: auto; }
  .faq-intro { position: static; text-align: center; }
  .faq-intro img { display: none; }
  .cta-card { grid-template-columns: 1fr; text-align: center; }
  .cta-copy { margin-inline: auto; }
  .badges-left { justify-content: center; }
  .cta-fox { justify-self: center; }
  .cta-party { right: 16px; width: 64px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .promo { font-size: .82rem; padding: 8px 40px 8px 12px; text-align: left; }
  .nav { height: 60px; }
  .nav-actions .btn { display: none; }
  .brand { font-size: 1.3rem; }
  .cards-3, .cards-grid { grid-template-columns: 1fr; }
  .platforms { flex-direction: column; padding: 18px 16px; }
  .badges img { height: 42px; }
  .languages .container { display: block; }
  .languages-label { margin-bottom: 10px; text-align: center; }
  .flag-list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .flag-list::-webkit-scrollbar { display: none; }
  .flag-list li { flex: none; }
  .hero-ctas .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .socials { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .flag-list li { opacity: 1; translate: none; }
}
