/* ============================================================
   MONEYDOG — design tokens
   ============================================================ */
:root {
  --bg: #ffffff;
  --ink: #12261a;
  --green: #1f4d2e;
  --green-deep: #0e2416;
  --gold: #f2b705;
  --gold-soft: #ffd85c;
  --gold-deep: #c98a02;
  --shadow: rgba(18, 38, 26, 0.18);

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
}

body {
  min-height: 100vh;
  position: relative;
}

/* ============================================================
   Falling money & dogs — parallax layer
   ============================================================ */
.falling-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.falling-item {
  position: absolute;
  top: -12vh;
  left: var(--x, 50%);
  width: var(--size, 60px);
  height: var(--size, 60px);
  object-fit: contain;
  opacity: var(--opacity, 1);
  filter: blur(var(--blur, 0px));
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--duration, 12s);
  animation-delay: var(--delay, 0s);
  will-change: transform;
  user-select: none;
}

@keyframes fall {
  0% {
    transform: translateY(-12vh) rotate(0deg);
  }
  100% {
    transform: translateY(112vh) rotate(var(--spin, 720deg));
  }
}

/* ============================================================
   Hero stage — MoneyDog main image
   ============================================================ */
.stage {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
  animation: sway 4.2s ease-in-out infinite;
  filter: drop-shadow(0 18px 34px var(--shadow));
}

.hero-wrap:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 10px;
  border-radius: 24px;
}

.hero-wrap.is-hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes sway {
  0%   { transform: rotate(-6deg); }
  50%  { transform: rotate(6deg); }
  100% { transform: rotate(-6deg); }
}

.hero-img {
  display: block;
  width: min(46vw, 300px);
  height: auto;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.hero-wrap:hover .hero-img,
.hero-wrap:focus-visible .hero-img {
  transform: scale(1.12);
}

/* ============================================================
   Modal overlay
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 650px;
  font-family: Arial, sans-serif;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0;
  padding: 18px 30px 28px;
  border: 2px solid #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.8) translateY(18px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal-overlay.is-open .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-card:hover {
  transform: scale(1.03) translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

.modal-badge {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(18, 38, 26, 0.25));
}

.modal-header h2 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #000000;
  text-align: center;
}

.ca-block {
  background: rgba(0, 0, 0, 0.04);
  border: 2px solid #ffffff;
  border-radius: 0;
  padding: 18px 18px;
  margin-bottom: 20px;
}

.ca-label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ca-text {
  flex: 1;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #000000;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 0;
  border: none;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.copy-btn:hover { background: #333333; }
.copy-btn:active { transform: scale(0.94); }

.copy-btn.copied {
  background: #555555;
}

.modal-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border-radius: 0;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.link-btn:hover {
  transform: translateY(-2px);
}

.link-x {
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
}

.link-x:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.link-pump {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

.link-pump:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 560px) {
  .hero-img { width: 62vw; }
  .modal-card { padding: 28px 20px 24px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-wrap { animation: none; }
  .falling-item { animation-duration: 40s !important; }
}