/* =============================================================
   GeoWeChat — Core stylesheet (mobile-first)
   -------------------------------------------------------------
   1. Design tokens        6. Header & navigation
   2. Reset & base         7. Shared components
   3. Typography           8. Phone mockups & app screens
   4. Utilities            9. Homepage sections
   5. Buttons             10. Footer, back-to-top, toast, motion
   Breakpoint overrides live in responsive.css.
   Inner-page styles (legal, forms, about…) live in pages.css.
   ============================================================= */

/* 1. Design tokens ------------------------------------------- */
:root {
  /* Brand colours — matched to the GeoWeChat app (blue → violet headers,
     indigo buttons, gold coins/badges, green quests). Edit here to re-theme. */
  --c-midnight: #16183d;
  --c-midnight-deep: #0f1030;
  --c-midnight-alt: #1a1c47;
  --c-surface: #23265a;
  --c-surface-2: #2c2f6b;
  --c-violet: #764ba2;
  --c-violet-strong: #5a67d8;
  --c-violet-deep: #4c51bf;
  --c-violet-soft: #c7d2fe;
  --c-cyan: #a5b4fc;
  --c-cyan-soft: #e0e7ff;
  --c-light: #f7f8fc;
  --c-white: #ffffff;
  --c-text-muted: #b6bbdf;
  --c-ink: #1f2340;
  --c-ink-muted: #4b5068;
  --c-line-dark: rgba(182, 187, 223, 0.18);
  --c-line-light: #e3e6f3;
  --c-amber: #fcd34d;
  --c-gold: #f5b800;
  --c-green: #12a36b;
  --c-pink: #ec4899;
  --c-success: #34d399;
  --c-danger: #f87171;

  --gradient-brand: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  --gradient-text: linear-gradient(120deg, #fde68a 0%, #fbbf24 100%);

  /* Typography */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.125rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2.2vw, 3.25rem);
  --fs-h1: clamp(2.6rem, 1.5rem + 4.6vw, 5.25rem);

  /* Spacing, radii, shadows */
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --container: 1200px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(16, 20, 38, 0.05), 0 10px 30px rgba(16, 20, 38, 0.07);
  --shadow-card-hover: 0 2px 4px rgba(16, 20, 38, 0.06), 0 18px 44px rgba(16, 20, 38, 0.12);
  --shadow-float: 0 30px 70px rgba(4, 6, 16, 0.55);
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  /* Context colours (overridden per section) */
  --heading: var(--c-white);
  --text: var(--c-white);
  --text-muted: var(--c-text-muted);
  --eyebrow: var(--c-cyan);
  --focus: var(--c-cyan);
  --line: var(--c-line-dark);
}

/* 2. Reset & base -------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--c-midnight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection { background: rgba(118, 75, 162, 0.35); color: inherit; }

[hidden] { display: none !important; }

/* 3. Typography ---------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.eyebrow .icon { width: 1rem; height: 1rem; }

.eyebrow--chip {
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(165, 180, 252, 0.28);
  background: rgba(165, 180, 252, 0.07);
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0.85rem 0 1rem;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-lead {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text-muted);
}

.section-lead a,
.card__text a,
.note a { color: var(--eyebrow); font-weight: 700; text-underline-offset: 3px; }

/* 4. Utilities ----------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--c-white);
  color: var(--c-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus { transform: none; }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  overflow-x: clip;
}

.section--dark {
  background: var(--c-midnight);
  color: var(--c-white);
}

.section--darker {
  background: var(--c-midnight-alt);
  color: var(--c-white);
}

.section--light,
.section--white {
  --heading: var(--c-ink);
  --text: var(--c-ink);
  --text-muted: var(--c-ink-muted);
  --eyebrow: var(--c-violet-deep);
  --focus: var(--c-violet-deep);
  --line: var(--c-line-light);
  background: var(--c-light);
  color: var(--c-ink);
}

.section--white { background: var(--c-white); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.map-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../assets/images/map-pattern.svg") center / 640px repeat;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.map-texture > * { position: relative; z-index: 1; }

/* 5. Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.btn .icon { width: 1.15em; height: 1.15em; }

.btn--primary {
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-violet-strong) 0%, #5b46b8 100%);
  box-shadow: 0 10px 28px rgba(90, 103, 216, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--ghost {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(170, 178, 208, 0.32);
}

.btn--light {
  color: var(--c-violet-deep);
  background: var(--c-white);
  box-shadow: 0 12px 30px rgba(31, 35, 64, 0.22);
}

.btn--light .icon { color: var(--c-violet-strong); }

.btn--ghost-light {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline {
  color: var(--c-ink);
  background: var(--c-white);
  border-color: #cbd5e1;
}

.btn--store {
  gap: 0.75rem;
  padding: 0.65rem 1.4rem 0.65rem 1.1rem;
  color: var(--c-ink);
  background: var(--c-white);
  border-color: rgba(255, 255, 255, 0.6);
  text-align: left;
}

.btn--store-dark {
  color: var(--c-white);
  background: var(--c-ink);
  border-color: var(--c-ink);
}

.btn--store .btn__store-icon { width: 1.6rem; height: 1.6rem; color: var(--c-violet-strong); }
.btn--store-dark .btn__store-icon { color: var(--c-cyan); }
.btn__store-icon path,
.btn__play path { fill: currentColor; stroke: none; }

.btn__stack { display: grid; line-height: 1.15; }
.btn__stack small { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.btn__stack span { font-size: 1.05rem; font-weight: 800; }

.btn--sm { min-height: 42px; padding: 0.55rem 1.05rem; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn[disabled],
.btn[aria-busy="true"] { opacity: 0.65; cursor: progress; transform: none; }

@media (hover: hover) {
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(90, 103, 216, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  .btn--ghost:hover { border-color: var(--c-cyan); background: rgba(165, 180, 252, 0.1); }
  .btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(31, 35, 64, 0.3); }
  .btn--ghost-light:hover { background: rgba(255, 255, 255, 0.2); border-color: var(--c-white); }
  .btn--outline:hover { border-color: var(--c-violet-strong); color: var(--c-violet-deep); }
  .btn--store:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(4, 6, 16, 0.35); }
  .btn:hover .icon--arrow { transform: translateX(3px); }
}

.btn .icon--arrow { transition: transform 0.25s var(--ease-out); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--eyebrow);
  text-decoration: none;
}

.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.25rem 0.1rem;
  border: 0;
  background: none;
  color: var(--c-cyan-soft);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(165, 243, 252, 0.35);
  text-underline-offset: 4px;
}

.link-btn .icon { width: 1rem; height: 1rem; }
.link-btn:hover { text-decoration-color: currentColor; }

/* 6. Header & navigation ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--gradient-hero);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  --focus: var(--c-cyan);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 30px rgba(31, 35, 64, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand__mark { width: 36px; height: 36px; }

.brand__geo { color: inherit; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  cursor: pointer;
}

.js .nav-toggle { display: inline-grid; place-items: center; }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease, top 0.3s var(--ease-out);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile menu panel (only collapsible when JS is available) */
.site-nav { display: flex; flex-direction: column; gap: 1rem; }

.js .site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 1rem var(--gutter) 2rem;
  background: linear-gradient(180deg, #5f63d2 0%, #6b46c1 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 50px rgba(31, 35, 64, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}

.js .site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s linear 0s;
}

html:not(.js) .site-header { height: auto; position: relative; }
html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.75rem; }
html:not(.js) .site-nav { flex-direction: row; flex-wrap: wrap; align-items: center; }
html:not(.js) .site-nav__list { flex-direction: row; flex-wrap: wrap; }

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__link:hover { color: var(--c-white); background: rgba(255, 255, 255, 0.12); }

.site-nav__link[aria-current="page"] { color: var(--c-white); }

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  bottom: 8px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-white);
}

.site-nav__cta { margin-top: 0.5rem; }

/* 7. Shared components -------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border: 1px solid var(--c-line-light);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card--dark {
  border-color: var(--c-line-dark);
  background: linear-gradient(180deg, rgba(30, 36, 68, 0.72) 0%, rgba(22, 27, 51, 0.72) 100%);
  box-shadow: none;
}

@media (hover: hover) {
  .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: #c7d2fe; }
  .card--dark.card--hover:hover { border-color: rgba(118, 75, 162, 0.45); box-shadow: 0 20px 50px rgba(4, 6, 16, 0.4); }
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  color: var(--c-violet-deep);
  background: linear-gradient(135deg, rgba(118, 75, 162, 0.14), rgba(165, 180, 252, 0.14));
  border: 1px solid rgba(118, 75, 162, 0.18);
}

.card--dark .card__icon { color: var(--c-cyan); background: rgba(165, 180, 252, 0.08); border-color: rgba(165, 180, 252, 0.2); }

.card__icon .icon { width: 1.5rem; height: 1.5rem; }

.card__title { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.card__text { color: var(--text-muted); }

.card-grid { display: grid; gap: 1.25rem; }

.check-list { display: grid; gap: 0.75rem; margin-top: 1.5rem; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
}

.check-list .icon {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  padding: 0.2rem;
  border-radius: 50%;
  color: var(--c-cyan);
  background: rgba(165, 180, 252, 0.12);
}

.section--light .check-list .icon,
.section--white .check-list .icon { color: var(--c-violet-deep); background: rgba(90, 103, 216, 0.1); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  vertical-align: middle;
}

.status-badge .icon { width: 0.9rem; height: 0.9rem; }
.status-badge--supported { color: var(--c-cyan-soft); border-color: rgba(165, 180, 252, 0.35); background: rgba(165, 180, 252, 0.08); }
.status-badge--varies { color: var(--c-amber); border-color: rgba(252, 211, 77, 0.4); background: rgba(252, 211, 77, 0.08); }
.section--light .status-badge--supported, .section--white .status-badge--supported { color: #0e7490; border-color: #a5f3fc; background: #ecfeff; }
.section--light .status-badge--varies, .section--white .status-badge--varies { color: #92400e; border-color: #fcd34d; background: #fffbeb; }

.note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.section--light .note, .section--white .note { background: var(--c-white); }
.note .icon { margin-top: 0.15rem; color: var(--eyebrow); }

/* Placeholder marker: anything wrapped in .placeholder must be replaced before launch */
.placeholder {
  padding: 0.05em 0.35em;
  border: 1px dashed currentColor;
  border-radius: 6px;
  background: rgba(252, 211, 77, 0.12);
  color: inherit;
  font-style: normal;
}

/* 8. Phone frames for real app screenshots ----------------- */
.phone {
  --phone-w: clamp(230px, 64vw, 290px);
  position: relative;
  flex: none;
  width: var(--phone-w);
  aspect-ratio: 9 / 19.4;
  padding: calc(var(--phone-w) * 0.032);
  border-radius: calc(var(--phone-w) * 0.15);
  background: linear-gradient(150deg, #3b3f6b 0%, #14152e 38%, #14152e 70%, #2d3060 100%);
  box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.phone::before {
  content: "";
  position: absolute;
  top: calc(var(--phone-w) * 0.052);
  left: 50%;
  z-index: 5;
  width: 28%;
  height: calc(var(--phone-w) * 0.07);
  border-radius: var(--r-pill);
  background: #05060c;
  transform: translateX(-50%);
}

.phone::after {
  content: "";
  position: absolute;
  top: 22%;
  right: -2px;
  width: 3px;
  height: 12%;
  border-radius: 0 3px 3px 0;
  background: #2b2f58;
}

.phone--sm { --phone-w: clamp(200px, 56vw, 248px); }

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.12);
  background: var(--c-light);
  isolation: isolate;
}

.phone__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Two overlapping phones */
.phone-duo { position: relative; display: flex; justify-content: center; width: 100%; padding-right: 18%; }
.phone-duo .phone--back {
  position: absolute;
  top: 7%;
  right: 0;
  z-index: 0;
  transform: rotate(5deg) scale(0.86);
  transform-origin: top right;
  filter: saturate(0.95);
}
.phone-duo .phone--front { z-index: 1; }

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9em;
  color: var(--c-white);
  background: var(--gradient-brand);
}

.avatar--b { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.avatar--c { background: linear-gradient(135deg, #f472b6, #8b5cf6); }

/* Abstract art used by the riddle demo */
.art { position: relative; overflow: hidden; background-color: #312e81; }
.art::before, .art::after { content: ""; position: absolute; }
.art--sunset { background: linear-gradient(180deg, #fbbf24 0%, #f472b6 45%, #6b46c1 100%); }
.art--sunset::before { width: 34%; aspect-ratio: 1; left: 50%; top: 34%; border-radius: 50%; background: #fde68a; transform: translateX(-50%); box-shadow: 0 0 2.5em rgba(253, 230, 138, 0.8); }
.art--sunset::after { inset: auto -10% -18% -10%; height: 55%; border-radius: 50% 50% 0 0; background: #1e1b4b; }

/* Map pin (404 page) */
.map-pin {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50% 50% 50% 0;
  background: var(--gradient-brand);
  transform: rotate(-45deg);
  box-shadow: 0 0.5em 1.2em rgba(4, 6, 16, 0.5), 0 0 0 0.2em rgba(255, 255, 255, 0.9);
}
.map-pin > * { transform: rotate(45deg); }
.map-pin .icon { width: 1.15em; height: 1.15em; color: var(--c-white); }

/* 9. Homepage sections -------------------------------------- */

/* Hero — uses the app's header gradient */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(4rem, 3rem + 5vw, 6.5rem);
  background: var(--gradient-hero);
  color: var(--c-white);
  --focus: var(--c-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38rem 28rem at 85% 25%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(32rem 24rem at 5% 95%, rgba(236, 72, 153, 0.22), transparent 70%),
    url("../assets/images/map-pattern-light.svg") center / 640px repeat;
}

.bg-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
}

.bg-pin::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  animation: ping 3.2s var(--ease-out) infinite;
}

.bg-pin { display: none; }
.bg-pin--violet { background: var(--c-amber); box-shadow: 0 0 16px rgba(252, 211, 77, 0.9); }
.bg-pin--violet::after { border-color: rgba(252, 211, 77, 0.6); animation-delay: 1.1s; }
.bg-pin--1 { top: 18%; left: 6%; }
.bg-pin--2 { top: 78%; left: 44%; animation-delay: 0.6s; }
.bg-pin--3 { top: 10%; left: 56%; }
.bg-pin--4 { top: 88%; left: 92%; }
.bg-pin--5 { top: 52%; left: 2%; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 4rem);
  align-items: center;
}

.hero .eyebrow--chip { color: var(--c-white); border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.14); }

.hero__title {
  margin: 1.25rem 0 1.25rem;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 24px rgba(31, 35, 64, 0.18);
}

.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.7;
  color: #f1f2ff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 2rem;
  color: #f1f2ff;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.hero__points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__points .icon { width: 1.05rem; height: 1.05rem; color: var(--c-amber); }

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  padding-block: 1rem;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 10% 12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08) 55%, transparent 72%);
  filter: blur(30px);
}

/* Floating cards: white, like the app's cards */
.float-card {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: min(250px, 66%);
  padding: 0.7rem 0.95rem 0.7rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 44px rgba(31, 35, 64, 0.28);
  color: var(--c-ink);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.float-card strong { display: block; font-size: 0.875rem; color: var(--c-ink); }
.float-card small { display: block; color: var(--c-ink-muted); font-size: 0.75rem; }

.float-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--c-white);
  background: var(--gradient-brand);
}

.float-card__icon .icon { width: 1.15rem; height: 1.15rem; }
.float-card__icon--green { background: linear-gradient(135deg, #1fbf7f, #0e8a5a); }
.float-card__icon--gold { background: linear-gradient(135deg, #fcd34d, #f5a300); }
.float-card__icon--pink { background: linear-gradient(135deg, #f472b6, #a855f7); }

.float-card--a { top: 8%; left: 0; }
.float-card--b { bottom: 14%; left: 0; }
.float-card--c { top: 44%; right: 0; }

/* Intro section */
.intro__grid { display: grid; gap: 1.25rem; }

/* Feature showcase */
.feature-list { display: grid; gap: clamp(5rem, 4rem + 5vw, 8.5rem); }

.feature-row {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
  align-items: center;
}

.feature-row__copy { max-width: 34rem; }

.feature-row__num {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.feature-row__num b {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: rgba(118, 75, 162, 0.14);
  border: 1px solid rgba(118, 75, 162, 0.3);
  color: var(--c-violet-soft);
}

.feature-row__title { margin: 1rem 0 0.9rem; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.035em; }
.feature-row__text { color: var(--text-muted); font-size: 1.0625rem; }
.feature-row .status-badge { margin-top: 1.25rem; }
.feature-row .note { margin-top: 1.5rem; }

.feature-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  padding-block: 1rem;
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: 15%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.55), rgba(102, 126, 234, 0.22) 55%, transparent 72%);
  filter: blur(36px);
}

.feature-visual > * { position: relative; z-index: 1; }
.feature-visual > .float-card { position: absolute; z-index: 6; }

/* Secrets demo */
.riddle-card {
  width: min(100%, 440px);
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  border: 1px solid rgba(170, 178, 208, 0.22);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(118, 75, 162, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(30, 36, 68, 0.95), rgba(22, 27, 51, 0.95));
  box-shadow: var(--shadow-float);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.riddle-card.is-unlocked { border-color: rgba(165, 180, 252, 0.55); box-shadow: var(--shadow-float), 0 0 0 4px rgba(165, 180, 252, 0.12); }
.riddle-card.is-shake { animation: shake 0.45s ease; }

.riddle-card__head { display: flex; gap: 0.85rem; align-items: center; }
.riddle-card__lock { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 16px; background: rgba(118, 75, 162, 0.18); color: var(--c-violet-soft); }
.riddle-card__lock .icon { width: 1.4rem; height: 1.4rem; }
.riddle-card.is-unlocked .riddle-card__lock { background: rgba(165, 180, 252, 0.16); color: var(--c-cyan); }
.riddle-card__kicker { color: var(--c-text-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.riddle-card__title { font-size: 1.15rem; color: var(--c-white); }
.riddle-card__question { margin: 1.25rem 0; padding: 1rem 1.1rem; border-left: 3px solid var(--c-violet); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, 0.04); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.5; color: var(--c-white); }
.riddle-form__label { display: block; margin-bottom: 0.4rem; font-size: 0.875rem; font-weight: 700; color: var(--c-white); }
.riddle-form__row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.riddle-form__row .input { flex: 1 1 160px; }
.riddle-form__feedback { min-height: 1.6em; margin-top: 0.6rem; font-size: 0.875rem; font-weight: 600; }
.riddle-form__feedback.is-error { color: #fca5a5; }
.riddle-form__feedback.is-hint { color: var(--c-amber); }
.riddle-form__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.riddle-card__revealed { margin-top: 1.25rem; animation: rise 0.6s var(--ease-out); }
.riddle-card__revealed .art { height: 120px; border-radius: 16px; margin-bottom: 1rem; }
.riddle-card__revealed h4 { font-size: 1.1rem; }
.riddle-card__revealed p { margin-top: 0.35rem; color: var(--c-text-muted); font-size: 0.9375rem; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus { outline: none; border-color: var(--c-violet-strong); box-shadow: 0 0 0 4px rgba(90, 103, 216, 0.2); }
.input--dark { border-color: rgba(170, 178, 208, 0.3); background: rgba(11, 14, 28, 0.6); color: var(--c-white); }
.input--dark::placeholder { color: #8a92b4; }
.input--dark:focus { border-color: var(--c-cyan); box-shadow: 0 0 0 4px rgba(165, 180, 252, 0.18); }

.demo-note { margin-top: 1rem; max-width: 440px; }

/* How it works */
.steps { position: relative; display: grid; gap: 1.5rem; counter-reset: step; }

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-violet-strong), var(--c-cyan));
  opacity: 0.35;
}

.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; align-items: start; }

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--c-white), var(--c-white)), var(--gradient-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--c-violet-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 8px 24px rgba(90, 103, 216, 0.15);
}

.step__body { padding: 1.4rem 1.5rem; border: 1px solid var(--c-line-light); border-radius: var(--r-lg); background: var(--c-light); }
.step__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 0.9rem; border-radius: 12px; background: rgba(90, 103, 216, 0.1); color: var(--c-violet-deep); }
.step__title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step__text { color: var(--text-muted); }

/* App preview gallery */
.gallery { display: grid; justify-items: center; gap: 2rem; }

.gallery__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
}

.gallery__tab {
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--c-text-muted);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery__tab:hover { color: var(--c-white); border-color: rgba(170, 178, 208, 0.4); }
.gallery__tab[aria-selected="true"] { color: var(--c-ink); background: var(--c-white); border-color: var(--c-white); }

.gallery__stage { display: flex; align-items: center; justify-content: center; gap: clamp(0.5rem, 3vw, 2.5rem); width: 100%; }

.gallery__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-line-dark);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-white);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery__arrow:hover { border-color: var(--c-cyan); background: rgba(165, 180, 252, 0.1); }
.gallery__arrow:active { transform: scale(0.94); }

.gallery__phone { touch-action: pan-y; }

.gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
}

.gallery__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out), visibility 0s linear 0s;
}

html:not(.js) .gallery__slide:first-child { opacity: 1; visibility: visible; transform: none; }

.gallery__caption { max-width: 34rem; min-height: 5.5rem; text-align: center; }
.gallery__caption h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.gallery__caption p { color: var(--c-text-muted); }
.gallery__counter { display: block; margin-bottom: 0.4rem; color: var(--c-cyan); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.gallery__disclaimer { max-width: 34rem; margin-inline: auto; text-align: center; color: var(--c-text-muted); font-size: var(--fs-xs); }

/* Play & earn showcase (badges, leaderboard, wallet) */
.play-grid { display: grid; gap: 1.5rem; }

.play-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  overflow: hidden;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem) clamp(1.25rem, 1rem + 1vw, 1.75rem) 0;
  border: 1px solid var(--c-line-light);
  border-radius: var(--r-xl);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}

.play-card--gold { background: linear-gradient(180deg, #fff7dc 0%, #ffffff 55%); }
.play-card--violet { background: linear-gradient(180deg, #eceeff 0%, #ffffff 55%); }
.play-card--green { background: linear-gradient(180deg, #e3f7ee 0%, #ffffff 55%); }

.play-card__copy { align-self: stretch; }
.play-card__title { margin: 0.85rem 0 0.5rem; font-size: var(--fs-h3); }
.play-card__text { color: var(--c-ink-muted); }
.play-card .phone { margin-bottom: calc(var(--phone-w) * -0.62); }

.chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip-tag .icon { width: 0.95rem; height: 0.95rem; }
.chip-tag--gold { color: #8a5a00; background: #fde9a8; }
.chip-tag--violet { color: var(--c-violet-deep); background: #dfe3ff; }
.chip-tag--green { color: #0b6b46; background: #c8f0dd; }
.chip-tag--pink { color: #9d174d; background: #fbd5e8; }

.feature-row .chip-tag { margin-top: 1.25rem; }
.section--dark .chip-tag--green, .section--darker .chip-tag--green { color: #b5f5d8; background: rgba(18, 163, 107, 0.22); }
.section--dark .chip-tag--gold, .section--darker .chip-tag--gold { color: #fde68a; background: rgba(245, 184, 0, 0.18); }
.section--dark .chip-tag--pink, .section--darker .chip-tag--pink { color: #fbcfe8; background: rgba(236, 72, 153, 0.2); }
.section--dark .chip-tag--violet, .section--darker .chip-tag--violet { color: #e0e7ff; background: rgba(165, 180, 252, 0.18); }

/* Privacy */
.privacy__layout { display: grid; gap: 3rem; align-items: center; }
.privacy__phone { display: flex; justify-content: center; }

.privacy__grid { display: grid; gap: 1.25rem; }

.policy-links { display: grid; gap: 0.75rem; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }

.policy-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 64px;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--c-line-light);
  border-radius: var(--r-md);
  background: var(--c-white);
  color: var(--c-ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.policy-link > .icon:first-child { width: 2.25rem; height: 2.25rem; padding: 0.5rem; border-radius: 10px; background: rgba(90, 103, 216, 0.1); color: var(--c-violet-deep); }
.policy-link .icon--arrow { margin-left: auto; color: var(--c-ink-muted); transition: transform 0.25s var(--ease-out); }

@media (hover: hover) {
  .policy-link:hover { border-color: #c7d2fe; transform: translateY(-2px); box-shadow: var(--shadow-card); }
  .policy-link:hover .icon--arrow { transform: translateX(3px); color: var(--c-violet-deep); }
}

/* FAQ accordion */
.accordion { display: grid; gap: 0.75rem; max-width: 860px; margin-inline: auto; }

.accordion__item {
  border: 1px solid var(--c-line-light);
  border-radius: var(--r-md);
  background: var(--c-white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.section--white .accordion__item { background: var(--c-light); }
.accordion__item.is-open { border-color: #c7d2fe; box-shadow: 0 10px 30px rgba(90, 103, 216, 0.08); background: var(--c-white); }

.accordion__heading { margin: 0; font-size: inherit; letter-spacing: normal; }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 60px;
  padding: 1.05rem 1.25rem;
  border: 0;
  border-radius: inherit;
  background: none;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}

.accordion__trigger:hover { color: var(--c-violet-deep); }

.accordion__chevron {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(90, 103, 216, 0.08);
  color: var(--c-violet-deep);
  transition: transform 0.35s var(--ease-out), background-color 0.2s ease;
}

.accordion__chevron .icon { width: 1.1rem; height: 1.1rem; }
.accordion__trigger[aria-expanded="true"] .accordion__chevron { transform: rotate(180deg); background: var(--c-violet-strong); color: var(--c-white); }

.accordion__panel { display: grid; grid-template-rows: 1fr; }
.js .accordion__panel { grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.js .accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__inner { overflow: hidden; }
.js .accordion__item:not(.is-open) .accordion__inner { visibility: hidden; transition: visibility 0s linear 0.4s; }
.accordion__content { padding: 0 1.25rem 1.25rem; color: var(--c-ink-muted); }
.accordion__content p + p { margin-top: 0.75rem; }
.accordion__content a { color: var(--c-violet-deep); font-weight: 700; }

.faq__more { margin-top: 2.5rem; text-align: center; }

/* Final CTA */
.cta { padding-bottom: 0; }

.cta__panel {
  position: relative;
  display: grid;
  gap: 2.5rem;
  overflow: hidden;
  padding: clamp(2.25rem, 1.5rem + 4vw, 4.5rem) clamp(1.25rem, 1rem + 3vw, 4.5rem) 0;
  border-radius: var(--r-xl);
  background:
    radial-gradient(36rem 24rem at 92% 0%, rgba(255, 255, 255, 0.18), transparent 65%),
    radial-gradient(28rem 20rem at 0% 100%, rgba(236, 72, 153, 0.25), transparent 70%),
    var(--gradient-hero);
  box-shadow: 0 40px 80px rgba(15, 16, 48, 0.45);
  --eyebrow: var(--c-white);
  --focus: var(--c-white);
}

.cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/map-pattern-light.svg") center / 560px repeat;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}

.cta__copy { position: relative; z-index: 1; align-self: center; padding-bottom: 0; }
.cta__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.04em; }
.cta__text { margin-top: 1rem; max-width: 30rem; color: #f1f2ff; font-size: var(--fs-md); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.cta__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-self: end;
  height: clamp(300px, 80vw, 430px);
  overflow: hidden;
}

.cta__visual .phone { align-self: flex-start; }

/* 10. Footer, back-to-top, toast, motion -------------------- */
.site-footer {
  padding: clamp(3.5rem, 3rem + 3vw, 5rem) 0 2rem;
  border-top: 1px solid var(--c-line-dark);
  background: var(--c-midnight-deep);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}

.cta + .site-footer, .section--dark + .site-footer { border-top: 0; }

.site-footer__top { display: grid; gap: 3rem; }
.site-footer__tagline { max-width: 22rem; margin-top: 1rem; }
.site-footer__contact { margin-top: 1.25rem; }
.site-footer__contact a { color: var(--c-white); font-weight: 700; text-underline-offset: 3px; }

.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
.site-footer__title { margin-bottom: 0.9rem; color: var(--c-white); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer__links { display: grid; gap: 0.15rem; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-text-muted); text-decoration: none; transition: color 0.2s ease; }
.site-footer__links a:hover { color: var(--c-white); text-decoration: underline; text-underline-offset: 4px; }

.social-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.social-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0.35rem 0.9rem; border: 1px solid var(--c-line-dark); border-radius: var(--r-pill); color: var(--c-white); font-weight: 600; text-decoration: none; }
.social-list a:hover { border-color: var(--c-cyan); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line-dark);
  font-size: var(--fs-xs);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(170, 178, 208, 0.3);
  border-radius: 50%;
  background: rgba(16, 20, 38, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--c-white);
  box-shadow: 0 12px 30px rgba(4, 6, 16, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s, border-color 0.2s ease;
  --focus: var(--c-violet-strong);
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0s, border-color 0.2s ease; }
.back-to-top:hover { border-color: var(--c-cyan); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(170, 178, 208, 0.25);
  border-radius: 14px;
  background: var(--c-surface-2);
  color: var(--c-white);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 20px 40px rgba(4, 6, 16, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}

.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.3s ease, transform 0.35s var(--ease-out), visibility 0s; }
.toast .icon { color: var(--c-amber); margin-top: 0.1rem; }

/* Scroll-reveal (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal--d1 { transition-delay: 0.08s; }
.js .reveal--d2 { transition-delay: 0.16s; }
.js .reveal--d3 { transition-delay: 0.24s; }
.js .reveal--d4 { transition-delay: 0.32s; }

.float-y { animation: float-y 7s ease-in-out infinite alternate; }
.float-y--2 { animation-duration: 8s; animation-delay: -2s; }
.float-y--3 { animation-duration: 9s; animation-delay: -4s; }

@keyframes float-y {
  from { transform: translateY(-6px); }
  to { transform: translateY(8px); }
}

@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-0.25em); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .map-you::after, .bg-pin::after { display: none; }
}
