/* DOPMAX — website styles */
:root {
  --ink: #17181a;
  --paper: #ffffff;
  --mist: #f1f5f9;
  --line: #dbe2ea;
  --muted: #5a6472;
  --cyan: #05e6ff;
  --blue: #0f9cfc;
  --deep: #1040fe;
  --grad: linear-gradient(160deg, var(--cyan) 0%, var(--blue) 50%, var(--deep) 100%);
  --red: #ff3d5e;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  font-weight: 350;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* language switching */
html[lang="ar"] [lang="en"]:not(html) { display: none !important; }
html[lang="en"] [lang="ar"]:not(html) { display: none !important; }

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

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }
.brand span { font-weight: 600; letter-spacing: .02em; font-size: 15px; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 400; }
.nav a:hover { color: var(--deep); }
.lang {
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500;
  border-radius: 999px; padding: 4px 14px; cursor: pointer;
}
.lang:hover { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .brand span { display: none; }
}

/* hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.12; font-weight: 700; margin: 0 0 22px;
  letter-spacing: -.01em;
}
html[lang="en"] .hero h1 { letter-spacing: -.03em; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 32px; max-width: 34ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 14px; padding: 10px 18px; min-width: 176px;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .72; line-height: 1.2; }
.store b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.store[aria-disabled="true"] { cursor: default; }
.soon { font-size: 14px; color: var(--muted); }

/* molecule */
.molecule { width: 100%; max-width: 520px; justify-self: center; }
.molecule .bond { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.molecule .ring-inner { stroke-width: 4; }
.molecule .node { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.molecule .node.hot { fill: url(#mgrad); stroke: none; }
.molecule .label { font-family: var(--font); font-size: 22px; font-weight: 600; fill: var(--ink); }
.molecule .sub { font-family: var(--font); font-size: 14px; font-weight: 400; fill: var(--muted); }
.molecule .play { fill: url(#mgrad); }
@media (prefers-reduced-motion: no-preference) {
  .molecule .draw { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.6s cubic-bezier(.6,.1,.2,1) forwards; }
  .molecule .draw.d2 { animation-delay: .35s; }
  .molecule .draw.d3 { animation-delay: .7s; }
  .molecule .fade { opacity: 0; animation: fade .6s ease forwards; animation-delay: 1.4s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* sections */
.section { padding: 88px 0; }
.section.alt { background: var(--mist); }
.section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.2; margin: 0 0 14px; font-weight: 700; }
.section .intro { color: var(--muted); font-size: 19px; max-width: 52ch; margin: 0 0 48px; }

/* features list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 0; border-top: 1.5px solid var(--ink); }
.feature .ic { width: 56px; height: 56px; }
.feature h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; line-height: 1.4; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* live block */
.live .wrap { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: center; }
.live ul { list-style: none; padding: 0; margin: 0; }
.live li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.live li b { font-weight: 600; min-width: 9ch; }
.live li span { color: var(--muted); }
@media (max-width: 900px) { .live .wrap { grid-template-columns: 1fr; } .phone { margin-inline: auto; } }

.phone {
  width: 300px; aspect-ratio: 9 / 19; border-radius: 46px; background: var(--ink);
  padding: 12px; box-shadow: 0 30px 60px -20px rgba(16,64,254,.35);
}
.screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  display: grid; grid-template-rows: 1fr 1fr; background: #0d0e10;
}
.half { position: relative; }
.half.a { background: radial-gradient(120% 90% at 30% 30%, #ff6f86 0%, #b5163a 70%); }
.half.b { background: radial-gradient(120% 90% at 70% 30%, #4fd3ff 0%, #1040fe 75%); }
.half .who { position: absolute; inset-inline-start: 14px; top: 14px; color: #fff; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.25); padding: 2px 10px; border-radius: 999px; }
.half .avatar { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.6); }
.scorebar { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 26px; display: flex; font-size: 12px; font-weight: 700; color: #fff; }
.scorebar .r { background: var(--red); flex: 0 0 58%; display: flex; align-items: center; padding-inline: 10px; }
.scorebar .bl { background: var(--deep); flex: 1; display: flex; align-items: center; justify-content: flex-end; padding-inline: 10px; }
.chat { position: absolute; inset-inline-start: 12px; bottom: 58px; display: grid; gap: 6px; max-width: 70%; }
.chat span { background: rgba(0,0,0,.38); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 12px; width: fit-content; }
.bar { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; gap: 8px; align-items: center; }
.bar .input { flex: 1; height: 34px; border-radius: 999px; background: rgba(255,255,255,.18); }
.bar .dot { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.bar .dot.gift { background: var(--grad); }

/* safety */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar h3 { font-size: 19px; margin: 0 0 8px; font-weight: 600; }
.pillar p { margin: 0; color: var(--muted); }
.pillar .mark { width: 40px; height: 4px; background: var(--grad); border-radius: 4px; margin-bottom: 18px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* cta */
.cta { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0; color: rgba(255,255,255,.72); }
.cta .store { background: #fff; color: var(--ink); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 36px 24px; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { color: var(--ink); font-size: 15px; margin: 0 0 10px; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--deep); text-decoration: underline; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

/* document pages */
.doc-head { padding: 64px 0 28px; border-bottom: 1.5px solid var(--ink); }
.doc-head h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 8px; line-height: 1.2; font-weight: 700; }
.doc-head p { margin: 0; color: var(--muted); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 40px 0 88px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc ol { padding-inline-start: 18px; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--deep); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; line-height: 1.35; font-weight: 600; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin: 4px 0; }
.prose .note { background: var(--mist); border-inline-start: 4px solid var(--blue); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
html[dir="rtl"] .prose .note { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.prose th, .prose td { text-align: start; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.prose th { font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 600; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } }

/* contact */
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 24px 0; }
.contact { border: 1.5px solid var(--ink); border-radius: var(--radius-sm); padding: 22px; }
.contact h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.contact p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.contact a { font-weight: 600; word-break: break-all; }
@media (max-width: 640px) { .contacts { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .molecule { max-width: 420px; }
}

/* live battle photo inside the phone frame */
.phone.photo { aspect-ratio: auto; width: 320px; }
.screen-img { width: 100%; height: auto; aspect-ratio: 660 / 1173; object-fit: cover; border-radius: 36px; background: #0d0e10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.live .wrap { grid-template-columns: 1fr 340px; }
@media (max-width: 900px) { .live .wrap { grid-template-columns: 1fr; } }
