/* DistinctPlay — website styles. Headings and body: Montserrat. */

:root {
  --bg: #090C11;
  --surface: #11161D;
  --surface-2: #1A2029;
  --border: #282F3A;
  --text: #FFFFFF;
  --muted: #949EB0;
  --accent: #C6F432;
  --accent-ink: #090C11;

  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: 20px;
  --section: 120px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.h1, .h2, .h3-display { font-family: var(--font-display); font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.02; text-transform: uppercase; }
.h1 .accent { color: var(--accent); }
.h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 540px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 12px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #d4ff4a; }
.btn--secondary { border-color: var(--border); color: var(--text); background: transparent; }
.btn--secondary:hover { border-color: var(--muted); }
.btn--sm { padding: 10px 16px; border-radius: 8px; font-size: 13px; }
.btn--block { width: 100%; }

.tag {
  display: inline-block; padding: 5px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
}

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(9, 12, 17, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 24px; width: auto; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; display: none; }
.logo.is-fallback img { display: none; }
.logo.is-fallback .logo__text { display: inline; }
.nav__links { display: flex; gap: 40px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; padding: 6px; color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1fr 520px; gap: 40px; align-items: center; }
.hero__copy > * + * { margin-top: 28px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.proof { display: flex; gap: 28px; flex-wrap: wrap; padding: 0; margin: 28px 0 0; list-style: none; }
.proof li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.proof li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero__visual { position: relative; height: 540px; }
.hero__glow { position: absolute; inset: 40px; border-radius: 50%; background: var(--accent); opacity: .10; filter: blur(120px); }
.hero__card { position: absolute; overflow: hidden; background: var(--surface) center/cover no-repeat; border: 1px solid var(--border); }
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card--slot { width: 380px; aspect-ratio: 16 / 9; left: 0; top: 300px; border-radius: 20px; transform: rotate(6deg); }
.hero__card--crash { width: 330px; height: 330px; left: 170px; top: 10px; border-radius: 28px; transform: rotate(-5deg); box-shadow: 0 30px 60px rgba(0,0,0,.55); border: 0; }
.multiplier {
  position: absolute; left: 330px; top: 330px; padding: 14px 22px;
  background: var(--surface); border: 1.5px solid rgba(198, 244, 50, .5); border-radius: 16px;
}
.multiplier small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.multiplier strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.15; color: var(--accent); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-top: calc(var(--section) / 2); padding-bottom: calc(var(--section) / 2); }
.section--first { padding-top: var(--section); }
.section--last { padding-bottom: var(--section); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }

/* ---------- Game cards ---------- */
.games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.game-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: #3a4352; }
.game-card__cover { aspect-ratio: 1; background: linear-gradient(180deg, #1A212B, #0D1015) center/cover no-repeat; display: grid; place-items: center; }
.game-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.game-card__cover--soon::after { content: "Soon"; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--border); letter-spacing: .02em; text-transform: uppercase; }
.game-card__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 18px; flex: 1; }
.game-card__title { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.3; }
.game-card__meta { font-size: 12px; color: var(--muted); margin: 0; }
.game-card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }

/* ---------- Feature tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 28px 32px; }
.tile__num { display: inline-block; padding: 8px 12px; border-radius: 10px; background: rgba(198, 244, 50, .12); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 1.2; }
.tile h3 { margin: 16px 0 10px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.tile p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Integration ---------- */
.integration { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 24px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; }
.steps__n { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.steps h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }
.code { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.code__bar { display: flex; align-items: center; gap: 8px; padding: 16px 20px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.code__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.code__bar span { margin-left: 8px; }
.code pre { margin: 0; padding: 24px; font-family: var(--font-mono); font-size: 15px; line-height: 1.7; overflow-x: auto; }
.code .hl { color: var(--accent); }

/* ---------- Math panel ---------- */
.panel {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 56px; border-radius: 28px; border: 1px solid var(--border);
  background:
    linear-gradient(90deg,
      rgba(198, 244, 50, .16) 0%,
      rgba(198, 244, 50, .12) 18%,
      rgba(198, 244, 50, .07) 38%,
      rgba(198, 244, 50, .03) 58%,
      rgba(198, 244, 50, 0) 80%),
    var(--surface);
}
.panel .lead { margin-top: 20px; max-width: 620px; font-size: 17px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.chips span { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 14px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact .lead { margin-top: 24px; font-size: 17px; max-width: 480px; }
.contact__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact__list li { display: grid; grid-template-columns: 90px 1fr; font-weight: 600; }
.contact__list span { color: var(--muted); font-size: 14px; }
.contact__list a:hover { color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 36px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form__note { font-size: 13px; color: var(--muted); margin: 0; min-height: 1em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__left { display: flex; align-items: center; gap: 24px; font-size: 13px; color: var(--muted); }
.footer__left .logo img { height: 18px; }
.footer__right { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; color: var(--muted); }
.footer__right a:hover { color: var(--text); }
.age { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; font-weight: 700; color: var(--text); }

/* ---------- Game page ---------- */
.breadcrumb { font-size: 14px; font-weight: 500; color: var(--muted); padding-top: 36px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb b { color: var(--text); font-weight: 500; }
.game-hero { display: grid; grid-template-columns: 760px 1fr; gap: 48px; padding: 28px 0 72px; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; border: 1px solid var(--border);
  background: var(--surface) center/cover no-repeat;
}
.player > img { width: 100%; height: 100%; object-fit: cover; }
.player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,12,17,.15), rgba(9,12,17,.85)); pointer-events: none; }
.player__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px 16px 24px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px;
}
.player__play:hover { background: #d4ff4a; }
.player__hint { position: absolute; z-index: 2; left: 24px; bottom: 20px; font-size: 13px; font-weight: 500; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #000; }
.game-info > * + * { margin-top: 20px; }
.game-info .h2 { font-size: clamp(30px, 3.4vw, 42px); }
.specs { list-style: none; padding: 0; margin: 20px 0 0; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.specs span { color: var(--muted); }
.specs b { font-weight: 600; text-align: right; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.features .tile h3 { margin-top: 0; font-size: 19px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shots div { aspect-ratio: 16 / 9; border-radius: 16px; border: 1px dashed var(--border); background: var(--surface); display: grid; place-items: center; color: var(--muted); font-size: 14px; font-weight: 500; }
.more-games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }

/* ---------- Demo modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(0,0,0,.8); padding: 24px; }
.modal.is-open { display: grid; }
.modal__box { position: relative; width: min(1200px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.modal__box iframe { width: 100%; height: 100%; border: 0; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); font-size: 20px; line-height: 1; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding: 72px 0 120px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.legal p { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr 440px; }
  .hero__visual { transform: scale(.85); transform-origin: center; }
  .games, .more-games { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .game-hero { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --section: 112px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; left: 0; right: 0; top: 80px;
    padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__links a { padding: 12px 0; font-size: 17px; color: var(--text); }
  .hero { padding: 40px 0 24px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__visual { height: 340px; max-width: 350px; transform: none; }
  .hero__card--slot { width: 250px; top: 170px; border-radius: 14px; }
  .hero__card--crash { width: 230px; height: 230px; left: 110px; top: 20px; border-radius: 22px; }
  .multiplier { left: 200px; top: 225px; padding: 10px 16px; }
  .multiplier strong { font-size: 24px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 20px 0; row-gap: 32px; }
  .stat strong { font-size: 24px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .games, .more-games {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none;
  }
  .games::-webkit-scrollbar, .more-games::-webkit-scrollbar { display: none; }
  .game-card { flex: 0 0 222px; scroll-snap-align: start; }
  .tiles, .features, .shots { grid-template-columns: 1fr; gap: 16px; }
  .tile { padding: 20px; }
  .integration, .contact { grid-template-columns: 1fr; gap: 36px; }
  .code pre { font-size: 12.5px; padding: 18px; }
  .panel { flex-direction: column; align-items: stretch; padding: 28px 24px; }
  .form { padding: 24px; }
  .footer__inner, .footer__left, .footer__right { flex-direction: column; align-items: flex-start; gap: 14px; }
}
