:root {
  --gold: #f5c518;
  --gold-soft: #ffe08a;
  --gold-deep: #c9a227;
  --gold-muted: #8a7438;
  --black: #050505;
  --ink: #0c0c0c;
  --surface: #121212;
  --card: #181818;
  --line: rgba(245, 197, 24, 0.22);
  --cream: #f6f0dc;
  --muted: #b8ae94;
  --danger: #e35d5d;
  --radius: 22px;
  --max: 1120px;
  --header: 76px;
  --font: "Cairo", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(245, 197, 24, 0.08), transparent 50%),
              linear-gradient(180deg, #14110a 0%, #050505 38%, #000 100%);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, .btn { font-family: inherit; cursor: pointer; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--gold-soft);
  flex-shrink: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(245, 197, 24, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.nav a:hover, .nav a.active {
  color: var(--black);
  background: linear-gradient(135deg, #ffe08a, #f5c518, #c9a227);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang {
  display: flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--cream);
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
}
.lang button.active {
  background: var(--gold);
  color: var(--black);
}
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--gold);
}

.hero {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.25; }
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--gold-soft); }
.lede {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 540px;
  margin-bottom: 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  border: 0;
}
.btn-gold {
  color: var(--black);
  background: linear-gradient(135deg, #ffe08a, #f5c518, #c9a227);
  box-shadow: 0 12px 30px rgba(245, 197, 24, 0.22);
}
.btn-ghost {
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.phone {
  justify-self: center;
  width: min(320px, 100%);
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(180deg, #2a2414, #111);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 197, 24, 0.2);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 18px;
  background: #050505;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 18px 18px;
  text-align: center;
}
.phone-screen img { width: 86px; height: 86px; border-radius: 50%; margin-bottom: 12px; }
.phone-screen h3 { font-size: 18px; margin-bottom: 6px; }
.phone-screen p { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.fake-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
  text-align: start;
  margin-bottom: 12px;
  background: #181818;
}
.fake-play {
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe08a, #f5c518);
  color: #050505;
  font-weight: 800;
  padding: 12px;
}

.section { padding: 72px 0; }
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.section-head { max-width: 620px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: rgba(24, 24, 24, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(245, 197, 24, 0.1);
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 20px;
}
.card h3 { margin-bottom: 8px; color: var(--gold-soft); }
.card p { color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  border-top: 2px solid var(--gold);
  padding-top: 16px;
}
.step b { color: var(--gold); display: block; margin-bottom: 8px; }

.demo-box, .cta-band {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.08), rgba(24, 24, 24, 0.6));
}
.demo-box code, .mono {
  display: block;
  margin: 12px 0 18px;
  color: var(--gold-muted);
  font-size: 13px;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.legal-hero {
  padding: 48px 0 12px;
  text-align: center;
}
.legal-hero h1 { font-size: clamp(32px, 5vw, 48px); color: var(--gold-soft); margin: 10px 0; }
.legal-hero p { color: var(--muted); }
.updated { color: var(--gold-muted); font-size: 13px; margin-top: 10px; }
.legal-intro { margin: 24px auto 8px; max-width: 760px; }
.legal-sections { max-width: 760px; margin: 0 auto 64px; }
.legal-sections article {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.legal-sections h3 { color: var(--gold); margin-bottom: 8px; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; justify-content: center; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 24px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}
.footer-grid h4 { color: var(--gold); margin-bottom: 12px; }
.footer-grid a, .footer-grid p { color: var(--muted); display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold-soft); }
.copy { color: var(--gold-muted); font-size: 13px; margin-top: 24px; text-align: center; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header) 12px auto 12px;
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  z-index: 50;
}
.mobile-nav.open { display: grid; gap: 4px; }
.mobile-nav a { padding: 12px; border-radius: 12px; color: var(--cream); font-weight: 700; }
.mobile-nav a.active { background: rgba(245, 197, 24, 0.12); color: var(--gold); }

[dir="rtl"] .hero { grid-template-columns: 0.9fr 1.1fr; }
[dir="rtl"] .hero-copy { order: 2; }
[dir="rtl"] .phone { order: 1; }

@media (max-width: 980px) {
  .hero, .grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  [dir="rtl"] .hero { grid-template-columns: 1fr; }
  [dir="rtl"] .hero-copy, [dir="rtl"] .phone { order: unset; }
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .hero { padding-top: 36px; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 20px)); }
  .header-inner { height: 64px; }
  .lang button { padding: 7px 9px; font-size: 12px; }
  .cta-band, .demo-box { padding: 20px; }
}
