/* ==========================================================================
   Center SA Studios — core stylesheet
   Tokens · base · layout · header · footer · buttons · cards · hero · forms
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
  /* Brand */
  --navy: #0b1b33;
  --navy-2: #132a4a;
  --navy-3: #071223;
  --navy-soft: #1c3a63;
  --gold: #ffc93c;
  --gold-2: #ffb020;
  --gold-deep: #e09b00;
  --sky: #3aa7f0;
  --coral: #ff7a8a;
  --mint: #3ed0a0;
  --violet: #9b6bf2;
  --cream: #fff9ec;
  --paper: #ffffff;
  --ink: #0b1b33;
  --text: #4a5a72;
  --text-soft: #6b7c96;
  --line: #e4eaf2;
  --line-2: #eef2f8;

  /* Radii */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 2px 8px rgba(11, 27, 51, 0.06);
  --sh-sm: 0 8px 22px -12px rgba(11, 27, 51, 0.18);
  --sh: 0 18px 44px -20px rgba(11, 27, 51, 0.24);
  --sh-lg: 0 34px 70px -26px rgba(11, 27, 51, 0.32);
  --sh-gold: 0 18px 40px -18px rgba(224, 155, 0, 0.55);

  /* Type */
  --font-ar: "Tajawal", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-en: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font: var(--font-ar);
  --lh: 1.85;

  /* Layout */
  --container: 1180px;
  --header-h: 78px;
  --pad-x: clamp(18px, 4vw, 40px);
  --sec-y: clamp(64px, 8vw, 118px);

  /* Motion */
  --ease: cubic-bezier(0.25, 0.8, 0.3, 1);
  --fast: 0.22s var(--ease);
  --slow: 0.5s var(--ease);
}

html.is-en {
  --font: var(--font-en);
  --lh: 1.68;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: var(--lh);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

html.is-en h1,
html.is-en h2,
html.is-en h3,
html.is-en h4 {
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.35rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

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

::selection {
  background: var(--gold);
  color: var(--navy);
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  transition: top var(--fast);
}

.skip-link:focus {
  top: 12px;
}

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

/* --------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.narrow {
  max-width: 780px;
}

.section {
  position: relative;
  padding-block: var(--sec-y);
}

.section.is-cream {
  background: var(--cream);
}

.section.is-navy {
  background: var(--navy);
  color: #c7d5e6;
}

.section.is-navy h1,
.section.is-navy h2,
.section.is-navy h3 {
  color: #fff;
}

.section.is-brand {
  overflow: hidden;
}

.section.is-brand::before,
.section.is-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.section.is-brand::before {
  width: 420px;
  height: 420px;
  inset-inline-end: -140px;
  top: -160px;
  background: radial-gradient(circle, rgba(58, 167, 240, 0.35), transparent 68%);
}

.section.is-brand::after {
  width: 340px;
  height: 340px;
  inset-inline-start: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(255, 201, 60, 0.28), transparent 70%);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(30px, 4vw, 54px);
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section.is-navy .kicker {
  color: var(--gold);
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: var(--text-soft);
  margin: 0;
}

.section.is-navy .lead {
  color: #a9bcd4;
}

.section-foot {
  margin-top: clamp(26px, 3vw, 44px);
  text-align: center;
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.split {
  display: grid;
  gap: clamp(28px, 4vw, 60px);
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.split-reverse .split-copy {
  order: 2;
}

.split-reverse .split-art {
  order: 1;
}

.split-art img {
  width: 100%;
  border-radius: var(--r-lg);
}

.center-block {
  text-align: center;
}

.center-actions {
  justify-content: center;
}

.narrow.center-block .lead {
  margin-inline: auto;
  max-width: 620px;
}

.prose {
  font-size: 1.02rem;
  color: var(--text);
}

.mini-title {
  margin-top: 26px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

/* Line under the hero kicker: the studio-to-brand relationship. */
.hero-sub {
  margin: -8px 0 16px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.footer-brandnote {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: #9fb2ca;
}

/* -------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast), color var(--fast), border-color var(--fast);
  will-change: transform;
}

.btn .icon {
  width: 19px;
  height: 19px;
  transition: transform var(--fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.04rem;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  --btn-fg: var(--navy);
  box-shadow: var(--sh-gold);
}

.btn-primary:hover {
  box-shadow: 0 22px 46px -18px rgba(224, 155, 0, 0.68);
}

.btn-sun {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
}

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: rgba(11, 27, 51, 0.18);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: rgba(11, 27, 51, 0.04);
}

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn.is-soon {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
  gap: 8px;
}

.btn.is-soon:hover {
  transform: none;
}

.soon-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: rgba(11, 27, 51, 0.08);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-cta .soon-tag {
  display: none;
}

.btn-primary .soon-tag,
.btn-sun .soon-tag {
  background: rgba(11, 27, 51, 0.16);
}

.section.is-navy .soon-tag,
.btn-ghost .soon-tag {
  background: rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--fast), box-shadow var(--fast), backdrop-filter var(--fast), border-color var(--fast);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(11, 27, 51, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 6px 18px -6px rgba(11, 27, 51, 0.45);
  transition: transform var(--fast);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.1;
}

/* The Latin line under the wordmark is set with wide letter-spacing. CSS adds
   that spacing after the last letter too, which pushes the visible text off
   centre; pulling the box back by exactly that amount recentres the ink. */
.brand-text > span:last-child {
  margin-right: -0.28em;
}

/* Small brand star sitting above the wordmark, echoing the logo. */
.brand-text .brand-star {
  display: block;
  color: var(--gold);
  letter-spacing: 0;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 5px rgba(224, 155, 0, 0.45));
}

.brand-text .brand-star .icon {
  width: 12px;
  height: 12px;
}

.brand-text strong {
  font-size: 1.06rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  transition: color var(--fast);
}

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--fast);
}

.site-header.is-stuck .brand-text strong {
  color: var(--navy);
}

.site-header.is-stuck .brand-text span {
  color: var(--text-soft);
}

.site-header.is-stuck .brand-text .brand-star {
  color: var(--gold-deep);
}

.main-nav {
  margin-inline-start: auto;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.1vw, 14px);
}

.main-nav a {
  display: inline-block;
  padding: 9px 12px;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  transition: background var(--fast), color var(--fast);
  white-space: nowrap;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.main-nav a.is-active {
  color: var(--gold);
}

.site-header.is-stuck .main-nav a {
  color: var(--text);
}

.site-header.is-stuck .main-nav a:hover {
  background: var(--line-2);
  color: var(--navy);
}

.site-header.is-stuck .main-nav a.is-active {
  color: var(--navy);
  background: rgba(255, 201, 60, 0.22);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}

.lang-switch .icon {
  width: 17px;
  height: 17px;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-header.is-stuck .lang-switch {
  color: var(--navy);
  border-color: rgba(11, 27, 51, 0.16);
}

.site-header.is-stuck .lang-switch:hover {
  background: var(--line-2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  align-items: center;
  justify-content: center;
}

.site-header.is-stuck .nav-toggle {
  color: var(--navy);
  border-color: rgba(11, 27, 51, 0.16);
}

.nav-toggle-icon {
  display: grid;
  place-items: center;
}

.nav-toggle-icon .icon {
  grid-area: 1 / 1;
  transition: opacity var(--fast), transform var(--fast);
}

.nav-toggle-icon .icon-close {
  display: none;
}

.nav-mobile-foot {
  display: none;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 18, 35, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--fast);
}

.nav-backdrop.is-open {
  opacity: 1;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 92px));
  padding-bottom: clamp(104px, 12vw, 168px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 18, 35, 0.62) 0%, rgba(7, 18, 35, 0.28) 40%, rgba(7, 18, 35, 0.78) 100%);
}

html[dir="rtl"] .hero::after {
  background: linear-gradient(260deg, rgba(7, 18, 35, 0.8) 0%, rgba(7, 18, 35, 0.34) 46%, rgba(7, 18, 35, 0.72) 100%);
}

html[dir="ltr"] .hero::after {
  background: linear-gradient(100deg, rgba(7, 18, 35, 0.8) 0%, rgba(7, 18, 35, 0.34) 46%, rgba(7, 18, 35, 0.72) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  margin-bottom: 18px;
}

.hero .lead {
  color: #cfdcec;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  max-width: 560px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 201, 60, 0.4);
  background: rgba(255, 201, 60, 0.12);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.22);
}

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

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-badge {
  position: relative;
  display: block;
  width: min(340px, 70vw);
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}

.hero-badge img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
}

.hero-badge::after {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 201, 60, 0.35);
  animation: spin 26s linear infinite;
}

.hero-lockup {
  margin: 22px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta span {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-meta strong {
  font-size: 1.02rem;
  color: #fff;
}

.hero-wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  z-index: 3;
  height: 74px;
  background: var(--paper);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 74' preserveAspectRatio='none'%3E%3Cpath d='M0 74h1440V26c-190 34-390 44-620 30C556 42 300 22 0 46z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 74' preserveAspectRatio='none'%3E%3Cpath d='M0 74h1440V26c-190 34-390 44-620 30C556 42 300 22 0 46z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero-compact {
  padding-bottom: clamp(50px, 6vw, 84px);
}

.hero-compact h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
}

.updated {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.brand-halo {
  display: block;
  width: min(400px, 80%);
  margin-inline: auto;
  border-radius: 50%;
  box-shadow: 0 40px 100px -34px rgba(0, 0, 0, 0.7);
  animation: float 8s ease-in-out infinite;
}

.brand-halo img {
  border-radius: 50%;
}

/* --------------------------------------------------------------- cards */
.feature-card,
.make-card,
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: transform var(--fast), box-shadow var(--fast), border-color var(--fast);
}

.feature-card:hover,
.make-card:hover,
.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh);
  border-color: rgba(11, 27, 51, 0.12);
}

.feature-card h3,
.make-card h3,
.platform-card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.feature-card p,
.platform-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.feature-icon,
.make-icon,
.platform-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(255, 201, 60, 0.24), rgba(58, 167, 240, 0.18));
  color: var(--navy);
  margin-bottom: 4px;
}

.feature-icon .icon,
.make-icon .icon,
.platform-icon .icon {
  width: 26px;
  height: 26px;
}

.section.is-navy .feature-card,
.section.is-navy .platform-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.section.is-navy .feature-card h3,
.section.is-navy .platform-card h3 {
  color: #fff;
}

.section.is-navy .feature-card p,
.section.is-navy .platform-card p {
  color: #a9bcd4;
}

.section.is-navy .feature-icon,
.section.is-navy .platform-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.feature-card.is-sun .feature-icon {
  background: linear-gradient(140deg, rgba(255, 201, 60, 0.35), rgba(255, 122, 138, 0.22));
}

.make-grid .make-card {
  align-items: center;
  text-align: center;
  padding-block: 28px;
}

.make-card h3 {
  font-size: 1rem;
}

.platform-card {
  align-items: center;
  text-align: center;
}

.platform-card .platform-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.platform-card.is-soon {
  opacity: 0.9;
  border-style: dashed;
}

.platform-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold);
}

/* One or two live platforms: centre the card instead of stretching it. */
.platform-grid.platform-grid-single {
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
}

.platform-grid-compact {
  margin-top: 44px;
}

/* World cards */
.world-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform var(--fast), box-shadow var(--fast);
}

.world-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.world-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-2);
}

.world-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--slow);
}

.world-card:hover .world-art img {
  transform: scale(1.05);
}

.world-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px;
}

.world-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.world-genres em {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--world) 18%, #fff);
  color: var(--navy);
}

.world-body h3 {
  margin: 0;
  font-size: 1.24rem;
}

.world-tagline {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.world-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}

.world-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}

.world-cta .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--fast);
}

.world-card:hover .world-cta .icon {
  transform: translateX(4px);
}

html[dir="rtl"] .world-card:hover .world-cta .icon {
  transform: translateX(-4px);
}

.world-chars {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Character cards */
.character-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 0 0 26px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  text-align: center;
  overflow: hidden;
  transition: transform var(--fast), box-shadow var(--fast), border-color var(--fast);
}

.character-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh);
  border-color: color-mix(in srgb, var(--c, var(--gold)) 45%, #fff);
}

.character-art {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 26px 0 8px;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 30%, #fff), transparent 72%);
}

.character-art img {
  width: 132px;
  height: 132px;
  transition: transform var(--slow);
}

.character-card:hover .character-art img {
  transform: translateY(-6px) rotate(-4deg) scale(1.05);
}

.character-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 22px;
}

.character-world {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.character-world a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.character-name {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink);
}

.character-short {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.character-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.75;
  transition: opacity var(--fast);
}

.character-card:hover .character-more {
  opacity: 1;
}

.character-more .icon {
  width: 17px;
  height: 17px;
}

.hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.hint .icon {
  width: 18px;
  height: 18px;
  color: var(--gold-deep);
}

/* ------------------------------------------------------------- cta band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 96px);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  text-align: center;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-band::before {
  width: 460px;
  height: 460px;
  inset-inline-end: -160px;
  top: -220px;
  background: radial-gradient(circle, rgba(255, 201, 60, 0.3), transparent 68%);
}

.cta-band::after {
  width: 380px;
  height: 380px;
  inset-inline-start: -140px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(58, 167, 240, 0.32), transparent 68%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-inner p {
  color: #bccce0;
  font-size: 1.04rem;
}

.cta-inner .hero-actions {
  justify-content: center;
}

/* ------------------------------------------------------------ breadcrumb */
.breadcrumb {
  margin-bottom: 18px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb li + li::before {
  content: "›";
  margin-inline-end: 8px;
  opacity: 0.6;
}

html[dir="rtl"] .breadcrumb li + li::before {
  content: "‹";
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb [aria-current] {
  color: var(--gold);
  font-weight: 700;
}

/* ------------------------------------------------------------- lists */
.tick-list,
.stack-list,
.chip-list,
.trait-list {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}

.tick-list li,
.stack-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tick-list .tick {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgba(62, 208, 160, 0.16);
  color: #1f9c73;
  flex: none;
}

.tick-list .tick .icon {
  width: 15px;
  height: 15px;
}

.tick-list strong,
.stack-list strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.tick-list span span,
.stack-list span {
  font-size: 0.94rem;
  color: var(--text-soft);
}

.stack-list {
  counter-reset: stack;
}

.stack-list li {
  flex-direction: column;
  gap: 2px;
  padding-inline-start: 18px;
  border-inline-start: 2px solid var(--gold);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list li {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.trait-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
}

.trait-list .icon {
  width: 18px;
  height: 18px;
  color: #1f9c73;
}

/* --------------------------------------------------------------- modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 18, 35, 0.62);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  animation: fade 0.24s var(--ease);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(880px, 100%);
  margin: auto;
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--sh-lg);
  animation: pop 0.3s var(--ease);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  inset-inline-end: 16px;
  top: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 27, 51, 0.06);
  color: var(--navy);
  transition: background var(--fast), transform var(--fast);
}

.modal-close:hover {
  background: rgba(11, 27, 51, 0.12);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
}

.modal-art {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 34%, #fff), transparent 74%);
}

.modal-art img {
  width: min(260px, 60%);
}

.modal-body {
  padding: clamp(28px, 3.4vw, 46px);
}

.modal-body h2 {
  margin-bottom: 6px;
}

.modal-short {
  font-weight: 700;
  color: var(--gold-deep);
}

.modal-label {
  margin: 22px 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.modal-body .btn {
  margin-top: 22px;
}

/* --------------------------------------------------------------- forms */
.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.field label em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-soft);
}

.req {
  color: var(--coral);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color var(--fast), box-shadow var(--fast);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(58, 167, 240, 0.16);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--coral);
}

.field-error {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #d6455c;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--text);
  font-size: 0.94rem;
  cursor: pointer;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--gold-2);
  flex: none;
}

.checkbox a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.form-status {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.is-ok {
  color: #1f9c73;
}

.form-status.is-err {
  color: #d6455c;
}

/* --------------------------------------------------------------- footer */
.site-footer {
  position: relative;
  background: var(--navy-3);
  color: #93a6bf;
  padding-top: clamp(48px, 6vw, 76px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.7fr;
  gap: clamp(26px, 3vw, 46px);
  padding-bottom: 42px;
}

.brand-footer .brand-text strong {
  color: #fff;
}

.brand-footer .brand-text span {
  color: rgba(255, 255, 255, 0.5);
}

.brand-footer .brand-text .brand-star {
  color: var(--gold);
}

.footer-blurb {
  margin: 18px 0 10px;
  font-size: 0.94rem;
  max-width: 340px;
}

.footer-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}

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

.social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background var(--fast), transform var(--fast), color var(--fast);
}

.social-link:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.footer-col h2 {
  margin-bottom: 16px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-platforms a,
.is-soon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-platforms .icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.is-soon-link {
  color: #6b7f9c;
  cursor: default;
}

.is-soon-link em {
  font-style: normal;
  font-size: 0.72rem;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}

.footer-note {
  margin: 0;
  color: #6b7f9c;
}

.to-top {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--sh-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--fast), transform var(--fast), visibility var(--fast);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top .icon-up {
  transform: rotate(-90deg);
}

html[dir="rtl"] .icon-arrow {
  transform: scaleX(-1);
}

/* --------------------------------------------------------- animations */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  /* The drawer lives inside the header, so the brand and the toggle need a
     higher stacking order than the drawer to stay visible and clickable. */
  .site-header {
    z-index: 110;
  }

  .brand,
  .header-actions {
    position: relative;
    z-index: 120;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta,
  .header-actions > .lang-switch {
    display: none;
  }

  .main-nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 100;
    width: min(400px, 88vw);
    padding: calc(var(--header-h) + 26px) 26px 40px;
    background: var(--navy);
    box-shadow: -30px 0 70px -30px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    transform: translateX(110%);
    transition: transform 0.36s var(--ease);
    margin: 0;
  }

  html[dir="rtl"] .main-nav {
    transform: translateX(-110%);
  }

  body.nav-open .main-nav {
    transform: none;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 1.08rem;
    border-radius: var(--r-sm);
  }

  .nav-mobile-foot {
    display: grid;
    gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-mobile-foot .lang-switch {
    justify-content: center;
  }

  body.nav-open .nav-toggle-icon .icon-menu {
    display: none;
  }

  body.nav-open .nav-toggle-icon .icon-close {
    display: block;
  }

  body.nav-open .site-header {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  body.nav-open .brand-text strong {
    color: #fff;
  }

  body.nav-open .brand-text span {
    color: rgba(255, 255, 255, 0.6);
  }

  body.nav-open .nav-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
  }
}

@media (max-width: 1520px) and (min-width: 1181px) {
  .main-nav a {
    padding: 8px 9px;
    font-size: 0.87rem;
  }

  .main-nav > ul {
    gap: 2px;
  }

  .lang-switch span {
    display: none;
  }

  .lang-switch {
    padding: 8px 11px;
  }

  .header-cta {
    padding: 9px 15px;
    font-size: 0.86rem;
  }

  .header-inner {
    gap: 12px;
  }
}

@media (max-width: 960px) {
  .split,
  .hero-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-reverse .split-copy,
  .split-reverse .split-art {
    order: 0;
  }

  .hero-inner {
    text-align: center;
  }

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

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

  .hero-meta {
    justify-content: center;
  }

  .hero-art {
    order: -1;
  }

  .hero-badge {
    width: min(240px, 55vw);
  }

  .footer-grid {
    gap: 32px;
  }

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

  .modal-art {
    padding: 30px 24px 10px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.94rem;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .character-art img {
    width: 112px;
    height: 112px;
  }

  .to-top {
    inset-inline-end: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 1181px) {
  .nav-backdrop {
    display: none;
  }
}
