/* ==========================================================================
   PRISMORA — official website styles
   Shares the game's visual identity: deep indigo / midnight base, cyan,
   violet and amber accents, glossy tiles, soft glass surfaces.
   Mobile-first, fluid, no external fonts or assets.
   ========================================================================== */

:root {
  /* Base inks */
  --ink-900: #070a18;
  --ink-800: #0b0e22;
  --ink-700: #141936;
  --ink-600: #1d2450;
  --ink-500: #2a3270;

  /* Accents */
  --indigo: #5b6bff;
  --indigo-light: #8c97ff;
  --cyan: #2fd4e0;
  --cyan-soft: #8af1f8;
  --violet: #9b5bff;
  --violet-soft: #c9a0ff;
  --amber: #ffb347;
  --rose: #ff6fa5;
  --mint: #4ade80;

  /* Text */
  --text: #f2f5ff;
  --text-dim: #a7aeda;
  --text-faint: #6e77a8;

  /* Surfaces */
  --panel: rgba(20, 25, 54, 0.72);
  --panel-solid: #141936;
  --stroke: rgba(140, 151, 255, 0.22);
  --stroke-strong: rgba(140, 151, 255, 0.42);

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 12px 30px rgba(6, 8, 24, 0.45);
  --shadow-glow: 0 12px 34px rgba(91, 107, 255, 0.35);

  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(18px, 4vw, 44px);

  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --header-h: 68px;
}

/* ---------------------------------------------------------------- reset */

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

html {
  scroll-behavior: smooth;
  /* offset anchor jumps for the sticky header */
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(120% 80% at 50% -12%, #1b2154 0%, transparent 58%),
    radial-gradient(90% 60% at 104% 108%, #2a1b52 0%, transparent 55%),
    linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
iframe { max-width: 100%; }

img { height: auto; display: block; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  font-weight: 780;
}

h1 { font-size: clamp(2.05rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }

p { margin: 0 0 1em; }

a { color: var(--cyan-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

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

::selection { background: rgba(91, 107, 255, 0.5); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--indigo);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 14px 14px;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(52px, 8vw, 104px);
  position: relative;
}

.section--tight { padding-block: clamp(38px, 5vw, 64px); }

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 52px);
  text-align: center;
}
.section__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 12px;
  padding: 6px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(140, 151, 255, 0.07);
}
.section__lead { color: var(--text-dim); font-size: 1.05rem; margin: 0; }

.gradient-text {
  background: linear-gradient(120deg, #ffffff 0%, var(--cyan-soft) 45%, var(--indigo-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------- buttons */

.btn {
  --btn-bg: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--btn-bg);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.14s ease, box-shadow 0.22s ease, background 0.22s ease,
    border-color 0.22s ease, opacity 0.22s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--primary {
  border: none;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { box-shadow: 0 18px 42px rgba(91, 107, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.3); }

.btn--ghost { background: rgba(140, 151, 255, 0.09); }
.btn--ghost:hover { background: rgba(140, 151, 255, 0.16); border-color: var(--stroke-strong); }

.btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
  box-shadow: none;
}
.btn--quiet:hover { color: var(--text); background: rgba(140, 151, 255, 0.08); }

.btn--small { min-height: 44px; padding: 10px 18px; font-size: 0.92rem; }

.btn__icon { width: 22px; height: 22px; flex: 0 0 auto; display: inline-grid; place-items: center; }
.btn__icon svg { width: 100%; height: 100%; display: block; }

/* Store button (dark, badge-like) */
.btn--store {
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
  background: rgba(11, 14, 34, 0.75);
  border-color: var(--stroke-strong);
  padding: 12px 20px;
}
.btn--store .store-text { display: flex; flex-direction: column; line-height: 1.2; }
.btn--store .store-text small { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.btn--store .store-text strong { font-size: 1rem; font-weight: 700; }

.btn.is-disabled,
.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.62;
  filter: saturate(0.6);
}
.btn.is-disabled:hover,
.btn[aria-disabled='true']:hover { transform: none; box-shadow: var(--shadow-soft); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 24, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--stroke);
  background: rgba(7, 10, 24, 0.9);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 6px 4px;
}
.brand-link:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 13px);
  grid-template-rows: repeat(2, 13px);
  gap: 3px;
}
.brand-mark span {
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 8px rgba(0, 0, 0, 0.35);
}
.brand-mark span:nth-child(1) { background: linear-gradient(160deg, var(--indigo-light), var(--indigo)); }
.brand-mark span:nth-child(2) { background: linear-gradient(160deg, var(--cyan-soft), var(--cyan)); }
.brand-mark span:nth-child(3) { background: linear-gradient(160deg, var(--violet-soft), var(--violet)); }
.brand-mark span:nth-child(4) { background: linear-gradient(160deg, #ffd79a, var(--amber)); }

.brand-word {
  background: linear-gradient(120deg, #ffffff 0%, var(--cyan-soft) 60%, var(--indigo-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-desktop { display: none; }
.nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-desktop a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current='page'] {
  color: var(--text);
  background: rgba(140, 151, 255, 0.1);
  text-decoration: none;
}

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(140, 151, 255, 0.09);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before { content: ''; position: absolute; top: -6px; }
.menu-toggle__bars::after { content: ''; position: absolute; top: 6px; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(7, 10, 24, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 22px var(--gutter) 40px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 15px 16px;
  border-radius: 14px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.06rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.mobile-nav a:hover,
.mobile-nav a[aria-current='page'] { background: rgba(140, 151, 255, 0.1); border-color: var(--stroke); text-decoration: none; }
.mobile-nav .btn { width: 100%; }

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

.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 84px) clamp(46px, 8vw, 96px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.5;
  animation: drift 16s ease-in-out infinite alternate;
}
.orb--1 { width: 340px; height: 340px; background: #3b49c9; top: -110px; left: -120px; }
.orb--2 { width: 300px; height: 300px; background: #7a3bd9; bottom: -60px; right: -120px; animation-delay: -5s; }
.orb--3 { width: 220px; height: 220px; background: #1e8f9e; top: 40%; left: -80px; animation-delay: -9s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -26px, 0) scale(1.08); }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 6vw, 64px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(140, 151, 255, 0.07);
  margin-bottom: 22px;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

.hero h1 { margin-bottom: 18px; }
.hero__sub { color: var(--text-dim); font-size: 1.1rem; max-width: 56ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}
.hero__actions .btn { flex: 1 1 220px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-row .btn { flex: 1 1 220px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  color: var(--text-faint);
  font-size: 0.88rem;
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .tick { color: var(--cyan); display: inline-grid; place-items: center; width: 15px; height: 15px; flex: 0 0 auto; }
.hero__trust .tick svg { width: 100%; height: 100%; display: block; }

/* ------------------------------------------------------ game board preview */

.board-preview {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(91, 107, 255, 0.22), transparent 70%),
    var(--panel);
  box-shadow: var(--shadow-deep);
}

.board {
  --n: 8;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  gap: clamp(3px, 0.9vw, 7px);
  width: min(360px, 74vw);
  aspect-ratio: 1;
  padding: clamp(8px, 1.6vw, 14px);
  border-radius: var(--radius-md);
  background: rgba(7, 10, 24, 0.72);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.55);
}
.cell {
  border-radius: clamp(4px, 1vw, 8px);
  background: rgba(140, 151, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(140, 151, 255, 0.06);
}
.cell.is-filled {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 10px rgba(0, 0, 0, 0.35);
  animation: tileIn 0.4s ease both;
}
.cell.c1 { background: linear-gradient(160deg, var(--indigo-light), var(--indigo)); }
.cell.c2 { background: linear-gradient(160deg, var(--cyan-soft), var(--cyan)); }
.cell.c3 { background: linear-gradient(160deg, var(--violet-soft), var(--violet)); }
.cell.c4 { background: linear-gradient(160deg, #ffd79a, var(--amber)); }
.cell.c5 { background: linear-gradient(160deg, #ffb3ce, var(--rose)); }
.cell.c6 { background: linear-gradient(160deg, #9ff5c0, var(--mint)); }
@keyframes tileIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.board-caption {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--ink-900);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
}

/* --------------------------------------------------------------- features */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-strong);
  box-shadow: var(--shadow-deep);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); margin: 0; font-size: 0.96rem; }

.card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(47, 212, 224, 0.18), rgba(91, 107, 255, 0.16));
  border: 1px solid var(--stroke);
}
.card__icon svg { width: 26px; height: 26px; display: block; }
.card__icon svg [stroke] { stroke: var(--cyan-soft); }
.card__icon svg [fill]:not([fill='none']) { fill: var(--cyan-soft); }

/* ------------------------------------------------------------ how to play */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 2vw, 20px);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(20, 25, 54, 0.85), rgba(11, 14, 34, 0.7));
  box-shadow: var(--shadow-soft);
}
.step__num {
  counter-increment: step;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow: var(--shadow-glow);
  margin-bottom: 16px;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

/* ------------------------------------------------------------------- why */

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.why__points { display: grid; gap: 16px; }
.why__point {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--panel);
}
.why__point .bullet {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 179, 71, 0.16);
  color: var(--amber);
  font-weight: 800;
}
.why__point .bullet svg { width: 18px; height: 18px; display: block; }
.why__point h3 { font-size: 1.05rem; margin-bottom: 4px; }
.why__point p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

/* -------------------------------------------------------------- downloads */

.downloads {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-strong);
  background:
    radial-gradient(90% 80% at 50% -10%, rgba(91, 107, 255, 0.24), transparent 65%),
    var(--panel);
  box-shadow: var(--shadow-deep);
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 28px;
  text-align: left;
}
.download-item { display: flex; flex-direction: column; gap: 8px; }
.download-item .btn { width: 100%; }
.download-status {
  font-size: 0.8rem;
  color: var(--amber);
  min-height: 1.2em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.download-status.is-ready { color: var(--mint); }

/* ------------------------------------------------------------------ play */

.play-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-strong);
  background: var(--ink-900);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}
.play-frame iframe {
  display: block;
  width: 100%;
  height: min(78vh, 720px);
  border: 0;
  background: var(--ink-900);
}
.play-placeholder {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: clamp(40px, 8vw, 90px) 24px;
  text-align: center;
}
.play-note { color: var(--text-faint); font-size: 0.86rem; margin: 12px 0 0; }

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

.faq-list { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--panel);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  font-weight: 680;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item summary:hover { background: rgba(140, 151, 255, 0.06); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--text-dim); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

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

.page-head {
  padding-block: clamp(40px, 6vw, 76px) clamp(20px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}
.page-head__inner { max-width: var(--container-narrow); }
.page-head p { color: var(--text-dim); font-size: 1.06rem; }
.breadcrumb { font-size: 0.84rem; color: var(--text-faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--cyan-soft); }

/* ---------------------------------------------------------- legal / prose */

.prose { max-width: var(--container-narrow); margin-inline: auto; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.12rem; }
.prose p, .prose li { color: var(--text-dim); }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--text); }
.prose a { color: var(--cyan-soft); }
.prose .callout {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 179, 71, 0.08);
  color: var(--text);
  font-size: 0.95rem;
}
.prose .callout strong { color: var(--amber); }
.meta-line { font-size: 0.85rem; color: var(--text-faint); }

/* ------------------------------------------------------------------ about */

.about-grid { display: grid; gap: clamp(28px, 5vw, 52px); }
.about-block h2 { margin-bottom: 12px; }
.about-block p { color: var(--text-dim); }
.status-card {
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(160deg, rgba(47, 212, 224, 0.12), rgba(91, 107, 255, 0.12));
  box-shadow: var(--shadow-soft);
}
.status-card h2 { font-size: 1.25rem; }

/* --------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 52px);
  align-items: start;
}
.contact-aside { display: grid; gap: 16px; }
.contact-info {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--panel);
}
.contact-info h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-info p { margin: 0; color: var(--text-dim); font-size: 0.92rem; word-break: break-word; }

.form {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; font-size: 0.92rem; margin-bottom: 7px; }
.field .req { color: var(--rose); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(7, 10, 24, 0.7);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  min-height: 50px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 212, 224, 0.22);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--rose); }
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 0.83rem;
  color: var(--rose);
}
.field.has-error .field__error { display: block; }

.form__privacy { font-size: 0.85rem; color: var(--text-faint); margin: 4px 0 20px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__actions .btn { flex: 1 1 200px; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  border: 1px solid var(--stroke);
  background: rgba(140, 151, 255, 0.08);
}
.form-status.is-visible { display: block; }
.form-status[data-state='success'] { border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.12); color: #d6ffe6; }
.form-status[data-state='error'] { border-color: rgba(255, 111, 165, 0.5); background: rgba(255, 111, 165, 0.12); color: #ffdce9; }
.form-status[data-state='info'] { border-color: var(--stroke-strong); background: rgba(255, 179, 71, 0.1); color: #ffe9c9; }

.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn[disabled] { cursor: progress; opacity: 0.75; }

.hcaptcha-slot { margin: 4px 0 18px; min-height: 0; }

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

.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--stroke);
  background: rgba(7, 10, 24, 0.6);
  padding-block: clamp(40px, 6vw, 64px) 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer__brand p { color: var(--text-dim); font-size: 0.92rem; max-width: 42ch; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.footer__col h4 {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col a { color: var(--text-dim); font-size: 0.93rem; text-decoration: none; }
.footer__col a:hover { color: var(--cyan-soft); text-decoration: underline; }
.footer__bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--stroke);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.84rem;
}
.footer__bottom p { margin: 0; max-width: 62ch; }

/* ------------------------------------------------------------------- 404 */

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(50px, 10vw, 110px);
}
.error-page .code {
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 850;
  line-height: 1;
  margin: 0;
  background: linear-gradient(120deg, var(--cyan-soft), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* --------------------------------------------------------------- helpers */

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
/* Entrance animations are safe: they run once on load and always end in the
   visible state, so content is never hidden if scripting or observation fails. */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.card, .step, .why__point, .status-card, .contact-info, .form, .downloads, .play-frame {
  animation: fadeUp 0.55s ease both;
}
.card:nth-child(2), .step:nth-child(2), .why__point:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3), .step:nth-child(3), .why__point:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4), .step:nth-child(4), .why__point:nth-child(4) { animation-delay: 0.18s; }
.card:nth-child(5), .step:nth-child(5) { animation-delay: 0.24s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.36s; }
.card:nth-child(8) { animation-delay: 0.42s; }

/* -------------------------------------------------------- breakpoints */

@media (min-width: 700px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .why__grid { grid-template-columns: 0.9fr 1.1fr; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; }
  .footer__grid { grid-template-columns: 1.2fr 1.6fr; }
  .header__cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 1600px) {
  :root { --container: 1280px; }
}

/* Very large screens / TVs: keep content from stretching, keep type readable. */
@media (min-width: 2000px) {
  :root { --container: 1360px; }
  body { font-size: 19px; }
}

@media (max-width: 480px) {
  .hero__actions .btn,
  .store-row .btn { flex-basis: 100%; }
  .btn { font-size: 0.97rem; }
}

/* ---------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .cell.is-filled { animation: none; }
  .card, .step, .why__point, .status-card, .contact-info, .form, .downloads, .play-frame { animation: none; }
  .btn, .card, .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
