/* Home page (10 languages), on top of style.css. Mobile first. */
html { scroll-behavior: smooth; }
body.home { padding-bottom: 0; overflow-x: hidden; }
.home main { max-width: 1040px; padding-top: 0; }
.home footer { max-width: 1040px; }

/* ---------- Hero: a Leonida sunset with the app's 3D icons floating in front ---------- */
.hh { position: relative; overflow: hidden; padding-bottom: 8px; }
.hh::before { /* soft neon wash that bleeds into the page background */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(520px 360px at 50% 26%, rgba(255,160,82,.20), transparent 70%),
    radial-gradient(700px 520px at 20% 0%, rgba(229,63,201,.22), transparent 65%);
  pointer-events: none;
}
.hh-in { position: relative; max-width: 1040px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 20px 0; }
.toprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toprow .brand { margin: 0; gap: 10px; }
.toprow .brand img { width: 40px; height: 40px; border-radius: 10px; }
.toprow .brand span { line-height: 1.2; max-width: 210px; }

.lang { position: relative; flex: none; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 13px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 14px; background: rgba(11,10,20,.55); border: 1px solid var(--glass-stroke); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lang[open] summary { border-color: var(--accent-b); }
.lang .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px; max-height: 70vh; overflow: auto; padding: 6px; border-radius: 16px; background: rgba(21,19,31,.97); border: 1px solid var(--glass-stroke); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.lang .menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 15px; }
.lang .menu a:hover { background: var(--glass); text-decoration: none; }
.lang .menu a.on { color: var(--accent-b); font-weight: 700; }

.hh-grid { display: grid; gap: 4px; align-items: center; }

/* the stage: sun + icons */
.stage { position: relative; height: 262px; margin: 6px -20px 0; touch-action: pan-y; transform: translate3d(0, calc(var(--sy, 0) * -0.10px), 0); }
.sun {
  position: absolute; left: 50%; top: 50%; width: 236px; height: 236px; margin: -128px 0 0 -118px; border-radius: 50%;
  background: linear-gradient(180deg, #FFC85A 0%, #FFA052 34%, #FF4D9A 70%, #E53FC9 100%);
  box-shadow: 0 0 90px rgba(255,100,160,.45), 0 0 220px rgba(229,63,201,.28);
  -webkit-mask: linear-gradient(#000, #000) top / 100% 54% no-repeat, repeating-linear-gradient(180deg, #000 0 8px, transparent 8px 13px) bottom / 100% 46% no-repeat;
          mask: linear-gradient(#000, #000) top / 100% 54% no-repeat, repeating-linear-gradient(180deg, #000 0 8px, transparent 8px 13px) bottom / 100% 46% no-repeat;
}
.stage .fl { position: absolute; display: block; transform: translate3d(calc(var(--px, 0) * var(--d) * 1px), calc(var(--py, 0) * var(--d) * 1px), 0); }
.stage .fl img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
.fl.main { left: 50%; top: 50%; width: 214px; margin: -76px 0 0 -107px; --d: 26; cursor: pointer; }
.stage .fl.main { transform: translate3d(calc(var(--px, 0) * var(--d) * 1px), calc(var(--py, 0) * var(--d) * 1px), 0) perspective(900px) rotateY(calc(var(--px, 0) * 10deg)) rotateX(calc(var(--py, 0) * -8deg)); }
.fl.main img { filter: drop-shadow(0 18px 30px rgba(229,63,201,.45)) drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.fl.a { left: 6%;  top: 8%;  width: 62px; --d: 34; }
.fl.b { right: 7%; top: 4%;  width: 56px; --d: 26; }
.fl.c { left: 12%; top: 60%; width: 54px; --d: 30; }
.fl.d { right: 9%; top: 56%; width: 66px; --d: 38; }
.fl.e { left: 30%; top: -2%; width: 40px; --d: 22; display: none; }
.fl.f { right: 28%; top: 78%; width: 42px; --d: 22; display: none; }

@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--r, -3deg)); } 50% { transform: translateY(-9px) rotate(calc(var(--r, -3deg) * -1)); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; translate: 0 -26px; scale: .82; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes sunrise { from { opacity: 0; transform: translateY(46px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.16) rotate(-6deg); } 100% { transform: scale(1); } }

.fl img { animation: bob 6.5s ease-in-out infinite; }
.fl.a img { --r: -6deg; animation-duration: 7s; }
.fl.b img { --r: 5deg;  animation-duration: 8s; animation-delay: -2s; }
.fl.c img { --r: 4deg;  animation-duration: 6s; animation-delay: -1s; }
.fl.d img { --r: -5deg; animation-duration: 7.5s; animation-delay: -3.5s; }
.fl.main img { --r: -2deg; animation-duration: 8s; }
.fl.main.pop img { animation: pop .5s cubic-bezier(.3,1.6,.5,1); }

/* one orchestrated entrance: sun rises, icons drop in, text follows */
.sun { animation: sunrise .9s cubic-bezier(.2,.8,.2,1) both; }
.stage .fl { animation: drop .7s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(.35s + var(--i, 0) * .09s); }
.fl.a { --i: 1; } .fl.b { --i: 2; } .fl.c { --i: 3; } .fl.d { --i: 4; } .fl.e { --i: 5; } .fl.f { --i: 6; }
.fl.main { --i: 0; animation-delay: .2s; }
.hh [data-in] { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.45s + var(--i, 0) * .08s); }

.hh-copy h1 { font-size: clamp(33px, 9.4vw, 66px); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; }
.hh-copy h1 .accent { display: inline; width: auto; background: none; color: inherit; }
.hh-copy .lead { margin-top: 16px; font-size: 18px; line-height: 1.5; }
.hh-copy .cta { margin-top: 22px; }
.hh-copy .btn { width: 100%; }
.hh-copy .btn.ghost { min-height: 44px; }
.hh-note { margin: 12px 0 0; color: var(--text-2); font-size: 13px; }

/* ---------- Features: a bento of glass tiles ---------- */
.nav { margin: 22px 0 6px; }
.bento { display: grid; gap: 12px; margin: 14px 0 6px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-stroke); box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, border-color .25s ease;
}
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255,160,82,.16), transparent 70%); }
.tile.hot { border-color: rgba(255,160,82,.45); }
.tile.hot::after { opacity: 1; }
.tile img.ti { width: 76px; height: 76px; display: block; margin: -4px 0 4px -6px; filter: drop-shadow(0 10px 18px rgba(229,63,201,.4)); }
.tile h3 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.tile.map { background: linear-gradient(160deg, rgba(229,63,201,.20), rgba(255,160,82,.10) 60%, rgba(255,255,255,.04)); border-color: rgba(255,160,82,.35); padding-top: 150px; }
.tile.map img.ti { width: 92px; height: 92px; position: absolute; left: 18px; top: 16px; margin: 0; z-index: 2; }
.minimap { position: absolute; left: 0; right: 0; top: 0; height: 132px; background:
    radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.6px) 0 0 / 16px 16px,
    linear-gradient(180deg, rgba(11,10,20,.0), rgba(11,10,20,.55)); -webkit-mask: linear-gradient(90deg, transparent 0, #000 30%); mask: linear-gradient(90deg, transparent 0, #000 30%); }
.pin { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent-b); box-shadow: 0 0 0 3px rgba(255,160,82,.25), 0 0 14px rgba(255,160,82,.8); }
.pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid currentColor; color: var(--accent-b); opacity: 0; animation: ping 3.2s ease-out infinite; animation-delay: var(--t, 0s); }
.pin.p { background: var(--accent-a); box-shadow: 0 0 0 3px rgba(229,63,201,.25), 0 0 14px rgba(229,63,201,.8); }
.pin.p::after { color: var(--accent-a); }
.pin.g { background: var(--verified); box-shadow: 0 0 0 3px rgba(52,211,153,.22), 0 0 14px rgba(52,211,153,.7); }
.pin.g::after { color: var(--verified); }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Sections with cards ---------- */
.sec { margin-top: 38px; }
.sec h2, .why-h { margin: 0 0 4px; font-size: clamp(24px, 5.6vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.sec .sub { color: var(--text-2); margin: 0 0 16px; max-width: 560px; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.acard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-stroke); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: transform .25s ease, border-color .25s ease; }
.acard:hover { text-decoration: none; border-color: var(--accent-b); transform: translateY(-3px); }
.acard .im { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, rgba(229,63,201,.25), rgba(255,160,82,.18)); display: grid; place-items: center; }
.acard .im img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.acard:hover .im img { transform: scale(1.05); }
.acard .im img.ico { width: 72px; height: 72px; object-fit: contain; }
.acard .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.acard h3 { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.acard p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.acard .meta { margin-top: auto; padding-top: 6px; color: var(--accent-b); font-weight: 600; font-size: 14px; }
.more { margin: 16px 0 0; font-weight: 600; }

/* ---------- Built for players: plain statements, no cards ---------- */
.why { margin-top: 44px; }
.why ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.why li { padding: 16px 0 16px 34px; position: relative; border-top: 1px solid var(--glass-stroke); color: var(--text-2); font-size: 15px; line-height: 1.5; }
.why li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px rgba(229,63,201,.6); }
.why li strong { display: block; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 2px; }

.fan { margin: 36px 0 0; display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-stroke); }
.fan img { width: 56px; height: 56px; flex: none; }
.fan h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.fan p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }

/* ---------- Sticky download bar (phones, after the hero buttons scroll away) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(11,10,20,0), rgba(11,10,20,.92) 38%); transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.dock.on { transform: none; }
.dock .btn { width: 100%; pointer-events: auto; }
.dock.on .btn { pointer-events: auto; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 560px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile.map { grid-column: 1 / -1; } .fl.e, .fl.f { display: block; } }
@media (min-width: 720px) {
  .hh-copy .btn { width: auto; }
  .why ul { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .dock { display: none; }
  .tile.map { padding: 26px 26px 24px 130px; min-height: 150px; }
  .tile.map img.ti { top: 50%; transform: translateY(-50%); left: 22px; width: 100px; height: 100px; }
  .minimap { left: 36%; right: 0; top: 0; bottom: 0; height: auto; -webkit-mask: linear-gradient(90deg, transparent 0, #000 40%); mask: linear-gradient(90deg, transparent 0, #000 40%); }
  .tile.map h3, .tile.map p { max-width: 48%; }
}
@media (min-width: 900px) {
  .hh-in { padding-top: calc(22px + env(safe-area-inset-top)); }
  .hh-grid { grid-template-columns: 1.08fr 1fr; gap: 24px; min-height: 560px; }
  .hh-copy { order: 1; padding: 28px 0 40px; }
  .stage { order: 2; height: 480px; margin: 0; }
  .sun { width: 400px; height: 400px; margin: -215px 0 0 -200px; }
  .fl.main { width: 380px; margin: -121px 0 0 -190px; }
  .fl.a { width: 92px; } .fl.b { width: 84px; } .fl.c { width: 80px; } .fl.d { width: 98px; } .fl.e { width: 60px; } .fl.f { width: 62px; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile.map { grid-column: span 3; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hh-copy .lead { font-size: 20px; }
}

/* phones: news and collections scroll sideways, like in the app */
@media (max-width: 719px) {
  .cards { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(82%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; margin: 0 -20px; padding: 2px 20px 10px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .acard { scroll-snap-align: start; }
  .home main { padding-bottom: 92px; }
}
@media (hover: none) { .tile { transform: none; } .acard:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .stage, .stage .fl, .tile { transform: none !important; }
  .hh [data-in], .sun, .stage .fl { opacity: 1 !important; }
  .dock { transition: none; }
}

/* phones: compact tiles (icon left, text right) and a one-line nav */
@media (max-width: 559px) {
  .nav { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; white-space: nowrap; padding: 7px 14px; font-size: 14px; }
  .tile:not(.map) { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; padding: 16px; }
  .tile:not(.map) img.ti { grid-row: 1 / span 2; width: 64px; height: 64px; margin: 0; }
  .tile:not(.map) h3 { align-self: end; }
}
