/* Cairo variable (400-900), self-hosted - no CDN. Subsets copied from the
   Google Fonts sheet this family was fetched with. */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/cairo-var-1.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/cairo-var-2.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/cairo-var-3.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   COPLAY - theme.css
   Single stylesheet for the VPS site. Dark (#070c14) with gold (#caa148).
   Direction-agnostic: every offset uses logical properties so the same file
   renders correctly in RTL (ar) and LTR (en).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #070c14;
  --bg-deep: #04070d;
  --surface: #0d1522;
  --surface-2: #121d2e;
  --line: rgba(202, 161, 72, .22);
  --line-soft: rgba(255, 255, 255, .08);
  --gold: #caa148;
  --gold-bright: #f0cf85;
  --gold-deep: #8d6a24;
  --text: #e9eef7;
  --muted: #93a2b8;
  --live: #3ddc97;
  --down: #ff5f5f;
  --shadow: 0 22px 60px rgba(0, 0, 0, .55);
  --radius: 16px;
  --radius-sm: 10px;
  --shell: 1180px;
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-block-size: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', 'Segoe UI', Tahoma, 'Noto Kufi Arabic', sans-serif;
  font-size: clamp(15px, .55vw + 13px, 17px);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-inline-size: 100%; block-size: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; inline-size: 100%; }

::selection { background: rgba(202, 161, 72, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-block-start: -60px;
  inset-inline-start: 16px;
  z-index: 60;
  padding: 10px 18px;
  background: var(--gold);
  color: #101010;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  transition: inset-block-start .18s var(--ease);
}
.skip-link:focus { inset-block-start: 0; }

.shell {
  inline-size: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-block-end: 14px;
}
.kicker::before {
  content: "";
  block-size: 1px;
  inline-size: 44px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
[dir="rtl"] .kicker::before { background: linear-gradient(270deg, transparent, var(--gold)); }

h2.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-block-end: 12px;
}
h2.section-title em { color: var(--gold-bright); font-style: normal; }
.section-lead { color: var(--muted); max-inline-size: 62ch; }

.num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  color: #120e05;
  box-shadow: 0 14px 30px rgba(202, 161, 72, .22);
}
.btn-gold:hover { box-shadow: 0 18px 40px rgba(202, 161, 72, .34); transform: translateY(-2px); }

.btn-line {
  border-color: var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}
.btn-line:hover { border-color: var(--gold); background: rgba(202, 161, 72, .09); }

.btn-quiet {
  padding: 9px 18px;
  border-color: var(--line-soft);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
.btn-quiet:hover { color: var(--text); border-color: var(--gold); }

.btn-lg { padding: 15px 34px; font-size: 1.03rem; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  block-size: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 10, 17, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-block-end: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { border-block-end-color: var(--line); background: rgba(4, 7, 13, .92); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  inline-size: min(100% - 40px, var(--shell));
  margin-inline: auto;
}
.brand img { block-size: 40px; inline-size: auto; }

.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.is-current { color: var(--gold-bright); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(202, 161, 72, .08);
  font-weight: 700;
  font-size: .9rem;
  color: var(--gold-bright);
}
.user-chip::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--live); }

.lang-toggle {
  inline-size: 40px;
  block-size: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: transparent;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-bright); }

.menu-btn {
  display: none;
  inline-size: 42px;
  block-size: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: transparent;
}
.menu-btn span {
  display: block;
  inline-size: 18px;
  block-size: 2px;
  margin: 3px auto;
  background: var(--text);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vh, 110px) clamp(48px, 7vh, 90px);
  border-block-end: 1px solid var(--line-soft);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/hero-bg.jpg') center / cover no-repeat;
  transform: scale(1.04);
  opacity: .42;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(202, 161, 72, .16), transparent 55%),
    linear-gradient(180deg, rgba(4, 7, 13, .82) 0%, rgba(7, 12, 20, .94) 60%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}
.hero h1 {
  font-size: clamp(2.2rem, 6.4vw, 4.1rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-block-end: 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 60%, #fff3d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { color: var(--muted); font-size: 1.06rem; max-inline-size: 54ch; margin-block-end: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block-end: 30px; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--line-soft);
}
.metric b {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--gold-bright);
}
.metric span { font-size: .82rem; color: var(--muted); }

/* Live status card */
.pulse {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 29, 46, .92), rgba(8, 13, 22, .92));
  box-shadow: var(--shadow);
}
.pulse-head { display: flex; align-items: center; gap: 10px; margin-block-end: 20px; }
.pulse-head h2 { font-size: 1.05rem; font-weight: 800; }
.pulse-head .tag {
  margin-inline-start: auto;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tag-live { background: rgba(61, 220, 151, .14); color: var(--live); }
.tag-down { background: rgba(255, 95, 95, .14); color: var(--down); }
.tag-wait { background: rgba(147, 162, 184, .14); color: var(--muted); }

.pulse-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 13px;
  border-block-end: 1px solid var(--line-soft);
}
.pulse-row:last-of-type { border-block-end: 0; }
.pulse-row .label { font-size: .92rem; color: var(--muted); }
.pulse-row .value { margin-inline-start: auto; font-weight: 800; }
.dot { position: relative; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--live); box-shadow: 0 0 0 4px rgba(61, 220, 151, .16); }
.dot.off { background: var(--down); box-shadow: 0 0 0 4px rgba(255, 95, 95, .14); }
.dot.on::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--live);
  animation: ripple 2.4s var(--ease) infinite;
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(3); opacity: 0; }
}
.pulse-foot { margin-block-start: 18px; font-size: .76rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 92px); }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%); }
.section-head { margin-block-end: clamp(28px, 4vw, 46px); }

/* Feature strip */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.feature {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.feature:hover { transform: translateY(-5px); border-color: var(--line); }
.feature::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.feature:hover::before { opacity: 1; }
.feature .index {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--gold);
}
.feature h3 { font-size: 1.16rem; font-weight: 800; margin-block: 10px 8px; }
.feature p { color: var(--muted); font-size: .93rem; }

/* --------------------------------------------------------------------------
   8. Rankings
   -------------------------------------------------------------------------- */
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-block-end: 26px;
}
.podium-card {
  position: relative;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  text-align: center;
}
.podium-card.first { transform: translateY(-14px); box-shadow: var(--shadow); }
.podium-card .place {
  inline-size: 38px;
  block-size: 38px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #120e05;
  font-weight: 900;
}
.podium-card .name { font-size: 1.08rem; font-weight: 900; overflow-wrap: anywhere; }
.podium-card .sub { font-size: .82rem; color: var(--muted); }

.board-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.board-scroll { overflow-x: auto; }
table.board { min-inline-size: 620px; }
.board thead th {
  padding: 14px 18px;
  background: rgba(202, 161, 72, .07);
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: start;
  white-space: nowrap;
  border-block-end: 1px solid var(--line);
}
.board tbody td {
  padding: 13px 18px;
  border-block-end: 1px solid var(--line-soft);
  font-size: .93rem;
  white-space: nowrap;
}
.board tbody tr:last-child td { border-block-end: 0; }
.board tbody tr:hover { background: rgba(255, 255, 255, .025); }
.board .rank { inline-size: 58px; color: var(--muted); font-weight: 800; }
.board .hero-name { font-weight: 800; }
.board .badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--muted);
}
.board .badge.rb { border-color: var(--line); color: var(--gold-bright); }
.board .score { text-align: end; font-weight: 800; color: var(--gold-bright); }
.board-empty { padding: 34px; text-align: center; color: var(--muted); }

/* --------------------------------------------------------------------------
   9. News
   -------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.news-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.news-card:hover { border-color: var(--line); transform: translateY(-4px); }
.news-card time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
  text-transform: uppercase;
}
.news-card h3 { font-size: 1.1rem; font-weight: 800; margin-block: 12px 8px; }
.news-card p { color: var(--muted); font-size: .92rem; }
.news-card .more { margin-block-start: auto; padding-block-start: 14px; font-size: .82rem; color: var(--muted); }
.news-note {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. Download
   -------------------------------------------------------------------------- */
.download-grid {
  display: grid;
  gap: clamp(26px, 4vw, 50px);
  align-items: center;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}
.steps { display: grid; gap: 16px; margin-block: 26px; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.step .n {
  inline-size: 30px;
  block-size: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(202, 161, 72, .14);
  color: var(--gold-bright);
  font-weight: 900;
  font-size: .88rem;
}
.step b { display: block; font-weight: 800; }
.step span { font-size: .9rem; color: var(--muted); }

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  margin-block: 22px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.specs div { padding: 14px 16px; background: var(--surface); }
.specs small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.specs b { font-size: 1.02rem; color: var(--gold-bright); }

.download-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: url('/assets/hero-bg.jpg') center / cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.download-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 20, .1), rgba(4, 7, 13, .9));
}

/* --------------------------------------------------------------------------
   11. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 80% 12%, rgba(202, 161, 72, .18), transparent 60%),
    var(--surface);
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 900; }
.cta-band .btn { margin-inline-start: auto; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: 40px;
  border-block-start: 1px solid var(--line-soft);
  background: var(--bg-deep);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.footer-inner img { block-size: 32px; inline-size: auto; }
.footer-inner .legal { font-size: .84rem; color: var(--muted); }
.footer-inner .to-top { margin-inline-start: auto; font-size: .84rem; color: var(--muted); }
.footer-inner .to-top:hover { color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   13. Auth modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 11, .78);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), visibility .22s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-card {
  position: relative;
  inline-size: min(100%, 430px);
  max-block-size: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(.98);
  transition: transform .22s var(--ease);
}
.modal.is-open .modal-card { transform: none; }
.modal-close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  inline-size: 34px;
  block-size: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
}
.modal-close:hover { color: var(--text); border-color: var(--gold); }
.modal-card img.mark { block-size: 34px; inline-size: auto; margin-block-end: 14px; }
.modal-card h2 { font-size: 1.5rem; font-weight: 900; margin-block-end: 18px; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-block-end: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, .25);
}
.tabs button {
  padding: 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
  font-size: .9rem;
  color: var(--muted);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.tabs button.is-active { background: rgba(202, 161, 72, .18); color: var(--gold-bright); }

form label { display: block; margin-block-end: 14px; }
form label span { display: block; margin-block-end: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
form input:not([type="submit"]) {
  inline-size: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .3);
  color: var(--text);
  font: inherit;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(202, 161, 72, .14); outline: none; }
form .submit { inline-size: 100%; margin-block-start: 6px; border: 0; }
.hint { font-size: .76rem; color: var(--muted); margin-block: -6px 12px; }
.honeypot { position: absolute; inset-inline-start: -4000px; }
.form-errors {
  padding: 12px 14px;
  margin-block-end: 16px;
  border: 1px solid rgba(255, 95, 95, .45);
  border-radius: var(--radius-sm);
  background: rgba(255, 95, 95, .09);
  font-size: .86rem;
  color: #ffd0d0;
}
.form-errors p + p { margin-block-start: 6px; }
.legal-note { margin-block-start: 14px; font-size: .76rem; color: var(--muted); text-align: center; }
.is-hidden { display: none !important; }
.lang-en .ar-text { display: none; }
.lang-ar .en-text { display: none; }

/* --------------------------------------------------------------------------
   14. Reveal on scroll
   -------------------------------------------------------------------------- */
/* Hidden until theme.js reveals it; the .js-reveal gate means a page whose
   script failed to load still shows every section. */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid, .download-grid { grid-template-columns: 1fr; }
  .download-art { aspect-ratio: 16 / 9; }
  .podium { grid-template-columns: 1fr; }
  .podium-card.first { transform: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
    background: rgba(4, 7, 13, .98);
    border-block-end: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .28s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 13px 6px; border-block-end: 1px solid var(--line-soft); font-size: 1rem; }
  .menu-btn { display: block; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-actions .btn-quiet { display: none; }
  .hero { padding-block-start: 40px; }
  .cta-band .btn { margin-inline-start: 0; inline-size: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}
