/* ==========================================================================
   Semicode Studio — site stylesheet

   Bootstrap 5.3 supplies the reset, grid, navbar, dropdown, collapse, forms
   and spacing utilities. Everything below is the studio layer: the design
   tokens lifted from the Figma file, the Bootstrap variable overrides that
   repaint the framework in those colours, and the bespoke components
   Bootstrap has no equivalent for (game poster card, Figma card, scroll-snap
   rails, reveal-on-scroll).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Roboto:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&family=Cairo:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --sc-ink: #04050d;
  --sc-base: #080c1a;
  --sc-base-2: #0a1122;
  --sc-base-3: #0b1224;
  --sc-surface: rgba(16, 25, 60, 0.4);
  --sc-surface-2: rgba(15, 21, 40, 0.2);
  --sc-hairline: rgba(255, 255, 255, 0.07);
  --sc-hairline-soft: rgba(255, 255, 255, 0.05);

  /* Inputs sit inside cards, so they need a fill darker than the card and a
     border that actually reads against it. */
  --sc-field: #0a1020;
  --sc-field-border: #1d2643;

  /* Brand */
  --sc-brand: #0a5fd9;
  --sc-brand-rgb: 10, 95, 217;
  --sc-brand-bright: #1e85f2;
  --sc-brand-deep: #005abf;
  --sc-brand-cyan: #00d4ff;
  --sc-brand-teal: #008ec3;

  /* Type */
  --sc-heading: #e4ecf9;
  --sc-bright: #f8f8fc;
  --sc-nav: #d1d5db;
  --sc-body: #778db1;
  --sc-muted: #5c759e;
  --sc-dim: #425e8b;

  --sc-font-display: 'Orbitron', 'Cairo', system-ui, sans-serif;
  --sc-font-sans: 'Roboto', 'Cairo', system-ui, sans-serif;
  --sc-font-brand: 'Inter', 'Cairo', system-ui, sans-serif;

  --sc-glow: 0 0 24px rgba(10, 95, 217, 0.45);
  --sc-shadow-card: 0 18px 48px -24px rgba(0, 0, 0, 0.9);
}

/* Arabic swaps the display face — Orbitron has no Arabic coverage. */
html[lang='ar'] {
  --sc-font-display: 'Cairo', system-ui, sans-serif;
  --sc-font-sans: 'Cairo', system-ui, sans-serif;
  --sc-font-brand: 'Cairo', system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Bootstrap repaint — the framework reads these, so its components inherit
      the palette instead of being overridden one selector at a time.
   -------------------------------------------------------------------------- */
:root,
[data-bs-theme='dark'] {
  --bs-body-bg: var(--sc-base);
  --bs-body-bg-rgb: 8, 12, 26;
  --bs-body-color: var(--sc-body);
  --bs-body-color-rgb: 119, 141, 177;
  --bs-body-font-family: var(--sc-font-sans);
  --bs-body-font-size: 0.9375rem;

  --bs-emphasis-color: var(--sc-heading);
  --bs-heading-color: var(--sc-heading);
  --bs-secondary-color: var(--sc-muted);
  --bs-tertiary-color: var(--sc-dim);

  --bs-primary: var(--sc-brand);
  --bs-primary-rgb: var(--sc-brand-rgb);
  --bs-link-color: var(--sc-brand-bright);
  --bs-link-color-rgb: 30, 133, 242;
  --bs-link-hover-color: #ffffff;

  --bs-border-color: var(--sc-hairline);
  --bs-border-radius: 0.5rem;
  --bs-border-radius-lg: 0.75rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-2xl: 1.5rem;

  --bs-focus-ring-color: rgba(0, 212, 255, 0.4);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background-color: var(--sc-base);
  color: var(--sc-body);
  font-family: var(--sc-font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--sc-font-display);
  color: var(--sc-heading);
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* Inline glyphs keep their drawn size inside flex rows. */
svg {
  flex-shrink: 0;
}

::selection {
  background: var(--sc-brand);
  color: #fff;
}

* {
  scrollbar-color: var(--sc-brand-deep) var(--sc-base);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--sc-base);
}

::-webkit-scrollbar-thumb {
  background: #16233f;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sc-brand-deep);
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.shell,
.shell-wide {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 576px) {
  .shell,
  .shell-wide {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 992px) {
  .shell {
    padding-inline: 6rem;
  }

  .shell-wide {
    padding-inline: 5rem;
  }
}

.section {
  padding-block: 4rem;
}

@media (min-width: 992px) {
  .section {
    padding-block: 5rem;
  }
}

.bg-base {
  background-color: var(--sc-base);
}

.bg-base-2 {
  background-color: var(--sc-base-2);
}

.bg-base-3 {
  background-color: var(--sc-base-3);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.min-w-0 {
  min-width: 0;
}

.service-img {
  width: 100%;
  height: 16rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.about-img {
  width: 100%;
  height: 18rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

@media (min-width: 992px) {
  .service-img {
    height: 20rem;
  }

  .about-img {
    height: 420px;
  }
}

.z-back {
  z-index: -1;
}

.fade-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: -1;
  height: 8rem;
  background: linear-gradient(to top, var(--sc-base), transparent);
}

/* --------------------------------------------------------------------------
   5. Type
   -------------------------------------------------------------------------- */
.font-display {
  font-family: var(--sc-font-display);
}

.font-sans {
  font-family: var(--sc-font-sans);
}

.font-brand {
  font-family: var(--sc-font-brand);
}

.text-heading {
  color: var(--sc-heading) !important;
}

.text-bright {
  color: var(--sc-bright) !important;
}

.text-nav {
  color: var(--sc-nav) !important;
}

.text-body-soft {
  color: var(--sc-body) !important;
}

.text-muted-2 {
  color: var(--sc-muted) !important;
}

.text-dim {
  color: var(--sc-dim) !important;
}

.text-brand {
  color: var(--sc-brand) !important;
}

.text-brand-bright {
  color: var(--sc-brand-bright) !important;
}

.eyebrow {
  font-family: var(--sc-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sc-brand);
  margin: 0;
}

.section-title {
  font-family: var(--sc-font-display);
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--sc-heading);
}

@media (min-width: 576px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (min-width: 992px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.lede {
  font-size: 0.9375rem;
  line-height: 1.75rem;
  color: var(--sc-muted);
}

.text-balance {
  text-wrap: balance;
}

.clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fs-11 { font-size: 0.6875rem; }
.fs-12 { font-size: 0.75rem; }
.fs-13 { font-size: 0.8125rem; }
.fs-14 { font-size: 0.875rem; }
.fs-15 { font-size: 0.9375rem; }
.fs-16 { font-size: 1rem; }
.fs-18 { font-size: 1.125rem; }
.fs-19 { font-size: 1.1875rem; }
.fs-20 { font-size: 1.25rem; }
.fs-22 { font-size: 1.375rem; }
.fs-24 { font-size: 1.5rem; }
.fs-26 { font-size: 1.625rem; }
.fs-28 { font-size: 1.75rem; }
.fs-32 { font-size: 2rem; }

.lh-6 { line-height: 1.5rem; }
.lh-7 { line-height: 1.75rem; }
.lh-8 { line-height: 2rem; }

.mw-sm { max-width: 24rem; }
.mw-md { max-width: 28rem; }
.mw-lg { max-width: 32rem; }
.mw-xl { max-width: 36rem; }
.mw-2xl { max-width: 42rem; }
.mw-3xl { max-width: 48rem; }
.mw-4xl { max-width: 56rem; }

@media (min-width: 576px) {
  .title-sm-44 { font-size: 2.75rem; }
}

@media (min-width: 992px) {
  .title-lg-24 { font-size: 1.5rem; }
  .title-lg-28 { font-size: 1.75rem; }
  .title-lg-32 { font-size: 2rem; }
  .title-lg-34 { font-size: 2.125rem; }
  .title-lg-36 { font-size: 2.25rem; }
  .title-lg-44 { font-size: 2.75rem; }
  .title-lg-52 { font-size: 3.25rem; }
}

/* --------------------------------------------------------------------------
   6. Buttons — Bootstrap .btn with the studio's two variants
   -------------------------------------------------------------------------- */
.btn {
  --bs-btn-font-family: var(--sc-font-sans);
  --bs-btn-font-size: 0.875rem;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: 0.625rem;
  --bs-btn-border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--sc-brand-deep);
  --bs-btn-border-color: var(--sc-brand-deep);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sc-brand-bright);
  --bs-btn-hover-border-color: var(--sc-brand-bright);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--sc-brand);
  --bs-btn-active-border-color: var(--sc-brand);
  --bs-btn-focus-shadow-rgb: var(--sc-brand-rgb);
}

.btn-brand:hover {
  box-shadow: var(--sc-glow);
}

.btn-ghost {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, 0.5);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.1);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.15);
  --bs-btn-active-border-color: #fff;
}

.btn-tall {
  height: 54px;
  padding-inline: 1.5rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.btn-h-10 { height: 2.5rem; }
.btn-h-11 { height: 2.75rem; }
.btn-h-12 { height: 3rem; padding-inline: 1.75rem; }

.btn-circle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--sc-brand);
  color: var(--sc-brand);
  background: transparent;
  transition: background-color 0.2s, color 0.2s;
}

.btn-circle:hover {
  background: var(--sc-brand);
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sc-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sc-brand-bright);
  transition: color 0.2s;
}

.link-arrow:hover {
  color: #fff;
}

/* Directional glyphs mirror under RTL. */
[dir='rtl'] .icon-flip {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card-s {
  position: relative;
  border: 1px solid var(--sc-hairline);
  border-radius: 1.5rem;
  background: var(--sc-surface);
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card-s-hover:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(var(--sc-brand-rgb), 0.6);
  box-shadow: var(--sc-shadow-card);
}

/* The card treatment as it renders in Figma: a 135° fill gradient (dark at the
   top-left, lifting toward the bottom-right) inside a hairline edge that is
   brightest at the top-left. The edge is a masked ::before ring so the fill and
   the border gradients stay independent. */
.card-figma {
  position: relative;
  height: 100%;
  border-radius: 1.5rem;
  padding: 1.75rem;
  background-image: linear-gradient(135deg, #080f25 0%, #111930 52%, #141c32 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-figma::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.19) 25%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    rgba(255, 255, 255, 0.07) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.2s ease;
}

.card-figma:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--sc-shadow-card);
}

.card-figma:hover::before {
  background: linear-gradient(
    135deg,
    rgba(30, 133, 242, 0.55) 0%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0.04) 100%
  );
}

/* Mirror both gradients so RTL reads the same way round. */
[dir='rtl'] .card-figma {
  background-image: linear-gradient(225deg, #080f25 0%, #111930 52%, #141c32 100%);
}

[dir='rtl'] .card-figma::before {
  background: linear-gradient(
    225deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.19) 25%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    rgba(255, 255, 255, 0.07) 100%
  );
}

@media (min-width: 992px) {
  .card-figma {
    min-height: 276px;
    padding: 31px;
  }
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(var(--sc-brand-rgb), 0.25);
  background: rgba(var(--sc-brand-rgb), 0.1);
  color: var(--sc-brand-bright);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(var(--sc-brand-rgb), 0.15);
  padding: 0.375rem 1rem;
  font-family: var(--sc-font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sc-brand-bright);
}

.tag {
  display: inline-block;
  border-radius: 0.375rem;
  border: 1px solid var(--sc-hairline);
  background: var(--sc-surface);
  padding: 0.375rem 0.875rem;
  font-family: var(--sc-font-sans);
  font-size: 0.75rem;
  color: var(--sc-muted);
}

.stat-tile {
  border-radius: 0.75rem;
  border: 1px solid var(--sc-hairline);
  background: var(--sc-surface);
  padding: 1.25rem 1.5rem;
  text-align: center;
  height: 100%;
}

.step-ring {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--sc-brand);
  color: var(--sc-brand-bright);
}

.badge-glyph {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  color: #fff;
}

.contact-glyph {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--sc-brand-deep);
  color: #fff;
}

.glyph-blue { background-image: linear-gradient(to bottom right, #1c4f7a, #2a7fa8); }
.glyph-violet { background-image: linear-gradient(to bottom right, #4f46e5, #7c3aed); }
.glyph-rose { background-image: linear-gradient(to bottom right, #7a1c3f, #b0295c); }

.card-index {
  position: absolute;
  inset-inline-end: 1.5rem;
  top: 1.5rem;
  font-family: var(--sc-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
}

.card-featured {
  border-color: rgba(var(--sc-brand-rgb), 0.4);
  background-image: linear-gradient(to bottom, #141a3c, #0d1330);
  box-shadow: var(--sc-shadow-card);
}

.card-featured .card-index {
  color: rgba(255, 255, 255, 0.1);
}

/* The three "why choose us" cards fan out on large screens. */
@media (min-width: 992px) {
  .fan-start {
    transform: rotate(-6deg);
    transform-origin: bottom right;
  }

  .fan-end {
    transform: rotate(6deg);
    transform-origin: bottom left;
  }

  .fan-center {
    transform: scale(1.05);
    z-index: 2;
  }

  [dir='rtl'] .fan-start {
    transform: rotate(6deg);
    transform-origin: bottom left;
  }

  [dir='rtl'] .fan-end {
    transform: rotate(-6deg);
    transform-origin: bottom right;
  }
}

.card-feature {
  border: 1px solid var(--sc-hairline);
  border-radius: 0.75rem;
  background: var(--sc-surface);
  padding: 1rem;
  height: 100%;
}

.check-dot {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(var(--sc-brand-rgb), 0.15);
  color: var(--sc-brand-bright);
}

/* --------------------------------------------------------------------------
   8. Game poster card
   -------------------------------------------------------------------------- */
.game-card {
  position: relative;
  display: block;
  aspect-ratio: 320 / 426;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--sc-hairline);
  transition: border-color 0.3s;
}

.game-card:hover {
  border-color: var(--sc-brand-cyan);
}

.game-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.game-card:hover .game-card__media {
  transform: scale(1.05);
}

.game-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--sc-ink) 0%, rgba(4, 5, 13, 0.2) 50%, transparent 100%);
}

.game-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.25rem;
}

.game-card__title {
  display: block;
  font-family: var(--sc-font-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--sc-heading);
}

.game-card__genre {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--sc-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sc-brand);
}

/* --------------------------------------------------------------------------
   9. Scroll-snap rails (studio cards, games row)
      A Bootstrap carousel shows one slide at a time; the design shows a
      partially-visible row, so the rail is a scroll container that the arrow
      buttons drive.
   -------------------------------------------------------------------------- */
.rail-wrap {
  position: relative;
}

.rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 1rem;
  margin: 0;
  list-style: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail > li {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.rail--bleed {
  padding-inline: 1.5rem;
}

@media (min-width: 576px) {
  .rail--bleed {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 992px) {
  .rail--bleed {
    padding-inline: 6rem;
  }
}

.rail--studio > li {
  width: 86%;
  scroll-snap-align: center;
}

.rail--games > li {
  width: 76%;
}

@media (min-width: 576px) {
  .rail--studio > li {
    width: 60%;
  }

  .rail--games > li {
    width: 46%;
  }
}

@media (min-width: 992px) {
  .rail--studio > li {
    width: 42%;
  }

  .rail--games > li {
    width: calc(25% - 1.125rem);
  }
}

.rail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(8, 12, 26, 0.8);
  backdrop-filter: blur(6px);
}

.rail-nav--prev {
  inset-inline-start: -1.25rem;
}

.rail-nav--next {
  inset-inline-end: -1.25rem;
}

.studio-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--sc-hairline);
}

.studio-card--featured {
  border-color: rgba(var(--sc-brand-rgb), 0.4);
  box-shadow: var(--sc-shadow-card);
}

.studio-card img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

@media (min-width: 992px) {
  .studio-card img {
    height: 360px;
  }

  .studio-card--featured img {
    height: 400px;
  }
}

.studio-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--sc-ink) 0%, rgba(4, 5, 13, 0.5) 50%, transparent 100%);
}

.studio-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. Header / navbar
   -------------------------------------------------------------------------- */
.site-header {
  background-color: rgba(10, 17, 34, 0.3);
  backdrop-filter: blur(12px);
  transition: background-color 0.3s, box-shadow 0.3s;
  padding: 0;
  z-index: 1040;
}

.site-header.is-scrolled {
  background-color: rgba(8, 12, 26, 0.9);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
}

/* Bootstrap wires these onto .navbar > .container*; the shell is our own. */
.navbar > .shell-wide {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

.brand-word {
  font-family: var(--sc-font-brand);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* The Figma logo asset is a square lockup; the nav shows only the "S" mark.
   These numbers reproduce the crop set on the Figma node exactly. */
.logo-mark {
  position: relative;
  display: block;
  height: 42px;
  width: 35px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark > img {
  position: absolute;
  top: -27.42%;
  inset-inline-start: -56.86%;
  height: 172.58%;
  width: 209.8%;
  max-width: none;
}

.navbar .nav-link {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--sc-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sc-nav);
  transition: background-color 0.2s, color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.navbar .nav-link.active {
  color: #fff;
  border-bottom: 1px solid var(--sc-brand);
  border-radius: 0.5rem 0.5rem 0 0;
}

.navbar-toggler {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--sc-field-border);
  border-radius: 0.5rem;
  color: var(--sc-nav);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.btn-locale {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.375rem 0.625rem;
  font-family: var(--sc-font-sans);
  font-size: 0.75rem;
  color: #fff;
  background: transparent;
}

.btn-locale:hover,
.btn-locale:focus {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-locale.dropdown-toggle::after {
  display: none;
}

.dropdown-menu {
  --bs-dropdown-bg: var(--sc-base-2);
  --bs-dropdown-border-color: var(--sc-hairline);
  --bs-dropdown-color: var(--sc-nav);
  --bs-dropdown-link-color: var(--sc-nav);
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.05);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: rgba(var(--sc-brand-rgb), 0.25);
  --bs-dropdown-font-size: 0.8125rem;
  --bs-dropdown-min-width: 9rem;
  --bs-dropdown-border-radius: 0.5rem;
  box-shadow: var(--sc-shadow-card);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    border-top: 1px solid var(--sc-hairline);
    margin-top: 0.5rem;
    padding-bottom: 1rem;
  }

  .navbar .nav-link.active {
    border-bottom-color: transparent;
    color: var(--sc-brand-bright);
  }
}

/* --------------------------------------------------------------------------
   11. Hero bands
   -------------------------------------------------------------------------- */
.hero-home {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 640px;
  overflow: hidden;
  padding-top: 80px;
}

@media (min-width: 992px) {
  .hero-home {
    min-height: 871px;
  }
}

/* The source art places its character left-of-centre and the design puts the
   headline on that side, so the art is mirrored in LTR to clear the copy; in
   RTL the copy moves and the art reads correctly unmirrored. */
.hero-home__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scaleX(-1);
}

[dir='rtl'] .hero-home__art {
  transform: none;
}

.hero-home__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    var(--sc-base) 0%,
    rgba(8, 12, 26, 0.9) 22%,
    rgba(8, 12, 26, 0.55) 45%,
    rgba(8, 12, 26, 0.12) 75%,
    rgba(8, 12, 26, 0.05) 100%
  );
}

[dir='rtl'] .hero-home__wash {
  background: linear-gradient(
    270deg,
    var(--sc-base) 0%,
    rgba(8, 12, 26, 0.9) 22%,
    rgba(8, 12, 26, 0.55) 45%,
    rgba(8, 12, 26, 0.12) 75%,
    rgba(8, 12, 26, 0.05) 100%
  );
}

.hero-title {
  font-family: var(--sc-font-display);
  font-size: 2.375rem;
  line-height: 1.15;
  font-weight: 700;
}

@media (min-width: 576px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 4.5rem;
    line-height: 1;
  }
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--sc-base-2);
  padding-top: 80px;
}

.page-hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 120% at 50% 0%, rgba(10, 95, 217, 0.18), transparent 70%);
}

.page-hero__title {
  font-family: var(--sc-font-display);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--sc-heading);
}

@media (min-width: 576px) {
  .page-hero__title {
    font-size: 2.375rem;
  }
}

@media (min-width: 992px) {
  .page-hero__title {
    font-size: 2.625rem;
  }
}

.toolchain {
  border-block: 1px solid var(--sc-hairline);
  background: var(--sc-base-2);
  padding-block: 2.75rem;
}

.toolchain ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 2.5rem;
  row-gap: 1.5rem;
  margin: 0;
  list-style: none;
  font-family: var(--sc-font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(228, 236, 249, 0.9);
}

@media (min-width: 576px) {
  .toolchain ul {
    column-gap: 3rem;
    font-size: 1.5625rem;
  }
}

@media (min-width: 992px) {
  .toolchain ul {
    justify-content: space-between;
    column-gap: 2rem;
  }
}

.panel-glass {
  border-radius: 1.5rem;
  border: 1px solid var(--sc-hairline);
  background: rgba(10, 17, 34, 0.7);
  backdrop-filter: blur(4px);
  padding: 3rem 1.5rem;
  text-align: center;
}

@media (min-width: 576px) {
  .panel-glass {
    padding-inline: 3rem;
  }
}

.panel-cta {
  border-radius: 1.5rem;
  border: 1px solid rgba(var(--sc-brand-rgb), 0.3);
  background-image: linear-gradient(to bottom, #131a3d, #0c1128);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--sc-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sc-heading);
}

.form-control {
  background-color: var(--sc-field);
  border-color: var(--sc-field-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: var(--sc-font-sans);
  font-size: 0.875rem;
  color: var(--sc-heading);
}

.form-control:focus {
  background-color: var(--sc-field);
  border-color: var(--sc-brand);
  box-shadow: 0 0 0 1px var(--sc-brand);
  color: var(--sc-heading);
}

.form-control::placeholder {
  color: var(--sc-dim);
  opacity: 1;
}

.newsletter {
  position: relative;
  max-width: 14rem;
}

.newsletter .form-control {
  height: 38px;
  padding: 0 2.75rem 0 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.375rem;
}

[dir='rtl'] .newsletter .form-control {
  padding: 0 0.75rem 0 2.75rem;
}

.newsletter__submit {
  position: absolute;
  inset-inline-end: 5px;
  top: 5px;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 0.25rem;
  background: var(--sc-brand-teal);
  color: #fff;
  transition: background-color 0.2s;
}

.newsletter__submit:hover {
  background: var(--sc-brand-bright);
}

.form-note {
  border-radius: 0.5rem;
  border: 1px solid rgba(var(--sc-brand-rgb), 0.4);
  background: rgba(var(--sc-brand-rgb), 0.1);
  padding: 0.75rem 1rem;
  font-family: var(--sc-font-sans);
  font-size: 0.8125rem;
  color: var(--sc-brand-bright);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--sc-hairline-soft);
  background: var(--sc-base);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-link {
  font-family: var(--sc-font-sans);
  font-size: 0.75rem;
  color: var(--sc-muted);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--sc-brand-bright);
}

.footer-legal {
  font-family: var(--sc-font-sans);
  font-size: 0.75rem;
  color: var(--sc-dim);
  transition: color 0.2s;
}

.footer-legal:hover {
  color: var(--sc-brand-bright);
}

.footer-heading {
  margin-bottom: 1rem;
  font-family: var(--sc-font-sans);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--sc-heading);
}

.social-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.25rem;
  border: 1px solid var(--sc-field-border);
  background: var(--sc-field);
  color: var(--sc-muted);
  transition: border-color 0.2s, color 0.2s;
}

.social-btn:hover {
  border-color: var(--sc-brand);
  color: var(--sc-brand-bright);
}

.footer-bottom {
  border-top: 1px solid var(--sc-hairline-soft);
}

/* --------------------------------------------------------------------------
   14. Blog
   -------------------------------------------------------------------------- */
.post-card {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--sc-hairline);
  background: var(--sc-surface);
  transition: border-color 0.2s;
  height: 100%;
}

.post-card:hover {
  border-color: rgba(var(--sc-brand-rgb), 0.5);
}

.post-card__cat {
  border-radius: 0.25rem;
  background: rgba(var(--sc-brand-rgb), 0.15);
  padding: 0.25rem 0.625rem;
  font-family: var(--sc-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--sc-brand-bright);
}

.post-card__meta {
  border-top: 1px solid var(--sc-hairline);
}

.post-cover {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.post-cover--featured {
  height: 16rem;
}

@media (min-width: 992px) {
  .post-cover--featured {
    height: 380px;
  }
}

.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
}

.article-body blockquote {
  border-inline-start: 2px solid var(--sc-brand);
  padding-inline-start: 1.5rem;
  font-style: italic;
  margin: 0;
}

.article-body > * + * {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   15. Game details
   -------------------------------------------------------------------------- */
.game-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 80px;
}

.game-hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to right,
    var(--sc-base) 0%,
    rgba(8, 12, 26, 0.9) 50%,
    rgba(8, 12, 26, 0.5) 100%
  );
}

[dir='rtl'] .game-hero__wash {
  background: linear-gradient(
    to left,
    var(--sc-base) 0%,
    rgba(8, 12, 26, 0.9) 50%,
    rgba(8, 12, 26, 0.5) 100%
  );
}

.game-cover {
  height: 230px;
  width: 176px;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--sc-hairline);
  object-fit: cover;
  box-shadow: var(--sc-shadow-card);
}

.gallery-stage {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--sc-hairline);
  object-fit: cover;
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--sc-hairline);
  background: none;
}

.gallery-thumb.is-active {
  outline: 2px solid var(--sc-brand-cyan);
  outline-offset: -2px;
}

.gallery-thumb img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
}

.tech-tile {
  display: grid;
  place-items: center;
  height: 3.5rem;
  width: 7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--sc-hairline);
  background: var(--sc-surface);
  padding-inline: 1rem;
}

.plat-chip {
  display: inline-block;
  border-radius: 0.25rem;
  border: 1px solid var(--sc-hairline);
  background: var(--sc-surface-2);
  padding: 0.25rem 0.625rem;
  font-family: var(--sc-font-sans);
  font-size: 0.6875rem;
  color: var(--sc-muted);
}

.chip-genre {
  border-radius: 0.25rem;
  background: var(--sc-brand-deep);
  padding: 0.25rem 0.625rem;
  font-family: var(--sc-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
}

.star {
  color: #f5b301;
}

.star-off {
  color: rgba(255, 255, 255, 0.2);
}

.store-badge {
  height: 52px;
  width: auto;
  transition: opacity 0.2s;
}

.store-badge-sm {
  height: 44px;
  width: auto;
  transition: opacity 0.2s;
}

a:hover > .store-badge,
a:hover > .store-badge-sm {
  opacity: 0.8;
}

@media (min-width: 992px) {
  .sticky-side {
    position: sticky;
    top: 7rem;
  }
}

/* --------------------------------------------------------------------------
   16. Reveal on scroll
      Scoped to .js (set by an inline script in <head>) so content stays
      visible when scripting is unavailable instead of rendering blank.
   -------------------------------------------------------------------------- */
/* Driven with the standalone `translate` property rather than `transform`:
   this rule outranks the component classes, and using `transform` here would
   cancel the card rotations and hover lifts on the very elements it reveals. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s ease, translate 0.6s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: none;
}

.bounce {
  animation: sc-bounce 1.6s infinite;
}

@keyframes sc-bounce {
  0%,
  100% {
    transform: translateY(-15%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    translate: none;
  }
}
