/* Learn & Win — theme website */

:root {
  --lw-primary: #667eea;
  --lw-primary-shade: #5a6fce;
  --lw-primary-tint: #758bec;
  --lw-accent: #764ba2;
  --lw-success: #2dd36f;
  --lw-danger: #eb445a;
  --lw-text: #1a1a2e;
  --lw-text-secondary: #5c5c7a;
  --lw-surface: #ffffff;
  --lw-surface-muted: #f6f7fb;
  --lw-border: rgba(26, 26, 46, 0.08);
  --lw-hero-gradient: linear-gradient(160deg, #667eea 0%, #764ba2 100%);
  --lw-shadow: 0 8px 24px rgba(26, 26, 46, 0.06);
  --lw-radius: 14px;
  --lw-max: 1120px;
  --lw-header-h: 72px;
  --lw-font: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--lw-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lw-text);
  background: var(--lw-surface);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--lw-max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--lw-header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lw-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.site-logo__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--lw-hero-gradient);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.site-logo__text {
  font-size: 1.05rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--lw-text);
  border-radius: 2px;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-nav {
  position: fixed;
  inset: var(--lw-header-h) 0 auto 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--lw-surface);
  border-bottom: 1px solid var(--lw-border);
  box-shadow: var(--lw-shadow);
}

.site-nav.is-open {
  display: flex;
}

.site-nav__link {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--lw-text-secondary);
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--lw-primary);
  background: rgba(102, 126, 234, 0.08);
}

.site-nav__cta {
  margin-top: 0.5rem;
  text-align: center;
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-nav__link {
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
  }

  .site-nav__cta {
    margin-top: 0;
    margin-left: 0.5rem;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}

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

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

.btn--primary {
  background: var(--lw-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--lw-primary-shade);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn--outline {
  background: transparent;
  color: var(--lw-primary);
  border-color: rgba(102, 126, 234, 0.35);
}

.btn--outline:hover {
  background: rgba(102, 126, 234, 0.08);
}

.btn--sm {
  min-height: 2.35rem;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 3.1rem;
  padding: 0.85rem 1.5rem;
}

/* Sections */

.section {
  padding: 4rem 0;
}

.section--muted {
  background: var(--lw-surface-muted);
}

.section--dark {
  background: #16182a;
  color: #f0f2f7;
}

.section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lw-primary);
}

.section--dark .section__eyebrow {
  color: var(--lw-primary-tint);
}

.section__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--lw-text-secondary);
  font-size: 1.05rem;
}

.section--dark .section__lead {
  color: rgba(240, 242, 247, 0.72);
}

.section__head {
  margin-bottom: 2rem;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--lw-hero-gradient);
  color: #fff;
  padding: 3.5rem 0 4rem;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 5rem 0;
    min-height: calc(100vh - var(--lw-header-h));
    display: flex;
    align-items: center;
  }

  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: heroIn 0.55s ease-out both;
}

.hero__headline {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.95;
  animation: heroIn 0.55s ease-out 0.08s both;
}

.hero__text {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: 1.05rem;
  opacity: 0.88;
  animation: heroIn 0.55s ease-out 0.14s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: heroIn 0.55s ease-out 0.2s both;
}

.hero__visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  animation: heroIn 0.65s ease-out 0.18s both;
  min-height: 240px;
  background: rgba(0, 0, 0, 0.12);
}

.hero__image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .hero__image {
    min-height: 420px;
    aspect-ratio: 4 / 3;
  }
}

.hero__phone {
  width: min(100%, 220px);
  aspect-ratio: 9 / 17;
  border-radius: 28px;
  background: linear-gradient(180deg, #1e2230 0%, #12141c 100%);
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  padding: 1.25rem 1rem;
  color: #fff;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.hero__phone-brand {
  font-weight: 800;
  font-size: 1.1rem;
}

.hero__phone-meta {
  font-size: 0.85rem;
  opacity: 0.75;
}

.hero__phone-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(45, 211, 111, 0.2);
  color: #7dffb0;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Games grid */

.games-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--lw-radius);
  background: var(--lw-surface);
  border: 1px solid var(--lw-border);
  box-shadow: var(--lw-shadow);
  transition: transform 0.25s ease-out, border-color 0.25s ease-out;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 126, 234, 0.35);
}

.game-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--lw-surface-muted);
}

.game-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgba(102, 126, 234, 0.12);
  color: var(--lw-primary);
  font-weight: 800;
  font-size: 0.85rem;
}

.game-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.game-card__text {
  margin: 0;
  color: var(--lw-text-secondary);
  font-size: 0.95rem;
}

.game-card__link {
  margin-top: auto;
  font-weight: 700;
  color: var(--lw-primary);
  font-size: 0.9rem;
}

/* How visual */

.how-visual {
  margin: 0 0 2rem;
  border-radius: var(--lw-radius);
  overflow: hidden;
  border: 1px solid var(--lw-border);
  box-shadow: var(--lw-shadow);
}

.how-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Steps */

.steps {
  display: grid;
  gap: 1.25rem;
}

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

.step {
  padding: 1.5rem;
  border-radius: var(--lw-radius);
  background: var(--lw-surface);
  border: 1px solid var(--lw-border);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--lw-hero-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.step__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.step__text {
  margin: 0;
  color: var(--lw-text-secondary);
}

/* Why */

.why-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-visual {
  margin: 0 0 2rem;
  border-radius: var(--lw-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.why-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.why-item__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.why-item__text {
  margin: 0;
  color: var(--lw-text-secondary);
}

.section--dark .why-item__text {
  color: rgba(240, 242, 247, 0.72);
}

/* Testimonials */

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

@media (min-width: 800px) {
  .quotes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote-card {
  padding: 1.5rem;
  border-radius: var(--lw-radius);
  background: var(--lw-surface);
  border: 1px solid var(--lw-border);
  box-shadow: var(--lw-shadow);
}

.quote-card__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 0.85rem;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.quote-card__text {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
}

.quote-card__author {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
}

.quote-card__role {
  margin: 0.15rem 0 0;
  color: var(--lw-text-secondary);
  font-size: 0.85rem;
}

.quote-card--placeholder .quote-card__text {
  color: var(--lw-text-secondary);
  font-style: italic;
}

/* CTA band */

.cta-band {
  padding: 3.5rem 0;
  background: var(--lw-hero-gradient);
  color: #fff;
  text-align: center;
}

.cta-band__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
}

.cta-band__text {
  margin: 0 auto 1.5rem;
  max-width: 30rem;
  opacity: 0.9;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Page hero (inner pages) */

.page-hero {
  padding: 3rem 0 2rem;
  background: var(--lw-surface-muted);
  border-bottom: 1px solid var(--lw-border);
}

.page-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lw-text-secondary);
}

.page-hero__crumb a {
  color: var(--lw-primary);
}

.page-hero__crumb a:hover {
  text-decoration: underline;
}

/* Explain detail */

.explain {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .explain {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.explain__media {
  display: grid;
  gap: 0.75rem;
}

.explain__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--lw-radius);
  border: 1px solid var(--lw-border);
  box-shadow: var(--lw-shadow);
}

.explain__intro {
  margin: 0 0 1rem;
  color: var(--lw-text-secondary);
  font-size: 1.05rem;
}

.explain-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--lw-border);
}

.explain-section:last-child {
  border-bottom: 0;
}

.explain-section__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.explain-section__text {
  margin: 0 0 0.75rem;
  color: var(--lw-text-secondary);
}

.explain-section__list {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  list-style: disc;
  color: var(--lw-text-secondary);
  display: grid;
  gap: 0.4rem;
}

.explain-section__callout {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(102, 126, 234, 0.1);
  border-left: 4px solid var(--lw-primary);
  color: var(--lw-text);
  font-weight: 600;
}

.game-detail .game-card__link {
  display: inline-block;
  margin-top: 0.75rem;
}

.page-hero__lead {
  margin: 0;
  max-width: 36rem;
  color: var(--lw-text-secondary);
  font-size: 1.05rem;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list__label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lw-text-secondary);
}

.contact-list__value {
  margin: 0.2rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--lw-radius);
  background: var(--lw-surface);
  border: 1px solid var(--lw-border);
  box-shadow: var(--lw-shadow);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
  font-size: 0.9rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--lw-text);
  background: var(--lw-surface-muted);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(102, 126, 234, 0.45);
  outline-offset: 1px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field--error input,
.field--error textarea {
  border-color: #d64545;
}

.field__error {
  margin: 0;
  color: #b42318;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-alert {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  animation: heroIn 0.35s ease-out;
}

.form-alert--success {
  background: rgba(37, 211, 102, 0.16);
  color: #0d6b32;
}

.form-alert--error {
  background: rgba(214, 69, 69, 0.12);
  color: #9b1c1c;
}

.btn--whatsapp {
  background: #25d366;
  color: #073018;
}

.btn--whatsapp:hover {
  background: #1ebe5b;
}

.whatsapp-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.contact-whatsapp {
  margin-top: 1.5rem;
}

.btn[aria-busy="true"] {
  opacity: 0.8;
  pointer-events: none;
}

.site-footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #25d366;
  font-weight: 700;
  transition: transform 0.2s ease-out, color 0.2s ease-out;
}

.site-footer__whatsapp:hover {
  color: #7dffb0;
  transform: translateY(-1px);
}

.site-footer__whatsapp .whatsapp-icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* About */

.about-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .about-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.about-visual {
  margin: 0;
  border-radius: var(--lw-radius);
  overflow: hidden;
  border: 1px solid var(--lw-border);
  box-shadow: var(--lw-shadow);
}

.about-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

@media (min-width: 800px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  padding: 1.35rem;
  border-radius: var(--lw-radius);
  background: var(--lw-surface);
  border: 1px solid var(--lw-border);
}

.value-card__title {
  margin: 0 0 0.4rem;
  font-weight: 800;
}

.value-card__text {
  margin: 0;
  color: var(--lw-text-secondary);
}

/* Game detail blocks */

.game-detail {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--lw-border);
  align-items: center;
}

@media (min-width: 720px) {
  .game-detail {
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
  }
}

.game-detail:last-child {
  border-bottom: 0;
}

.game-detail__image {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--lw-border);
}

.game-detail__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.game-detail__text {
  margin: 0.5rem 0 0;
  color: var(--lw-text-secondary);
  max-width: 40rem;
}

/* 404 */

.error-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page__code {
  margin: 0;
  font-size: 4rem;
  font-weight: 800;
  color: var(--lw-primary);
  line-height: 1;
}

.error-page__title {
  margin: 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.error-page__text {
  margin: 0 0 1.5rem;
  color: var(--lw-text-secondary);
}

/* Footer */

.site-footer {
  background: #12141c;
  color: rgba(240, 242, 247, 0.88);
  padding: 3rem 0 1.5rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer__logo {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.site-footer__tagline {
  margin: 0;
  opacity: 0.7;
}

.site-footer__heading {
  margin: 0 0 0.75rem;
  font-weight: 800;
  color: #fff;
}

.site-footer__links {
  display: grid;
  gap: 0.45rem;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Reveal motion */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__brand,
  .hero__headline,
  .hero__text,
  .hero__actions,
  .hero__visual,
  [data-reveal] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn:hover,
  .game-card:hover,
  .site-footer__whatsapp:hover {
    transform: none;
  }

  .form-alert {
    animation: none;
  }
}
