:root { --night: #071936; --navy: #0f2c59; --teal: #0d9488; --teal-ink: #0f766e; --lit: #ffcf6b; --gold: #f5b63f; --paper: #f4f7fb; --ink: #12203a; --soft: #51617c; --line: #d8e1ee; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.8 "IBM Plex Sans Arabic", Tahoma, sans-serif; }
h1, h2, h3, .brand span { font-family: Alexandria, "IBM Plex Sans Arabic", Tahoma, sans-serif; line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; } ul, ol { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 8px 24px; border-radius: 12px; border: 2px solid transparent; font: 700 1rem/1.4 "IBM Plex Sans Arabic", Tahoma, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: #2a1c00; } .btn-gold:hover { background: #ffc95c; }
.btn-line { border-color: rgba(255,255,255,.45); color: #fff; } .btn-line:hover { border-color: #fff; }
.btn-teal { background: var(--teal-ink); color: #fff; } .btn-teal:hover { background: #0b5f58; }
.btn-navy { background: var(--navy); color: #fff; } .btn-navy:hover { background: #163a70; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; } .btn-ghost:hover { border-color: var(--navy); }

.top { position: sticky; top: 0; z-index: 20; background: var(--night); color: #fff; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; } .brand span { font-weight: 800; font-size: 1.35rem; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: #c8d6ea; text-decoration: none; padding: 8px 12px; border-radius: 8px; } .nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-login { background: #fff; color: var(--navy); min-height: 44px; padding: 6px 18px; } .btn-login:hover { background: #dff5f2; }

.hero { background: linear-gradient(180deg, var(--night), #0d2b55 78%, #12506a); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end; padding-top: 72px; }
.hero-text { padding-bottom: 96px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; line-height: 1.25; }
.hero-text > p { margin-top: 20px; font-size: 1.15rem; color: #d3dff0; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tower { margin: 0; max-width: 400px; width: 100%; justify-self: center; }
.roof { width: 46%; margin: 0 auto; background: #24406b; border-radius: 10px 10px 0 0; text-align: center; padding: 7px 8px; font: 700 .95rem/1.5 Alexandria, Tahoma, sans-serif; color: #e8eef8; }
.wins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px; background: #1a3359; border-radius: 14px 14px 0 0; }
.win { appearance: none; border: 0; padding: 0; aspect-ratio: 1 / .86; border-radius: 6px; background: #0b1f3f; color: #7f97bb; font: 500 .9rem/1 "IBM Plex Sans Arabic", Tahoma, sans-serif; cursor: pointer; transition: background-color .25s, box-shadow .25s; }
.win[aria-pressed="true"] { background: var(--lit); color: #5a3d00; box-shadow: 0 0 18px rgba(255,207,107,.45); }
.win:hover { box-shadow: 0 0 0 2px #fff; }
.door { height: 34px; background: linear-gradient(90deg, #1a3359 42%, #0b1f3f 42% 58%, #1a3359 58%); }
.tower figcaption { background: #fff; color: var(--ink); padding: 14px 18px 18px; }
.meter { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 500; } .meter b { font-variant-numeric: tabular-nums; color: var(--teal-ink); }
.tower figcaption p { font-size: .92rem; color: var(--soft); line-height: 1.6; } .tower small { font-size: .92rem; }

.members { background: var(--paper); border-bottom: 1px solid var(--line); }
.members-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.m-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.m-card h2 { font-size: 1.3rem; } .m-card .btn { margin-top: auto; } .m-card p, .m-card label { color: var(--soft); }
.m-main { border-color: var(--teal); }
.code-row { display: flex; gap: 10px; width: 100%; margin-top: auto; }
.code-row input { flex: 1; min-width: 0; min-height: 50px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 14px; font: 500 1rem/1.4 "IBM Plex Sans Arabic", Tahoma, sans-serif; color: var(--ink); text-align: left; } .code-row input::placeholder { color: #8090a8; }

.sec { padding: 88px 0; } .sec.tint { background: var(--paper); }
.sec-h { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--navy); margin-bottom: 40px; }
.note { margin-top: 24px; color: var(--soft); font-size: .95rem; }
.role { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 44px 0; border-top: 1px solid var(--line); }
.role h3 { font-size: 1.6rem; color: var(--navy); } .lead { font-size: 1.15rem; color: var(--soft); margin: 6px 0 16px; }
.role ul { list-style: none; padding: 0; } .role li { position: relative; padding-inline-start: 26px; margin-bottom: 8px; }
.role li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 13px; height: 12px; border-radius: 3px; background: var(--gold); }
.link-go { display: inline-block; margin-top: 14px; font-weight: 700; padding: 6px 0; }
.role-shots { display: flex; justify-content: center; gap: 18px; background: #e7eef7; border-radius: 20px; padding: 28px 22px 0; overflow: hidden; height: 440px; }
.phone { flex: 0 1 230px; align-self: flex-start; border: 7px solid #101c33; border-radius: 28px; overflow: hidden; background: #fff; } .two .phone:last-child { margin-top: 36px; }

.dark { background: var(--night); color: #fff; } .dark .sec-h { color: #fff; } .dark .note { color: #b9c8de; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--gold); padding-top: 16px; } .steps li::before { content: counter(s); font: 800 1.5rem/1 Alexandria, Tahoma, sans-serif; color: var(--gold); }
.steps h3 { font-size: 1.15rem; margin: 8px 0 6px; } .steps p { color: #cbd7e8; }
.tbl { overflow-x: auto; } table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { padding: 14px 12px; text-align: start; border-bottom: 1px solid var(--line); } thead th { color: var(--soft); font-weight: 500; } tbody th { font-weight: 700; }
td.y { color: var(--teal-ink); font-weight: 700; } td.n { color: #a33131; font-weight: 700; }
.inst { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; } .inst h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 10px; } .inst ol { padding-inline-start: 20px; }
details { border-bottom: 1px solid var(--line); } summary { cursor: pointer; font-weight: 700; padding: 18px 0; } details p { padding: 0 0 20px; color: var(--soft); }
.end { background: linear-gradient(180deg, #0d2b55, var(--night)); color: #fff; padding: 80px 0; } .end h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); } .end p { color: #d3dff0; margin-top: 10px; }
.foot { background: #04112a; color: #b9c8de; padding: 40px 0; font-size: .98rem; } .foot-in { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; } .foot strong { color: #fff; } .foot a { color: #dbe6f5; } .foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; } .foot nav a, .foot-wa { padding: 6px 0; }

.doc { padding: 56px 0 88px; min-height: 60vh; } .doc h1 { font-size: 2.1rem; color: var(--navy); margin-bottom: 18px; } .doc h2 { font-size: 1.25rem; color: var(--navy); margin: 30px 0 8px; } .doc ul { padding-inline-start: 22px; } .upd { color: var(--soft); } .doc .btn { margin-top: 14px; }
.stack { display: flex; flex-direction: column; gap: 4px; max-width: 360px; } .join label { display: block; margin-bottom: 10px; } .join .code-row .btn { margin-top: 0; }
.bigcode { font: 800 1.9rem/1.5 Alexandria, Tahoma, sans-serif; color: var(--navy); text-align: right; overflow-wrap: anywhere; } .err { color: #a33131; font-weight: 500; margin-top: 10px; }

@media (max-width: 900px) {
  .nav { display: none; } .btn-login { margin-inline-start: auto; }
  .hero-in, .members-in, .role { grid-template-columns: 1fr; } .hero-in { padding-top: 44px; gap: 8px; } .hero-text { padding-bottom: 36px; }
  .steps, .inst { grid-template-columns: 1fr 1fr; } .sec { padding: 60px 0; } .role { gap: 26px; padding: 34px 0; } .role-shots { height: 380px; }
}
@media (max-width: 560px) {
  .steps, .inst { grid-template-columns: 1fr; } .cta .btn, .m-card .btn { width: 100%; } .code-row { flex-direction: column; } .code-row input { flex: none; width: 100%; }
  .role-shots { gap: 10px; padding: 20px 12px 0; height: 330px; } .phone { border-width: 5px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 560px) { table { min-width: 0; font-size: .86rem; line-height: 1.55; } th, td { padding: 12px 5px; } }
