/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --color-accent: #facc15;
  --color-bg: #0c0c0c;
  --color-surface-raised: #2b2b2b;

  --text-primary: #ffffff;
  --text-secondary: #D8D8D8;
  --text-on-accent: #0c0c0c;
  --text-disabled: #ffffff52;

  --border-default: #ffffff1f;
  --border-accent: #facc15;
  --border-strong: #ffffff;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Layout */
  --container-max: 1440px;
  --gutter: 20px;
  --section-py: 40px;
  --header-h: 64px;

  /* Type family */
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (font-size / line-height) */
  --fs-display: 34px;   --lh-display: 42px;
  --fs-h2: 30px;        --lh-h2: 38px;
  --fs-h4: 22px;        --lh-h4: 30px;
  --fs-body-l: 16px;    --lh-body-l: 26px;
  --fs-body: 16px;      --lh-body: 26px;
  --fs-body-s: 14px;    --lh-body-s: 22px;
  --fs-label: 16px;     --lh-label: 20px;
}

/* Desktop type scale + layout (>=1280px = full design) */
@media (min-width: 1280px) {
  :root {
    --gutter: 40px;
    --section-py: 64px;
    --header-h: 104px;

    --fs-display: 64px;   --lh-display: 72px;
    --fs-h2: 40px;        --lh-h2: 48px;
    --fs-h4: 24px;        --lh-h4: 32px;
    --fs-body-l: 18px;    --lh-body-l: 28px;
  }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
  :root {
    --gutter: 40px;
    --section-py: 56px;
    --header-h: 88px;
    --fs-display: 52px;  --lh-display: 60px;
    --fs-h2: 36px;       --lh-h2: 44px;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

@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;
  }
}

/* ---------- Layout primitives ---------- */
.container {
  width: min(var(--container-max), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-py);
}

/* ---------- Typography primitives ---------- */
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 600;
  letter-spacing: -0.25px;
}
.h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 600;
}
.body-l { font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
.body   { font-size: var(--fs-body);   line-height: var(--lh-body); }
.body-s { font-size: var(--fs-body-s); line-height: var(--lh-body-s); }
.label  { font-size: var(--fs-label);  line-height: var(--lh-label); font-weight: 500; }

.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--color-accent); }

/* ---------- Pill / eyebrow badge ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  max-width: 100%;
  padding: var(--space-2) var(--space-6);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  color: var(--color-accent);
  font-size: var(--fs-body-s);
  line-height: var(--lh-body-s);
  font-weight: 500;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--text-on-accent);
}
.btn--primary:hover { opacity: .88; }
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn--ghost:hover { border-color: var(--border-strong); }

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  will-change: transform;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 150;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--text-on-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(250, 204, 21, 0.35);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-default);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.brand__logo { height: 40px; width: auto; }
.brand__divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.35);
}
.brand__partner { height: 40px; width: auto; }  /* matches .brand__logo */

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-link {
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color .2s ease;
}
.nav-link:hover { color: var(--color-accent); }
.nav-link.is-active { color: var(--color-accent); }

.site-nav__cta { display: none; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .site-nav__list { gap: var(--space-12); }
  .nav-link { line-height: 26px; }
}

/* < 1024: collapse nav + header CTA into a dropdown panel */
@media (max-width: 1023.98px) {
  .nav-toggle { display: flex; }
  .site-header__cta { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 12, 12, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-default);
    padding: var(--space-4) var(--gutter) var(--space-6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .site-header.is-menu-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }
  .nav-link { font-size: 18px; }
  .site-nav__cta { display: inline-flex; margin-top: var(--space-5); }
}

/* Header actions cluster: lang switcher sits close to the CTA/toggle
   instead of being spread out by .site-header__inner's space-between. */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Language switcher */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.lang-trigger {
  min-width: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.lang-caret {
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.lang-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  z-index: 110;
}
.lang-menu::before {
  content: "";
  position: absolute;
  top: -.5rem;
  left: 0;
  right: 0;
  height: .5rem;
}
.lang-switcher:hover .lang-menu,
.lang-switcher:focus-within .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switcher:hover .lang-caret,
.lang-switcher:focus-within .lang-caret {
  transform: rotate(180deg);
}
.lang-btn {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.lang-btn.active {
  background: var(--color-accent);
  color: var(--text-on-accent);
}
.lang-btn:not(.active):hover { color: var(--text-primary); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  /* mobile art is bottom-weighted, so copy sits in the dark space up top */
  align-items: flex-start;
  min-height: 640px;
  padding-block: calc(var(--header-h) + var(--space-12)) var(--space-16);
  overflow: hidden;
}
/* keep the <picture> wrapper out of the hero's flex flow */
.hero > picture { display: contents; }
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: -1;
}
/* legibility veil — vertical on mobile, over the empty top of the portrait render */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12,12,12,0.92) 0%, rgba(12,12,12,0.7) 35%, rgba(12,12,12,0.15) 65%, rgba(12,12,12,0) 100%);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  width: 100%;
  max-width: 830px;
}
.hero__title { margin-block: 0; }
.hero__subtitle { max-width: 830px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-2);
}

@media (min-width: 768px) {
  .hero { align-items: center; }
  .hero__bg { object-position: right center; }
  .hero::before {
    background: linear-gradient(90deg, rgba(12,12,12,0.9) 0%, rgba(12,12,12,0.55) 38%, rgba(12,12,12,0) 62%);
  }
}

@media (min-width: 1280px) {
  .hero { min-height: 768px; padding-block: 0; }
  .brand__logo { height: 60px; }
  .brand__partner { height: 60px; }
}

/* Marquee */
.marquee {
  --marquee-gap: 68px;
  --marquee-duration: 32s;
  background: var(--color-bg);
  padding-block: var(--space-8);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  flex-shrink: 0;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  margin-right: var(--marquee-gap);
  white-space: nowrap;
}
.marquee__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Rewards (Prizes) */
.rewards {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}
.rewards__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  min-width: 1200px;
  max-width: 1920px;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.rewards__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}

.rewards__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  max-width: 952px;
  text-align: center;
}
.rewards__subtitle { max-width: 707px; }

/* Podium — single pre-rendered visual */
.rewards__podium {
  width: 100%;
  max-width: 1047px;
}
.rewards__podium img {
  width: 100%;
  height: auto;
}

/* Runner-up reward cards */
.runner-ups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  width: 100%;
}
.runner-up {
  flex: 1 1 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-2) var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
}
.runner-up__laurel {
  width: 42px;
  height: 96px;
  flex-shrink: 0;
  object-fit: contain;
}
.runner-up__laurel--right { transform: scaleX(-1); }
.runner-up__body {
  text-align: center;
  min-width: 0;
}
.runner-up__place {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
}
.runner-up__detail {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-primary);
}

.rewards__disclaimer {
  width: 100%;
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-body-s);
  line-height: var(--lh-body-s);
  color: var(--text-secondary);
}

/* Reusable warm-gold gradient text */
.text-gold-gradient {
  background-image: linear-gradient(270deg, #ffcb8d 0%, #fde9ae 25%, #f6efd5 50%, #fde9ae 75.481%, #ffcb8d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .runner-up__place { font-size: 32px; line-height: 40px; }
  .runner-up__detail { font-size: 20px; }
  .runner-up { padding: var(--space-2) var(--space-6); }
}
@media (min-width: 1024px) {
  .runner-ups { gap: clamp(24px, 6vw, 93px); flex-wrap: nowrap; }
}

/* Reusable centered section header */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  max-width: 952px;
  margin-inline: auto;
  text-align: center;
}

/* Tournament schedule */
.timeline {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}
/* Top light-beam glow */
.timeline__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1440px, 100%);
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.timeline__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.scheduler { position: relative; }
.scheduler__map {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 713px;
  max-width: 100%;
  height: auto;
  opacity: 0.05;
  pointer-events: none;
}

.phases {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* --- Phase (mobile-first: vertical stepper) --- */
.phase {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: var(--space-5);
  padding-bottom: var(--space-8);
}
.phase:last-child { padding-bottom: 0; }

.phase__track { position: relative; }
.phase__dot {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 28px;
  /* default (fallback / no-JS) = active; scrub mode below drives it by scroll */
  background: var(--color-accent);
  color: var(--text-on-accent);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.timeline.is-scrub .phase__dot {
  background: var(--color-surface-raised);
  color: var(--text-disabled);
}
.timeline.is-scrub .phase.is-on .phase__dot {
  background: var(--color-accent);
  color: var(--text-on-accent);
}

/* connector: gray base (::before) + scroll-driven gold fill (::after), vertical on mobile */
.phase:not(:last-child) .phase__track::before,
.phase:not(:last-child) .phase__track::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 23px;
  top: 24px;
  width: 2px;
  height: 100%;
}
.phase__track::before { background: var(--border-default); }
.phase__track::after {
  background: var(--color-accent);
  transform: scaleY(1);
  transform-origin: top center;
}
/* fill tracks scroll progress (--p): segment i fills over p ∈ [i/3, (i+1)/3] */
.timeline.is-scrub .phase__track::after {
  transform: scaleY(clamp(0, calc(var(--p, 0) * 3 - var(--i, 0)), 1));
}

.phase__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-1);
  opacity: 1;
  transition: opacity 0.25s ease;
}
.timeline.is-scrub .phase__content { opacity: 0.35; }
.timeline.is-scrub .phase.is-on .phase__content { opacity: 1; }

.phase__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-2);
}
.phase__icon img { width: auto; height: auto; max-width: 100%; max-height: 100%; }

.phase__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 16px;
  line-height: 26px;
}
.phase__badge {
  background: var(--color-accent);
  color: var(--text-on-accent);
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  font-size: 16px;
  line-height: 26px;
}
.phase__desc { color: var(--text-secondary); }

/* --- Desktop: horizontal tracker (>=1024) --- */
@media (min-width: 1024px) {
  .phases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .phase {
    display: block;
    padding-bottom: 0;
    padding-right: var(--space-6);
  }
  .phase__track { height: 48px; }
  .phase:not(:last-child) .phase__track::before,
  .phase:not(:last-child) .phase__track::after {
    top: 23px;
    left: 24px;
    width: 100%;
    height: 2px;
  }
  .phase__track::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
  .timeline.is-scrub .phase__track::after {
    transform: scaleX(clamp(0, calc(var(--p, 0) * 3 - var(--i, 0)), 1));
  }
  .phase__content { margin-top: var(--space-8); padding-top: 0; }
}

/* CTA */
.cta { background: var(--color-bg); }

/* Typing heading */
.cta__heading { min-height: 1.1em; }
.typing__cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 6px;
  vertical-align: -0.08em;
  background: var(--color-accent);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}

.cta__visual {
  position: relative;
  width: 100%;
  height: clamp(360px, 44vw, 627px);
}
.cta__glow,
.cta__trophy {
  position: absolute;
  left: 50%;
  height: auto;
  pointer-events: none;
}
.cta__glow {
  top: 0;
  transform: translateX(-50%);
  width: min(1024px, 100%);
  opacity: 0.8;
}
.cta__trophy {
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 40vw, 512px);
}

.cta__register {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  max-width: 708px;
}
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
}
.cta__disclaimer {
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-body-s);
  line-height: var(--lh-body-s);
  color: var(--text-secondary);
  text-align: center;
}

/* =============================================================
   Policy / Legal
   ============================================================= */
.policy {
  position: relative;
  z-index: 0;
  background: var(--color-bg);
  overflow: hidden;
}

/* Decorative gold light-beam flourish at the bottom of the policy section */
.policy-glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: max(1440px, 150%);
  height: auto;
  pointer-events: none;
  z-index: -1;
}
.policy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

/* Reusable disclosure block */
.policy-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.policy-block__head {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.policy-block__accent {
  flex-shrink: 0;
  width: 2px;
  height: 32px;
  background: var(--color-accent);
}
.policy-block__title { color: var(--text-primary); }
.policy-block__text { color: var(--text-secondary); }
.policy-block__text p + p { margin-top: var(--space-5); }

/* Brand block */
.policy__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.policy__brand-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.policy__logo {
  flex-shrink: 0;
  width: 82px;
  height: 82px;
  border-radius: 10px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.policy__logo img { width: auto; height: 35px; }
.policy__brand-name { color: var(--text-primary); }

.policy__stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .policy__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-12) var(--space-6);
  }
}

/* Footer */
.site-footer {
  background: var(--color-bg);
  padding-bottom: var(--space-5);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-default);
  font-size: var(--fs-body);
  line-height: var(--lh-body-s);
  color: var(--text-primary);
}
.site-footer__links {
  display: flex;
  justify-content: space-between;
  min-width: 190px;
  gap: var(--space-12);
}
.site-footer__links a { transition: color 0.2s ease; }
.site-footer__links a:hover { color: var(--color-accent); }

/* =============================================================
   Cyrillic fallback — Poppins ships Latin glyphs only, so Kazakh
   and Russian fall back to a system stack with solid Cyrillic
   coverage instead of showing tofu/missing glyphs.
   ============================================================= */
html[lang="kk"] body,
html[lang="ru"] body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, system-ui, var(--font-sans);
}

/* =============================================================
   RTL OVERRIDES — Arabic (MENA) locale only.
   Purely additive: everything here is scoped under [dir="rtl"],
   which the page only sets when Arabic is active (see i18n.js
   applyLang). EN/ES/KK/RU keep [dir="ltr"] and are unaffected.

   Approach: lock every flex/grid container whose children have a
   meaningful left-to-right visual order to direction:ltr (so the
   section layout stays pixel-identical to the English original),
   then restore direction:rtl on the actual text-bearing elements
   nested inside those locked containers so Arabic prose shapes
   and flows correctly. Elements outside any locked container
   already inherit direction:rtl from the body rule below.
   ============================================================= */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: Tahoma, "Segoe UI", Arial, system-ui, sans-serif;
}
[dir="rtl"] * {
  letter-spacing: normal;
}

/* --- Lock: preserve English left-to-right layout order --- */
[dir="rtl"] .site-header__inner,
[dir="rtl"] .brand,
[dir="rtl"] .site-nav__list,
[dir="rtl"] .site-header__actions,
[dir="rtl"] .lang-switcher,
[dir="rtl"] .hero__content,
[dir="rtl"] .hero__inner,
[dir="rtl"] .hero__actions,
[dir="rtl"] .marquee__item,
[dir="rtl"] .runner-ups,
[dir="rtl"] .runner-up,
[dir="rtl"] .phases,
[dir="rtl"] .phase,
[dir="rtl"] .phase__meta,
[dir="rtl"] .cta__inner,
[dir="rtl"] .cta__register,
[dir="rtl"] .cta__buttons,
[dir="rtl"] .policy__grid,
[dir="rtl"] .policy-block__head,
[dir="rtl"] .policy__brand-head,
[dir="rtl"] .site-footer__inner,
[dir="rtl"] .site-footer__links {
  direction: ltr;
}

/* --- Restore: correct Arabic shaping/flow for text nested inside a lock --- */
[dir="rtl"] .nav-link,
[dir="rtl"] .site-header__cta,
[dir="rtl"] .site-nav__cta,
[dir="rtl"] .pill,
[dir="rtl"] .hero__actions .btn,
[dir="rtl"] .cta__buttons .btn,
[dir="rtl"] .marquee__text,
[dir="rtl"] .runner-up__body,
[dir="rtl"] .phase__title,
[dir="rtl"] .phase__desc,
[dir="rtl"] .cta__inner .section-head,
[dir="rtl"] .cta__disclaimer,
[dir="rtl"] .policy-block__title,
[dir="rtl"] .policy-block__text,
[dir="rtl"] .policy__brand-name,
[dir="rtl"] .site-footer__copy,
[dir="rtl"] .site-footer__links a {
  direction: rtl;
}
[dir="rtl"] .phase__meta > * {
  direction: rtl;
}

/* HERO FIX: .hero__inner is locked ltr with align-items:flex-start, so the
   title/subtitle boxes already sit flush left like the English original —
   but without an explicit text-align they still inherit text-align:right
   from body, which drags the Arabic text itself toward the right edge and
   into the trophy artwork. Keep direction:rtl (correct Arabic shaping/
   reading order) while forcing text-align:left so the ragged edge stays on
   the same side as every other language. */
[dir="rtl"] .hero__title,
[dir="rtl"] .hero__subtitle {
  direction: rtl;
  text-align: left;
  max-width: 830px;
}

/* MOBILE NAV FIX: .site-nav is a plain block (not flex), so its inline-flex
   .site-nav__cta button is positioned by the inherited text-align, not by
   flex placement — inheriting body's rtl right-align would push it to the
   opposite edge from the nav links above it. Keep it flush left like the
   English original; the button's own label still renders correct Arabic
   RTL text via the .site-nav__cta direction:rtl rule above. */
[dir="rtl"] .site-nav {
  text-align: left;
}

/* Numbers/codes embedded inside Arabic prose (dates, $ amounts, package
   codes) keep their own bidi run isolated so digits don't reorder oddly
   inside the surrounding RTL sentence. */
[dir="rtl"] .text-accent,
[dir="rtl"] bdi {
  unicode-bidi: isolate;
}
