/* ==========================================================================
   Mahjong Pa More — Marketing landing page (mahjong.pamore.app root).
   Separate from the game bundle; reuses the design tokens (tokens.css) for
   brand consistency (felt green, marigold gold, Capiz bone, Bricolage/Instrument).
   Single dark theme to match the game. "Play in your browser" -> play.html.
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--bone);
  background: var(--baize-deep);
  background-image: var(--banig), var(--felt-app);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(6,35,26,0.86), rgba(6,35,26,0.42));
  border-bottom: 1px solid var(--line-gold);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: .2px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.brand span { font-size: 18px; color: var(--bone-bright); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--bone-dim); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--bone-bright); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-ui); font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn--gold { background: var(--grad-gold); color: #3a2708; box-shadow: var(--glow-gold), 0 8px 22px rgba(0,0,0,.28); }
.btn--gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--ghost { background: rgba(237,227,206,.06); color: var(--bone-bright); border: 1px solid var(--line-gold-2); }
.btn--ghost:hover { background: rgba(237,227,206,.12); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 18px; }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 66px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-hi); background: rgba(224,164,44,.10);
  border: 1px solid var(--line-gold-2); padding: 6px 13px; border-radius: var(--r-pill);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800; line-height: .98;
  font-size: clamp(42px, 7vw, 74px); margin: 18px 0 6px; color: var(--bone-bright);
  text-wrap: balance;
}
.hero h1 .accent { background: var(--grad-gold-sheen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--bone-dim); max-width: 40ch; margin: 4px 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-art { position: relative; }
.hero-art .frame { transform: rotate(-2.2deg); }
.hero-art .frame:nth-child(2) { position: absolute; right: -6%; bottom: -14%; width: 52%; transform: rotate(4deg); z-index: 2; }

/* Screenshot "device" frame (landscape game shots) */
.frame {
  border-radius: 16px; overflow: hidden; background: #06231A;
  border: 1px solid rgba(224,164,44,.28);
  box-shadow: var(--shadow-pop), inset 0 0 0 1px rgba(255,255,255,.04);
}
.frame img { width: 100%; height: auto; }

/* --- Store badges ------------------------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; padding: 9px 16px; min-width: 168px;
  transition: transform .12s ease, border-color .2s ease;
}
.badge:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.5); }
.badge svg { flex: none; }
.badge .lines { display: flex; flex-direction: column; line-height: 1.05; }
.badge .lines small { font-size: 10px; letter-spacing: .02em; opacity: .82; font-weight: 500; }
.badge .lines b { font-size: 19px; font-weight: 600; letter-spacing: .01em; }

/* --- Section scaffolding ------------------------------------------------ */
section { padding: 58px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4.4vw, 40px); margin: 0 0 10px; color: var(--bone-bright); }
.section-head p { color: var(--bone-dim); font-size: 17px; margin: 0; }
.kicker { display: block; color: var(--gold-hi); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }

/* --- Features ----------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--felt-card); border: 1px solid var(--line-gold);
  border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--shadow-card);
}
.feature .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(224,164,44,.12); border: 1px solid var(--line-gold-2); font-size: 22px; margin-bottom: 14px; }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 7px; color: var(--bone-bright); }
.feature p { margin: 0; color: var(--bone-dim); font-size: 15px; }

/* --- Screenshot gallery ------------------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.shots .frame:first-child { grid-column: 1 / -1; }
.shots figcaption { text-align: center; color: var(--bone-faint); font-size: 13px; margin-top: 9px; font-weight: 600; letter-spacing: .02em; }

/* --- Trust band (no gambling) ------------------------------------------- */
.trust { text-align: center; }
.trust .band {
  background: var(--felt-card); border: 1px solid var(--line-gold-2);
  border-radius: var(--r-xl); padding: 40px 34px; box-shadow: var(--shadow-card);
}
.trust .band .seal { font-size: 30px; margin-bottom: 8px; }
.trust .band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.6vw, 32px); margin: 0 0 10px; color: var(--bone-bright); }
.trust .band p { color: var(--bone-dim); max-width: 60ch; margin: 0 auto; font-size: 16.5px; }

/* --- Final CTA ---------------------------------------------------------- */
.cta-final { text-align: center; }
.cta-final h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 5vw, 46px); margin: 0 0 8px; color: var(--bone-bright); }
.cta-final p { color: var(--bone-dim); font-size: 18px; margin: 0 0 26px; }
.cta-final .hero-cta, .cta-final .badges { justify-content: center; }
.cta-final .badges { display: inline-flex; margin-top: 20px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line-gold); padding: 40px 0 54px; margin-top: 20px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer .brand span { font-size: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--bone-dim); font-weight: 600; font-size: 15px; }
.foot-links a:hover { color: var(--bone-bright); }
.copy { color: var(--bone-faint); font-size: 13.5px; width: 100%; margin-top: 6px; }
.copy a { color: var(--bone-dim); }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .hero { padding: 40px 0 20px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { order: -1; }
  .hero-art .frame { transform: none; }
  .hero-art .frame:nth-child(2) { display: none; }
  .hero .lead { max-width: none; }
  .hero-cta { }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .btn--lg { width: 100%; }
  .badge { flex: 1 1 auto; }
}
