/* Mahjong marketing — jade table, wood doors, botanical calm */

:root {
  --jade: #1b4d3e;
  --jade-deep: #0f2f27;
  --jade-mid: #246b54;
  --jade-soft: #2f7a62;
  --wood: #5c3a22;
  --wood-deep: #3a2416;
  --bronze: #8b5a2b;
  --bronze-lite: #c48a45;
  --cream: #f3ebe0;
  --foam: #fff8ef;
  --orange: #f08a2a;
  --orange-deep: #d96a12;
  --ink: #1a120c;
  --muted: #d7cfc3;
  --display: "Fraunces", "Palatino Linotype", Georgia, serif;
  --body: "Nunito", "Avenir Next", system-ui, sans-serif;
  --shell: 70rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--foam);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(47, 122, 98, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, var(--jade-mid) 0%, var(--jade) 42%, var(--jade-deep) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: #ffd7a0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -4rem;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.55rem 1rem;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
}

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

/* Floating bamboo leaves */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.leaf {
  position: absolute;
  width: 18px;
  height: 42px;
  background: linear-gradient(160deg, #6fbf5a, #2f7a3a);
  border-radius: 80% 0 80% 0;
  opacity: 0.28;
  filter: blur(0.2px);
  animation: leafDrift 18s linear infinite;
}

.leaf--1 { left: 8%; top: -10%; animation-duration: 22s; }
.leaf--2 { left: 28%; top: -20%; width: 14px; height: 34px; opacity: 0.2; animation-duration: 26s; animation-delay: -6s; }
.leaf--3 { left: 62%; top: -15%; animation-duration: 20s; animation-delay: -10s; }
.leaf--4 { left: 84%; top: -25%; width: 16px; height: 38px; opacity: 0.22; animation-duration: 24s; animation-delay: -3s; }

@keyframes leafDrift {
  from { transform: translate3d(0, 0, 0) rotate(12deg); }
  to { transform: translate3d(-40px, 110vh, 0) rotate(48deg); }
}

/* Header */
.top {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  padding: 0.85rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.top.is-solid {
  background: rgba(15, 47, 39, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(196, 138, 69, 0.25);
}

.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--foam);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}

.mark img {
  border-radius: 10px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.top__nav a {
  color: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.top__nav a:hover {
  color: #fff;
}

.top__cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff !important;
  box-shadow: 0 3px 0 #9a4a0c, inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Hero — full-bleed splash */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  animation: heroBreathe 14s ease-in-out infinite alternate;
}

@keyframes heroBreathe {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 47, 39, 0.05) 0%, rgba(15, 47, 39, 0.08) 42%, rgba(15, 47, 39, 0.78) 70%, var(--jade-deep) 100%);
}

.hero__content {
  padding: 7.5rem 0 3.5rem;
  text-align: center;
  max-width: 40rem;
}

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

.hero__lede {
  margin: 0 auto 1.6rem;
  max-width: 22rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 600;
  color: rgba(255, 248, 239, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.35rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  border: 0;
}

.btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.btn--play {
  background: linear-gradient(180deg, #ff9d3d 0%, var(--orange-deep) 100%);
  color: #fff;
  box-shadow:
    0 4px 0 #9a4a0c,
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--soon {
  background: rgba(58, 36, 22, 0.55);
  color: var(--cream);
  border: 1px solid rgba(196, 138, 69, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.motion-rise {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.85s ease forwards;
}

.motion-rise--2 { animation-delay: 0.12s; }
.motion-rise--3 { animation-delay: 0.24s; }

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Features — jade section with floral pattern */
.features {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 138, 69, 0.08), transparent 40%),
    var(--jade);
}

.features::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.2' d='M40 12c8 8 8 20 0 28-8-8-8-20 0-28zm0 28c8 8 8 20 0 28-8-8-8-20 0-28zM12 40c8-8 20-8 28 0-8 8-20 8-28 0zm28 0c8-8 20-8 28 0-8 8-20 8-28 0z'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

.features__grid {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature {
  text-align: center;
  padding: 0.5rem 0.75rem 1rem;
}

.feature__tile {
  width: 4.25rem;
  height: 5.1rem;
  margin: 0 auto 1rem;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #fffef9 0%, #f0e6d6 100%);
  box-shadow:
    0 2px 0 #c9b89a,
    4px 6px 0 rgba(0, 0, 0, 0.18),
    inset 0 1px 0 #fff;
  display: grid;
  place-items: center;
}

.feature__glyph {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
}

.feature__glyph--bamboo {
  background:
    linear-gradient(90deg, transparent 38%, #2f8a45 38% 46%, transparent 46%),
    linear-gradient(90deg, transparent 52%, #3aa356 52% 60%, transparent 60%),
    linear-gradient(90deg, transparent 28%, #247a3a 28% 34%, transparent 34%);
  border-radius: 0;
  height: 2.4rem;
}

.feature__glyph--flower {
  background:
    radial-gradient(circle at 50% 50%, #f2c94c 0 22%, transparent 23%),
    radial-gradient(circle at 50% 18%, #e85d4c 0 28%, transparent 29%),
    radial-gradient(circle at 82% 50%, #e85d4c 0 28%, transparent 29%),
    radial-gradient(circle at 50% 82%, #e85d4c 0 28%, transparent 29%),
    radial-gradient(circle at 18% 50%, #e85d4c 0 28%, transparent 29%);
}

.feature__glyph--hint {
  background: radial-gradient(circle at 50% 40%, #ffe08a 0 35%, transparent 36%),
    linear-gradient(#c48a45, #c48a45);
  clip-path: polygon(35% 55%, 65% 55%, 62% 78%, 38% 78%, 42% 100%, 58% 100%, 70% 55%, 78% 42%, 70% 12%, 50% 0, 30% 12%, 22% 42%, 30% 55%);
  background: #ffd24a;
}

.feature h3 {
  font-size: 1.35rem;
  color: var(--foam);
  margin-bottom: 0.45rem;
}

.feature p {
  margin: 0;
  color: rgba(243, 235, 224, 0.82);
  font-size: 0.98rem;
}

/* Showcase */
.showcase {
  position: relative;
  z-index: 1;
  padding: 2rem 0 4.5rem;
  background:
    linear-gradient(180deg, var(--jade) 0%, var(--jade-deep) 100%);
}

.showcase__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .showcase__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
  }
}

.showcase__phone {
  margin: 0;
  justify-self: center;
  width: min(100%, 17.5rem);
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(196, 138, 69, 0.45),
    0 0 0 8px rgba(58, 36, 22, 0.55),
    0 28px 50px rgba(0, 0, 0, 0.4);
  transform: rotate(-2deg);
}

.showcase__phone img {
  width: 100%;
}

.showcase__copy .kicker,
.how__copy .kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-lite);
}

.showcase__copy h2,
.how__copy h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  color: var(--foam);
  margin-bottom: 0.85rem;
}

.showcase__copy p,
.how__copy p {
  color: rgba(243, 235, 224, 0.84);
  margin: 0 0 0.85rem;
}

.pill-tag {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cream);
  background: rgba(58, 36, 22, 0.55);
  border: 1px solid rgba(196, 138, 69, 0.4);
}

/* How to play */
.how {
  position: relative;
  z-index: 1;
  padding: 1rem 0 4.5rem;
  background: var(--jade-deep);
}

.how__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .how__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

.how__beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.how__beats li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(27, 77, 62, 0.55);
  border: 1px solid rgba(196, 138, 69, 0.28);
}

.how__num {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--bronze-lite), var(--wood));
  box-shadow: 0 2px 0 var(--wood-deep), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.how__beats h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--foam);
}

.how__beats p {
  margin: 0;
  color: rgba(243, 235, 224, 0.8);
  font-size: 0.95rem;
}

/* Closing CTA */
.close {
  position: relative;
  z-index: 1;
  padding: 1rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(240, 138, 42, 0.18), transparent 60%),
    var(--jade-deep);
}

.close__inner {
  text-align: center;
  max-width: 32rem;
}

.close__icon {
  margin: 0 auto 1.1rem;
  border-radius: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.close h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.55rem;
}

.close p {
  margin: 0 auto 1.4rem;
  color: rgba(243, 235, 224, 0.85);
}

.close .btn {
  margin-inline: auto;
}

/* Footer — dark wood */
.foot {
  position: relative;
  z-index: 1;
  padding: 2.25rem 0 2.5rem;
  background:
    linear-gradient(180deg, #4a2e1a 0%, var(--wood-deep) 100%);
  border-top: 3px solid rgba(196, 138, 69, 0.45);
}

.foot__inner {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.foot__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 800;
}

.foot__brand img {
  border-radius: 7px;
}

.foot__by {
  font-weight: 600;
  color: rgba(243, 235, 224, 0.7);
  font-size: 0.9rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.35rem;
}

.foot__links a {
  color: #ffd7a0;
  font-weight: 700;
  font-size: 0.92rem;
}

.foot__note {
  margin: 0;
  color: rgba(243, 235, 224, 0.55);
  font-size: 0.85rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .top__nav a:not(.top__cta) {
    display: none;
  }

  .hero__content {
    padding-top: 6.5rem;
    padding-bottom: 2.75rem;
  }
}
