:root {
  --bg: #031521;
  --bg-deep: #020d16;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.68);
  --subtle: rgba(185, 236, 255, 0.8);
  --accent: #65e8ff;
  --accent-2: #8bf6ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 32px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #052034 0%, var(--bg) 52%, var(--bg-deep) 100%);
  line-height: 1.5;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(101, 232, 255, 0.14), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(139, 246, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(4, 28, 46, 0.22), transparent 38%);
}
.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.55;
}
.glow-a {
  width: 20rem;
  height: 20rem;
  left: -4rem;
  top: 7rem;
  background: rgba(69, 216, 255, 0.16);
}
.glow-b {
  width: 24rem;
  height: 24rem;
  right: -6rem;
  top: 32rem;
  background: rgba(50, 190, 255, 0.16);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}
.section {
  padding: 4.5rem 0;
}
.section-heading {
  max-width: 720px;
  margin-bottom: 2.25rem;
}
.section-heading h2,
.hero h1,
.cta-card h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
}
.hero h1 span { color: #c9f8ff; display: block; }
.section-heading h2,
.cta-card h2 {
  font-size: clamp(2.25rem, 6vw, 4.1rem);
}
.section-heading p,
.lead,
.text-panel p,
.cta-card p,
.social-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}
.eyebrow,
.eyebrow-pill {
  color: rgba(193, 243, 255, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
}
.eyebrow-pill {
  display: inline-flex;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(101, 232, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}
.align-center { text-align: center; margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(3, 21, 33, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(101, 232, 255, 0.16);
  box-shadow: 0 0 36px rgba(101, 232, 255, 0.12);
  font-weight: 800;
  color: #d2fbff;
}
.brand-copy {
  display: grid;
  gap: 0.1rem;
}
.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-copy small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.site-nav > a:not(.button) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}
.site-nav > a:not(.button):hover { color: #fff; }
.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}
.menu-toggle span {
  width: 1.1rem;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.92rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(180deg, #8cf2ff 0%, var(--accent) 100%);
  color: #032234;
  box-shadow: 0 10px 30px rgba(88, 233, 255, 0.24);
}
.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.92);
}
.button-light {
  background: #fff;
  color: #032234;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
}
.hero-copy { max-width: 44rem; }
.hero-copy .lead { max-width: 42rem; margin-top: 1.5rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}
.stat-card strong {
  display: block;
  font-size: 1.1rem;
  color: #d9fbff;
}
.stat-card span {
  color: rgba(255,255,255,0.58);
  font-size: 0.95rem;
}
.glass-card,
.stat-card,
.image-card,
.faq-card,
.social-proof article {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.stat-card,
.social-proof article,
.feature-card,
.text-panel,
.faq-card,
.cta-card {
  border-radius: var(--radius);
}
.stat-card { padding: 1.25rem; }
.hero-gallery {
  padding: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  border-radius: 2.2rem;
  align-items: stretch;
}
.hero-gallery figure,
.image-card {
  overflow: hidden;
  border-radius: 1.85rem;
  margin: 0;
}
.hero-gallery img,
.image-card img {
  object-fit: cover;
  height: 100%;
}
.hero-gallery figure {
  height: 21rem;
}
.hero-gallery .offset-top,
.hero-gallery .offset-bottom {
  transform: none;
}
.hero-gallery .img-bottom {
  object-position: 50% 100%;
}
.hero-gallery .img-center {
  object-position: 75% 25%;
}
.hero-gallery .img-top {
  object-position: 65% 15%;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.feature-card { padding: 1.6rem; }
.feature-card h3,
.text-panel h3,
.proof-grid h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.feature-card p,
.proof-grid p,
.stack-list p,
.bullet-list,
.faq-card p {
  color: var(--muted);
}
.icon-orb {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  margin-bottom: 1.1rem;
  background: radial-gradient(circle at 30% 30%, rgba(139,246,255,0.4), rgba(101,232,255,0.08));
  border: 1px solid rgba(101, 232, 255, 0.16);
  box-shadow: 0 0 40px rgba(101, 232, 255, 0.12);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  gap: 1.4rem;
  align-items: stretch;
}
.text-panel { padding: 2rem; }
.stack-list { display: grid; gap: 1.25rem; margin-top: 1.8rem; }
.stack-list p { margin: 0.45rem 0 0; }
.phone-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.image-card { min-height: 22rem; }
.image-card img { width: 100%; }

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 32rem);
  gap: 2rem;
  align-items: end;
}
.visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.2rem;
  align-items: stretch;
}
.visual-grid .large {
  min-height: 44rem;
  height: 44rem;
}
.visual-grid .large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.visual-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: 1.2rem;
  height: 44rem;
}
.visual-side > .image-card,
.mini-grid .image-card {
  min-height: 0;
  height: 100%;
}
.visual-side > .image-card img,
.mini-grid .image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  height: 100%;
}
.crop-top-10{
  object-position: center 18%;
}

.bullet-list {
  padding-left: 1.2rem;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.bullet-list li { line-height: 1.75; }

.social-proof { padding: 2rem; }
.social-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 34rem);
  gap: 2rem;
  align-items: end;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.social-proof article { padding: 1.5rem; }
.social-proof article p { margin-bottom: 0; line-height: 1.7; }

.faq-list {
  max-width: 56rem;
  margin: 2rem auto 0;
  display: grid;
  gap: 1rem;
}
.faq-card { padding: 1.5rem 1.6rem; }
.faq-card summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.15rem;
  font-weight: 700;
  position: relative;
  padding-right: 2rem;
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--subtle);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 180ms ease;
}
.faq-card[open] summary::after { transform: rotate(45deg); }
.faq-card p { margin: 1rem 0 0; line-height: 1.75; }

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(33, 190, 236, 0.18), rgba(255,255,255,0.05));
  overflow: hidden;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-self: end;
}


.legal-container {
  max-width: 900px;
}
.legal-card {
  padding: 2rem;
}
.legal-card h2,
.legal-card h3 {
  margin: 2rem 0 0.8rem;
  letter-spacing: -0.03em;
}
.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.8;
}
.legal-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.3rem;
}
.lang-switch {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.lang-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}
.lang-switch button.active {
  background: linear-gradient(180deg, #8cf2ff 0%, var(--accent) 100%);
  color: #032234;
  border-color: transparent;
}
.lang { display: none; }
.lang.active { display: block; }

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0 3rem;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.footer-wrap p,
.footer-wrap a {
  color: rgba(255,255,255,0.5);
  font-size: 0.94rem;
}
.footer-wrap nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-wrap a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 1100px) {
  .hero,
  .split-section,
  .visual-grid,
  .split-heading,
  .social-heading,
  .cta-card {
    grid-template-columns: 1fr;
  }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    padding: 1rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(4, 24, 37, 0.96);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .nav-cta { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-gallery figure { height: 18rem; }
  .feature-grid,
  .phone-grid,
  .settings-grid,
  .proof-grid,
  .mini-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .hero-gallery .offset-top,
  .hero-gallery .offset-bottom { transform: none; }

  .visual-grid,
  .visual-side,
  .mini-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .visual-grid .large,
  .visual-side,
  .visual-side > .image-card,
  .mini-grid .image-card {
    min-height: 0;
    height: auto;
  }

  .visual-grid .large,
  .visual-side > .image-card,
  .mini-grid .image-card {
    aspect-ratio: 9 / 19.5;
  }

  .visual-grid .large img,
  .visual-side > .image-card img,
  .mini-grid .image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cta-actions,
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .legal-card { padding: 1.4rem; }
  .lang-switch button { width: 100%; }
}

@media (max-width: 560px) {
  .section { padding: 3.4rem 0; }
  .container { width: min(var(--container), calc(100% - 1.25rem)); }
  .hero-gallery,
  .social-proof,
  .text-panel,
  .cta-card,
  .feature-card,
  .faq-card { padding: 1.15rem; }
  .hero-gallery figure { height: 15rem; }
}


.play-demo-section {
  position: relative;
}

.demo-heading {
  margin-bottom: 2rem;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 1.2rem;
  align-items: stretch;
}

.demo-game-card,
.demo-copy-card {
  padding: 1.6rem;
}

.demo-game-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.demo-kicker {
  margin: 0 0 0.35rem;
  color: rgba(193, 243, 255, 0.78);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.demo-game-topbar h3,
.demo-copy-card h3,
.download-modal__card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

.demo-status {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #d9fbff;
  white-space: nowrap;
  font-weight: 700;
}

.demo-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.demo-cell {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.45rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(235,245,252,0.9));
  min-height: 7.6rem;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 800;
  color: #06243a;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 12px 30px rgba(0,0,0,0.16);
}

.demo-cell:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 18px 30px rgba(0,0,0,0.2);
}

.demo-cell.x { color: #ff6b6b; }
.demo-cell.o { color: #49c7ff; }
.demo-cell.winner {
  background: linear-gradient(180deg, rgba(101, 232, 255, 0.28), rgba(139, 246, 255, 0.18));
  color: #e9fdff;
  border-color: rgba(139, 246, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(139,246,255,0.14), 0 18px 40px rgba(55, 196, 255, 0.22);
}

.demo-actions-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.demo-restart {
  min-width: 10rem;
}

.demo-scoreboard {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.demo-scoreboard span {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255,255,255,0.72);
}

.demo-scoreboard strong {
  color: #fff;
  margin-left: 0.3rem;
}

.demo-copy-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-copy-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.demo-copy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.demo-bullets {
  margin-top: 1.25rem;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.download-modal.is-open {
  display: block;
}

.download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 13, 22, 0.72);
  backdrop-filter: blur(10px);
}

.download-modal__card {
  position: relative;
  width: min(34rem, calc(100% - 1.5rem));
  margin: min(14vh, 7rem) auto 0;
  padding: 2rem;
  z-index: 1;
}

.download-modal__card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.download-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.download-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: white;
  cursor: pointer;
  font-size: 1.3rem;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .demo-board {
    gap: 0.75rem;
  }

  .demo-cell {
    min-height: 6.35rem;
    border-radius: 1.1rem;
  }

  .demo-game-topbar,
  .demo-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-status,
  .demo-scoreboard span {
    text-align: center;
  }

  .download-modal__actions {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .demo-game-card,
  .demo-copy-card,
  .download-modal__card {
    padding: 1.15rem;
  }

  .demo-cell {
    min-height: 4.9rem;
    font-size: 2rem;
  }
}


/* language switcher */
.language-switcher { position: relative; }
.language-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.language-switcher__icon { font-size: 1rem; line-height: 1; }
.language-switcher__menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 12rem;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(4,24,37,0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  z-index: 60;
}
.language-switcher__menu.is-open { display: flex; }
.language-switcher__menu button {
  width: 100%;
  text-align: left;
  padding: 0.72rem 0.8rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: rgba(255,255,255,0.82);
  cursor: pointer;
}
.language-switcher__menu button:hover,
.language-switcher__menu button.is-active { background: rgba(255,255,255,0.08); color: #fff; }

/* demo */
.play-demo-section { padding-top: 1rem; }
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.4rem;
  align-items: stretch;
}
.demo-game-card,
.demo-copy-card { padding: 1.8rem; }
.demo-game-topbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem;
}
.demo-kicker { margin: 0 0 0.35rem; color: var(--subtle); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; }
.demo-game-topbar h3,
.demo-copy-card h3 { margin: 0; font-size: 1.8rem; letter-spacing: -0.03em; }
.demo-status { padding: 0.65rem 0.95rem; border-radius: 999px; background: rgba(255,255,255,0.07); color: #d8fbff; font-weight: 700; white-space: nowrap; }
.demo-board {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1.1rem;
}
.demo-cell {
  aspect-ratio: 1 / 1;
  border-radius: 1.35rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  cursor: pointer;
}
.demo-cell.x { color: #aef7ff; }
.demo-cell.o { color: #ffffff; }
.demo-cell.winner { box-shadow: 0 0 0 1px rgba(101,232,255,0.4), 0 0 40px rgba(101,232,255,0.18); }
.demo-actions-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.demo-scoreboard { display: flex; flex-wrap: wrap; gap: 0.9rem; color: var(--muted); }
.demo-scoreboard strong { color: #fff; }
.demo-bullets { margin-top: 1.2rem; }
.demo-copy-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

.download-modal {
  position: fixed; inset: 0; display: none; z-index: 80;
}
.download-modal.is-open { display: block; }
.download-modal__backdrop { position: absolute; inset: 0; background: rgba(2,13,22,0.64); }
.download-modal__card {
  position: relative;
  width: min(32rem, calc(100% - 2rem));
  margin: 8vh auto 0;
  padding: 2rem;
  z-index: 1;
}
.download-modal__card h3 { margin: 0.35rem 0 0.75rem; font-size: 2rem; letter-spacing: -0.03em; }
.download-modal__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.3rem; }
.download-modal__close {
  position: absolute; top: 0.85rem; right: 0.9rem; width: 2.3rem; height: 2.3rem; border-radius: 999px; border: 0; background: rgba(255,255,255,0.07); color: #fff; cursor: pointer;
}
body.modal-open { overflow: hidden; }

/* privacy page */
.legal-container { max-width: 900px; }
.legal-card { padding: 2.2rem; }
.legal-card h2 { margin: 2rem 0 0.8rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.8; }
.legal-card ul { padding-left: 1.25rem; }
.legal-card a { color: #d6fbff; text-decoration: underline; }

.privacy-note {
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
}
.privacy-note p {
  margin: 0;
  font-size: 0.94rem;
}

@media (max-width: 1100px) {
  .demo-layout { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .site-nav .language-switcher { width: 100%; }
  .language-switcher__trigger { width: 100%; justify-content: center; }
  .language-switcher__menu { left: 0; right: 0; min-width: 0; }
  .demo-game-topbar,
  .demo-actions-row,
  .download-modal__actions,
  .demo-copy-actions { flex-direction: column; align-items: stretch; }
  .demo-scoreboard { justify-content: space-between; }
}


/* final ui refinements */
.hero h1 {
  font-size: clamp(2.55rem, 5.2vw, 6.1rem);
  line-height: 0.98;
  max-width: 11ch;
  text-wrap: balance;
}
.hero h1 span {
  display: inline;
}

.language-switcher__trigger {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font: inherit;
}
.language-switcher__trigger:hover {
  color: #fff;
}
.language-switcher__trigger:focus-visible {
  outline: none;
  color: #fff;
}
.language-switcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: #fff;
}
.language-switcher__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.language-switcher__menu {
  margin-top: 0.15rem;
}

.demo-scoreboard span {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 4.2rem);
    max-width: none;
  }
  .hero h1 span {
    display: block;
  }
  .site-nav .language-switcher {
    width: auto;
  }
  .language-switcher__trigger {
    width: auto;
    justify-content: center;
  }
}
