/* ==========================================================================
   Ah Game Studio — 2026 redesign
   Sections: tokens · base · buttons · header · hero · marquee · banner
             services · games · about · process · team · contact · footer · utils
   ========================================================================== */

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #070B18;
  --bg-alt:    #0B1224;
  --surface:   rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line:      rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);

  --text:      #EEF2FB;
  --muted:     #96A2BF;
  --dim:       #6C7A9B;

  --brand:     #F5A846;
  --brand-2:   #FF6B35;
  --accent:    #4CC9F0;
  --violet:    #8B5CF6;

  --grad:      linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 55%, #FF4D6D 100%);
  --grad-cool: linear-gradient(120deg, var(--accent), var(--violet));

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow:    0 20px 50px -20px rgba(0, 0, 0, .75);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .85);
  --ring:      0 0 0 3px rgba(245, 168, 70, .35);

  --shell: 1220px;
  --pad:   clamp(20px, 5vw, 40px);

  --font:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sora', var(--font);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient colour wash behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vh at 12% -5%,  rgba(245, 168, 70, .13), transparent 60%),
    radial-gradient(50vw 50vh at 92% 22%,  rgba(139, 92, 246, .12), transparent 60%),
    radial-gradient(60vw 60vh at 50% 100%, rgba(76, 201, 240, .09), transparent 65%);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--brand);
  color: #12161F;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.icon { width: 20px; height: 20px; flex: none; }

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent); }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.15rem); }
.section-sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.section-foot { text-align: center; margin-top: 52px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #38D97E;
  box-shadow: 0 0 0 0 rgba(56, 217, 126, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(56, 217, 126, 0); }
  100% { box-shadow: 0 0 0 0  rgba(56, 217, 126, 0); }
}

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

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }

.btn-primary {
  background: var(--grad);
  color: #14100A;
  box-shadow: 0 12px 30px -12px rgba(245, 168, 70, .8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(245, 168, 70, .9); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

.btn-sm    { padding: 10px 20px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .3s, backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(7, 11, 24, .82);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 78px;
}

.brand img { width: clamp(140px, 18vw, 178px); height: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ─── Social rail ────────────────────────────────────────────────────────── */
.social-rail {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 90;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  border-radius: 0 var(--r) var(--r) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 0;
  background: rgba(11, 18, 36, .7);
  backdrop-filter: blur(14px);
}
.social-rail a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  color: var(--muted);
  transition: background .22s, color .22s;
}
.social-rail a:hover { color: #fff; }
.social-rail a[data-social="facebook"]:hover  { background: #1877F2; }
.social-rail a[data-social="linkedin"]:hover   { background: #0A66C2; }
.social-rail a[data-social="instagram"]:hover  { background: linear-gradient(45deg, #F09433, #DC2743, #BC1888); }
.social-rail a[data-social="twitter"]:hover    { background: #000; }
.social-rail a[data-social="youtube"]:hover    { background: #FF0000; }
.social-rail a[data-social="mail"]:hover       { background: var(--brand); color: #14100A; }
.social-rail .icon { width: 17px; height: 17px; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) brightness(.62);
  transform: scale(1.06);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 24, .62), rgba(7, 11, 24, .40) 42%, var(--bg)),
    linear-gradient(90deg, rgba(7, 11, 24, .5), transparent 35%, transparent 65%, rgba(7, 11, 24, .5));
}
.hero-particles { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-glow {
  position: absolute;
  z-index: -2;
  width: 62vw; height: 62vw;
  max-width: 780px; max-height: 780px;
  top: -18%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245, 168, 70, .22), transparent 62%);
  filter: blur(28px);
}
.hero-fade {
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, var(--bg));
}

.hero-inner { text-align: center; }
.hero-title {
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -.035em;
}
.hero-sub {
  max-width: 660px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 820px;
  margin: clamp(52px, 8vw, 84px) auto 0;
  padding: 26px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(11, 18, 36, .5);
  backdrop-filter: blur(14px);
}
.hero-stats li { text-align: center; }
.hero-stats .num {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.hero-stats .lbl {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ─── Marquee ────────────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-alt);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: scroll 38s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--dim);
  white-space: nowrap;
}
.marquee-track i { color: var(--brand); font-style: normal; font-size: .6rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ─── Banner ─────────────────────────────────────────────────────────────── */
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(56px, 8vw, 90px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(245, 168, 70, .16), transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(139, 92, 246, .16), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
}
.banner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 10px; }
.banner-kicker {
  margin: 0;
  color: var(--brand);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.banner-text { color: var(--muted); max-width: 52ch; }

/* ─── Cards & services ───────────────────────────────────────────────────── */
.card {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  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 .35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.service-card { display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .95rem; }

.service-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--grad);
  color: #14100A;
  box-shadow: 0 12px 26px -12px rgba(245, 168, 70, .9);
}
.service-icon .icon { width: 26px; height: 26px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 22px; }
.chips li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .72rem;
  color: var(--dim);
  letter-spacing: .03em;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--brand);
  font-weight: 600;
  font-size: .88rem;
}
.card-link .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.card-link:hover .icon { transform: translateX(4px); }

/* ─── Games ──────────────────────────────────────────────────────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}
.filter .icon { width: 16px; height: 16px; }
.filter:hover { color: var(--text); transform: translateY(-2px); }
.filter.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #14100A;
  box-shadow: 0 12px 26px -14px rgba(245, 168, 70, .9);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.game-card {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .4s var(--ease), border-color .3s, background .3s, box-shadow .4s;
}
.game-card:hover {
  transform: translateY(-8px);
  background: var(--surface-2);
  border-color: rgba(245, 168, 70, .45);
  box-shadow: var(--shadow-lg);
}
.game-card.is-hidden { display: none; }

.game-art {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 1;
  background: #0E1526;
}
.game-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.game-card:hover .game-art img { transform: scale(1.07); }
.game-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 24, .75));
  opacity: 0;
  transition: opacity .35s;
}
.game-card:hover .game-art::after { opacity: 1; }

.game-meta { padding: 14px 4px 4px; }
.game-meta h3 {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.game-meta p {
  margin: 5px 0 0;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

.game-platforms {
  position: absolute;
  top: 22px; right: 22px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s, transform .3s;
}
.game-card:hover .game-platforms { opacity: 1; transform: none; }
.game-platforms span {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: rgba(7, 11, 24, .8);
  backdrop-filter: blur(6px);
  color: #fff;
}
.game-platforms .icon { width: 15px; height: 15px; }

.grid-empty { text-align: center; color: var(--dim); margin-top: 40px; }

/* ─── About ──────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.about-media { position: relative; }
.about-media img {
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  right: -14px; bottom: -22px;
  padding: 18px 24px;
  border-radius: var(--r);
  background: var(--grad);
  color: #14100A;
  box-shadow: var(--shadow);
}
.about-badge strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
}
.about-badge span { font-size: .78rem; opacity: .8; }

.about-copy p { color: var(--muted); }
.about-copy .section-title { margin-bottom: 20px; }
.about-copy .btn { margin-top: 34px; }

.mission {
  margin-top: 38px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.mission h3 {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 22px;
}
.bar + .bar { margin-top: 18px; }
.bar-head {
  display: flex;
  justify-content: space-between;
  font-size: .86rem;
  margin-bottom: 8px;
}
.bar-val { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad);
  transition: width 1.4s var(--ease);
}

/* ─── Process ────────────────────────────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.process li {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s;
}
.process li:hover { transform: translateY(-6px); border-color: rgba(245, 168, 70, .4); }
.process-step {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.process h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: .92rem; }

/* ─── Team ───────────────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}
.team-card {
  position: relative;
  padding: 18px 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.team-card:hover { transform: translateY(-6px); background: var(--surface-2); border-color: rgba(139, 92, 246, .45); }

.team-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(139, 92, 246, .25), rgba(76, 201, 240, .18));
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.06); }

.team-card h3 { font-size: 1rem; }
.team-card > p {
  margin: 6px 0 0;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}

.team-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.team-socials a {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  transition: color .2s, background .2s, border-color .2s;
}
.team-socials a:hover { color: #14100A; background: var(--brand); border-color: transparent; }
.team-socials .icon { width: 14px; height: 14px; }

/* ─── Contact ────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.contact-copy > p { color: var(--muted); max-width: 56ch; }
.contact-copy .section-title { margin-bottom: 18px; }

.contact-list { margin: 28px 0 34px; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .icon { color: var(--brand); }
.contact-list a { color: var(--muted); transition: color .2s; }
.contact-list a:hover { color: var(--text); }

.office-switch { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.office-btn {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--display);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.office-btn.is-active { color: #14100A; background: var(--brand); border-color: transparent; }

.office-pane { display: none; }
.office-pane.is-active { display: block; animation: fade .4s var(--ease); }
.office-address {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 14px;
}
.office-address .icon { color: var(--brand); }
.office-pane iframe {
  width: 100%;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  filter: grayscale(1) invert(.92) contrast(.85);
  transition: filter .4s;
}
.office-pane iframe:hover { filter: none; }
.office-map iframe {
  width: 100%;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  filter: grayscale(1) invert(.92) contrast(.85);
  transition: filter .4s;
}
.office-map iframe:hover { filter: none; }

.contact-form-wrap {
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(139, 92, 246, .14), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}
.field label span { color: var(--brand-2); }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(7, 11, 24, .55);
  color: var(--text);
  font: inherit;
  font-size: .94rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #56617D; }
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: var(--ring);
  background: rgba(7, 11, 24, .8);
}
.field.has-error input,
.field.has-error textarea { border-color: #FF5C7A; }

.err {
  display: none;
  margin-top: 7px;
  color: #FF8098;
  font-size: .8rem;
}
.field.has-error .err { display: block; }

/* honeypot — visually removed but not display:none, so bots still fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.spinner {
  display: none;
  width: 17px; height: 17px;
  border: 2px solid rgba(20, 16, 10, .3);
  border-top-color: #14100A;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.is-sending .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  display: none;
  margin: 16px 0 0;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: .9rem;
}
.form-status.is-ok {
  display: block;
  background: rgba(56, 217, 126, .12);
  border: 1px solid rgba(56, 217, 126, .35);
  color: #7BE8AC;
}
.form-status.is-bad {
  display: block;
  background: rgba(255, 92, 122, .12);
  border: 1px solid rgba(255, 92, 122, .35);
  color: #FF9FB2;
}

.form-note { margin-top: 16px; font-size: .8rem; color: var(--dim); }
.form-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #050813;
  padding-top: clamp(56px, 7vw, 84px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr .9fr .9fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 52px;
}
.footer-logo { width: 180px; margin-bottom: 20px; }
.footer-about p { color: var(--muted); font-size: .92rem; max-width: 42ch; }

.footer-socials { display: flex; gap: 9px; margin-top: 22px; }
.footer-socials a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  transition: color .22s, background .22s, transform .22s, border-color .22s;
}
.footer-socials a:hover {
  color: #14100A;
  background: var(--brand);
  border-color: transparent;
  transform: translateY(-3px);
}
.footer-socials .icon { width: 16px; height: 16px; }

.footer-col h3 {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-contact { display: grid; gap: 13px; }
.footer-contact li {
  display: flex;
  gap: 11px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.footer-contact .icon { color: var(--brand); width: 17px; height: 17px; margin-top: 3px; }
.footer-contact a { transition: color .2s; }
.footer-contact a:hover { color: var(--brand); }

.footer-links { display: grid; gap: 11px; }
.footer-links a {
  color: var(--muted);
  font-size: .9rem;
  transition: color .2s, padding-left .2s;
}
.footer-links a:hover { color: var(--brand); padding-left: 5px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.powered { letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }

/* ─── Floating buttons ───────────────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 14px;
  border-radius: 999px;
  background: #25D366;
  color: #06301A;
  box-shadow: 0 16px 34px -14px rgba(37, 211, 102, .9);
  transition: gap .3s var(--ease), padding .3s var(--ease), transform .25s;
}
.whatsapp-fab span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 600;
  font-size: .88rem;
  transition: max-width .35s var(--ease);
}
.whatsapp-fab:hover { gap: 10px; padding-right: 20px; transform: translateY(-3px); }
.whatsapp-fab:hover span { max-width: 130px; }
.whatsapp-fab .icon { width: 24px; height: 24px; }

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 95;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(11, 18, 36, .85);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: #14100A; border-color: transparent; }
.to-top .icon { transform: rotate(-90deg); }

/* ─── Inner page hero ────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: clamp(140px, 18vw, 200px) 0 clamp(52px, 7vw, 80px);
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 100% at 50% 0%, rgba(245, 168, 70, .16), transparent 65%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 18px auto 0; }

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: .82rem;
  color: var(--dim);
}
.breadcrumbs a:hover { color: var(--brand); }

/* ─── Prose (legal pages) ────────────────────────────────────────────────── */
.prose {
  max-width: 800px;
  margin-inline: auto;
  color: var(--muted);
}
.prose h2 {
  font-size: 1.45rem;
  color: var(--text);
  margin: 44px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.08rem; color: var(--text); margin: 26px 0 10px; }
.prose ul { list-style: none; margin: 0 0 1em; display: grid; gap: 9px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.prose strong { color: var(--text); }

/* ─── Reveal animations ──────────────────────────────────────────────────────
   Content is visible by default. The hidden state is only applied once the
   inline bootstrap script has added `.js` to <html>, so the page is never
   blank for visitors without JavaScript.
   ────────────────────────────────────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .75s var(--ease) calc(var(--d, 0) * 90ms),
    transform .75s var(--ease) calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .social-rail { display: none; }
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-badge { right: 16px; bottom: -18px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }

  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }

  .nav {
    position: fixed;
    inset: 78px 0 auto;
    margin: 0;
    padding: 14px var(--pad) 26px;
    background: rgba(7, 11, 24, .96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .28s, transform .28s, visibility .28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 14px 16px; border-radius: var(--r-sm); font-size: 1rem; }
}

@media (max-width: 640px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .banner { flex-direction: column; align-items: flex-start; }
  .whatsapp-fab span { display: none; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-particles { display: none; }
}

/* ─── Language switch (header) ───────────────────────────────────────────── */
.lang-switch {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 600;
  transition: color .2s, border-color .2s, transform .2s;
}
.lang-switch:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.lang-switch .icon { width: 17px; height: 17px; }
@media (max-width: 640px) { .lang-switch span { display: none; } .lang-switch { padding: 8px; } }

/* ─── RTL base ───────────────────────────────────────────────────────────── */
[dir="rtl"] body { font-family: 'Tajawal', var(--font); }
[dir="rtl"] .social-rail { inset-inline-start: auto; inset-inline-end: 0; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

