/* Game Inventory — same visual language as the app and the App Store screenshots:
   near-black background, indigo accent, cover-driven colour, glass cards. */

:root {
  --bg: #07060d;
  --bg-2: #0d0c18;
  --surface: rgba(30, 29, 42, 0.72);
  --surface-solid: #16151f;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.64);
  --dim: rgba(245, 245, 247, 0.4);
  --indigo: #8b8dff;
  --indigo-strong: #5c5ff0;
  --pink: #ff6fb1;
  --mint: #35e0c2;
  --green: #4ade80;
  --amber: #fbbf24;
  --radius: 26px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Language switching: every translatable node exists twice, marked with lang. */
html[data-lang="es"] [lang="en"]:not(html),
html[data-lang="en"] [lang="es"]:not(html) { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 12% 0%, rgba(139, 141, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(255, 111, 177, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(139, 141, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #0b0a16 0%, var(--bg) 60%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(7, 6, 13, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.3px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.04);
}
.lang-toggle button {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
html[data-lang="es"] .lang-toggle [data-set="es"],
html[data-lang="en"] .lang-toggle [data-set="en"] { background: var(--indigo-strong); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px;
  padding: 14px 22px; border-radius: 999px; transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--indigo-strong), #7c5cff); color: #fff; box-shadow: 0 12px 36px rgba(92, 95, 240, .45); }
.btn-primary:hover { box-shadow: 0 16px 44px rgba(92, 95, 240, .6); }
.btn-ghost { border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn[aria-disabled="true"] { opacity: .8; cursor: default; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--indigo); background: rgba(139,141,255,.12); border: 1px solid rgba(139,141,255,.25);
  padding: 6px 12px; border-radius: 999px;
}
h1 {
  margin-top: 20px; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; font-weight: 900; letter-spacing: -0.04em;
}
.grad { background: linear-gradient(95deg, var(--indigo), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-mint { background: linear-gradient(95deg, var(--indigo), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-warm { background: linear-gradient(95deg, #ff7aa8, #ffb86b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-green { background: linear-gradient(95deg, var(--indigo), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: 14px; color: var(--dim); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 620px; }
.mosaic {
  position: absolute; inset: -10% -30% -10% -10%; display: grid; grid-template-columns: repeat(6, 120px); gap: 16px;
  transform: rotate(-14deg); opacity: .18; z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 75%);
}
.mosaic img { width: 120px; aspect-ratio: .714; object-fit: cover; border-radius: 12px; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: 300px; flex: none; padding: 10px; border-radius: 54px;
  background: linear-gradient(145deg, #3a3a44, #121217 40%, #26262d);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.06), 0 40px 90px rgba(0,0,0,.7), 0 0 110px rgba(139,141,255,.22);
}
.phone .screen { border-radius: 44px; overflow: hidden; background: #000; aspect-ratio: 603 / 1311; position: relative; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .screen::after { /* dynamic island */
  content: ''; position: absolute; left: 50%; top: 11px; width: 92px; height: 27px; transform: translateX(-50%);
  background: #000; border-radius: 999px;
}
.phone .time {
  position: absolute; top: 13px; left: 30px; z-index: 2; font-size: 14px; font-weight: 600; letter-spacing: -.3px;
}
.phone.lg { width: 320px; }

/* Floating decorations */
.float { position: absolute; z-index: 3; }
.cover {
  aspect-ratio: .714; object-fit: cover; border-radius: 14px;
  box-shadow: 0 22px 44px rgba(0,0,0,.55), 0 0 50px var(--glow, rgba(139,141,255,.5));
  outline: 1.5px solid rgba(255,255,255,.14); outline-offset: -1.5px;
}
.glass {
  background: var(--surface); border: 1px solid rgba(255,255,255,.12); border-radius: 22px;
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.chip { padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.bob { animation: bob 6s ease-in-out infinite; }
.bob.d2 { animation-delay: -2s; }
.bob.d3 { animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .bob { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
section { position: relative; }
main, .hero { overflow-x: clip; }
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; font-weight: 900; letter-spacing: -0.035em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 60px 0; }
.feature.reverse .feature-visual { order: 2; }
.feature-visual { position: relative; display: flex; justify-content: center; min-height: 600px; align-items: center; }
.feature-visual::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, var(--halo, rgba(139,141,255,.35)), transparent 70%); filter: blur(10px);
}
.feature h3 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; font-weight: 900; letter-spacing: -0.035em; }
.feature .kicker { font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.feature p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 480px; }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.ticks li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: rgba(139,141,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8dff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Scan decorations */
.shelf-card { width: 250px; border-radius: 18px; overflow: hidden; border: 2px solid rgba(255,255,255,.18); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.shelf-card img { width: 100%; }
.shelf-card .scanline { position: absolute; left: 12px; right: 12px; top: 48%; height: 3px; background: var(--mint); border-radius: 3px; box-shadow: 0 0 22px 6px rgba(53,224,194,.55); }
.shelf-card .brackets {
  position: absolute; inset: 10px; border: 3px solid var(--mint); border-radius: 10px;
  -webkit-mask: linear-gradient(#000 0 0) top left / 24% 24% no-repeat, linear-gradient(#000 0 0) top right / 24% 24% no-repeat,
                linear-gradient(#000 0 0) bottom left / 24% 24% no-repeat, linear-gradient(#000 0 0) bottom right / 24% 24% no-repeat;
  mask: linear-gradient(#000 0 0) top left / 24% 24% no-repeat, linear-gradient(#000 0 0) top right / 24% 24% no-repeat,
        linear-gradient(#000 0 0) bottom left / 24% 24% no-repeat, linear-gradient(#000 0 0) bottom right / 24% 24% no-repeat;
}
.list-card { width: 240px; padding: 16px 18px; font-size: 15px; }
.list-card .title { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.list-card .row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); font-weight: 650; }
.list-card .row small { display: block; font-size: 11px; color: var(--amber); font-weight: 600; }
.check { width: 22px; height: 22px; border-radius: 50%; background: #6366f1; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.check.warn { background: #f59e0b; color: #1b1300; }

.tag { background: #16a34a; color: #fff; font-weight: 800; font-size: 20px; padding: 10px 18px 10px 30px; border-radius: 10px 999px 999px 10px; box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 40px rgba(74,222,128,.45); letter-spacing: -.5px; }
.tag::before { content: ''; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: rgba(255,255,255,.85); }
.heart { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #ff6b9a, #e11d48); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 50px rgba(255,80,130,.6); }
.heart svg { width: 30px; height: 30px; }

.stat-card { padding: 18px 22px; min-width: 230px; }
.stat-card .label { color: var(--muted); font-weight: 600; font-size: 14px; }
.stat-card .value { font-size: 44px; font-weight: 850; letter-spacing: -1.5px; line-height: 1.05; margin-top: 2px; }
.stat-card .up { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(74,222,128,.14); color: var(--green); font-weight: 700; font-size: 13px; }
.stat-card .split { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }

/* ---------- Extras grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--tint-bg, rgba(139,141,255,.15)); color: var(--tint, var(--indigo));
}
.card .icon svg { width: 24px; height: 24px; }
.card h4 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Big CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 34px; padding: 72px 40px; text-align: center;
  background: linear-gradient(135deg, var(--indigo-strong), #7c5cff 55%, #2a1f6b);
  box-shadow: 0 40px 100px rgba(92,95,240,.35);
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 85% 0%, rgba(255,255,255,.28), transparent 70%); pointer-events: none;
}
.cta-band h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; position: relative; }
.cta-band p { position: relative; margin: 16px auto 0; max-width: 560px; font-size: 18px; color: rgba(255,255,255,.82); }
.cta-band .hero-cta { justify-content: center; position: relative; }
.cta-band .btn-primary { background: #fff; color: #1a1840; box-shadow: 0 14px 40px rgba(0,0,0,.3); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); margin-top: 110px; padding: 40px 0 56px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
footer .links { display: flex; gap: 22px; margin-left: auto; }
footer a:hover { color: var(--text); }

/* ---------- Document pages (support / privacy) ---------- */
.doc { padding: 72px 0 20px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(40px, 5.6vw, 64px); }
.doc .updated { margin-top: 14px; color: var(--dim); font-size: 14px; }
.doc .intro { margin-top: 22px; font-size: 19px; color: var(--muted); }
.doc h2 { margin-top: 56px; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.doc h3 { margin-top: 28px; font-size: 18px; font-weight: 750; }
.doc p, .doc li { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.doc ul { padding-left: 22px; }
.doc strong { color: var(--text); }
.doc a.inline { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.contact-card {
  margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  padding: 26px 28px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--border);
}
.contact-card h3 { margin: 0; font-size: 20px; }
.contact-card p { margin-top: 4px; }
.faq { margin-top: 20px; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.03); padding: 4px 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--indigo); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > *:not(summary) { padding-bottom: 14px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill-row span { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(74,222,128,.12); color: var(--green); border: 1px solid rgba(74,222,128,.25); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .feature { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; text-align: center; }
  .lead, .feature p { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .feature { text-align: center; gap: 36px; padding: 40px 0; }
  .feature.reverse .feature-visual { order: 0; }
  .ticks { justify-items: center; }
  .ticks li { text-align: left; max-width: 440px; width: 100%; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .lang-toggle { margin-left: auto; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .phone, .phone.lg { width: 250px; border-radius: 46px; padding: 8px; }
  .phone .screen { border-radius: 38px; }
  .hero-visual, .feature-visual { min-height: 540px; }
  .float.hide-sm { display: none; }
  .section { padding: 70px 0; }
  .cta-band { padding: 56px 22px; }
  footer .links { margin-left: 0; }
  .nav .btn { display: none; }
}

/* Layout: keep the footer at the bottom on short pages (support, privacy). */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.list-card, .stat-card { text-align: left; }
@media (max-width: 620px) {
  .stat-card { min-width: 0; width: 210px; padding: 14px 16px; left: 0 !important; bottom: 36px !important; }
  .stat-card .value { font-size: 34px; }
  .list-card { width: 210px; right: 0 !important; }
}
