/* ============ Game Laboratory — design tokens ============ */
:root {
  --white: #ffffff;
  --bg: #f3f4f5;          /* light grey */
  --bg-2: #e9ebec;
  --grey: #868d92;        /* logo mid-grey */
  --grey-2: #a9afb3;
  --ink: #23272b;
  --ink-2: #5d646a;
  --green: #3be26b;       /* logo green */
  --green-d: #1fc456;
  --pink: #ff3d8b;
  --blue: #1d5cff;
  --violet: #7c5cff;
  --cyan: #22e0ff;
  --orange: #ff7a1a;
  --yellow: #ffd23f;
  --night: #0f1116;
  --radius: 28px;
  --radius-s: 16px;
  --head: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 84px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.container { width: min(1280px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 140px) 0; }

.c-green { color: var(--green-d); }
.c-pink { color: var(--pink); }
.c-blue { color: var(--blue); }
.c-red { color: #E5383B; }        /* red face of the cube logo */
.c-planet { color: #4080FF; }     /* bluest tone of the hero planet (atmosphere glow) */
.c-orange { color: var(--orange); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font: 600 14px/1 var(--body);
  letter-spacing: .14em; text-transform: uppercase; color: var(--grey);
}
.kicker i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(59,226,107,.18); }
.kicker--light { color: #b9c0c5; }

.h2 { font: 700 clamp(30px, 4.4vw, 60px)/1.08 var(--head); letter-spacing: -.02em; margin: 0; max-width: 18ch; }
.h3 { font: 700 clamp(24px, 2.6vw, 36px)/1.15 var(--head); letter-spacing: -.01em; margin: clamp(64px, 8vw, 110px) 0 28px; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  font: 600 15px/1 var(--body);
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--grey); color: #fff; box-shadow: 0 8px 22px -10px rgba(60,70,80,.6); }
.btn--dark:hover { background: var(--green-d); box-shadow: 0 10px 26px -10px rgba(31,196,86,.8); }
.btn--neon {
  background: linear-gradient(120deg, var(--green), var(--cyan));
  color: #06210f; min-height: 56px; padding: 0 30px; font-size: 16px;
  box-shadow: 0 10px 40px -10px rgba(59,226,107,.7);
}
.btn--neon:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(34,224,255,.7); }
.btn--ghost {
  background: rgba(255,255,255,.06); color: #fff; min-height: 56px; padding: 0 28px; font-size: 16px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3);
}
.btn--ghost:hover { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--ghost svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ============ Header ============ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px) grayscale(1);
  -webkit-backdrop-filter: blur(18px) grayscale(1);
  border-bottom: 1px solid rgba(134,141,146,.14);
}
.header__inner { height: 100%; width: min(1400px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { width: 44px; height: 44px; display: block; }
.logo__text { display: flex; flex-direction: column; font: 700 17px/1 var(--head); letter-spacing: -.01em; }
.logo__text b { color: var(--green-d); font-weight: 700; }
.logo__text span { color: var(--grey); margin-top: 3px; }

.nav { display: flex; gap: 34px; margin-inline: auto; }
.nav a { position: relative; font-weight: 500; font-size: 16px; color: var(--ink-2); transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--green); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav__phone-mobile, .nav__cta { display: none !important; }

.header__actions { display: flex; align-items: center; gap: 22px; }
.phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--ink); white-space: nowrap; }
.phone svg { width: 18px; height: 18px; fill: var(--green-d); }
.phone:hover { color: var(--green-d); }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--bg); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  /* deep space + Earth glow; also the look when WebGL is unavailable */
  background:
    radial-gradient(40% 32% at 50% 46%, rgba(59,226,107,.14), transparent 70%),
    radial-gradient(140% 60% at 50% 125%, #0d2546 0%, #08142a 38%, transparent 62%),
    #020306;
  overflow: hidden;
  color: #fff;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero.is-gl .hero__canvas { opacity: 1; }
.hero__title {
  position: absolute; inset: var(--header-h) 0 0; margin: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 900 clamp(32px, 9.8vw, 184px)/.98 var(--head); letter-spacing: -.02em;
  color: #fff; text-align: center; pointer-events: none;
  text-shadow: 0 2px 6px rgba(0,0,0,.45), 0 10px 40px rgba(0,0,0,.5);
  animation: heroTitleIn 1.4s var(--ease) .2s both;
}
.hero--video { color: var(--ink); } .hero--video .hero__tag { color: var(--ink-2); }
@keyframes heroTitleIn { from { opacity: 0; transform: translateY(18px) scale(.98); letter-spacing: .02em; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__title { animation: none; } }
.hero__ui {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vh, 40px);
  width: min(1400px, 100% - 48px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  z-index: 2;
}
.hero__counter { font: 700 15px/1 var(--head); color: var(--ink); display: flex; gap: 6px; align-items: baseline; }
.hero__counter b { font-size: 28px; }
.hero__counter span { color: var(--grey); }
.hero__tag { grid-column: 3; margin: 0; justify-self: end; font-weight: 500; color: rgba(255,255,255,.78); font-size: 15px; }
.hero.is-dark .hero__counter, .hero.is-dark .hero__tag { color: #fff; }
.hero.is-dark .hero__counter span { color: rgba(255,255,255,.6); }

.fx-chips {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.7);
}
.fx-chips button {
  position: relative; overflow: hidden;
  border: 0; background: transparent; border-radius: 999px;
  padding: 10px 16px; font-weight: 600; font-size: 14px; color: var(--ink-2);
  transition: color .3s, background .3s;
}
.fx-chips button::before {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--green); border-radius: 3px;
}
.fx-chips button[aria-selected="true"] { background: var(--ink); color: #fff; }
.fx-chips button[aria-selected="true"]::before { animation: chipProgress var(--fx-dur, 4.2s) linear forwards; }
.fx-chips.is-paused button::before { animation: none !important; width: 0; }
@keyframes chipProgress { to { width: 100%; } }

/* ============ About ============ */
.about { background: var(--white); position: relative; overflow: hidden; }
.about__title { font: 700 clamp(28px, 4.2vw, 62px)/1.12 var(--head); letter-spacing: -.02em; margin: 0 0 clamp(40px, 6vw, 80px); max-width: 24ch; }
.about__uses { list-style: none; margin: 0 0 clamp(36px, 5vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about__uses li { background: var(--bg); border-radius: var(--radius-s); padding: 24px 24px 22px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.45; color: var(--ink-2); }
.about__uses b { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.about__uses li:nth-child(1) b { color: var(--green-d); }
.about__uses li:nth-child(2) b { color: #E5383B; }
.about__uses li:nth-child(3) b { color: #4080FF; }
.about__lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); margin: 0; max-width: 60ch; }

.marquee { margin-top: clamp(64px, 9vw, 120px); overflow: hidden; border-block: 1px solid var(--bg-2); padding: 22px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font: 400 clamp(32px, 5vw, 72px)/1 'Russo One', 'Arial Black', sans-serif; letter-spacing: 0; color: transparent; -webkit-text-stroke: 1.5px var(--grey-2); transition: color .3s; }
.marquee span:nth-child(4n+1) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee i { width: 22px; height: 22px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Services ============ */
.services { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.2vw, 28px); }
.card__media {
  position: relative; aspect-ratio: 16 / 9.4; border-radius: var(--radius); overflow: hidden;
  background: var(--bg, #ccc);
  transform: translateZ(0);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__cap { margin: 16px 4px 0; font-size: clamp(16px, 1.3vw, 19px); color: var(--grey); line-height: 1.4; }
.card__cap b { color: var(--ink); font-weight: 600; }

/* Phone mockup card */
.card__media--phone {
  background: linear-gradient(135deg, #10d39a 0%, #18b8c9 55%, #1d7fe0 100%);
  display: grid; place-items: center; isolation: isolate;
}
.blob { position: absolute; border-radius: 50%; filter: blur(30px); z-index: -1; }
.blob--1 { width: 45%; aspect-ratio: 1; background: #b6ff4d; left: -8%; bottom: -20%; opacity: .7; }
.blob--2 { width: 35%; aspect-ratio: 1; background: #6a5cff; right: -6%; top: -16%; opacity: .7; }
.phone-mock {
  position: absolute; width: 46%; aspect-ratio: 9 / 18.5; left: 50%; top: 9%;
  transform: translateX(-50%) rotate(-14deg);
  border-radius: 13% / 6.4%; padding: 3.2%;
  background: linear-gradient(145deg, #3a3f45, #0d0f12 60%, #2d3238);
  box-shadow: 0 40px 60px -20px rgba(0,0,0,.55), inset 0 0 0 1.5px rgba(255,255,255,.18);
  transition: transform 1s var(--ease);
}
.card:hover .phone-mock { transform: translateX(-50%) rotate(-10deg) translateY(-3%); }
.phone-mock__notch { position: absolute; top: 4.6%; left: 50%; width: 28%; height: 3.2%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 2; }
.phone-mock__screen {
  height: 100%; border-radius: 10.5% / 5.2%; overflow: hidden;
  background: linear-gradient(180deg, #0f1a1f, #0d1316);
  padding: 22% 9% 8%; color: #fff;
  display: flex; flex-direction: column; gap: 5%;
  font-size: clamp(6px, 1.05vw, 13px);
}
.pm-top { display: flex; align-items: center; gap: 6%; font: 700 .85em/1 var(--head); color: #c9d1d6; }
.pm-top img { width: 2.4em; height: 2.4em; }
.pm-top i { margin-left: auto; width: 1.6em; height: .9em; border-block: 2px solid #c9d1d6; }
.pm-title { margin: 4% 0 2%; font: 700 1.35em/1.15 var(--head); }
.pm-title em { font-style: normal; color: var(--green); }
.pm-field { padding: .9em 1em; border-radius: .7em; background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); font-size: .95em; }
.pm-qr { align-self: center; width: 42%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; padding: 6%; background: #fff; border-radius: .6em; margin-top: 2%; }
.pm-qr span { background: var(--ink); border-radius: 2px; }
.pm-qr span:nth-child(2), .pm-qr span:nth-child(6), .pm-qr span:nth-child(8) { background: transparent; box-shadow: inset 0 0 0 3px var(--ink); }
.pm-btn { margin-top: auto; padding: 1em; border-radius: 999px; text-align: center; font-weight: 700; color: #052; background: linear-gradient(120deg, var(--green), var(--cyan)); }

/* ============ Projects (dark tech) ============ */
.projects {
  position: relative; color: #e9edf0; overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(124,92,255,.35), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(34,224,255,.18), transparent 70%),
    radial-gradient(50% 40% at 100% 80%, rgba(255,61,139,.18), transparent 70%),
    var(--night);
}
.projects .container { position: relative; }
.lab-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.badge { display: inline-block; margin: 0 0 20px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: rgba(59,226,107,.12); box-shadow: inset 0 0 0 1px rgba(59,226,107,.35); }
.lab-title { margin: 0; font: 900 clamp(36px, 4.6vw, 70px)/1 var(--head); letter-spacing: -.03em; color: #fff; overflow-wrap: anywhere; }
.grad { background: linear-gradient(100deg, var(--green), var(--cyan) 45%, var(--violet) 75%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lab-lead { font-size: clamp(18px, 1.7vw, 23px); color: #c6ccd1; margin: 24px 0 34px; max-width: 32ch; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.lab-hero__media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9.2; box-shadow: 0 40px 100px -30px rgba(124,92,255,.7), 0 0 0 1px rgba(255,255,255,.1); }
.lab-hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lab-hero__media:hover img { transform: scale(1.05); }
.play-dot { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); transition: transform .4s var(--ease), background .3s; }
.play-dot svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.lab-hero__media:hover .play-dot { transform: scale(1.1); background: var(--green); }
.lab-hero__media:hover .play-dot svg { fill: #06210f; }

.lab-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255,255,255,.1); }
.lab-intro p { margin: 0; font-size: clamp(17px, 1.45vw, 20px); color: #b8c0c6; }
.lab-intro b { color: #fff; }
.projects .h3 { color: #fff; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  position: relative; padding: 28px 26px 30px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .4s var(--ease), box-shadow .4s;
  overflow: hidden;
}
.feat::after { content: ''; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: var(--c); opacity: .16; filter: blur(30px); transition: opacity .4s; }
.feat:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.feat:hover::after { opacity: .35; }
.feat:nth-child(2) { grid-row: span 2; }
.feat--wide { grid-column: span 2; }
.feat__n { font: 700 13px/1 var(--head); color: var(--c); }
.feat h4 { margin: 14px 0 12px; font: 700 19px/1.25 var(--head); color: #fff; }
.feat p { margin: 0; color: #a9b2b9; font-size: 16px; }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #dfe5e9; background: rgba(59,226,107,.1); box-shadow: inset 0 0 0 1px rgba(59,226,107,.28); }
.styles { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; color: #a9b2b9; font-size: 15px; }
.styles b { display: inline-block; margin-right: 8px; padding: 4px 12px; border-radius: 999px; font-weight: 700; color: #111; background: var(--s); }

/* Link builder */
.builder-lead { margin: clamp(56px, 7vw, 96px) 0 0; font-family: inherit; font-size: clamp(20px, 2vw, 28px); font-weight: 700; color: #fff; }
.builder-lead + .builder { margin-top: 22px; }
.builder {
  margin-top: clamp(64px, 8vw, 110px);
  padding: clamp(26px, 4vw, 52px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59,226,107,.16), rgba(34,224,255,.1) 40%, rgba(124,92,255,.16));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 40px 120px -40px rgba(34,224,255,.4);
}
.builder__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.builder__head .h3 { margin: 0; }
.builder__head p { margin: 0; color: #a9b2b9; }
.builder__form { display: grid; grid-template-columns: minmax(0,1.3fr) repeat(3, minmax(0,1fr)); gap: 14px; }
.fld { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld input, .fld select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.fld > span { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8b949b; }
.fld input, .fld select {
  height: 54px; padding: 0 16px; border-radius: 14px; border: 0;
  font: 500 16px var(--body); color: #fff;
  background: rgba(10,12,16,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  transition: box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.fld select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233be26b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.fld select option { color: #111; background: #fff; }
.fld input::placeholder { color: #6c757c; }
.fld input:focus, .fld select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green); }
.fld small { position: absolute; right: 14px; bottom: 17px; color: #6c757c; font-size: 12px; }
.fld--name input { padding-right: 54px; text-transform: none; }
.builder__out { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: flex-end; }
.builder__out code {
  flex: 1 1 320px; min-width: 0; padding: 18px 20px; border-radius: 14px;
  font: 500 15px/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--cyan);
  background: rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px rgba(34,224,255,.25);
  overflow-wrap: anywhere;
}
.builder__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.builder__form .builder__out { grid-column: 1 / -1; margin-top: 6px; justify-content: space-between; }
.fld--contact:last-of-type { grid-column: span 2; }
.builder__note { flex: 1 1 360px; margin: 0; color: #a9b2b9; font-size: 15px; }
.builder__note a { color: var(--green); }
.builder__form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.builder__form { position: relative; }
.builder__done { grid-column: 1 / -1; margin: 0; padding: 22px 24px; border-radius: 14px; background: rgba(59,226,107,.12); box-shadow: inset 0 0 0 1px rgba(59,226,107,.4); color: #fff; font-weight: 600; }

.benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.benefit { padding: 24px 22px; border-radius: 20px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.benefit b { display: block; font: 700 16px/1.25 var(--head); color: #fff; margin-bottom: 10px; }
.benefit p { margin: 0; color: #a9b2b9; font-size: 15px; }
.benefit:nth-child(1) b { color: var(--green); } .benefit:nth-child(2) b { color: var(--cyan); } .benefit:nth-child(3) b { color: #a996ff; } .benefit:nth-child(4) b { color: var(--pink); } .benefit:nth-child(5) b { color: var(--yellow); }

.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game { position: relative; padding: 26px; border-radius: 22px; background: #161920; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); overflow: hidden; transition: transform .4s var(--ease); }
.game::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--g); }
.game:hover { transform: translateY(-4px); }
.game__ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--g); font: 900 16px var(--head); color: #0b0d10; }
.game h4 { margin: 18px 0 10px; font: 700 22px/1.2 var(--head); color: #fff; }
.game p { margin: 0; color: #a9b2b9; font-size: 15.5px; }

.summary { margin-top: clamp(64px, 8vw, 110px); padding: clamp(32px, 5vw, 64px); border-radius: var(--radius); background: #fff; color: var(--ink); text-align: center; }
.formula { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; font-family: var(--head); }
.formula b { font-size: clamp(56px, 9vw, 130px); line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.formula b:nth-of-type(1) { color: var(--green-d); } .formula b:nth-of-type(2) { color: var(--blue); } .formula b:nth-of-type(3) { color: var(--pink); }
.formula span { font-weight: 700; font-size: clamp(16px, 1.8vw, 24px); color: var(--grey); margin-left: -6px; }
.formula i { font-style: normal; font-size: clamp(32px, 4vw, 60px); color: var(--grey-2); }
.summary > p { max-width: 60ch; margin: 24px auto 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.summary__more span { display: inline-block; margin: 6px 3px 0; padding: 5px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--bg); color: var(--ink); }
.summary .lab-actions { justify-content: center; margin-top: 32px; }
.summary .btn--ghost { color: var(--ink); background: var(--bg); box-shadow: none; }
.summary .btn--ghost:hover { background: var(--ink); color: #fff; }

/* ============ Contacts & form ============ */
.contacts { background: var(--bg); scroll-margin-top: calc(16px - clamp(72px, 10vw, 140px)); }
.contacts__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.big-phone { display: inline-block; margin-top: 36px; font: 700 clamp(30px, 4vw, 54px)/1 var(--head); letter-spacing: -.02em; color: var(--ink); background: linear-gradient(var(--green), var(--green)) 0 100% / 0 6px no-repeat; padding-bottom: 8px; transition: background-size .5s var(--ease); }
.big-phone:hover { background-size: 100% 6px; }
.contacts__city { color: var(--grey); margin: 18px 0 0; font-weight: 500; }
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(26px, 3.5vw, 44px); box-shadow: 0 30px 80px -40px rgba(35,39,43,.35); }

.contact-card { display: grid; gap: 14px; }
.lead-form__title { margin: 0 0 10px; font: 700 clamp(17px, 1.5vw, 20px)/1.35 var(--head); text-align: center; color: var(--ink); }
.contact-links { display: grid; gap: 12px; }
.contact-btn {
  display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 20px; border-radius: 12px;
  border: 1.5px solid #dfe2e4; background: var(--bg); color: var(--ink); font: 600 16px var(--body);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.contact-btn[hidden] { display: none; }
.contact-btn svg { flex: none; width: 24px; height: 24px; fill: currentColor; }
.contact-btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px -16px rgba(35,39,43,.45); }
.contact-btn:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(59,226,107,.18); }
.contact-btn--tg svg { color: #229ed9; }
.contact-btn--wa svg { color: #25d366; }
.contact-btn--call svg { color: var(--green-d); }
.contact-btn--mail svg { color: var(--ink-2); }
.contact-btn--tg:hover { border-color: #229ed9; }
.contact-btn--wa:hover { border-color: #25d366; }
.contact-btn--call:hover, .contact-btn--mail:hover { border-color: var(--green); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(233,235,236,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .3s; }
.modal__dialog { position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: var(--radius); padding: 44px 32px 30px; box-shadow: 0 40px 100px -30px rgba(35,39,43,.45); animation: pop .45s var(--ease); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); font-size: 24px; line-height: 1; color: var(--ink-2); transition: background .2s, transform .3s; }
.modal__close:hover { background: var(--bg-2); transform: rotate(90deg); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 30px); opacity: 0; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.footer { background: var(--white); padding: 36px 0; border-top: 1px solid var(--bg-2); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer nav { display: flex; gap: 24px; color: var(--ink-2); font-weight: 500; }
.footer nav a:hover { color: var(--green-d); }
.footer p { margin: 0; color: var(--grey); font-size: 14px; }
.footer .logo__mark { width: 40px; height: 40px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .phone span { display: none; }
  .phone { width: 46px; height: 46px; justify-content: center; border-radius: 50%; background: var(--bg); }
  .nav { gap: 24px; }
  .builder__form { grid-template-columns: repeat(2, 1fr); }
  .fld--name { grid-column: span 2; }
  .fld--contact:last-of-type { grid-column: auto; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  :root { --header-h: 70px; }
  .header__inner { gap: 12px; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__text { font-size: 14px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 28px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bg-2);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 16px 0; font: 700 22px var(--head); color: var(--ink); border-bottom: 1px solid var(--bg); }
  .nav a::after { display: none; }
  .nav__phone-mobile { display: block !important; color: var(--green-d) !important; border: 0 !important; }
  .nav__cta { display: inline-flex !important; margin-top: 8px; min-height: 54px; }
  .header__actions { margin-left: auto; gap: 10px; }
  .header__actions .btn--dark { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .about__uses, .lab-hero, .lab-intro, .contacts__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .feat-grid, .games { grid-template-columns: 1fr 1fr; }
  .feat--wide { grid-column: span 2; }
  .feat:nth-child(2) { grid-row: auto; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .hero__ui { grid-template-columns: 1fr; justify-items: center; }
  .hero__counter, .hero__tag { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { height: 64vh; height: 64svh; min-height: 400px; max-height: 620px; }
  .about.section { padding-top: 48px; }
  .container { width: calc(100% - 32px); }
  .header__inner { width: calc(100% - 28px); }
  .header__actions .btn--dark { display: none; }
  .phone { background: var(--green); } .phone svg { fill: #fff; }
  .feat-grid, .games, .benefits { grid-template-columns: 1fr; }
  .feat--wide { grid-column: auto; }
  .builder__form { grid-template-columns: 1fr; }
  .fld--name { grid-column: auto; }
  .fx-chips { gap: 0; padding: 4px; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; }
  .fx-chips button { padding: 9px 11px; font-size: 13px; }
  .lab-actions .btn { width: 100%; }
  .builder__btns, .builder__btns .btn { width: 100%; }
  .modal__dialog { padding: 40px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-duration: 120s; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
