/* ==================================================================
   Quini — playquini.com
   Shared stylesheet for / (en), /es/ and /pt/.
   Dark theme, system fonts only, zero external requests.
   ================================================================== */

:root {
  --bg: #0a0a0a;
  --surface: #151515;
  --border: #262626;
  --text: #fafafa;
  --muted: #a1a1aa;
  --faint: #6b6b70;
  --lime: #a3e635;
  --lime-bright: #bef264;
  --gold: #eab308;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

::selection {
  background: rgba(163, 230, 53, 0.3);
}

a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- header ---------------------------------------------------- */

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark span {
  color: var(--lime);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a[aria-current="page"] {
  color: var(--lime);
  border-color: var(--border);
}

/* ---- hero ------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4rem 0 3.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -45% -20% auto -20%;
  height: 130%;
  background: radial-gradient(
    55% 45% at 50% 0%,
    rgba(163, 230, 53, 0.13),
    transparent 70%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.3rem, 7.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--muted);
}

.aka {
  margin: 1rem auto 0;
  max-width: 38rem;
  font-size: 0.98rem;
  color: var(--faint);
}

/* ---- call-to-action buttons ------------------------------------ */

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--lime);
  color: #0a0a0a;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--lime-bright);
}

.btn-primary:active {
  transform: scale(0.98);
}

.cta-alt {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
}

.cta-alt a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-alt a:hover {
  color: var(--text);
}

/* ---- leagues text row ------------------------------------------ */

.leagues-label {
  margin: 2.75rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.leagues {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.6rem;
  row-gap: 0.3rem;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.leagues li:not(:last-child)::after {
  content: "\00B7";
  margin-left: 0.6rem;
  color: #4b4b50;
}

/* ---- sections --------------------------------------------------- */

section h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.features {
  padding: 3.5rem 0 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
}

.card::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
  margin-bottom: 1.1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.steps {
  padding: 3.5rem 0 1rem;
}

.steps-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4rem;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.3rem;
  height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.steps-list h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.steps-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---- final CTA --------------------------------------------------- */

.cta-final {
  padding: 3.5rem 0 4.5rem;
}

.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 1.5rem;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: auto -20% -70% -20%;
  height: 130%;
  background: radial-gradient(
    50% 55% at 50% 100%,
    rgba(163, 230, 53, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.cta-box > * {
  position: relative;
}

.cta-box h2 {
  margin: 0 0 0.5rem;
}

.cta-box .sub {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
}

.cta-box .cta-row {
  align-items: center;
}

/* ---- footer ------------------------------------------------------ */

.site-footer {
  border-top: 1px solid #1c1c1c;
  padding: 2.25rem 0 2.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.footer-brand {
  margin: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

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

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ---- wider screens ----------------------------------------------- */

@media (min-width: 560px) {
  .cta-row {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 760px) {
  .hero {
    padding: 5.5rem 0 4.5rem;
  }

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

  .steps-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }

  .cta-box {
    padding: 3.75rem 2rem;
  }
}

@media (min-width: 1000px) {
  .steps-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
