/* ================================================
   SEQUENCE — index.css
   ================================================ */

:root {
  --sq-primary:   #34C658;
  --sq-blue:      #31ACE6;
  --sq-accent:    #FFCC00;
  --sq-dark:      #363636;
  --sq-game:      #ffffff;
  --sq-light:     #fbfbfb;
  --sq-surface:   #FFFFFF;
  --sq-border:    rgba(49, 172, 230, 0.22);
  --sq-text:      #1A1A1C;
  --sq-text-soft: #636366;
  --text-color:   #1A1A1C;
  --link-color:   #248A3D;
  --link-visited-color: #1A6630;
}

a:not(.ui)::before {
  content: '';
}

body {
  display: flex;
  flex-flow: column nowrap;
  font-size: 1.6rem;
  color: var(--sq-text);
}

body > section {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* ---- HERO ---- */

body > header {
  background: linear-gradient(135deg, #31ACE6 0%, #0055ff 100%);
  padding: 72px 0 64px;
  text-align: center;
}

body > header > div.column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 192px;
  margin: 0 auto 36px;
}

.hero-grid .cell {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  transition: background 120ms ease, box-shadow 120ms ease;
}

.hero-grid .cell.active {
  background: var(--sq-primary);
  box-shadow: 0 0 18px rgba(52, 198, 88, 0.80);
}

.hero-label {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: #000000;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero-icon {
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.hero-headline {
  font-size: 4.4rem;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 16px;
  max-width: 680px;
}

.hero-sub {
  font-size: 1.8rem;
  line-height: 1.6;
  color: rgba(238, 238, 238, 0.7);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-download {
  display: flex;
  justify-content: center;
}

.hero-download img {
  height: 52px;
  display: block;
}

/* ---- STATS ---- */

body > section.stats {
  background: var(--sq-light);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 5rem;
  font-weight: 900;
  color: var(--sq-primary);
  line-height: 1;
}

.stat-number.stat-word {
  font-size: 3rem;
}

.stat-label {
  display: block;
  font-size: 1.4rem;
  color: var(--sq-text-soft);
  margin-top: 8px;
  font-weight: 500;
}

/* ---- FEATURES ---- */

body > section.features {
  background: var(--sq-light);
}

body > section.features > div.column > h2 {
  text-align: center;
  color: var(--sq-text);
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

body > section.features > div.column > p.section-intro {
  text-align: center;
  color: var(--sq-text-soft);
  margin-bottom: 40px;
  font-size: 1.7rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--sq-surface);
  border-radius: 20px;
  padding: 32px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.fc-icon {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sq-text);
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 1.5rem;
  color: var(--sq-text-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---- MEMORY TEST ---- */

body > section.memory-test {
  background: var(--sq-light);
}

body > section.memory-test > div.column > h2 {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--sq-text);
  margin-bottom: 10px;
}

body > section.memory-test > div.column > p.section-intro {
  text-align: center;
  color: var(--sq-text-soft);
  font-size: 1.7rem;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.mt-game {
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
}

.mt-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sq-text);
  min-height: 2.2rem;
}

.mt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mt-cell {
  aspect-ratio: 1;
  border-radius: 14px;
  background: #E5E4EA;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 80ms ease, box-shadow 80ms ease, transform 80ms ease;
}

.mt-cell:focus { outline: none; }

@media (hover: hover) {
  .mt-cell:hover { border-color: var(--sq-primary); }
}

.mt-cell.active {
  background: var(--sq-primary);
  box-shadow: 0 0 14px rgba(52, 198, 88, 0.55);
  transform: scale(1.05);
}

.mt-cell.wrong {
  background: #FF453A;
  box-shadow: none;
  transform: none;
}

.mt-message {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--sq-text-soft);
  min-height: 2.6rem;
  margin-bottom: 18px;
}

.mt-btn {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 999px;
  border: none;
  background: var(--sq-primary);
  color: #FFFFFF;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.mt-btn:hover { opacity: 0.86; }

.mt-cta-hint {
  text-align: center;
  color: var(--sq-text-soft);
  font-size: 1.6rem;
  margin-top: 36px;
  margin-bottom: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.mt-cta {
  text-align: center;
}

/* ---- MINI-GAMES ---- */

body > section.games > div.column > h2 {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--sq-text);
  margin-bottom: 10px;
}

body > section.games > div.column > p.section-intro {
  text-align: center;
  color: var(--sq-text-soft);
  font-size: 1.7rem;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.game-card {
  background: var(--sq-light);
  border-radius: 20px;
  padding: 28px 24px;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 2.2rem;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.game-card h3 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--sq-text);
  margin: 0 0 8px;
}

.game-card p {
  font-size: 1.5rem;
  color: var(--sq-text-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---- BENEFITS ---- */

body > section.benefits {
  background: var(--sq-surface);
}

body > section.benefits > div.column > h2 {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--sq-text);
  margin-bottom: 10px;
}

body > section.benefits > div.column > p.section-intro {
  text-align: center;
  color: var(--sq-text-soft);
  font-size: 1.7rem;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--sq-light);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
}

.benefit-icon {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.benefit-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sq-text);
  margin: 0 0 10px;
}

.benefit-card p {
  font-size: 1.5rem;
  color: var(--sq-text-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---- FAQ ---- */

body > section.faq {
  background: var(--sq-light);
}

body > section.faq > div.column > h2 {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--sq-text);
  margin-bottom: 40px;
}

body > section.faq ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body > section.faq details.elevatable {
  background: var(--sq-surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 150ms ease;
}

body > section.faq details.elevatable[open] {
  border-color: var(--sq-border);
}

body > section.faq summary.interactable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

body > section.faq summary.interactable::-webkit-details-marker { display: none; }

body > section.faq summary.interactable p {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--sq-text);
  line-height: 1.4;
}

body > section.faq summary.interactable > span.icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: var(--sq-primary);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6"/></svg>') no-repeat center;
  mask-size: contain;
  transition: transform 200ms ease;
}

body > section.faq details[open] summary > span.icon {
  transform: rotate(180deg);
}

body > section.faq .content {
  padding: 0 20px 18px;
}

body > section.faq .content p {
  margin: 0;
  font-size: 1.6rem;
  color: var(--sq-text-soft);
  line-height: 1.7;
}

body > section.faq .content p b {
  color: var(--sq-text);
}

/* ---- FOOTER ---- */

body > footer {
  background: #323739;
  padding: 48px 0 32px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px 48px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.40);
  margin-bottom: 4px;
}

body > footer a:not(.ui) {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  text-decoration: none;
}

body > footer a:not(.ui):hover {
  color: #FFFFFF;
}

body > footer a:not(.ui):visited {
  color: rgba(255, 255, 255, 0.60);
}

.footer-lang-col {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.lang-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.80) !important;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF !important;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 1);
  margin: 0;
}

/* ---- RESPONSIVE ---- */

@media screen and (max-width: 900px) {
  .features-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-headline {
    font-size: 3.4rem;
  }
}

@media screen and (max-width: 600px) {
  body > header {
    padding: 56px 0 48px;
  }

  .hero-headline {
    font-size: 2.8rem;
  }

  .hero-label {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .features-grid,
  .benefits-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }

  body > section.features > div.column > h2,
  body > section.games > div.column > h2,
  body > section.benefits > div.column > h2,
  body > section.faq > div.column > h2 {
    font-size: 2.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-lang-col {
    grid-column: 1 / -1;
    justify-content: center;
  }
}
