/* Home page only. Shared tokens, glass and article styles live in style.css. */

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

/* Floating glass bar, like the app's tab bar. */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  padding: 0 12px;
}

.topbar .bar {
  max-width: 1160px;
  margin: 12px auto 0;
  height: 60px;
  padding: 0 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), 0 14px 34px -12px rgba(0, 0, 0, 0.7);
}

.topbar .mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.topbar .mark img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 16px -6px rgba(45, 212, 191, 0.8);
}

.topbar .mark b {
  color: var(--accent-strong);
}

.topbar nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.topbar nav a {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.topbar nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.topbar .get {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---- Hero ---- */
.hero {
  padding: 64px 0 24px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.chip i {
  color: var(--accent-strong);
  font-size: 1rem;
}

.hero h1 {
  margin: 20px 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: var(--accent-strong);
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34em;
  text-wrap: pretty;
}

.stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 520px;
}

.store {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), 0 14px 30px -16px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s;
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(94, 234, 212, 0.4), 0 18px 34px -16px rgba(0, 0, 0, 0.8);
}

.store i {
  font-size: 1.7rem;
  flex: none;
}

.store small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 600;
}

.store strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.15;
}

.store.primary {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 16px 34px -14px rgba(45, 212, 191, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.store.primary small {
  color: rgba(4, 35, 33, 0.7);
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.rating .stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.rating strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Fan of real Play screenshots. */
.fan {
  position: relative;
  height: 540px;
}

.fan img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 236px;
  height: auto;
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 34px 60px -24px rgba(0, 0, 0, 0.9);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fan img:nth-child(1) {
  transform: translate(-112%, -46%) rotate(-9deg);
}

.fan img:nth-child(2) {
  z-index: 2;
  transform: translate(-50%, -52%);
}

.fan img:nth-child(3) {
  transform: translate(12%, -46%) rotate(9deg);
}

.fan:hover img:nth-child(1) {
  transform: translate(-122%, -46%) rotate(-12deg);
}

.fan:hover img:nth-child(3) {
  transform: translate(22%, -46%) rotate(12deg);
}

.fan .float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}

.fan .float .ib {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
}

.fan .float small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-faint);
}

.fan .f1 {
  top: 58%;
  left: -2%;
}

.fan .f2 {
  bottom: 8%;
  right: 0;
  animation-delay: -3s;
}

@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}

/* ---- Sections ---- */
.section {
  padding: 104px 0 0;
  scroll-margin-top: 90px;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 18em;
  text-wrap: balance;
}

.section .sub {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 38em;
  text-wrap: pretty;
}

/* Feature bento: sizes follow what matters most for passing the exam. */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 40px;
  grid-template-areas:
    "ai ai ai real real real"
    "ai ai ai mist mist mist"
    "topic topic off off duel duel"
    "stat stat plat plat plat plat";
}

.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px;
  min-height: 190px;
}

.tile h3 {
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tile p {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 34em;
}

.ic {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--c)), rgba(var(--c), 0.6));
  box-shadow: 0 10px 22px -8px rgba(var(--c), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.t-ai {
  grid-area: ai;
  background: linear-gradient(160deg, rgba(45, 212, 191, 0.22), var(--glass) 55%);
}

.t-real {
  grid-area: real;
}

.t-mist {
  grid-area: mist;
}

.t-topic {
  grid-area: topic;
}

.t-off {
  grid-area: off;
}

.t-duel {
  grid-area: duel;
}

.t-stat {
  grid-area: stat;
}

.t-plat {
  grid-area: plat;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.tags span {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--stroke);
}

.ai-shot {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  justify-content: center;
}

.ai-shot img {
  width: min(100%, 230px);
  border-radius: 22px;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 26px 50px -22px rgba(0, 0, 0, 0.9);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.platforms span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--stroke);
}

.platforms i {
  font-size: 1.2rem;
  color: var(--accent-strong);
}

/* Screenshots section reuses .play-gallery from style.css. */
#play-gallery {
  margin-top: 36px;
}

/* ---- FAQ ---- */
.faq {
  margin-top: 36px;
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq details {
  border-radius: 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary i {
  margin-left: auto;
  color: var(--text-faint);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq details[open] summary i {
  transform: rotate(180deg);
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  max-width: 62ch;
}

/* ---- Blog teaser ---- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.posts a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
}

.posts a:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(94, 234, 212, 0.35), var(--glass-drop);
}

.posts h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  text-wrap: balance;
}

.posts p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.posts .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

.all-posts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

/* ---- Final call ---- */
.final {
  position: relative;
  overflow: hidden;
  margin-top: 104px;
  padding: 64px 28px;
  text-align: center;
}

.final::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto;
  height: 120%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.4), transparent);
}

.final img {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 18px 36px -12px rgba(45, 212, 191, 0.8);
}

.final h2 {
  margin: 18px auto 0;
}

.final .sub {
  margin: 14px auto 0;
}

.final .stores {
  margin: 28px auto 0;
  max-width: 760px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.home-footer {
  margin-top: 96px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--stroke);
  color: var(--text-faint);
  font-size: 0.9rem;
}

.home-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.home-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.home-footer a:hover {
  color: var(--accent-strong);
}

.home-footer .spacer {
  flex: 1;
}

@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .fan {
    height: 480px;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "ai ai" "real mist" "topic off" "duel stat" "plat plat";
  }
  .posts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar nav {
    display: none;
  }
  .topbar .get {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 36px;
  }
  .stores {
    grid-template-columns: 1fr;
  }
  .final .stores {
    grid-template-columns: 1fr;
  }
  .fan {
    height: 420px;
  }
  .fan img {
    width: 180px;
  }
  .fan .float {
    font-size: 0.82rem;
  }
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "ai" "real" "mist" "topic" "off" "duel" "stat" "plat";
  }
  .section {
    padding-top: 80px;
  }
}
