/* Polygo · sitio estático. Mismos colores que la app (src/design-system/tokens.ts). */
:root {
  --ink950: #07060f;
  --ink900: #0b0a1a;
  --ink850: #110f24;
  --ink800: #17142f;
  --ink700: #221e42;
  --ink600: #2f2a58;
  --ink300: #8d88b5;
  --ink100: #e7e5f7;
  --white: #fff;
  --violet600: #6d28d9;
  --violet500: #7c3aed;
  --violet400: #8b5cf6;
  --violet300: #a78bfa;
  --green: #34d399;
  --green-deep: #047857;
  --gold: #f5c542;
  --cyan: #22d3ee;
  --radius: 22px;
  --max: 1160px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--ink900);
  color: var(--ink100);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--violet300);
}

h1,
h2,
h3 {
  color: var(--white);
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0;
}

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

.narrow {
  max-width: 820px;
}

.accent {
  color: var(--violet300);
}

.muted {
  color: var(--ink300);
}

.lead {
  color: var(--ink300);
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 640px;
}

.overline {
  color: var(--violet300);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

mark {
  background: #5b2a00;
  color: #ffd29a;
  padding: 0 4px;
  border-radius: 4px;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet400), var(--violet600));
  color: var(--white);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.95rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: var(--white);
  color: #000;
  text-decoration: none;
  transition: transform 0.15s;
}

a.store:hover {
  transform: translateY(-2px);
}

.store svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store small {
  font-size: 0.72rem;
}

.store strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.store-soon {
  background: var(--ink800);
  color: var(--ink300);
  border: 1px solid var(--ink600);
}

.store-soon em {
  position: absolute;
  top: -10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--violet500);
  color: var(--white);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

/* ---------- barra superior ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 10, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink700);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-sm {
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink300);
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--white);
  background: var(--ink800);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

/* ---------- portada ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(var(--ink850), var(--ink900));
}

.glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.2);
  filter: blur(90px);
  top: -260px;
  right: -160px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill {
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink600);
  background: var(--ink800);
  font-size: 0.85rem;
  font-weight: 600;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.checks li::before {
  content: '✓ ';
  color: var(--green);
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .hero-text {
    align-items: center;
  }
  .pill {
    align-self: center;
  }
  .stores,
  .checks {
    justify-content: center;
  }
}

/* vista previa del teléfono */
.mock {
  position: relative;
  width: 320px;
}

.phone {
  width: 300px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 44px;
  background: #1d1a33;
  border: 1px solid var(--ink600);
  box-shadow: 0 30px 80px rgba(124, 58, 237, 0.35);
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 16px 28px;
  border-radius: 36px;
  background: linear-gradient(var(--ink850), var(--ink900), var(--ink950));
  text-align: left;
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.player-right {
  flex-direction: row-reverse;
  text-align: right;
}

.player img {
  border-radius: 50%;
}

.player small,
.question small {
  display: block;
  color: var(--ink300);
  font-size: 0.75rem;
}

.player strong {
  color: var(--white);
}

.timer {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--ink800);
  color: var(--white);
  font-weight: 700;
}

.time {
  height: 6px;
  border-radius: 3px;
  background: var(--ink700);
  overflow: hidden;
}

.time span {
  display: block;
  width: 56%;
  height: 100%;
  background: var(--violet400);
}

.question {
  padding: 24px 0;
  border-radius: 16px;
  border: 1px solid var(--ink700);
  background: var(--ink850);
  text-align: center;
}

.question strong {
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 800;
}

.options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.options li {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--ink700);
  background: var(--ink800);
  font-weight: 600;
  text-align: center;
}

.options .right {
  background: var(--green-deep);
  border-color: var(--green);
  color: var(--white);
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid var(--ink600);
  background: var(--ink800);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-weight: 700;
  text-align: left;
}

.float-top {
  top: 150px;
  right: -28px;
  color: var(--gold);
}

.float-bottom {
  bottom: 40px;
  left: -36px;
}

.float-bottom strong {
  display: block;
  color: var(--white);
  line-height: 1.1;
}

.float-bottom small {
  color: var(--green);
}

@media (max-width: 420px) {
  .float-top {
    right: 0;
  }
  .float-bottom {
    left: 0;
  }
}

/* ---------- números ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink700);
  text-align: center;
}

.stats strong {
  display: block;
  color: var(--white);
  font-size: 2.3rem;
  font-weight: 800;
}

.stats span {
  color: var(--ink300);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- secciones ---------- */
.block {
  padding: 80px 0;
}

.band {
  background: linear-gradient(#3b1d80, #151036);
}

.heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  text-align: center;
}

.heading-left {
  align-items: flex-start;
  text-align: left;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--ink700);
  background: var(--ink850);
}

.card p {
  color: var(--ink300);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ink800);
  font-size: 1.4rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .heading-left {
    align-items: center;
    text-align: center;
  }
}

.bullets {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 34px;
}

.bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--violet500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
}

.ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.ladder img {
  width: 64px;
  height: 64px;
  margin: 0 auto 4px;
}

.ladder .top {
  color: var(--gold);
}

/* ---------- llamado final ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 64px 24px;
  border-radius: 28px;
  border: 1px solid var(--ink600);
  background: linear-gradient(135deg, #3b1d80, #1b1442);
  text-align: center;
}

.cta-emblems {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.cta-emblems .dim {
  opacity: 0.4;
}

/* ---------- preguntas ---------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--ink700);
  background: var(--ink850);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: '⌄';
  color: var(--ink300);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 20px 20px;
  color: var(--ink300);
}

/* ---------- páginas legales ---------- */
.legal {
  max-width: 820px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 12px;
}

.legal h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: var(--ink100);
}

.legal p + p {
  margin-top: 12px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.steps li::marker {
  color: var(--violet300);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0 20px;
  border: 1px solid var(--ink700);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink700);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--ink800);
  color: var(--white);
}

tr:last-child td {
  border-bottom: 0;
}

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* ---------- pie ---------- */
.footer {
  border-top: 1px solid var(--ink700);
  background: var(--ink950);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  color: var(--ink300);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--ink100);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .store {
    transition: none;
  }
}
