/*
 * TapVerse landing page. Builds on site.css tokens. The hero, chains band and closing call to action
 * are always night (the game itself is dark); the middle sections follow the visitor's light or dark setting.
 */
.lp { overflow-x: clip; background-image: none; background-color: var(--bg); }
.lp-hero, .lp-chains, .lp-final, .lp-top {
  --text: #f5f3ff; --muted: #c4b9e6; --surface: #1a1042; --surface-2: #241757; --border: #382a74; --link: #67e8f9; --accent: #22d3ee;
  color: var(--text);
}

/* Header floats over the hero */
.lp-top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 18px 20px; }
.lp-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font: 700 1.15rem var(--font-display); min-width: 0; }
.lp-brand img { border-radius: 12px; box-shadow: 0 8px 22px -8px rgb(124 58 237 / 90%); flex: none; }
.lp-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-nav { display: none; margin-inline-start: auto; gap: 8px; }
.lp-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--muted); text-decoration: none; font-weight: 500; border-radius: 999px; transition: color .15s ease, background-color .15s ease; }
.lp-nav a:hover { color: #fff; background: rgb(255 255 255 / 8%); }
.lp-top-cta { margin-inline-start: auto; min-height: 44px; padding: 0 20px; flex: none; }
@media (min-width: 720px) { .lp-nav { display: flex; } .lp-top-cta { margin-inline-start: 0; } }

/* Hero */
.lp-hero { position: relative; isolation: isolate; background: linear-gradient(180deg, #0d0720, #160c36 70%, #0d0720); padding: 112px 20px 72px; overflow: hidden; }
.lp-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lp-aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; will-change: transform; }
.lp-aurora-a { width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; inset-block-start: -22%; inset-inline-start: 4%; background: radial-gradient(circle, #7c3aed, transparent 68%); animation: lp-drift 18s ease-in-out infinite alternate; }
.lp-aurora-b { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; inset-block-end: -14%; inset-inline-end: -6%; background: radial-gradient(circle, rgb(34 211 238 / 70%), transparent 68%); animation: lp-drift 22s ease-in-out -6s infinite alternate-reverse; }
.lp-lattice { position: absolute; inset: 0; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V18L28 2l28 16v32z M28 100 0 84' fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask: radial-gradient(ellipse 80% 70% at 62% 45%, #000, transparent 78%); mask: radial-gradient(ellipse 80% 70% at 62% 45%, #000, transparent 78%); }
.lp-hero-grid { display: grid; gap: 40px; max-width: 1240px; margin: 0 auto; align-items: center; }
.lp-copy { text-align: center; }
.lp h1 { font: 700 clamp(2.15rem, 8.4vw, 4.4rem)/1.06 var(--font-arcade); letter-spacing: -0.03em; margin: 0 0 20px; text-wrap: balance; }
.lp h2 { font: 700 clamp(1.55rem, 5vw, 2.6rem)/1.12 var(--font-arcade); letter-spacing: -0.025em; margin: 0 0 14px; text-wrap: balance; }
:lang(ar) .lp h1, :lang(ar) .lp h2, .lp:lang(ar) h1, .lp:lang(ar) h2 { font-family: var(--font-display); letter-spacing: 0; line-height: 1.3; }
.lp-lead { font-size: clamp(1.02rem, 2.6vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 40rem; margin: 0 auto 28px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }
.lp-actions-center { justify-content: center; }
.lp-big { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }
.lp-demo { margin: 22px auto 0; max-width: 34rem; font-size: .88rem; color: var(--muted); }
.lp-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 32px 0 0; padding: 0; }
.lp-facts div { display: flex; align-items: baseline; gap: 8px; }
.lp-facts dt { font: 700 1.6rem var(--font-arcade); color: #fff3c4; text-shadow: 0 4px 20px rgb(250 204 21 / 40%); }
.lp-facts dd { margin: 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 960px) {
  .lp-hero { padding: 132px 32px 96px; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; }
  .lp-copy { text-align: start; }
  .lp-lead { margin-inline: 0; }
  .lp-actions { justify-content: flex-start; }
  .lp-demo { margin-inline: 0; }
  .lp-facts { justify-content: flex-start; }
}

/* Phone */
.lp-stage { position: relative; display: grid; place-items: center; min-height: 480px; }
.lp-glow { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(124 58 237 / 65%), rgb(34 211 238 / 18%) 48%, transparent 70%); filter: blur(30px); animation: lp-breathe 5s ease-in-out infinite; }
.lp-phone { --pw: 232px; position: relative; width: var(--pw); aspect-ratio: 390 / 780; padding: 7px; border-radius: 36px;
  background: linear-gradient(150deg, #4a3d85, #1a1240 45%, #0b0620);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 14%) inset, 0 2px 0 rgb(255 255 255 / 20%) inset, 0 40px 80px -30px rgb(0 0 0 / 85%), 0 24px 60px -24px rgb(124 58 237 / 55%); }
.lp-phone::before { content: ""; position: absolute; inset-inline-end: -3px; top: 22%; width: 3px; height: 14%; border-radius: 0 3px 3px 0; background: #2b2060; }
.lp-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 29px; background: #120a2a; }
.lp-phone-hero { --pw: min(300px, 70vw); transform: perspective(1100px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 3deg)); transition: transform .25s var(--ease); }
.lp-phone-hero img { border-radius: calc(36px - 7px); }
.lp-phone-hero { border-radius: 42px; padding: 8px; }
.lp-coin { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: url("../skins/verse-portal.svg") center / cover; box-shadow: 0 16px 30px -10px rgb(0 0 0 / 70%), 0 0 30px rgb(250 204 21 / 25%); animation: lp-float 6s ease-in-out infinite; }
.lp-coin-a { inset-inline-start: 6%; top: 14%; }
.lp-coin-b { inset-inline-end: 4%; top: 46%; width: 44px; height: 44px; animation-delay: -2s; }
.lp-coin-c { inset-inline-start: 12%; bottom: 8%; width: 38px; height: 38px; animation-delay: -4s; }
.lp-tag { position: absolute; padding: 8px 14px; border-radius: 999px; font: 700 .95rem var(--font-display); color: #1a1033; background: linear-gradient(135deg, #fde047, #facc15); box-shadow: 0 14px 30px -12px rgb(250 204 21 / 70%); animation: lp-float 7s ease-in-out infinite; direction: ltr; unicode-bidi: isolate; }
.lp-tag-a { inset-inline-end: 8%; top: 12%; animation-delay: -1s; }
.lp-tag-b { inset-inline-start: 2%; top: 56%; color: #f5f3ff; background: rgb(26 16 66 / 85%); border: 1px solid rgb(103 232 249 / 45%); box-shadow: 0 14px 30px -12px rgb(34 211 238 / 45%); animation-delay: -3s; }
@media (min-width: 960px) { .lp-stage { min-height: 600px; } .lp-phone-hero { --pw: 320px; } }

/* Sections */
.lp-section { max-width: 1240px; margin: 0 auto; padding: 80px 20px; }
.lp-head { max-width: 44rem; margin: 0 auto 44px; text-align: center; }
.lp-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.lp-head-start { margin-inline: 0; text-align: start; }
.lp-scroller { margin-inline: -20px; padding-inline: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--primary) transparent; padding-block: 8px 28px; }
.lp-scroller:focus-visible { outline-offset: -3px; }
.lp-phones { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; width: max-content; }
.lp-phones li { scroll-snap-align: center; width: min(240px, 66vw); }
.lp-phones .lp-phone { --pw: 100%; }
.lp-phones figure { margin: 0; }
.lp-phones figcaption { display: grid; gap: 6px; margin-top: 20px; }
.lp-phones figcaption strong { font: 700 1.1rem var(--font-display); }
.lp-phones figcaption span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
@media (min-width: 1080px) {
  .lp-scroller { overflow: visible; margin: 0; padding: 0 0 8px; }
  .lp-phones { width: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .lp-phones li { width: auto; }
  .lp-phones li:nth-child(even) { transform: translateY(36px); }
  .lp-phones li:nth-child(even).lp-reveal.in, .lp-phones li:nth-child(even) { transform: translateY(36px); }
}

/* Everything in the box */
.lp-box { display: grid; gap: 40px; border-top: 1px solid var(--border); }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lp-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.lp-list li:first-child { padding-top: 0; }
.lp-list svg { flex: none; color: var(--accent); margin-top: 3px; }
.lp-list strong { display: block; font: 700 1.08rem var(--font-display); }
.lp-list span { display: block; color: var(--muted); margin-top: 2px; }
@media (min-width: 900px) {
  .lp-box { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .lp-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .lp-list li:nth-child(2) { padding-top: 0; }
  .lp-box .lp-head { position: sticky; top: 40px; }
}

/* Chains band (always night) */
.lp-chains { position: relative; isolation: isolate; background: linear-gradient(180deg, #0d0720, #1b1046 50%, #0d0720); padding: 80px 20px; overflow: hidden; }
.lp-chains::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60rem 18rem at 50% 50%, rgb(124 58 237 / 40%), transparent 70%); }
.lp-chains-inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 36px; }
.lp-chain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-chain-list li { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(180deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%)); font-weight: 600; box-shadow: 0 1px 0 rgb(255 255 255 / 8%) inset; transition: transform .2s var(--ease), border-color .2s ease; }
.lp-chain-list li:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--chain) 70%, var(--border)); }
.lp-chain-badge { flex: none; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; font: 700 .72rem var(--font-display); color: #fff; background: color-mix(in oklab, var(--chain) 28%, #1a1042); box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--chain) 65%, transparent) inset; }
.lp-chain-list [data-chain="stars"] .lp-chain-badge { font-size: 1.1rem; color: #fde047; }
.lp-chain-list [data-chain="ton"] { --chain: #0098EA; }
.lp-chain-list [data-chain="sol"] { --chain: #9945FF; }
.lp-chain-list [data-chain="eth"] { --chain: #627EEA; }
.lp-chain-list [data-chain="bnb"] { --chain: #F0B90B; }
.lp-chain-list [data-chain="base"] { --chain: #0052FF; }
.lp-chain-list [data-chain="stars"] { --chain: #FACC15; }
@media (min-width: 720px) { .lp-chain-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lp-chains-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; } }

/* Closing call to action (always night) */
.lp-final { position: relative; isolation: isolate; text-align: center; padding: 88px 20px 96px; background: radial-gradient(40rem 22rem at 50% 38%, rgb(124 58 237 / 45%), transparent 70%), #0d0720; overflow: hidden; }
.lp-final-mark { width: 132px; height: 132px; margin: 0 auto 24px; display: block; filter: drop-shadow(0 24px 40px rgb(124 58 237 / 70%)); animation: lp-float 6s ease-in-out infinite; }
.lp-final h2 { max-width: 20ch; margin-inline: auto; }
.lp-final p { color: var(--muted); max-width: 34rem; margin: 0 auto 28px; font-size: 1.08rem; }
.lp-foot { background: #0d0720; color: #bcb0e0; text-align: center; padding: 20px 20px 36px; font-size: .85rem; }

/* Reveal on scroll: visible by default, only hidden once the script has marked the page. */
.js .lp-reveal:not(.in) { opacity: 0; transform: translateY(22px); }
.lp-reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .lp-phones li:nth-child(2).lp-reveal { transition-delay: .06s; }
.js .lp-phones li:nth-child(3).lp-reveal { transition-delay: .12s; }
.js .lp-phones li:nth-child(4).lp-reveal { transition-delay: .18s; }
.js .lp-phones li:nth-child(5).lp-reveal { transition-delay: .24s; }

@keyframes lp-drift { to { transform: translate3d(6vw, 4vw, 0) scale(1.1); } }
@keyframes lp-breathe { 0%, 100% { opacity: .8; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes lp-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }

@media (prefers-reduced-motion: reduce) {
  .lp-aurora, .lp-glow, .lp-coin, .lp-tag, .lp-final-mark { animation: none; }
  .js .lp-reveal:not(.in) { opacity: 1; transform: none; }
  .lp-phone-hero { transition: none; transform: none; }
}
.lp-final .lp-actions { justify-content: center; }
