/* =========================================================
   Numbrmix — shared site styles
   ========================================================= */
:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --card: #172236;
  --card-2: #1b2942;
  --border: #223046;
  --border-soft: #1a2740;
  --text: #e6ecff;
  --muted: #97a3bd;
  --muted-2: #6f7c98;
  --accent: #ffb01f;
  --accent-2: #ff5a5f;
  --accent-3: #38d9a9;
  --accent-4: #38bdf8;
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 700px at 12% -10%, #1b2a4a 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 8%, #2a1740 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.2px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .logo {
  width: 42px; height: 42px;
  object-fit: contain; display: block;
}
.brand .name { font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #23c483, #16b26a);
  color: #06210f !important; font-weight: 800; font-size: 14px;
  box-shadow: 0 8px 22px rgba(35, 196, 131, 0.22);
}
.nav-cta:hover { transform: translateY(-1px); }

/* Home page: header floats transparently over the full-screen hero */
.home .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background .28s ease, border-color .28s ease, backdrop-filter .28s ease;
}
.home .site-header.scrolled {
  background: rgba(11, 18, 32, 0.82);
  border-bottom-color: var(--border-soft);
  backdrop-filter: saturate(140%) blur(12px);
}

/* ---------- Monument-Valley-style full-screen hero ---------- */
.hero-mv {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  text-align: center;
  padding: 90px 24px 60px;
  background: url("/hero-bg.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero-mv__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 50% 46%, rgba(255,255,255,0.28), transparent 70%),
    linear-gradient(180deg, rgba(9,12,26,0.20) 0%, transparent 30%, transparent 70%, rgba(9,12,26,0.30) 100%);
  pointer-events: none;
}
.hero-mv__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  color: #14121f;
}
.mv-orn { width: min(340px, 78vw); height: auto; color: #1a1626; opacity: 0.85; }
.mv-orn--flip { transform: scaleY(-1); }
.mv-title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(44px, 9.5vw, 104px);
  letter-spacing: 0.26em;
  /* optical centering for the wide tracking */
  text-indent: 0.26em;
  line-height: 1;
  color: #17141f;
  text-shadow: 0 2px 30px rgba(255,255,255,0.35);
}
.mv-sub {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 600;
  color: #2a2436;
}
.mv-btn {
  margin-top: 6px;
  display: inline-block;
  padding: 15px 40px;
  background: #16131f;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px; font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(9,9,20,0.4);
  transition: transform .16s ease, background .16s ease;
}
.mv-btn:hover { transform: translateY(-2px); background: #241f33; color: #fff; }
/* "Coming soon" — looks like a button but isn't clickable */
.mv-btn--soon, .btn.is-soon { pointer-events: none; cursor: default; }
.mv-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(23,20,31,0.55); border-radius: 14px;
  z-index: 1;
}
.mv-scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px;
  background: rgba(23,20,31,0.7); transform: translateX(-50%);
  animation: mv-wheel 1.6s ease-in-out infinite;
}
@keyframes mv-wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}
@media (prefers-reduced-motion: reduce) { .mv-scroll span { animation: none; } }

/* ---------- Preview section ---------- */
.preview {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center;
}
.preview-copy h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.3px; }
.preview-copy p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
@media (max-width: 820px) {
  .preview { grid-template-columns: 1fr; gap: 32px; }
  .hero-mv { min-height: 88vh; }
  .mv-title { letter-spacing: 0.18em; text-indent: 0.18em; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 800; font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #23c483, #16b26a);
  color: #06210f; box-shadow: 0 12px 30px rgba(35, 196, 131, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); color: #06210f; }
.btn-ghost {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn .arrow { font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 48px;
  align-items: center; padding: 72px 0 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-4); font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.03; margin: 0 0 18px; letter-spacing: -1px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badge {
  background: var(--card); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); font-weight: 600;
}

/* ---------- Phone mockup ---------- */
.device {
  aspect-ratio: 9 / 18.5; max-width: 300px; margin: 0 auto;
  background: linear-gradient(160deg, #0e1730 0%, #14204a 100%);
  border-radius: 38px; padding: 14px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 0 0 2px #222c46;
  position: relative;
  animation: device-float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes device-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-0.4deg); }
}
.device::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 20px; background: #0b1220; border-radius: 12px; z-index: 2;
}
.screen {
  width: 100%; height: 100%; border-radius: 26px;
  background: radial-gradient(circle at 50% 22%, #223057 0%, #0d1531 72%);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 46px 14px 24px; overflow: hidden; position: relative;
}
.screen .score {
  font-weight: 800; color: var(--accent); font-size: 24px;
  animation: score-pulse 3.2s ease-in-out infinite;
}
@keyframes score-pulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 0 rgba(255,176,31,0); }
  50%      { transform: scale(1.06); text-shadow: 0 0 18px rgba(255,176,31,0.35); }
}
.screen .board {
  width: 100%; flex: 1; margin: 14px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-content: end;
}
.cell {
  aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: #1a1120; font-size: 15px;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.18), 0 3px 8px rgba(0,0,0,0.25);
  animation:
    cell-drop 0.6s cubic-bezier(.34,1.56,.64,1) both,
    cell-bob 4s ease-in-out infinite;
  will-change: transform;
}
/* staggered entrance + offset idle bob per ball */
.cell:nth-child(1) { animation-delay: 0.05s, 0.65s; }
.cell:nth-child(2) { animation-delay: 0.13s, 0.90s; }
.cell:nth-child(3) { animation-delay: 0.21s, 1.15s; }
.cell:nth-child(4) { animation-delay: 0.29s, 1.40s; }
.cell:nth-child(5) { animation-delay: 0.37s, 1.65s; }
.cell:nth-child(6) { animation-delay: 0.45s, 1.90s; }
.cell:nth-child(7) { animation-delay: 0.53s, 2.15s; }
.cell:nth-child(8) { animation-delay: 0.61s, 2.40s; }
@keyframes cell-drop {
  0%   { opacity: 0; transform: translateY(-140px) scale(0.6); }
  70%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cell-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .device, .screen .score, .cell { animation: none !important; }
}
.c2  { background: #ffd166; }
.c4  { background: #ff9f68; }
.c8  { background: #ff6b6b; }
.c16 { background: #a78bfa; color:#fff; }
.c32 { background: #38bdf8; color:#fff; }
.c64 { background: #34d399; color:#062a1c; }
.c128{ background: #f472b6; color:#fff; }
.screen .hint { color: var(--muted); font-size: 12px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; letter-spacing: -0.5px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  --fc: 56, 217, 169;            /* feature accent (r,g,b) */
  --g1: #38d9a9; --g2: #0ea5e9;  /* icon gradient */
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(var(--fc), 0.10), transparent 55%),
    linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); padding: 28px 26px; border-radius: 20px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); pointer-events: none;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--fc), 0.75);
  box-shadow: 0 22px 44px rgba(0,0,0,0.38), 0 0 0 1px rgba(var(--fc), 0.25);
}
.feature .ico {
  width: 54px; height: 54px; border-radius: 15px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: grid; place-items: center; font-size: 26px; margin-bottom: 16px;
  box-shadow: 0 10px 22px rgba(var(--fc), 0.38), inset 0 -3px 6px rgba(0,0,0,0.18);
}
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* per-card colours, drawn from the game's ball palette */
.feature.f1 { --fc: 255, 138, 31;  --g1: #ffc24b; --g2: #ff7a1f; }
.feature.f2 { --fc: 240, 169, 46;  --g1: #ffd763; --g2: #f0a92e; }
.feature.f3 { --fc: 255, 90, 109;  --g1: #ff7d97; --g2: #ff4d6d; }
.feature.f4 { --fc: 74, 163, 255;  --g1: #5db0ff; --g2: #2f74e0; }
.feature.f5 { --fc: 139, 123, 250; --g1: #a78bfa; --g2: #7c5cf0; }
.feature.f6 { --fc: 52, 211, 153;  --g1: #5fe0ad; --g2: #12b981; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--bg-soft); border: 1px dashed var(--border);
  padding: 26px; border-radius: 18px; position: relative;
}
.step .n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,176,31,0.12); color: var(--accent); font-weight: 900; font-size: 20px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, rgba(255,176,31,0.08), rgba(255,90,95,0.08));
  border: 1px solid var(--border); border-radius: 24px; padding: 48px 24px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; letter-spacing: -0.5px; }
.cta-band p { color: var(--muted); margin: 0 0 24px; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); margin-top: 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
  padding: 56px 0 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; margin: 0 0 16px; }
.footer-col h4 {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-4); margin: 0 0 18px; font-weight: 800;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--muted); font-size: 15px; font-weight: 500; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 20px 0 44px; border-top: 1px solid var(--border-soft);
  color: var(--muted-2); font-size: 13px;
}
.footer-bottom .made { color: var(--muted-2); }

/* ---------- Legal / content pages ---------- */
.doc { padding: 40px 0 24px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 6px; letter-spacing: -0.5px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.doc .lede { color: var(--muted); font-size: 18px; margin: 14px 0 28px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.2px; }
.doc h3 { font-size: 16px; margin: 22px 0 6px; color: var(--accent); }
.doc p, .doc li { color: #d5deee; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.crumbs { color: var(--muted-2); font-size: 13px; margin: 8px 0 0; }
.crumbs a { color: var(--muted); }

.card {
  background: var(--card); border: 1px solid var(--border);
  padding: 18px 22px; border-radius: 14px; margin: 22px 0;
}
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,176,31,0.12); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px; margin-right: 8px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.contact-grid .card { margin: 0; }
table.tbl { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
table.tbl th, table.tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
table.tbl th { color: var(--accent-4); font-size: 13px; letter-spacing: 0.4px; text-transform: uppercase; }
table.tbl td { color: #d5deee; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 36px; }
  .features, .how { grid-template-columns: 1fr; }
  .device { max-width: 250px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Screenshots gallery ---------- */
.shots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  align-items: center; max-width: 960px; margin: 0 auto;
}
.phone { margin: 0; text-align: center; }
.phone__screen {
  position: relative; aspect-ratio: 9 / 18.6; border-radius: 30px; overflow: hidden;
  background: #0d1531 url("/game-bg.jpg") center / cover no-repeat;
  border: 8px solid #10131f;
  box-shadow: 0 26px 54px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.phone__screen::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 38%; height: 15px; background: #10131f; border-radius: 0 0 12px 12px; z-index: 6;
}
.phone--featured { transform: translateY(-14px); }
.phone--featured .phone__screen { box-shadow: 0 34px 66px rgba(0,0,0,0.6); }
.phone figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* in-game style buttons (colours matched to the game) */
.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  padding: 10px 12px; border-radius: 999px; color: #fff; font-weight: 800;
  font-size: clamp(10px, 2.3vw, 13px); letter-spacing: 0.3px; white-space: nowrap;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18), 0 6px 14px rgba(0,0,0,0.28);
}
.gbtn--green  { background: linear-gradient(#63d873, #37a54a); }
.gbtn--blue   { background: linear-gradient(#5aa6ff, #2f74e0); }
.gbtn--purple { background: linear-gradient(#9385f2, #6a4fd0); }
.gbtn--gold   { background: linear-gradient(#ffd463, #f0a92e); color: #5a3d06; }
.gbtn.sm { padding: 8px 10px; font-size: 10px; }

/* menu screen */
.shot-menu {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; height: 100%; padding: 0 14%;
}
.game-title {
  font-weight: 900; line-height: 1; text-align: center; letter-spacing: 0.5px;
  font-size: clamp(20px, 4.6vw, 30px); margin-bottom: 6px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.25);
}
.game-title span:first-child { color: #ffd23f; }
.game-title span:last-child { color: #6ee7a8; }
.menu-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; }

/* gameplay screen */
.shot-play { position: relative; height: 100%; }
.g-hud { position: absolute; top: 9%; left: 0; right: 0; text-align: center; }
.g-score { font-weight: 900; color: #fff; line-height: 1; font-size: clamp(20px, 5.2vw, 30px); text-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.g-best { color: #fff; font-weight: 700; font-size: 10px; letter-spacing: 1px; opacity: 0.92; margin-top: 2px; }
.g-next { position: absolute; top: 21%; left: 50%; transform: translateX(-50%); width: 16%; }
.g-pile { position: absolute; left: 8%; right: 8%; bottom: 11%; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; align-items: flex-end; }
.shots .cell { animation: none; }
.g-pile .cell { width: 17%; font-size: clamp(9px, 2.5vw, 14px); }
.g-next .cell { width: 100%; font-size: clamp(11px, 3vw, 16px); }

/* best-score screen */
.shot-over { position: relative; display: grid; place-items: center; height: 100%; }
.shot-over::after { content: ""; position: absolute; inset: 0; background: rgba(9,10,22,0.5); }
.over-card {
  position: relative; z-index: 2; width: 76%; background: #fff; border-radius: 18px;
  padding: 16px 14px 14px; text-align: center; box-shadow: 0 18px 34px rgba(0,0,0,0.4);
}
.over-title { color: #f0a92e; font-weight: 900; font-size: 13px; letter-spacing: 1.5px; }
.over-score { color: #1a1626; font-weight: 900; line-height: 1.05; font-size: clamp(30px, 7.5vw, 42px); }
.over-sub { color: #8a8496; font-size: 11px; margin-bottom: 12px; font-weight: 600; }
.over-actions { display: flex; gap: 8px; }

@media (max-width: 820px) {
  .shots { grid-template-columns: 1fr; max-width: 300px; }
  .phone--featured { transform: none; }
}
