/* Games Cashier — site styles */
/* Self-hosted fonts (SIL Open Font License 1.1), Latin subset. See assets/fonts/README.txt */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/assets/fonts/sora.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); }

:root {
  --bg: #040612;
  --bg-2: #070c1d;
  --surface: #0a1226;
  --line: #19254a;
  --line-soft: #121b38;
  --text: #e7ecff;
  --muted: #8d99c0;
  --cyan: #22e4ff;
  --violet: #8b5cf6;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet));
  --display: "Sora", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint hex texture behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 75% 0%, rgba(139, 92, 246, .14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(34, 228, 255, .07), transparent 70%);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--display);
  padding: 15px 22px; border-radius: 10px;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.btn-primary { background: var(--grad); color: #050816; }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(34, 228, 255, .15), 0 10px 40px -10px rgba(139, 92, 246, .7); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 6, 18, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.wordmark { font: 700 17px/1 var(--display); letter-spacing: .04em; }
.wordmark span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .btn { padding: 11px 16px; color: #050816; }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid var(--line); color: var(--text);
    border-radius: 8px; padding: 9px 12px; font: 600 14px var(--display); cursor: pointer;
  }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy h1 { max-width: 14ch; font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.06; }
.hero-copy h1 .glow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { margin-top: 24px; font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.network {
  position: relative; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 18, 38, .9), rgba(4, 6, 18, .9));
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(34, 228, 255, .25);
}
.network canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.network { min-height: 500px; display: grid; place-items: center; padding: 32px 16px; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 16ch; }
}

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: rgba(7, 12, 29, .6); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px 30px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.stat-value { font: 600 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--display); letter-spacing: -.02em; }
.stat-label { margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; } }

/* Services: a honeycomb-edged list, not a card kit */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 34px 28px 38px 0; border-bottom: 1px solid var(--line); }
.service:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.hexicon { width: 46px; height: 52px; margin-bottom: 22px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .service:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* How it works: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 70%, transparent);
  opacity: .5;
}
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px;
  font: 600 18px var(--display); color: var(--cyan);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 2 L44 13.5 L44 34.5 L24 46 L4 34.5 L4 13.5 Z' fill='%23040612' stroke='%2322e4ff' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: transparent;
  position: relative;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--cyan), var(--violet)); }
  .step { padding-left: 76px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Case studies */
.cases { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.case {
  border: 1px solid var(--line); border-radius: 18px; padding: 32px;
  background: linear-gradient(160deg, rgba(10, 18, 38, .95), rgba(4, 6, 18, .6));
  display: flex; flex-direction: column;
}
.case-feature { grid-row: span 2; }
.case-tag { font-size: 14px; color: var(--cyan); margin-bottom: 14px; }
.case h3 { font-size: 1.45rem; margin-bottom: 12px; }
.case-feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.case p { color: var(--muted); }
.case-flow { margin: auto 0; padding: 28px 0 0; height: auto; width: 100%; }
@media (max-width: 860px) {
  .cases { grid-template-columns: 1fr; }
  .case-feature { grid-row: auto; }
}

/* Technology */
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pillars { display: grid; gap: 32px; }
.pillar { display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.pillar svg { width: 46px; height: 52px; }
.pillar h3 { margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 16px; }
.stack { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--surface); }
.stack h3 { margin-bottom: 18px; }
.stack ul { list-style: none; margin: 0; padding: 0; }
.stack li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.stack li:last-child { border-bottom: 0; }
.stack li span:last-child { color: var(--muted); text-align: right; }
@media (max-width: 860px) { .tech { grid-template-columns: 1fr; } }

/* Contact */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact .panel {
  border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(139, 92, 246, .35), transparent 70%),
    radial-gradient(ellipse 40% 60% at 50% -20%, rgba(34, 228, 255, .18), transparent 70%),
    var(--bg-2);
}
.contact h2 { max-width: 18ch; margin: 0 auto; }
.contact p { color: var(--muted); max-width: 50ch; margin: 18px auto 0; font-size: 1.1rem; }
.contact .btn { margin-top: 36px; font-size: 17px; padding: 18px 28px; }
.contact .email { display: block; margin-top: 16px; color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Privacy page */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 12px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #c3cbe6; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }

/* Platforms strip */
.platforms { border-top: 1px solid var(--line-soft); padding: 22px 0; }
.platforms .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.platforms p { color: var(--muted); font-size: 15px; }
.platforms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.platforms li { font: 600 17px var(--display); color: var(--text); opacity: .85; }
.platforms li:last-child { font: 400 15px var(--body); color: var(--muted); opacity: 1; }

/* Before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pane { border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.pane h3 { margin-bottom: 20px; }
.pane-before { background: var(--bg-2); }
.pane-before h3 { color: var(--muted); }
.pane-after {
  border-color: rgba(34, 228, 255, .35);
  background: linear-gradient(160deg, rgba(34, 228, 255, .07), rgba(139, 92, 246, .08)), var(--surface);
}
.pane-foot { margin-top: auto; padding-top: 22px; color: var(--muted); font-size: 15px; }
.pane-after .pane-foot { color: var(--text); }

.chat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chat li { display: flex; align-items: flex-end; gap: 8px; max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 15px; line-height: 1.4; }
.chat li.in { background: #141c36; border-bottom-left-radius: 4px; }
.chat li.out { margin-left: auto; background: #2a2160; border-bottom-right-radius: 4px; }
.chat time { font-size: 11px; color: var(--muted); white-space: nowrap; }

.flow { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; display: grid; gap: 18px; }
.flow::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--cyan), var(--violet)); }
.flow li { position: relative; display: grid; gap: 2px; }
.flow li::before { content: ""; position: absolute; left: -22px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--cyan); }
.flow time { font: 13px var(--mono); color: var(--cyan); }
.flow span { font-size: 16px; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }

.disclaimer { flex-basis: 100%; margin-top: 8px; font-size: 12px; color: #5f6a8f; max-width: 80ch; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero checklist */
.hero-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 30px; color: var(--text); }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1 L18 5.5 L18 14.5 L10 19 L2 14.5 L2 5.5 Z' fill='none' stroke='%2322e4ff' stroke-width='1.6'/%3E%3Cpath d='M6.5 10 L9 12.5 L13.5 7.5' fill='none' stroke='%2322e4ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Phone mock-up in the hero */
.phone {
  position: relative; z-index: 1; width: 250px;
  border-radius: 34px; padding: 18px 16px 20px;
  background: linear-gradient(180deg, #0d1530, #070b1a);
  border: 1px solid #2a3a6b;
  box-shadow: 0 0 0 6px #050817, 0 0 0 7px #1e2b52, 0 30px 80px -20px rgba(34, 228, 255, .35);
}
.phone-top { display: flex; align-items: center; gap: 10px; font: 600 14px var(--display); margin-bottom: 18px; }
.phone-balance { padding: 14px; border-radius: 16px; background: rgba(34, 228, 255, .07); border: 1px solid rgba(34, 228, 255, .2); }
.phone-balance small { display: block; color: var(--muted); font-size: 12px; }
.phone-balance strong { font: 600 28px/1.2 var(--display); font-variant-numeric: tabular-nums; transition: color .3s; }
.phone-balance strong.bump { color: var(--cyan); }
.phone-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0 12px; padding: 4px; border-radius: 12px; background: #0a1022; font-size: 13px; text-align: center; }
.phone-tabs span { padding: 7px 0; border-radius: 9px; color: var(--muted); }
.phone-tabs .is-on { background: #1a2550; color: var(--text); }
.phone-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phone-amounts span { padding: 10px 0; text-align: center; border-radius: 10px; border: 1px solid var(--line); font: 600 14px var(--display); transition: background-color .3s, border-color .3s, color .3s; }
.phone-amounts span.is-picked { border-color: var(--cyan); background: rgba(34, 228, 255, .12); color: var(--cyan); }
.phone-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.phone-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); opacity: .35; transition: opacity .3s, color .3s; }
.phone-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.phone-steps li.is-done { opacity: 1; color: var(--text); }
.phone-steps li.is-done::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.toast {
  position: absolute; z-index: 2; right: 18px; bottom: 28px;
  display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px;
  background: rgba(10, 18, 38, .92); border: 1px solid rgba(34, 228, 255, .4);
  font-size: 13px; color: var(--muted);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.toast b { color: var(--text); font: 600 14px var(--display); }
.toast.is-on { opacity: 1; transform: none; }
@media (max-width: 520px) { .network { min-height: 460px; } .toast { right: 10px; left: 10px; bottom: 12px; } }

/* Who it's for */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience { padding: 28px 28px 30px; border-left: 2px solid; border-image: linear-gradient(180deg, var(--cyan), var(--violet)) 1; background: linear-gradient(90deg, rgba(34, 228, 255, .05), transparent 70%); }
.audience h3 { font-size: 1.35rem; margin-bottom: 10px; }
.audience p { color: var(--muted); }
@media (max-width: 860px) { .audiences { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 600 1.08rem/1.4 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 26px/1 var(--body); color: var(--cyan); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 22px 0; max-width: 62ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

.section-head.single { grid-template-columns: 1fr; }
.section-head.tight { margin-bottom: 40px; }
.defs { position: absolute; }
