/* 官网：温暖 × 科技 — 氛围、动效、微交互 */

.site-body {
  --warm-ink: #1c1914;
  --warm-muted: #6b6358;
  --warm-soft: #a39888;
  --gold: #fee500;
  --gold-deep: #e6c200;
  --tech-line: rgba(28, 25, 20, 0.06);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  color: var(--warm-ink);
  background:
    radial-gradient(ellipse 90% 60% at 50% -8%, rgba(254, 229, 0, 0.28), transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(255, 210, 90, 0.14), transparent 32%),
    radial-gradient(circle at 92% 65%, rgba(255, 186, 80, 0.12), transparent 34%),
    linear-gradient(180deg, #fff9e9 0%, #fffdf8 38%, #f7f3ea 100%);
  overflow-x: hidden;
}

/* -------- Ambient layer -------- */
.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.ambient__grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(var(--tech-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tech-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
  opacity: 0.9;
}

.ambient__aurora {
  position: absolute;
  inset: -10% -20%;
  background:
    conic-gradient(from 120deg at 50% 40%,
      rgba(254, 229, 0, 0.0),
      rgba(254, 229, 0, 0.12),
      rgba(255, 170, 60, 0.08),
      rgba(255, 255, 255, 0),
      rgba(254, 229, 0, 0.1),
      rgba(254, 229, 0, 0));
  filter: blur(40px);
  animation: aurora-spin 22s linear infinite;
  opacity: 0.7;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.6;
  animation: orb-float 16s ease-in-out infinite;
  will-change: transform;
}

.ambient__orb--a {
  width: 320px;
  height: 320px;
  top: 4%;
  left: -80px;
  background: rgba(254, 229, 0, 0.42);
}

.ambient__orb--b {
  width: 360px;
  height: 360px;
  top: 28%;
  right: -120px;
  background: rgba(255, 190, 70, 0.28);
  animation-delay: -5s;
}

.ambient__orb--c {
  width: 240px;
  height: 240px;
  bottom: 10%;
  left: 28%;
  background: rgba(254, 229, 0, 0.18);
  animation-delay: -9s;
}

.ambient__orb--d {
  width: 180px;
  height: 180px;
  top: 55%;
  left: 8%;
  background: rgba(255, 220, 120, 0.22);
  animation-delay: -12s;
}

.ambient__particles {
  position: absolute;
  inset: 0;
}

.ambient__particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(230, 180, 40, 0.55);
  box-shadow: 0 0 10px rgba(254, 229, 0, 0.45);
  animation: particle-drift var(--dur, 12s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.ambient__spotlight {
  position: absolute;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 229, 0, 0.16), transparent 68%);
  transform: translate3d(-40vw, -20vh, 0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.85;
  mix-blend-mode: multiply;
}

@keyframes grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(48px, 48px, 0); }
}

@keyframes aurora-spin {
  from { transform: rotate(0deg) scale(1.05); }
  to { transform: rotate(360deg) scale(1.05); }
}

@keyframes orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -22px, 0) scale(1.08); }
}

@keyframes particle-drift {
  0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.6); }
  20% { opacity: 0.9; }
  80% { opacity: 0.7; }
  100% { opacity: 0; transform: translate3d(var(--tx, 20px), -80px, 0) scale(1); }
}

/* -------- Reveal / rise -------- */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  animation: reveal-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal--delay-1 { animation-delay: 0.1s; }
.reveal--delay-2 { animation-delay: 0.18s; }
.reveal--delay-3 { animation-delay: 0.28s; }
.reveal--delay-4 { animation-delay: 0.38s; }
.reveal--delay-5 { animation-delay: 0.48s; }

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel-rise {
  opacity: 0;
  transform: translateY(18px);
}

.panel.is-active .panel-rise {
  animation: reveal-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--rise-delay, 0s);
}

/* -------- Topbar -------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0 4px;
}

.topbar__inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 12px 36px rgba(40, 30, 10, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  width: calc(100% - 32px);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.topbar.is-scrolled .topbar__inner {
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 14px 40px rgba(40, 30, 10, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.topbar__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.topbar__logo-glow {
  position: absolute;
  left: 2px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(254, 229, 0, 0.45);
  filter: blur(10px);
  opacity: 0.55;
  animation: logo-pulse 3.2s ease-in-out infinite;
}

.topbar__logo img {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(40, 30, 10, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar__logo:hover img {
  transform: rotate(-6deg) scale(1.06);
}

.topbar__logo em {
  font-style: normal;
  color: var(--warm-soft);
  font-weight: 500;
  font-size: 14px;
}

.tabs {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-full);
  background: rgba(28, 25, 20, 0.05);
  gap: 2px;
}

.tabs__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--warm-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.tabs__btn.is-active {
  background: linear-gradient(180deg, #fffef8, #fff);
  color: var(--warm-ink);
  box-shadow:
    0 4px 14px rgba(40, 30, 10, 0.08),
    0 0 0 1px rgba(254, 229, 0, 0.25);
  transform: translateY(-1px);
}

.tabs__btn:hover:not(.is-active) {
  color: var(--warm-ink);
}

.panel {
  transition: opacity 0.35s ease;
}

.panel[hidden] {
  display: none !important;
}

.panel.is-active {
  display: block;
  animation: panel-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------- Buttons -------- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn--lg {
  min-width: 180px;
  padding: 15px 28px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.btn--block {
  width: 100%;
}

.btn--glow {
  box-shadow:
    0 12px 28px rgba(254, 200, 0, 0.38),
    0 2px 0 rgba(255, 255, 255, 0.4) inset;
}

.btn--glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 16px 36px rgba(254, 200, 0, 0.48),
    0 2px 0 rgba(255, 255, 255, 0.45) inset;
}

.btn--dark {
  box-shadow: 0 12px 28px rgba(28, 25, 20, 0.18);
}

.btn--dark:hover {
  background: #2a241c;
  transform: translateY(-2px) scale(1.02);
}

.btn__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: sheen 3.6s ease-in-out infinite;
}

.btn__sheen--soft {
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 62%
  );
}

.btn__icon {
  display: inline-flex;
  opacity: 0.92;
}

@keyframes sheen {
  0%, 55%, 100% { transform: translateX(-120%); }
  70% { transform: translateX(120%); }
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 0.75; transform: scale(1.12); }
}

/* -------- Hero -------- */
.download-hero {
  position: relative;
  min-height: calc(100vh - 92px);
  min-height: calc(100svh - 92px);
  display: flex;
  align-items: center;
  padding: 56px 0 72px;
}

.download-hero__inner {
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.brand-mark {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
  border-radius: 30px;
  padding: 5px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(254, 229, 0, 0.45));
  box-shadow:
    0 24px 55px rgba(254, 190, 0, 0.28),
    0 10px 24px rgba(40, 30, 10, 0.1);
  animation: brand-float 5.5s ease-in-out infinite;
}

.brand-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  object-fit: cover;
}

.brand-mark__ring {
  position: absolute;
  inset: -14px;
  border-radius: 38px;
  border: 1px solid rgba(230, 180, 40, 0.35);
  animation: ring-pulse 3.4s ease-out infinite;
}

.brand-mark__ring--b {
  inset: -26px;
  border-radius: 46px;
  border-color: rgba(230, 180, 40, 0.18);
  animation-delay: 1.1s;
}

.brand-mark__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 25px;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.55),
    transparent 42%,
    transparent 58%,
    rgba(255, 255, 255, 0.15)
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
}

@keyframes brand-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ring-pulse {
  0% { opacity: 0.7; transform: scale(0.92); }
  70%, 100% { opacity: 0; transform: scale(1.08); }
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 229, 0, 0.18);
  border: 1px solid rgba(230, 180, 40, 0.22);
  box-shadow: 0 4px 16px rgba(254, 200, 0, 0.08);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-deep);
  box-shadow: 0 0 0 0 rgba(230, 180, 40, 0.45);
  animation: dot-ping 2s ease-out infinite;
}

@keyframes dot-ping {
  0% { box-shadow: 0 0 0 0 rgba(230, 180, 40, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(230, 180, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 180, 40, 0); }
}

.download-hero .section-eyebrow {
  margin-bottom: 16px;
}

.download-hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.28;
  margin-bottom: 14px;
}

.download-hero__title-line {
  display: block;
}

.download-hero__title .highlight {
  position: relative;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(
    180deg,
    transparent 58%,
    rgba(254, 229, 0, 0.78) 58%,
    rgba(254, 229, 0, 0.78) 92%,
    transparent 92%
  );
  background-size: 100% 100%;
  animation: highlight-glow 3.8s ease-in-out infinite;
}

@keyframes highlight-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.05); }
}

.download-hero__sub {
  color: var(--warm-muted);
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.55;
  margin: 0 auto 30px;
  max-width: 22em;
}

.download-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.download-hero__actions .btn[hidden] {
  display: none;
}

.download-hero__hint {
  color: var(--warm-soft);
  font-size: 12.5px;
}

/* -------- Intro + mini phone (default desktop) -------- */
.intro {
  position: relative;
  padding: 72px 0 100px;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(255, 252, 242, 0.55) 18%, rgba(255, 249, 235, 0.92));
  border-top: 1px solid rgba(40, 30, 10, 0.05);
  pointer-events: none;
}

.intro__layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 980px;
}

.intro__copy {
  position: relative;
  padding: 34px 32px 36px;
  border-radius: 28px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(255, 252, 242, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 60px rgba(40, 30, 10, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(254, 229, 0, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.intro__copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}

.intro__title {
  font-size: clamp(1.95rem, 3.8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.intro__body {
  color: var(--warm-muted);
  font-size: 17px;
  line-height: 1.8;
}

.intro__body p + p {
  margin-top: 1.05em;
}

.intro__phone {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.mini-phone {
  width: min(280px, 72vw);
  animation: brand-float 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.mini-phone__bezel {
  position: relative;
  aspect-ratio: 9 / 19.2;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(165deg, #2c2c30 0%, #101012 100%);
  box-shadow:
    0 40px 80px rgba(28, 22, 12, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 40px rgba(254, 229, 0, 0.12);
}

.mini-phone__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  border-radius: 18px;
  background: #0a0a0b;
}

.mini-phone__screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background-color: #f7f7f7;
  background-image:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.98), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  background-size: cover;
  background-position: center;
}

.mini-phone__screen.is-wallpapered {
  background-image: var(--phone-wallpaper);
}

.mini-phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 6px;
  font-size: 11px;
  font-weight: 650;
  font-weight: 600;
  color: rgba(28, 25, 20, 0.82);
}

.mini-phone__status-icons {
  display: inline-flex;
  gap: 4px;
  font-size: 11px;
}

.mini-phone__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  padding: 14px 16px 0;
}

.mini-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.mini-app span {
  font-size: 10px;
  color: rgba(28, 25, 20, 0.78);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.62);
}

.mini-app__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: rgba(12, 12, 14, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 6px 13px rgba(25, 25, 25, 0.038), 0 0 0 0.5px rgba(25, 25, 25, 0.02);
  position: relative;
  overflow: hidden;
}

.mini-app__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.1) 56%, transparent);
  pointer-events: none;
}

.mini-app__icon i {
  position: relative;
  z-index: 1;
}

.mini-app__icon--wechat { background: linear-gradient(145deg, #fff 0%, #fff7c8 100%); }
.mini-app__icon--friend { background: linear-gradient(145deg, #fff 0%, #f7f4e8 100%); }
.mini-app__icon--meet { background: linear-gradient(145deg, #fff 0%, #fff9dc 100%); }
.mini-app__icon--char { background: linear-gradient(145deg, #fff 0%, #fff4ea 100%); }
.mini-app__icon--todo { background: linear-gradient(145deg, #fff 0%, #fff6c8 100%); }
.mini-app__icon--chagang { background: linear-gradient(145deg, #fff 0%, #f2f4fa 100%); }
.mini-app__icon--pet { background: linear-gradient(145deg, #fff 0%, #fff9d9 100%); }
.mini-app__icon--settings { background: linear-gradient(145deg, #fff 0%, #f5f5f5 100%); }

.mini-phone__dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 22px;
  background: color-mix(in srgb, #ffffff 34%, transparent);
  backdrop-filter: blur(34px);
  -webkit-backdrop-filter: blur(34px);
  border: 1px solid color-mix(in srgb, #ffffff 54%, rgba(25, 25, 25, 0.1));
  box-shadow:
    0 18px 44px rgba(17, 17, 17, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.mini-phone__dock .mini-app__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 18px;
}

/* -------- Pay -------- */
.pay-guide {
  min-height: calc(100vh - 170px);
  min-height: calc(100svh - 170px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 56px 0 72px;
  text-align: center;
}

.pay-guide__title {
  font-size: clamp(2.15rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.pay-guide__lead {
  color: var(--warm-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.pay-guide__card {
  width: min(100%, 520px);
  padding: 10px 8px 8px;
  border-radius: 28px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 235, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 28px 70px rgba(40, 30, 10, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(254, 229, 0, 0.1);
  text-align: left;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pay-guide__steps {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.pay-guide__steps li {
  display: grid;
  gap: 4px;
  padding: 16px 16px 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(254, 229, 0, 0.16), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(254, 229, 0, 0.22);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.pay-guide__steps li:hover {
  transform: translateY(-2px) translateX(2px);
  border-color: rgba(230, 180, 40, 0.45);
  box-shadow: 0 12px 28px rgba(254, 200, 0, 0.14);
}

.pay-guide__step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a07a00;
}

.pay-guide__step-text {
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--warm-ink);
}

.pay-guide__foot {
  margin: 4px 14px 14px;
  padding: 14px 12px 10px;
  border-top: 1px dashed rgba(40, 30, 10, 0.12);
  color: var(--warm-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* -------- Footer -------- */
.site-footer.footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(40, 30, 10, 0.05);
  background: transparent;
}

.site-footer .footer__brand {
  margin-bottom: 14px;
}

.site-footer .footer__brand img {
  border-radius: 8px;
}

.site-footer .footer__links {
  margin-bottom: 10px;
  gap: 14px 18px;
}

.site-footer .footer__links a {
  font-size: 13px;
  transition: color 0.2s ease;
}

.site-footer .footer__links a:hover {
  color: var(--warm-ink);
}

/* -------- Modal -------- */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 22, 12, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.25s ease;
}

.modal__dialog {
  position: relative;
  width: min(100%, 400px);
  max-height: min(90dvh, 90vh, calc(100% - 8px));
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 20px 16px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, #fffef6 0%, #ffffff 52%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 30px 80px rgba(20, 14, 6, 0.28),
    0 0 0 1px rgba(254, 229, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: dialog-in 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal__actions {
  flex: 0 0 auto;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
}

.modal__badge {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 18px;
  padding: 4px;
  background: linear-gradient(160deg, #fff, rgba(254, 229, 0, 0.5));
  box-shadow: 0 12px 26px rgba(254, 190, 0, 0.28);
}

.modal__badge-ring {
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  border: 1px solid rgba(230, 180, 40, 0.35);
  animation: ring-pulse 2.8s ease-out infinite;
}

.modal__badge img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.modal__title {
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.modal__body {
  color: #5c564c;
  font-size: 14.5px;
  line-height: 1.72;
  margin-bottom: 10px;
  text-align: left;
}

.modal__aside {
  color: #aea498;
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 4px;
  text-align: left;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .topbar__inner {
    width: calc(100% - 20px);
    padding: 10px 12px;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 16px;
  }

  .download-hero {
    min-height: calc(100vh - 118px);
    min-height: calc(100svh - 118px);
    padding: 36px 0 56px;
  }

  .brand-mark {
    width: 92px;
    height: 92px;
    border-radius: 26px;
  }

  .brand-mark img {
    border-radius: 21px;
  }

  .download-hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .intro__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro__copy {
    padding: 28px 20px 30px;
    border-radius: 22px;
    order: 2;
  }

  .intro__phone {
    order: 1;
  }

  .mini-phone {
    width: min(250px, 68vw);
  }

  .pay-guide__card {
    border-radius: 22px;
  }

  .ambient__spotlight {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient__orb,
  .ambient__grid,
  .ambient__aurora,
  .ambient__particle,
  .reveal,
  .brand-mark,
  .brand-mark__ring,
  .modal__badge-ring,
  .btn__sheen,
  .eyebrow-dot,
  .modal__backdrop,
  .modal__dialog,
  .panel.is-active,
  .panel.is-active .panel-rise,
  .topbar__logo-glow,
  .mini-phone {
    animation: none !important;
  }

  .reveal,
  .panel-rise {
    opacity: 1 !important;
    transform: none !important;
  }

  .ambient__spotlight {
    display: none;
  }
}
