/* ---------------------------------------------------------------
   Playzo — arcade-candy design system lifted from the app itself:
   paper #F6F7FB · ink #18233A · grape #6C5CE7 · amber #FFB547
   plus the ten game colors. Fredoka display, Nunito body.
---------------------------------------------------------------- */

:root {
  --paper: #F6F7FB;
  --ink: #18233A;
  --ink-soft: #5A6478;
  --grape: #6C5CE7;
  --grape-deep: #5546C8;
  --grape-soft: #EDEAFD;
  --amber: #FFB547;
  --card: #FFFFFF;

  --c-xox: #6C5CE7;
  --c-memory: #FF6B81;
  --c-reflex: #FFB547;
  --c-number: #00B894;
  --c-rps: #0984E3;
  --c-math: #E17055;
  --c-color: #A55EEA;
  --c-tap: #FF7675;
  --c-seq: #00CEC9;
  --c-mole: #8D6E63;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 14px 34px rgba(24, 35, 58, .08);
  --shadow-lift: 0 22px 44px rgba(24, 35, 58, .14);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Language switching: html[data-lang] hides the other language */
[data-lang="tr"] :lang(en) { display: none !important; }
[data-lang="en"] :lang(tr) { display: none !important; }

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

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

:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ------------------------------ nav ------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 35, 58, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.brand b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.nav-links a:hover { color: var(--grape); }

.lang-pill {
  border: 0;
  cursor: pointer;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--grape-soft);
  color: var(--grape);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .8px;
}

.lang-pill:hover { background: #E2DCFB; }

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

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.orb-1 { width: 220px; height: 220px; background: rgba(108, 92, 231, .13); top: -70px; right: -60px; }
.orb-2 { width: 170px; height: 170px; background: rgba(255, 209, 102, .28); bottom: 40px; left: -70px; }
.orb-3 { width: 150px; height: 150px; background: rgba(255, 107, 129, .16); bottom: -60px; right: 18%; }

@media (prefers-reduced-motion: no-preference) {
  .orb { animation: drift 9s ease-in-out infinite alternate; }
  .orb-2 { animation-duration: 12s; }
  .orb-3 { animation-duration: 10s; }
  @keyframes drift {
    from { transform: translateY(-10px); }
    to   { transform: translateY(14px); }
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 14px;
  color: var(--grape);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.5px;
  margin: 22px 0 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--grape);
}

.hero .lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 30px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 10px 20px 10px 16px;
  text-decoration: none;
  line-height: 1.15;
  cursor: default;
}

.store-badge .ms { font-size: 28px; }

.store-badge small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: .75;
  letter-spacing: .4px;
}

.store-badge span.name {
  font-weight: 800;
  font-size: 16px;
}

.soon-tag {
  background: var(--amber);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 4px;
  letter-spacing: .5px;
}

.hero-meta {
  margin-top: 22px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-meta b { color: var(--c-number); }

/* --------------------- playable demo (signature) ------------------ */

.demo-tilt {
  transform: rotate(-2deg);
  margin-inline: auto;
  max-width: 360px;
}

.demo-card {
  background: var(--card);
  border-radius: 30px;
  box-shadow: var(--shadow-lift);
  padding: 22px;
}

.demo-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.demo-top img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.demo-top b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}

.demo-chip {
  margin-left: auto;
  background: var(--grape-soft);
  color: var(--grape);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 11px;
  letter-spacing: .5px;
}

.demo-status {
  min-height: 26px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 4px 2px 12px;
}

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ttt-cell {
  aspect-ratio: 1;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--grape);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.ttt-cell:hover:enabled { background: var(--grape-soft); transform: scale(1.04); }

.ttt-cell:disabled { cursor: default; }

.ttt-cell.o { color: var(--amber); }

.ttt-cell.win-line { background: #E7F9F1; }

.demo-restart {
  margin-top: 14px;
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 13px;
  background: var(--grape);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  transition: background .12s ease;
}

.demo-restart:hover { background: var(--grape-deep); }

.demo-note {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 14px;
}

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

.section { padding: 76px 0; }

.section-head { max-width: 60ch; margin-bottom: 40px; }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}

/* games grid */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.game-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}

.game-card:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: var(--shadow-lift);
}

.game-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 14px;
}

.game-icon .ms { font-size: 28px; }

.game-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 4px;
}

.game-card p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.feature .ms {
  font-size: 30px;
  color: var(--grape);
  background: var(--grape-soft);
  border-radius: 14px;
  padding: 10px;
  display: inline-block;
  margin-bottom: 14px;
}

.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 6px;
}

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* cta band */

.cta {
  background: linear-gradient(120deg, var(--grape), var(--grape-deep));
  border-radius: 32px;
  color: #fff;
  text-align: center;
  padding: 60px 28px;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 0 0 10px;
}

.cta p {
  opacity: .85;
  margin: 0 0 28px;
  font-size: 17px;
}

.cta .store-row { justify-content: center; }

.cta .store-badge { background: #fff; color: var(--ink); }

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

.footer {
  padding: 46px 0 56px;
  border-top: 1px solid rgba(24, 35, 58, .07);
  margin-top: 30px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
}

.footer .brand img { width: 30px; height: 30px; }

.footer .brand b { font-size: 18px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
}

.footer a:hover { color: var(--grape); }

.footer-copy {
  width: 100%;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* --------------------------- doc pages --------------------------- */

.doc-hero { padding: 64px 0 8px; position: relative; overflow: hidden; }

.doc-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 46px);
  margin: 14px 0 8px;
}

.doc-hero .doc-date {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
}

.doc-body { padding: 36px 0 70px; }

.doc-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4.5vw, 52px);
  max-width: 820px;
}

.doc-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  margin: 38px 0 10px;
}

.doc-card h2:first-child { margin-top: 0; }

.doc-card p, .doc-card li {
  color: #3A445C;
  font-size: 16.5px;
}

.doc-card ul { padding-left: 22px; }

.doc-card .mail {
  font-weight: 800;
  color: var(--grape);
  text-decoration: none;
}

/* --------------------------- support ------------------------------ */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 820px;
  margin-bottom: 46px;
}

.btn {
  display: inline-block;
  margin-top: 14px;
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 12px 22px;
  background: var(--grape);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  transition: background .12s ease;
}

.btn:hover { background: var(--grape-deep); }

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.faq {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 4px 24px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  font-weight: 800;
  font-size: 16.5px;
}

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

.faq summary::after {
  content: "+";
  margin-left: auto;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grape-soft);
  color: var(--grape);
  font-family: var(--font-display);
  font-size: 20px;
  transition: transform .15s ease;
}

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

.faq p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* utility */

.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-card, .ttt-cell, .demo-restart { transition: none; }
}
