/* ==========================================================================
   Harmony Wealth: Mahjong Match — Landing Page Styles
   Theme: Deep forest green + gold kawaii mahjong garden
   ========================================================================== */

:root {
  --green-deep: #0d3320;
  --green-forest: #1b5e20;
  --green-mid: #2e7d32;
  --green-light: #4caf50;
  --gold-bright: #ffd54f;
  --gold-deep: #f9a825;
  --blue-tile: #0288d1;
  --blue-light: #4fc3f7;
  --cream: #fff8e1;
  --cream-soft: #f5f0e1;
  --white: #ffffff;
  --pink-accent: #f06292;
  --text-primary: #ffffff;
  --text-muted: #a5d6a7;
  --text-dark: #1a3a24;
  --shadow-tile: 0 6px 0 #01579b, 0 12px 24px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 4px 0 #c17900, 0 8px 20px rgba(249, 168, 37, 0.35);
  --radius-tile: 18px;
  --radius-pill: 999px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --nav-height: 72px;
  --dock-height: 88px;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--green-deep);
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-height) + 16px);
}

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

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--gold-bright);
  color: var(--text-dark);
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

/* ---- Background layers ---- */
.garden-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(165deg, var(--green-deep) 0%, var(--green-forest) 45%, #143d28 100%);
}

.garden-bg__layer {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}

.garden-bg__layer--bamboo {
  background-image:
    radial-gradient(ellipse 120px 200px at 8% 20%, var(--green-light) 0%, transparent 70%),
    radial-gradient(ellipse 80px 160px at 92% 60%, var(--green-light) 0%, transparent 70%),
    repeating-linear-gradient(
      105deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.03) 80px,
      rgba(255, 255, 255, 0.03) 82px
    );
}

.garden-bg__layer--floral {
  background-image:
    radial-gradient(circle 60px at 15% 75%, var(--pink-accent) 0%, transparent 100%),
    radial-gradient(circle 40px at 85% 25%, var(--gold-bright) 0%, transparent 100%),
    radial-gradient(circle 50px at 70% 85%, var(--pink-accent) 0%, transparent 100%);
}

.garden-bg__glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 213, 79, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Floating petals */
.petals { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.petal {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50% 0 50% 50%;
  background: var(--pink-accent);
  opacity: 0.25;
  animation: floatPetal 18s ease-in-out infinite;
}

.petal--1 { top: 15%; left: 10%; animation-delay: 0s; }
.petal--2 { top: 40%; right: 8%; animation-delay: -4s; background: var(--gold-bright); }
.petal--3 { top: 70%; left: 20%; animation-delay: -8s; width: 8px; height: 8px; }
.petal--4 { top: 55%; right: 18%; animation-delay: -12s; background: var(--blue-light); }

@keyframes floatPetal {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(90deg); }
  50% { transform: translate(-10px, -60px) rotate(180deg); }
  75% { transform: translate(15px, -30px) rotate(270deg); }
}

/* ---- Ribbon nav ---- */
.ribbon-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.ribbon-nav--scrolled {
  background: rgba(13, 51, 32, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.ribbon-nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1120px;
  margin-inline: auto;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 213, 79, 0.2);
  border-radius: var(--radius-pill);
}

.ribbon-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  flex-shrink: 0;
}

.ribbon-nav__icon {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ribbon-nav__name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ribbon-nav__name strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-bright);
}

.ribbon-nav__name small {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.ribbon-nav__links {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
}

.ribbon-nav__links a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  cursor: pointer;
}

.ribbon-nav__links a:hover,
.ribbon-nav__links a:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

.ribbon-nav__cta {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition), filter var(--transition);
  cursor: pointer;
}

.ribbon-nav__cta:hover { transform: translateY(-2px); filter: brightness(1.05); }

.ribbon-nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  color: var(--gold-bright);
  border-radius: 12px;
  transition: background var(--transition);
  cursor: pointer;
}

.ribbon-nav__menu:hover { background: rgba(255, 255, 255, 0.08); }

.ribbon-nav__menu svg { width: 22px; height: 22px; }

/* ---- Mobile panel ---- */
.mobile-panel[hidden] { display: none; }

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mobile-panel__sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  padding: 1.5rem;
  background: var(--green-deep);
  border-left: 2px solid rgba(255, 213, 79, 0.25);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideIn 250ms ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-panel__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-panel__close:hover { background: rgba(255, 255, 255, 0.08); }

.mobile-panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-panel nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-radius: 12px;
  transition: background var(--transition);
  cursor: pointer;
}

.mobile-panel nav a:hover { background: rgba(255, 255, 255, 0.06); }

.mobile-panel nav svg { width: 20px; height: 20px; color: var(--gold-bright); }

.mobile-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

/* ---- Tile dock (bottom game-style nav) ---- */
.tile-dock {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: rgba(13, 51, 32, 0.95);
  border: 2px solid rgba(255, 213, 79, 0.3);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.tile-dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 14px;
  transition: transform var(--transition), background var(--transition);
  cursor: pointer;
  min-width: 56px;
}

.tile-dock__item:hover { transform: translateY(-3px); }

.tile-dock__face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(180deg, var(--white) 0%, #e3f2fd 100%);
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--blue-tile), 0 6px 12px rgba(0, 0, 0, 0.25);
  color: var(--blue-tile);
  transition: box-shadow var(--transition), transform var(--transition);
}

.tile-dock__face svg { width: 20px; height: 20px; }

.tile-dock__item--active .tile-dock__face {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 4px 0 #c17900, 0 6px 12px rgba(249, 168, 37, 0.3);
  color: var(--text-dark);
  transform: translateY(-4px);
}

.tile-dock__item--cta .tile-dock__face {
  background: linear-gradient(180deg, var(--pink-accent), #e91e63);
  box-shadow: 0 4px 0 #ad1457, 0 6px 12px rgba(240, 98, 146, 0.35);
  color: var(--white);
}

.tile-dock__label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tile-dock__item--active .tile-dock__label { color: var(--gold-bright); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
  cursor: pointer;
  min-height: 48px;
}

.btn svg { width: 20px; height: 20px; }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: var(--text-dark);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover { transform: translateY(-2px); filter: brightness(1.06); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn--outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

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

.btn:focus-visible,
.store-btn:focus-visible,
.ribbon-nav__cta:focus-visible,
.tile-dock__item:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 2rem) 1rem 5rem;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 1120px;
  margin-inline: auto;
}

.hero__shield {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 1.75rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, var(--green-mid), var(--green-forest));
  border: 3px solid var(--gold-bright);
  border-radius: 16px 16px 24px 24px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
  padding-bottom: 1.75rem;
}

.hero__shield-top {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.hero__shield-bottom {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.hero__title-accent {
  color: var(--gold-bright);
  display: inline-block;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hero__badges svg { width: 16px; height: 16px; color: var(--gold-bright); }

/* Phone mockup + tile cascade */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: min(260px, 72vw);
  padding: 10px;
  background: linear-gradient(145deg, #333, #111);
  border-radius: 36px;
  box-shadow:
    0 0 0 2px rgba(255, 213, 79, 0.3),
    0 24px 48px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.phone-frame__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #111;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone-frame__screen {
  border-radius: 28px;
  width: 100%;
  aspect-ratio: 390 / 780;
  object-fit: cover;
}

.tile-cascade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tile-cascade__piece {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 72px;
  background: linear-gradient(180deg, var(--white), #e3f2fd);
  border-radius: 10px;
  box-shadow: var(--shadow-tile);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-tile);
  animation: tileBob 4s ease-in-out infinite;
}

.tile-cascade__piece svg { width: 24px; height: 24px; }

.tile-cascade__piece--1 { top: 5%; right: 0; animation-delay: 0s; }
.tile-cascade__piece--2 { top: 35%; left: -8%; animation-delay: -1s; color: var(--green-forest); }
.tile-cascade__piece--3 { bottom: 20%; right: -5%; animation-delay: -2s; }
.tile-cascade__piece--4 { bottom: 5%; left: 5%; animation-delay: -3s; background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); color: var(--text-dark); }

@keyframes tileBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: 2rem;
}

.wave-divider--hero { margin-top: 3rem; }

/* ---- Features (zigzag bamboo path) ---- */
.features {
  position: relative;
  background: var(--cream-soft);
  color: var(--text-dark);
  padding: 4rem 0 5rem;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head--light .section-head__title { color: var(--white); }
.section-head--light .section-head__lead { color: var(--text-muted); }

.pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(27, 94, 32, 0.12);
  color: var(--green-forest);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.pill--gold {
  background: rgba(255, 213, 79, 0.15);
  color: var(--gold-bright);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--green-deep);
}

.section-head__lead {
  color: #4a6b55;
  margin: 0;
  font-size: 1.05rem;
}

.bamboo-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin-inline: auto;
}

.bamboo-path__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    180deg,
    var(--green-mid) 0px,
    var(--green-mid) 12px,
    transparent 12px,
    transparent 20px
  );
  border-radius: 2px;
  opacity: 0.35;
}

.feature-tile {
  position: relative;
  width: min(420px, 92%);
  cursor: default;
}

.feature-tile--left { align-self: flex-start; margin-right: auto; }
.feature-tile--right { align-self: flex-end; margin-left: auto; }

.feature-tile__face {
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border-radius: var(--radius-tile);
  box-shadow:
    0 6px 0 var(--blue-tile),
    0 12px 28px rgba(2, 136, 209, 0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-tile__face:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 0 var(--blue-tile),
    0 16px 36px rgba(2, 136, 209, 0.22);
}

.feature-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, var(--green-forest), var(--green-mid));
  border-radius: 14px;
  color: var(--gold-bright);
}

.feature-tile__icon svg { width: 24px; height: 24px; }

.feature-tile__face h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--green-deep);
}

.feature-tile__face p {
  margin: 0;
  font-size: 0.95rem;
  color: #4a6b55;
  line-height: 1.6;
}

.wave-divider--features {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
}

/* ---- Gallery (fan spread) ---- */
.gallery {
  padding: 4rem 0 5rem;
  background: var(--green-deep);
  overflow: visible;
}

.fan-gallery {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 520px;
  perspective: 900px;
  padding: 2.5rem 0 3rem;
  overflow: visible;
}

.fan-gallery__card {
  position: absolute;
  margin: 0;
  padding: 6px;
  background: linear-gradient(180deg, var(--white), #e3f2fd);
  border-radius: 16px;
  box-shadow: var(--shadow-tile);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--transition);
  cursor: pointer;
  bottom: 0;
}

.fan-gallery__card img {
  border-radius: 12px;
  width: min(200px, 38vw);
  aspect-ratio: 280 / 560;
  object-fit: cover;
}

/* Fan positions — slot 3 is the front center */
.fan-gallery__card[data-slot="1"] { transform: rotate(-18deg) translateX(-180px); z-index: 1; }
.fan-gallery__card[data-slot="2"] { transform: rotate(-9deg) translateX(-90px); z-index: 2; }
.fan-gallery__card[data-slot="3"] { transform: rotate(0deg) translateY(-20px) scale(1.05); z-index: 5; }
.fan-gallery__card[data-slot="4"] { transform: rotate(9deg) translateX(90px); z-index: 2; }
.fan-gallery__card[data-slot="5"] { transform: rotate(18deg) translateX(180px); z-index: 1; }

.fan-gallery__card[data-slot="3"] {
  box-shadow: 0 8px 0 #01579b, 0 16px 36px rgba(0, 0, 0, 0.4);
}

/* ---- Download ---- */
.download {
  padding: 2rem 0 4rem;
  background: var(--green-deep);
}

.download__banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--green-forest), var(--green-mid));
  border: 3px solid var(--gold-bright);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.download__mascot { flex-shrink: 0; }

.download__mascot-img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-tile);
  object-fit: cover;
}

.download__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--gold-bright);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.download__text {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.download__stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: var(--white);
  text-align: left;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  cursor: pointer;
  min-height: 56px;
  min-width: 180px;
}

.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn small {
  font-size: 0.68rem;
  opacity: 0.75;
}

.store-btn strong {
  font-size: 1rem;
  font-weight: 800;
}

.store-btn:hover {
  transform: translateY(-3px);
  border-color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.5);
}

.store-btn--play:hover { border-color: var(--blue-light); }

/* ---- Footer ---- */
.site-footer {
  padding: 2rem 0 1rem;
  background: #081f14;
  border-top: 1px solid rgba(255, 213, 79, 0.12);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-bright);
}

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

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.site-footer__links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  cursor: pointer;
}

.site-footer__links a:hover { color: var(--gold-bright); }

.site-footer__copy {
  font-size: 0.78rem;
  color: rgba(165, 214, 167, 0.6);
  margin: 0;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem 1.75rem;
  background: var(--green-forest);
  border: 3px solid var(--gold-bright);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: modalPop 280ms ease;
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition);
}

.modal__close:hover { background: rgba(255, 255, 255, 0.08); }

.modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(255, 213, 79, 0.15);
  border-radius: 50%;
  color: var(--gold-bright);
}

.modal__icon svg { width: 32px; height: 32px; }

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--gold-bright);
}

.modal__text {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
  .ribbon-nav__links { display: flex; }
  .ribbon-nav__cta { display: inline-flex; }
  .ribbon-nav__menu { display: none; }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .phone-frame { width: 280px; }

  .fan-gallery__card img { width: 220px; }

  .fan-gallery {
    min-height: 580px;
    padding: 3rem 0 3.5rem;
  }

  .download__banner {
    flex-direction: row;
    text-align: left;
    padding: 2.5rem 3rem;
  }

  .download__text { margin-inline: 0; }

  .download__stores { justify-content: flex-start; }

  .site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }

  .site-footer__copy { width: 100%; text-align: center; margin-top: 0.5rem; }
}

@media (min-width: 1024px) {
  .tile-dock { gap: 0.5rem; padding: 0.6rem 1rem; }

  .tile-dock__item { min-width: 64px; }

  .fan-gallery__card[data-slot="1"] { transform: rotate(-18deg) translateX(-240px); }
  .fan-gallery__card[data-slot="2"] { transform: rotate(-9deg) translateX(-120px); }
  .fan-gallery__card[data-slot="4"] { transform: rotate(9deg) translateX(120px); }
  .fan-gallery__card[data-slot="5"] { transform: rotate(18deg) translateX(240px); }

  .fan-gallery__card img { width: 260px; }

  .fan-gallery {
    min-height: 640px;
    padding: 3rem 0 4rem;
  }
}

@media (max-width: 640px) {
  .fan-gallery {
    flex-direction: column;
    align-items: center;
    min-height: auto;
    gap: 1rem;
    perspective: none;
  }

  .fan-gallery__card {
    position: relative;
    bottom: auto;
    transform: none !important;
    order: var(--slot-order, 0);
  }

  .fan-gallery__card[data-slot="1"] { --slot-order: 1; }
  .fan-gallery__card[data-slot="2"] { --slot-order: 2; }
  .fan-gallery__card[data-slot="3"] {
    --slot-order: 3;
    transform: scale(1.03) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
  .fan-gallery__card[data-slot="4"] { --slot-order: 4; }
  .fan-gallery__card[data-slot="5"] { --slot-order: 5; }

  .fan-gallery__card img {
    width: min(240px, 70vw);
  }

  .bamboo-path__line { display: none; }

  .feature-tile,
  .feature-tile--left,
  .feature-tile--right {
    width: 100%;
    align-self: center;
    margin: 0;
  }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(var(--dock-height) + 24px); }
}
