/* ============================================================
   KEYO GAMES — Landing Page
   Clean B2B marketing surface: navy, blue, light paper
   ============================================================ */

:root {
  --blue:          #1563FF;
  --blue-hover:    #0E4FE0;
  --blue-soft:     rgba(21, 99, 255, 0.08);
  --blue-line:     rgba(21, 99, 255, 0.22);

  --ink:           #0B1220;
  --ink-2:         #1A2436;
  --ink-3:         #2A3648;

  --paper:         #FFFFFF;
  --paper-2:       #F5F7FA;
  --paper-3:       #EEF1F6;

  --text:          #0B1220;
  --text-muted:    #5A6A7E;
  --text-faint:    #8A97A8;
  --text-on-dark:  #F4F6F9;
  --text-on-dark-muted: #A8B3C4;

  --line:          #E3E8EF;
  --line-strong:   #CDD5E0;

  --font-display:  'Outfit', sans-serif;
  --font-body:     'Figtree', sans-serif;

  --radius:        8px;
  --radius-sm:     6px;
  --radius-lg:     12px;

  --ease:          0.2s ease;
  --shadow-soft:   0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px rgba(11, 18, 32, 0.06);

  --header-h:      64px;
  --container:     1120px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ─────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-label--on-dark {
  color: #7EB0FF;
}
.section-header {
  margin-bottom: 2.75rem;
  max-width: 36rem;
  text-align: left;
}
.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.section-subtext {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn-secondary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-on-accent {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.btn-on-accent:hover {
  background: var(--paper-2);
  border-color: var(--paper-2);
}

.btn-outline-on-accent {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-on-accent:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.site-header.is-over-hero .brand-name,
.site-header.is-over-hero .nav-link {
  color: rgba(255, 255, 255, 0.88);
}
.site-header.is-over-hero .nav-link:hover {
  color: #fff;
}
.site-header.is-over-hero .mobile-toggle {
  border-color: rgba(255, 255, 255, 0.28);
}
.site-header.is-over-hero .mobile-toggle span {
  background: #fff;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.03);
}
.site-header.scrolled .brand-name,
.site-header.scrolled .nav-link {
  color: var(--ink);
}
.site-header.scrolled .nav-link {
  color: var(--text-muted);
}
.site-header.scrolled .nav-link:hover {
  color: var(--ink);
}
.site-header.scrolled .mobile-toggle {
  border-color: var(--line);
}
.site-header.scrolled .mobile-toggle span {
  background: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 30px;
  width: 30px;
  object-fit: contain;
  border-radius: 6px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--ease);
}
.nav-link:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-nav-close { display: none; }
.mobile-nav-cta { display: none; }

/* ═══════════════════════════════════════════════════════════
   HERO — unified navy band + floating device stack
═══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 55% 70% at 85% 45%, rgba(21, 99, 255, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(21, 99, 255, 0.08) 0%, transparent 55%),
    var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: calc(var(--header-h) + 4.5rem) 0 5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 32rem;
  text-align: left;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7EB0FF;
  margin-bottom: 1.25rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.15rem;
}

.hero-subtext {
  font-size: 1.0625rem;
  color: rgba(244, 246, 249, 0.72);
  line-height: 1.7;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: rgba(244, 246, 249, 0.45);
}
.bc-sep { color: rgba(244, 246, 249, 0.28); }

/* Floating device stack */
.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hero-float-label {
  position: absolute;
  top: 0.25rem;
  right: 8%;
  z-index: 4;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}
.hero-stack {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 500px;
  margin: 0 auto;
  overflow: visible;
}
.hero-device {
  position: absolute;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: z-index 0s linear 0.05s;
}
.hero-device img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  transform: scale(1);
  transform-origin: center center;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
  will-change: transform;
}
/* Scale the img (not the parent) so float keyframes keep running.
   Raise z-index so the enlarged image sits above its siblings. */
.hero-device:hover {
  z-index: 20;
  transition: z-index 0s;
}
.hero-device:hover img {
  transform: scale(1.12);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
}

/* Back: car racing tablet — enlarged */
.hero-device--tablet {
  width: 78%;             /* was 68% */
  max-width: 550px;       /* was 380px */
  aspect-ratio: 4 / 3;
  height: auto;
  right: -2%;
  top: 8%;
  z-index: 1;
  animation: floatSlow 8s ease-in-out infinite;
}

/* Middle: horse racing phone — shifted left */
.hero-device--mid {
  width: 38%;
  max-width: 195px;
  aspect-ratio: 9 / 19;
  height: auto;
  left: 22%;          /* shifted left from 34% */
  top: 2%;
  z-index: 2;
  transform-origin: bottom center;
  animation: floatMid 7s ease-in-out infinite;
}

/* Front: ludo phone */
.hero-device--phone {
  width: 40%;
  max-width: 210px;
  aspect-ratio: 9 / 19;
  height: auto;
  left: -2%;
  bottom: 0;
  top: auto;
  z-index: 3;
  border: none;
  animation: floatFront 6s ease-in-out infinite;
}

.hero-visual-cap {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(244, 246, 249, 0.4);
  text-align: right;
  width: 100%;
  max-width: 600px;
  align-self: flex-end;
  padding-right: 0.25rem;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%       { transform: translateY(-14px) rotate(2deg); }
}
/* Middle always has a slight tilt; on hover the :hover rule overrides to no tilt */
@keyframes floatMid {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%       { transform: translateY(10px) rotate(-6deg); }
}
@keyframes floatFront {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ═══════════════════════════════════════════════════════════
   PLATFORM STRIP
═══════════════════════════════════════════════════════════ */
.platform-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
}
.platform-bar-inner {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  align-items: center;
  gap: 0;
}
.platform-label {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  padding-right: 1.5rem;
  max-width: none;
}
.platform-items {
  display: contents;
}
.platform-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0 0.25rem 1.35rem;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.platform-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  background: transparent;
}
.platform-item-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.platform-item-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.1rem;
}

/* ═══════════════════════════════════════════════════════════
   GAMES
═══════════════════════════════════════════════════════════ */
.games-section {
  padding: 5.5rem 0 5rem;
  background: var(--paper);
}

.game-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: none;
}
.game-tab {
  position: relative;
  padding: 0.5rem 1.05rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--paper-3);
  border-radius: 999px;
  transition: color var(--ease), background var(--ease);
  margin-bottom: 0;
}
.game-tab:hover { color: var(--ink); }
.game-tab.active {
  color: #fff;
  background: var(--blue);
}
.game-tab.active::after { display: none; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.25rem;
  margin-bottom: 2.5rem;
}

.game-card.hidden { display: none; }

.game-card-link {
  display: block;
  transition: opacity var(--ease);
}
.game-card-link:hover { opacity: 0.92; }
.game-card-link:hover .game-card-media img {
  transform: scale(1.03);
}
.game-card-link:hover .game-card-meta h3 {
  color: var(--blue);
}

.game-card-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
  aspect-ratio: 4 / 3;
  margin-bottom: 0.85rem;
}
.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.game-card-meta h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--ease);
  line-height: 1.25;
}
.game-card-meta p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.games-cta {
  display: flex;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   INTEGRATION
═══════════════════════════════════════════════════════════ */
.integration-section {
  padding: 5.5rem 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.integration-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}

.integration-content {
  text-align: left;
}
.integration-content .section-heading {
  margin-bottom: 1.5rem;
}

.int-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.int-tab {
  padding: 0.5rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  border-radius: 999px;
  background: var(--paper-3);
  transition: color var(--ease), background var(--ease);
}
.int-tab:hover { color: var(--ink); }
.int-tab.active {
  color: #fff;
  background: var(--blue);
}

.int-panel { display: none; }
.int-panel.active { display: block; }
.int-panel h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.65rem;
  line-height: 1.25;
}
.int-panel p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.int-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.int-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
  font-weight: 500;
}
.int-features-list svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
}

/* Overlapping integration devices */
.integration-visual {
  position: relative;
  min-height: 500px;
  overflow: visible;
}
.int-stack {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: visible;
}
.int-device {
  position: absolute;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: z-index 0s linear 0.05s;
}
.int-device img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 36px rgba(11, 18, 32, 0.28));
  transform: scale(1);
  transform-origin: center center;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
  will-change: transform;
}
.int-device:hover {
  z-index: 20;
  transition: z-index 0s;
}
.int-device:hover img {
  transform: scale(1.12);
  filter: drop-shadow(0 26px 48px rgba(11, 18, 32, 0.4));
}

/* Left: Chess tablet — enlarged */
.int-device--back {
  width: 78%;             /* was 62% */
  max-width: 480px;       /* was 320px */
  aspect-ratio: 4 / 3;
  left: -4%;
  right: auto;
  top: 4%;
  z-index: 1;
  animation: floatSlow 8.5s ease-in-out infinite;
}

/* Centre: Teen Patti phone — slight tilt */
.int-device--mid {
  width: 38%;
  max-width: 195px;
  aspect-ratio: 9 / 19;
  left: 50%;
  transform: translateX(-50%) rotate(5deg);
  top: 6%;
  z-index: 2;
  animation: intMidFloat 7.2s ease-in-out infinite;
}

/* Right: Jungle Hunt phone */
.int-device--front {
  width: 40%;
  max-width: 210px;
  aspect-ratio: 9 / 19;
  right: -2%;         /* moved to RIGHT */
  left: auto;
  bottom: 0;
  top: auto;
  z-index: 3;
  animation: floatFront 6.4s ease-in-out infinite;
}

@keyframes intMidFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(5deg); }
  50%       { transform: translateX(-50%) translateY(12px) rotate(5deg); }
}

.int-caption {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════════════════ */
.process-section {
  padding: 5.5rem 0;
  background: var(--ink);
  color: var(--text-on-dark);
}
.process-section .section-heading { color: #fff; margin-bottom: 0.75rem; }
.process-section .section-subtext { color: var(--text-on-dark-muted); margin-bottom: 0; }
.process-section .section-header { margin-bottom: 3rem; max-width: 36rem; }

.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  list-style: none;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  min-width: 0;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4F8CFF;
  flex-shrink: 0;
  width: 28px;
}
.process-arrow svg {
  width: 20px;
  height: 20px;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5B9BFF;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.step-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(80, 140, 255, 0.28) 0%, rgba(21, 99, 255, 0.08) 55%, transparent 72%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 1px rgba(120, 170, 255, 0.28),
    0 0 18px rgba(21, 99, 255, 0.22);
}
.step-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.step-body {
  min-width: 0;
  flex: 1;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}
.process-step p {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES — intro left + 2x2 grid right
═══════════════════════════════════════════════════════════ */
.features-section {
  padding: 5.5rem 0;
  background: var(--paper);
}

.features-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: start;
}
.features-intro {
  text-align: left;
  max-width: 22rem;
}
.features-intro .section-subtext { margin-bottom: 0; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.5rem;
}
.feature-card {
  text-align: left;
  padding: 0;
  border: none;
  background: transparent;
}
.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 0.85rem;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════ */
.faq-section {
  padding: 5.5rem 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 4rem;
  align-items: start;
}
.faq-header .section-subtext { margin-bottom: 0; }

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: color var(--ease);
}
.faq-question:hover { color: var(--blue); }
.faq-question[aria-expanded="true"] { color: var(--blue); }

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--ease);
}
.faq-icon::before {
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
}
.faq-icon::after {
  top: 2px;
  left: 8px;
  width: 2px;
  height: 14px;
}
.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer.open { max-height: 240px; }
.faq-answer p {
  padding: 0 2rem 1.25rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 40rem;
}

/* ═══════════════════════════════════════════════════════════
   CTA
═══════════════════════════════════════════════════════════ */
.cta-section {
  padding: 4.5rem 0;
  background: var(--blue);
  color: #fff;
}
.cta-inner {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}
.cta-subtext {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}
.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-muted);
  padding: 3.5rem 0 0;
}
.site-footer .brand-name { color: #fff; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo { margin-bottom: 0.85rem; }
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.15rem;
  max-width: 16rem;
}
.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: color var(--ease);
}
.footer-whatsapp:hover { color: var(--blue); }

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-links-col a {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  transition: color var(--ease);
}
.footer-links-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
}
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a {
  color: var(--text-faint);
  transition: color var(--ease);
}
.footer-legal a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — ≤ 1024px
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-section { min-height: auto; padding: calc(var(--header-h) + 3rem) 0 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stack { height: 440px; max-width: 520px; }
  .hero-device--phone { width: 38%; left: -2%; bottom: 0; }
  .hero-device--mid { width: 36%; left: 36%; top: 2%; }
  .hero-device--tablet { width: 64%; right: -2%; top: 6%; max-width: 340px; }
  .hero-float-label { right: 4%; font-size: 0.72rem; }

  .platform-bar-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0;
  }
  .platform-label {
    grid-column: 1 / -1;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.25rem;
  }
  .platform-item {
    border-left: none;
    padding: 0.85rem 0.75rem 0.85rem 0;
    border-top: 1px solid var(--line);
  }

  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .integration-visual { order: -1; }
  .int-stack { height: 440px; }
  .int-device--back { width: 64%; max-width: 320px; right: -2%; }
  .int-device--mid { width: 38%; left: 32%; }
  .int-device--front { width: 40%; left: -2%; }

  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .process-arrow { display: none; }

  .features-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .features-intro { max-width: none; }

  .faq-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — ≤ 768px
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 4rem 0 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink) !important;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-link:first-of-type { border-top: 1px solid var(--line); }

  .mobile-toggle { display: flex; }
  .mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header-actions .btn-primary { display: none; }

  .mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--text-muted);
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .mobile-nav-cta {
    display: block;
    padding: 1.5rem 1.75rem;
  }

  .hero-section { padding: calc(var(--header-h) + 2rem) 0 2.75rem; }
  .hero-visual { min-height: 360px; }
  .hero-stack { height: 340px; }
  .hero-device--tablet { width: 60%; top: 4%; max-width: 280px; }
  .hero-device--mid { width: 34%; left: 38%; top: 2%; }
  .hero-device--phone { width: 36%; left: -2%; }
  .hero-float-label { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .platform-bar-inner {
    grid-template-columns: 1fr;
  }
  .platform-item { padding: 0.85rem 0; }

  .games-section,
  .integration-section,
  .process-section,
  .features-section,
  .faq-section {
    padding: 4rem 0;
  }

  .game-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .game-tabs::-webkit-scrollbar { display: none; }
  .game-tab { white-space: nowrap; flex-shrink: 0; }

  .int-stack { height: 380px; }
  .int-device--back { width: 58%; max-width: 280px; }
  .int-device--mid { width: 36%; left: 34%; }
  .int-device--front { width: 38%; left: -2%; }

  .features-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 1.75rem; }

  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { width: 100%; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Game filter entrance — only when filtering, not on first paint
   (first paint uses AOS so cards animate on scroll) */
.game-card.is-filtering {
  animation: cardIn 0.35s ease forwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-device,
  .int-device { animation: none !important; }
  .hero-device img,
  .int-device img { transition: none; }
  .hero-device:hover img,
  .int-device:hover img { transform: none; }
  .game-card.is-filtering { animation: none; }
  html { scroll-behavior: auto; }
}
