:root {
  color-scheme: dark;
  --bg: #070708;
  --raise: #101114;
  --ink: #f6f1e7;
  --muted: #b7b0a6;
  --gold: #e6c27a;
  --line: rgba(230, 194, 122, 0.32);
  --soft: rgba(255, 255, 255, 0.08);
  --ink-on-gold: #1a1408;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:not(.ready) body { visibility: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 Outfit, "Noto Sans", "Noto Sans Arabic", "Noto Naskh Arabic", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Hebrew", "Noto Sans Thai", sans-serif;
}
:lang(ar) body, :lang(fa) body, :lang(ur) body {
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", Outfit, serif;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: Newsreader, "Noto Naskh Arabic", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Devanagari", "Noto Sans Hebrew", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3,
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3,
:lang(ur) h1, :lang(ur) h2, :lang(ur) h3 {
  font-family: "Noto Naskh Arabic", Newsreader, serif;
  letter-spacing: 0;
  line-height: 1.25;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--ink-on-gold);
  padding: 8px 12px;
}
.skip:focus { top: 12px; }
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 4vw;
  background: rgba(7, 7, 8, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--soft);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; flex: none; }
.brand img, .seal-line img, footer img { border-radius: 50%; object-fit: cover; }
.brand img { width: 36px; height: 36px; }
.nav nav { display: flex; gap: 16px; margin-inline-start: auto; min-width: 0; overflow-x: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav-end { display: flex; gap: 8px; align-items: center; flex: none; }
.nav nav a:hover { color: var(--ink); }
.nav-end { display: flex; gap: 8px; align-items: center; }
button, .btn {
  font: 600 15px/1 Outfit, "Noto Sans Arabic", "Noto Sans", sans-serif;
  border-radius: 999px;
  padding: 12px 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.gold, button.gold { background: var(--gold); color: var(--ink-on-gold); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
#lang-open { background: transparent; color: var(--ink); border-color: var(--soft); }
main, footer { max-width: 1180px; margin-inline: auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: 72px 28px 36px;
}
.hero-coin { min-width: 0; display: flex; justify-content: center; }
.hero-coin img { width: min(100%, 480px); height: auto; display: block; border-radius: 50%; }
.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}
:lang(ar) .kicker, :lang(fa) .kicker, :lang(ur) .kicker, :lang(he) .kicker { letter-spacing: 0.04em; }
.num { color: var(--muted); margin-inline-end: 8px; }
h1 { font-size: clamp(76px, 12vw, 148px); font-style: italic; color: var(--gold); }
:lang(ar) h1, :lang(fa) h1, :lang(ur) h1, :lang(he) h1, :lang(zh) h1, :lang(ja) h1, :lang(ko) h1 { font-style: normal; }
.lead, .section-lead { color: var(--muted); font-size: 22px; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.seal-line { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; color: var(--silver, #d5d8df); }
.seal-line img { width: 64px; height: 64px; }
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0 28px;
}
.facts li {
  padding: 22px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
}
.intro {
  margin: 0;
  padding: 54px 28px;
  font-family: Newsreader, "Noto Naskh Arabic", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  max-width: 58rem;
}
.block { padding: 28px 28px 72px; }
.block h2 { font-size: clamp(42px, 6vw, 76px); max-width: 16ch; margin-bottom: 18px; }
.pair, .ahead { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.ahead { grid-template-columns: 1fr 1fr 1fr; }
.pair article img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.pair h3, .methods h3, .locks h3, .ahead h3, .far h3 { font-size: 32px; margin: 12px 0; }
.methods {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.methods article { padding: 28px 22px 8px 0; }
.methods article + article { padding-inline-start: 22px; border-inline-start: 1px solid var(--soft); }
.ar { margin: 0; color: var(--gold); font-family: "Noto Naskh Arabic", serif; font-size: 42px; line-height: 1; }
.far { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--soft); }
.bar { display: flex; height: 54px; margin-top: 28px; overflow: hidden; border-radius: 8px; font-size: 13px; font-weight: 600; }
.bar span { display: grid; place-items: center; }
.bar .mine, i.mine { background: #e6c27a; color: #1a1408; flex: 70; }
.bar .founder, i.founder { background: #f6f1e7; color: #1a1408; flex: 10; }
.bar .treasury, i.treasury { background: #8d7344; color: #fff; flex: 10; }
.bar .waqf, i.waqf { background: #d5d8df; color: #1a1408; flex: 5; }
.bar .liq, i.liq { background: #5c5348; color: #f6f1e7; flex: 5; }
.supply { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.supply li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start; }
.supply i { width: 18px; height: 18px; border-radius: 50%; margin-top: 6px; display: block; }
.locks { display: grid; gap: 0; margin-top: 12px; }
.locks article { padding: 22px 0; border-top: 1px solid var(--soft); display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 24px; }
.honest, .note { color: var(--gold); max-width: 46rem; }
.wallet-band { margin: 0 28px 72px; padding: 42px; background: radial-gradient(circle at 100% 0%, rgba(230, 194, 122, 0.18), transparent 42%), var(--raise); border: 1px solid var(--line); border-radius: 28px; }
.wallet-band h2 { max-width: 18ch; }
.wallet-band .btn { display: inline-block; margin: 8px 0 16px; }
footer { display: flex; gap: 16px; align-items: center; padding: 28px 28px 48px; color: var(--muted); border-top: 1px solid var(--soft); }
footer img { width: 52px; height: 52px; }
footer p { margin: 0; }
dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: min(78vh, 720px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #121316;
  color: var(--ink);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
dialog form { display: grid; gap: 12px; padding: 16px; }
dialog header { display: flex; justify-content: space-between; align-items: center; }
dialog h2 { font-size: 32px; }
dialog .icon { background: transparent; color: var(--ink); border-color: var(--soft); }
#lang-q {
  font: inherit;
  color: var(--ink);
  background: #070708;
  border: 1px solid var(--soft);
  border-radius: 12px;
  padding: 12px 14px;
}
#lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; overflow: auto; max-height: 52vh; }
#lang-list button {
  text-align: start;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
}
#lang-list button[aria-current="true"] { background: rgba(230, 194, 122, 0.16); color: var(--gold); }
#lang-list button:hover { background: rgba(255, 255, 255, 0.05); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink-on-gold); }
@media (max-width: 1180px) {
  .nav { flex-wrap: wrap; }
  .nav nav { order: 3; width: 100%; margin-inline-start: 0; padding-bottom: 4px; }
}
@media (max-width: 980px) {
  .hero, .pair, .ahead, .methods, .facts, .locks article { grid-template-columns: 1fr; }
  .methods article + article { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--soft); }
  .hero-coin img { margin-inline: auto; }
  #lang-list { grid-template-columns: 1fr; }
  .bar span { font-size: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
