/* ==========================================================================
   Vipz Lab — site styles
   Plain CSS, no build step. Colours come from the Vipz Lab logo kit.
   ========================================================================== */

/* ---------- Fonts: Poppins (SIL Open Font License, see assets/fonts/OFL.txt) */
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens */
:root {
  /* brand */
  --violet-light: #8b5cf6;
  --violet: #6d28d9;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --lavender: #c4b5fd;
  --ink: #111827;

  /* surfaces */
  --bg: #07061a;
  --bg-2: #0d0b24;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);

  /* text */
  --text: #eceaf6;
  --muted: #a5a3c0;
  --faint: #7c7a99;

  /* gradients */
  --grad: linear-gradient(135deg, #8b5cf6 0%, #2563eb 55%, #06b6d4 100%);
  --grad-btn: linear-gradient(135deg, #6d28d9 0%, #4f46e5 50%, #2563eb 100%);
  --grad-text: linear-gradient(100deg, #a78bfa 0%, #60a5fa 50%, #22d3ee 100%);

  /* shape & type */
  --radius: 20px;
  --font-head: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 3px;
  border-radius: 6px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Line icons from the inline sprite (<svg class="i"><use href="#i-…"/></svg>) */
.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i--fill {
  fill: currentColor;
  stroke: none;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.grad-text {
  background: linear-gradient(100deg, #a78bfa, #60a5fa, #22d3ee, #60a5fa, #a78bfa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 10s linear infinite;
}

/* ---------- Sections */
.section {
  position: relative;
  padding-block: clamp(64px, 8vw, 104px);
}

.section--alt {
  background: linear-gradient(180deg, rgba(13, 11, 36, 0) 0%, var(--bg-2) 16%, var(--bg-2) 84%, rgba(13, 11, 36, 0) 100%);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.95rem, 1.3rem + 2.5vw, 3rem);
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.1rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lavender);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before,
.section-head .kicker::after {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

/* ---------- Buttons */
.btn {
  --pad-y: 14px;
  --pad-x: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
}

.btn .i {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .i-arrow {
  transform: translateX(3px);
}

.btn-primary {
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 12px 32px -12px rgba(109, 40, 217, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(79, 70, 229, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-2);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: rgba(196, 181, 253, 0.4);
}

.btn-sm {
  --pad-y: 10px;
  --pad-x: 18px;
  font-size: 0.92rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c4b5fd;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
}

.text-link .i {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: #fff;
}

.text-link:hover .i {
  transform: translateX(3px);
}

/* JS-only controls stay hidden when scripts are off */
html:not(.js) [data-copy],
html:not(.js) [data-gmail] {
  display: none;
}

/* ---------- Header & navigation */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(7, 6, 26, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  flex: none;
  border-radius: 8px;
}

.brand img {
  width: auto;
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav ul a:hover,
.nav ul a.is-active {
  color: #fff;
  background: var(--surface);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 20px;
}

.nav-toggle span:nth-child(3) {
  top: 26px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 104px)) 0 clamp(72px, 10vw, 128px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.blob-1 {
  top: -80px;
  left: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, #8b5cf6, rgba(109, 40, 217, 0) 70%);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.blob-2 {
  top: 60px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 60% 40%, #06b6d4, rgba(6, 182, 212, 0) 70%);
  opacity: 0.35;
  animation: drift 22s ease-in-out -6s infinite alternate-reverse;
}

.blob-3 {
  bottom: -220px;
  left: 38%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #2563eb, rgba(37, 99, 235, 0) 70%);
  opacity: 0.35;
  animation: drift 20s ease-in-out -3s infinite alternate;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}

.hero-copy > * {
  animation: rise 0.9s var(--ease) backwards;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.1);
  color: #ddd6fe;
  font-size: 0.88rem;
  font-weight: 500;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.hero h1 {
  margin: 22px 0;
  font-size: clamp(2.45rem, 1.3rem + 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero h1 .grad-text {
  white-space: nowrap;
}

.hero .lead {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.94rem;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust .i {
  width: 18px;
  height: 18px;
  color: #22d3ee;
}

/* Hero illustration — sized in cqw so it scales like an image */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 0.92;
  margin-inline: auto;
  container-type: inline-size;
  animation: rise 1s var(--ease) 0.2s backwards;
}

.mock-browser {
  position: absolute;
  top: 7%;
  left: 0;
  width: 88%;
  overflow: hidden;
  border: 1px solid var(--border-2);
  border-radius: 2.9cqw;
  background: linear-gradient(180deg, rgba(24, 21, 56, 0.97), rgba(14, 12, 36, 0.97));
  box-shadow: 0 5cqw 12cqw -4cqw rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(139, 92, 246, 0.06);
  animation: float 9s ease-in-out infinite;
}

.mb-bar {
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  padding: 1.8cqw 2.2cqw;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.mb-bar i {
  width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 50%;
  background: #8b5cf6;
}

.mb-bar i:nth-child(2) {
  background: #2563eb;
}

.mb-bar i:nth-child(3) {
  background: #06b6d4;
}

.mb-url {
  flex: 1;
  margin-left: 1.8cqw;
  padding: 0.8cqw 1.8cqw;
  overflow: hidden;
  border-radius: 1.2cqw;
  background: rgba(255, 255, 255, 0.05);
  color: var(--faint);
  font: 500 max(8px, 1.9cqw) / 1.2 var(--font-mono);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mb-body {
  display: grid;
  grid-template-columns: 21% 1fr;
  height: 56cqw;
}

.mb-side {
  display: flex;
  flex-direction: column;
  gap: 1.9cqw;
  padding: 2.6cqw 1.9cqw;
  border-right: 1px solid var(--border);
}

.mb-side b {
  width: 4cqw;
  height: 4cqw;
  margin-bottom: 1cqw;
  border-radius: 1.2cqw;
  background: var(--grad);
}

.mb-side span {
  height: 1.3cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.08);
}

.mb-side span:nth-of-type(odd) {
  width: 78%;
}

.mb-side span:nth-of-type(2) {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.8), rgba(37, 99, 235, 0.55));
}

.mb-main {
  display: flex;
  flex-direction: column;
  gap: 2.1cqw;
  min-width: 0;
  padding: 2.6cqw;
}

.mb-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8cqw;
}

.mb-stat {
  padding: 1.8cqw;
  border: 1px solid var(--border);
  border-radius: 1.8cqw;
  background: rgba(255, 255, 255, 0.04);
}

.mb-stat b,
.mb-stat strong,
.mb-stat em {
  display: block;
  border-radius: 1cqw;
}

.mb-stat b {
  width: 55%;
  height: 1.1cqw;
  background: rgba(255, 255, 255, 0.14);
}

.mb-stat strong {
  width: 75%;
  height: 2.3cqw;
  margin-top: 1.4cqw;
  background: var(--grad-text);
}

.mb-stat em {
  width: 35%;
  height: 1cqw;
  margin-top: 1.2cqw;
  background: rgba(34, 211, 238, 0.45);
}

.mb-chart {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 1.2cqw;
  min-height: 0;
  padding: 2.2cqw;
  border: 1px solid var(--border);
  border-radius: 1.8cqw;
  background-color: rgba(255, 255, 255, 0.03);
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 25%;
}

.mb-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 0.8cqw 0.8cqw 0.3cqw 0.3cqw;
  background: linear-gradient(180deg, #8b5cf6, rgba(37, 99, 235, 0.65));
  transform-origin: bottom;
  animation: bar-grow 1.2s var(--ease) backwards;
  animation-delay: calc(0.4s + var(--i) * 70ms);
}

.mb-chart span:nth-child(3n) {
  background: linear-gradient(180deg, #22d3ee, rgba(37, 99, 235, 0.6));
}

.mb-rows {
  display: flex;
  flex-direction: column;
  gap: 1.3cqw;
}

.mb-row {
  display: flex;
  align-items: center;
  gap: 1.8cqw;
  padding: 1.3cqw 1.8cqw;
  border-radius: 1.4cqw;
  background: rgba(255, 255, 255, 0.03);
}

.mb-row i {
  flex: none;
  width: 3.2cqw;
  height: 3.2cqw;
  border-radius: 50%;
  background: var(--grad);
}

.mb-row span {
  flex: 1;
  height: 1.1cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.1);
}

.mb-row span + span {
  flex: 0.5;
  background: rgba(255, 255, 255, 0.06);
}

.mb-row em {
  flex: none;
  width: 8cqw;
  height: 2.6cqw;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 2cqw;
  background: rgba(34, 211, 238, 0.18);
}

.mb-row:nth-child(2) em {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(139, 92, 246, 0.2);
}

.mock-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 33%;
  aspect-ratio: 9 / 18.5;
  padding: 1.5cqw;
  border: 1px solid var(--border-2);
  border-radius: 5.2cqw;
  background: linear-gradient(160deg, #1d1a45, #0b0a1f);
  box-shadow: 0 5cqw 12cqw -3cqw rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: float 8s ease-in-out -3s infinite;
}

.mp-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.7cqw;
  height: 100%;
  padding: 5cqw 2cqw 2cqw;
  overflow: hidden;
  border-radius: 3.9cqw;
  background: linear-gradient(180deg, #16133a, #0d0b26);
}

.mp-screen::before {
  content: "";
  position: absolute;
  top: 1.6cqw;
  left: 50%;
  width: 9cqw;
  height: 1.8cqw;
  border-radius: 1cqw;
  background: #05040f;
  transform: translateX(-50%);
}

.mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-head b {
  width: 45%;
  height: 1.5cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.18);
}

.mp-head i {
  width: 3.6cqw;
  height: 3.6cqw;
  border-radius: 50%;
  background: var(--grad);
}

.mp-card {
  position: relative;
  height: 17cqw;
  flex: none;
  overflow: hidden;
  border-radius: 2.6cqw;
  background: var(--grad);
}

.mp-card::before {
  content: "";
  position: absolute;
  top: -5cqw;
  right: -4cqw;
  width: 16cqw;
  height: 16cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.mp-card::after {
  content: "";
  position: absolute;
  left: 2.2cqw;
  bottom: 2.2cqw;
  width: 45%;
  height: 1.6cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.7);
}

.mp-item {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.5cqw;
  border-radius: 2cqw;
  background: rgba(255, 255, 255, 0.05);
}

.mp-item i {
  flex: none;
  width: 4.2cqw;
  height: 4.2cqw;
  border-radius: 1.2cqw;
  background: rgba(139, 92, 246, 0.5);
}

.mp-item.alt i {
  background: rgba(6, 182, 212, 0.5);
}

.mp-item span {
  flex: 1;
  height: 1.2cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.14);
}

.mp-nav {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding: 1.8cqw 0 0.6cqw;
  border-top: 1px solid var(--border);
}

.mp-nav i {
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: 0.8cqw;
  background: rgba(255, 255, 255, 0.18);
}

.mp-nav i:first-child {
  background: #22d3ee;
}

.hero-mark {
  position: absolute;
  left: 1%;
  bottom: 1%;
  display: grid;
  place-items: center;
  width: 15cqw;
  height: 15cqw;
  border: 1px solid var(--border-2);
  border-radius: 4.2cqw;
  background: rgba(13, 11, 36, 0.9);
  box-shadow: 0 0 8cqw rgba(139, 92, 246, 0.45), 0 3cqw 6cqw -2cqw rgba(0, 0, 0, 0.7);
  animation: float 7s ease-in-out -1.5s infinite;
}

.hero-mark img {
  width: 62%;
  height: auto;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 1.3cqw;
  padding: 1.4cqw 2.2cqw;
  border: 1px solid var(--border-2);
  border-radius: 2.2cqw;
  background: rgba(16, 14, 42, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 3cqw 7cqw -2cqw rgba(0, 0, 0, 0.7);
  color: #fff;
  font: 600 max(10px, 2.2cqw) / 1.2 var(--font-head);
  white-space: nowrap;
}

.float-chip .i {
  width: max(12px, 2.8cqw);
  height: max(12px, 2.8cqw);
}

.chip-live {
  top: 0;
  right: 4%;
  animation: float 6s ease-in-out -2s infinite;
}

.chip-live .i {
  color: #22d3ee;
}

.chip-stack {
  left: 20%;
  bottom: 6%;
  animation: float 7.5s ease-in-out -4s infinite;
}

.chip-stack .i {
  color: #a78bfa;
}

/* ---------- Cards (shared) */
.card {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

/* gradient ring, shown on hover */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
}

/* soft spotlight that follows the pointer (position set by main.js) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card h3 {
  margin-top: 22px;
  font-size: 1.3rem;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(6, 182, 212, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ede9fe;
}

.icon .i {
  width: 26px;
  height: 26px;
}

.checks {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #d6d3ea;
  font-size: 0.98rem;
}

.checks .i {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: #22d3ee;
  stroke-width: 2.2;
}

/* ---------- Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service--main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px 56px;
  padding: clamp(28px, 4vw, 48px);
  border-color: rgba(196, 181, 253, 0.2);
  background:
    radial-gradient(600px circle at 0% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(500px circle at 100% 100%, rgba(6, 182, 212, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.service--main h3 {
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2.05rem);
}

.service--main p {
  font-size: 1.08rem;
}

.service--main .text-link {
  margin-top: 24px;
}

.service--main .checks {
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 0;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  font: 600 0.74rem / 1.2 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* "Ideas we can build" marquee */
.ideas {
  margin-top: clamp(48px, 6vw, 72px);
  text-align: center;
}

.ideas-title {
  margin-bottom: 18px;
  color: var(--muted);
  font: 600 0.95rem / 1.4 var(--font-head);
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee ul {
  display: flex;
  flex: none;
  gap: 12px;
  padding-right: 12px;
  animation: marquee 42s linear infinite;
}

.marquee:hover ul {
  animation-play-state: paused;
}

.marquee li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #dcd8f0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.marquee li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--grad);
  transform: rotate(45deg);
}

/* ---------- Games */
.games {
  overflow: hidden;
}

.games::before {
  content: "";
  position: absolute;
  top: 28%;
  left: 50%;
  width: min(1000px, 140%);
  height: 560px;
  background: radial-gradient(closest-side, rgba(109, 40, 217, 0.22), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.games .container {
  position: relative;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card.game-card {
  padding: 14px 14px 26px;
}

.game-screen {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0a0920;
}

.game-screen svg {
  width: 100%;
  height: 100%;
}

.game-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.game-screen--icon {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.35), #0a0920 70%);
}

.game-screen--icon img {
  width: 38%;
  height: auto;
  border-radius: 22%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.game-body {
  padding: 20px 12px 0;
}

.game-genre {
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 600;
}

.game-body p.game-genre {
  margin-top: 4px;
}

.game-link {
  display: inline-block;
  margin-top: 14px;
  color: #c4b5fd;
  font-size: 0.88rem;
  font-weight: 600;
}

.game-link:hover {
  text-decoration: underline;
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.game-body p.game-oss {
  margin-top: 10px;
  color: #86efac;
  font-size: 0.8rem;
  font-weight: 600;
}

.game-body h3 {
  margin-top: 14px;
  font-size: 1.22rem;
}

.game-body p {
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(6, 182, 212, 0.32);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: #a5f3fc;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  animation: pulse 2s ease-out infinite;
}

.games-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  color: var(--muted);
}

.games-note .i {
  width: 18px;
  height: 18px;
  color: #22d3ee;
}

/* pixel-art animations */
.px-blink {
  animation: px-blink 1.1s steps(1, end) infinite;
}

.px-delay {
  animation-delay: 0.55s;
}

.px-road {
  animation: px-road 0.45s linear infinite;
}

.px-beat {
  transform-box: fill-box;
  transform-origin: center;
  animation: px-beat 1.8s ease-in-out infinite;
}

.px-twinkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: px-twinkle 2.2s ease-in-out infinite;
}

/* ---------- Process */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), #8b5cf6, #2563eb, #06b6d4, rgba(6, 182, 212, 0.1));
  opacity: 0.6;
}

.step {
  position: relative;
  padding: 0 8px;
  text-align: center;
}

.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 8px var(--bg), 0 0 32px rgba(139, 92, 246, 0.35);
  color: #fff;
  font: 700 1.25rem / 1 var(--font-head);
}

.step-num::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Why Vipz Lab */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.value .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.value .icon .i {
  width: 22px;
  height: 22px;
}

.value h3 {
  margin-top: 18px;
  font-size: 1.12rem;
}

.tools {
  margin-top: clamp(48px, 6vw, 64px);
  text-align: center;
}

.tools h3 {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--surface);
  color: #dcd8f0;
  font-size: 0.95rem;
  font-weight: 500;
}

.chip--key {
  border-color: rgba(196, 181, 253, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(37, 99, 235, 0.22));
  color: #fff;
  font-weight: 600;
}

/* ---------- FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.3s, background-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(196, 181, 253, 0.25);
  background: rgba(255, 255, 255, 0.055);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  color: #fff;
  font: 600 1.06rem / 1.4 var(--font-head);
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: rgba(139, 92, 246, 0.4);
}

.faq-item .answer {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ---------- Contact */
.contact-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(24px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(700px circle at 0% 0%, rgba(139, 92, 246, 0.24), transparent 55%),
    radial-gradient(600px circle at 100% 100%, rgba(6, 182, 212, 0.14), transparent 55%),
    linear-gradient(180deg, #120f30, #0b0a22);
  box-shadow: 0 40px 100px -40px rgba(109, 40, 217, 0.5);
}

.contact-copy h2 {
  margin-top: 14px;
  font-size: clamp(1.95rem, 1.3rem + 2.5vw, 3rem);
}

.contact-copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.email-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 32px;
  color: #fff;
  font: 700 clamp(1.3rem, 1rem + 1.6vw, 2rem) / 1.2 var(--font-head);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.email-big .i {
  width: 1.1em;
  height: 1.1em;
  color: #22d3ee;
}

.email-big:hover span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 22px;
}

.social-row > span {
  margin-right: 4px;
  color: #dcd8f0;
  font-size: 0.95rem;
  font-weight: 600;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s;
}

.social-pill .i {
  width: 18px;
  height: 18px;
}

.social-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 181, 253, 0.45);
  background: var(--surface-2);
}

.hint {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px dashed rgba(196, 181, 253, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.95rem;
}

.hint strong {
  color: #fff;
}

.brief {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  background: rgba(7, 6, 26, 0.55);
}

.brief h3 {
  font-size: 1.2rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #dcd8f0;
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.field select option {
  background: #0d0b24;
  color: #fff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.85);
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.22);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #c4b5fd;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: #fff;
}

.form-note {
  color: var(--faint);
  font-size: 0.86rem;
}

/* ---------- Footer */
.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13, 11, 36, 0), rgba(13, 11, 36, 0.85));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-brand img {
  width: auto;
  height: 36px;
}

.footer-brand p {
  max-width: 30em;
  margin-top: 16px;
  color: var(--muted);
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icons a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: var(--surface);
  color: #dcd8f0;
  transition: transform 0.2s var(--ease), color 0.2s, background-color 0.2s, border-color 0.2s;
}

.social-icons a:hover {
  transform: translateY(-2px);
  border-color: transparent;
  background: var(--grad-btn);
  color: #fff;
}

.social-icons .i {
  width: 19px;
  height: 19px;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: var(--lavender);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 32px;
}

.footer-links a,
.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--muted);
}

/* ---------- Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Legal page (privacy.html) */
.legal {
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(72px, 9vw, 112px);
}

.legal article {
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem);
}

.legal .updated {
  margin-top: 12px;
  color: var(--faint);
}

.legal .summary {
  margin-top: 32px;
  padding: 20px 22px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.08);
  color: #dcd8f0;
}

.legal h2 {
  margin-top: 44px;
  font-size: 1.3rem;
}

.legal p,
.legal li {
  margin-top: 12px;
  color: var(--muted);
}

.legal ul {
  padding-left: 1.3em;
  list-style: disc;
}

.legal a {
  color: #c4b5fd;
}

.legal .table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.legal th {
  color: #dcd8f0;
}

/* ---------- Scroll reveal (only when main.js turns it on) */
.reveal-on .reveal {
  opacity: 0;
}

.reveal-on .reveal.is-visible {
  opacity: 1;
  animation: rise 0.8s var(--ease) backwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}

/* ---------- Keyframes */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(60px, 40px) scale(1.12);
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes bar-grow {
  from {
    transform: scaleY(0);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(34, 211, 238, 0);
  }
}

@keyframes px-blink {
  50% {
    opacity: 0.15;
  }
}

@keyframes px-road {
  from {
    transform: translateY(-16px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes px-beat {
  0%,
  24%,
  48%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.07);
  }
  36% {
    transform: scale(1.05);
  }
}

@keyframes px-twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero-actions,
  .trust {
    justify-content: center;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 64px;
  }

  .brand img {
    height: 32px;
  }

  .js .nav-toggle {
    display: inline-block;
  }

  .js .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100vh - var(--header-h));
    padding: 16px var(--gutter) 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 8, 28, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .js .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }

  .js .nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .js .nav ul a {
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  html:not(.js) .nav ul {
    display: none;
  }
}

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service--main {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 560px;
    margin-inline: auto;
  }

  .steps::before {
    top: 32px;
    bottom: 32px;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #8b5cf6, #2563eb, #06b6d4);
  }

  .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0 20px;
    padding: 0;
    text-align: left;
  }

  .step-num {
    grid-row: span 2;
    margin: 0;
  }

  .step h3 {
    align-self: end;
    padding-top: 6px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .service--main .checks,
  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .card-top .tag {
    font-size: 0.68rem;
  }
}

/* ---------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee ul {
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    padding-right: 0;
    animation: none !important;
  }

  .marquee ul[aria-hidden="true"] {
    display: none;
  }
}
