/* BLDOZR · calm, short, one voice. Dark base, a few vivid accents. */
:root {
  --bg: #0a0b0f;
  --panel: #111319;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef0f3;
  --muted: #9ba3ad;
  --dim: #626a74;
  --cyan: #22d3ee; --green: #22c55e; --blue: #3b82f6; --violet: #8b5cf6; --pink: #ec4899; --orange: #f97316; --yellow: #facc15;
  --grad: linear-gradient(100deg, #22d3ee, #8b5cf6 35%, #ec4899 65%, #f97316);
  --grad-loop: linear-gradient(100deg, #22d3ee, #8b5cf6, #ec4899, #f97316, #facc15, #22d3ee);
  --latin: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Readex Pro", "Plus Jakarta Sans", system-ui, Tahoma, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--latin); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="ar"] body { font-family: var(--arabic); line-height: 1.85; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1100px, 100% - 48px); margin-inline: auto; }

/* soft light at the top, nothing else moving in the background */
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 720px; pointer-events: none; z-index: -1;
  background: radial-gradient(700px 380px at 75% 0%, rgba(139, 92, 246, .16), transparent 70%), radial-gradient(600px 340px at 10% 10%, rgba(34, 211, 238, .08), transparent 70%); }

/* ------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(10, 11, 15, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--latin); font-weight: 800; font-size: 16px; letter-spacing: .18em; }
.brand img { border-radius: 10px; }
.menu { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; color: var(--muted); }
.menu a { transition: color .2s; }
.menu a:hover { color: var(--text); }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font: 600 13px var(--latin); color: var(--muted); }
.lang-btn:hover, .lang.open .lang-btn { color: var(--text); }
.lang-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .2s; }
.lang.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 150px; padding: 6px; border-radius: 12px; background: #15181f; border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { width: 100%; text-align: start; padding: 9px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 14.5px; }
.lang-menu button[lang="ar"] { font-family: var(--arabic); }
.lang-menu button:hover { background: rgba(255, 255, 255, .06); }
.lang-menu button[aria-checked="true"] { color: var(--pink); }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--grad-loop); background-size: 200% auto; animation: flow 9s linear infinite; color: #fff; font-weight: 700; font-size: 15.5px;
  box-shadow: 0 12px 30px -14px rgba(236, 72, 153, .7); transition: transform .2s, box-shadow .2s; }
html[lang="ar"] .btn { font-weight: 600; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(236, 72, 153, .85); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@keyframes flow { to { background-position: 200% center; } }

.tg-pulse { position: relative; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; isolation: isolate; flex: none;
  background: linear-gradient(135deg, #3bc3f5, #1f8fd8); box-shadow: 0 10px 26px -10px rgba(42, 171, 238, .8); animation: tg-glow 2s ease-in-out infinite; transition: transform .2s; }
.tg-pulse svg { width: 46%; height: 46%; fill: #fff; margin: 1px 0 0 -2px; }
.tg-pulse .ring { position: absolute; inset: 0; z-index: -1; border-radius: 50%; border: 2px solid rgba(59, 195, 245, .7); animation: tg-ring 2s cubic-bezier(.2, .6, .3, 1) infinite; }
.tg-pulse .r2 { animation-delay: 1s; }
.tg-pulse:hover { transform: scale(1.08); }
.tg-pulse.lg { width: 76px; height: 76px; margin-top: 30px; }
@keyframes tg-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.85); opacity: 0; } }
@keyframes tg-glow { 50% { filter: brightness(1.22); box-shadow: 0 10px 34px -6px rgba(42, 171, 238, 1), 0 0 26px rgba(59, 195, 245, .5); } }

/* ------------------------------------------------ hero */
.hero { padding: 90px 0 110px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hello { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.12; letter-spacing: -.028em; }
html[lang="ar"] .hero h1 { font-weight: 700; letter-spacing: 0; line-height: 1.4; font-size: clamp(32px, 4.2vw, 50px); }
.c1 { color: var(--cyan); } .c2 { color: var(--pink); } .c3 { color: var(--yellow); }
.sub { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 540px; }
.actions { display: flex; align-items: center; gap: 18px; margin-top: 34px; }

.term { border-radius: 16px; background: #0d0f14; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(139, 92, 246, .06); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-inline-start: 10px; font: 12px var(--mono); color: var(--dim); }
.term-body { margin: 0; padding: 22px 22px 26px; font: 14px/2 var(--mono); color: #d7dbe0; white-space: pre; overflow-x: auto; }
.term-body .p { color: var(--pink); } .term-body .s { color: var(--yellow); } .term-body .m { color: var(--dim); }
.term-body .ok { color: var(--green); } .term-body .go { color: var(--cyan); animation: blink 1.2s steps(2) infinite; }
.term-body .ln { opacity: 0; transition: opacity .25s; }
.term-body .ln.on { opacity: 1; }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--cyan); vertical-align: -3px; margin-inline-start: 4px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------ services */
.services { padding: 40px 0 100px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; margin-bottom: 34px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
html[lang="ar"] h2 { font-weight: 700; letter-spacing: 0; }
.sec-head p { color: var(--muted); font-size: 17px; }
.list { border-top: 1px solid var(--line); }
.list li { --c: var(--violet); display: grid; grid-template-columns: 70px 260px 1fr; align-items: baseline; gap: 20px; padding: 24px 12px; border-bottom: 1px solid var(--line); position: relative; transition: background .25s; }
.list li::before { content: ""; position: absolute; inset-block: -1px; inset-inline-start: 0; width: 3px; background: var(--c); transform: scaleY(0); transition: transform .25s; }
.list li:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%); }
html[dir="rtl"] .list li:hover { background: linear-gradient(-90deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%); }
.list li:hover::before { transform: scaleY(1); }
.list .n { font: 500 14px var(--mono); color: var(--c); }
.list h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
html[lang="ar"] .list h3 { font-weight: 600; letter-spacing: 0; }
.list p { color: var(--muted); font-size: 16px; }
.k1 { --c: var(--cyan) !important; } .k2 { --c: var(--green) !important; } .k3 { --c: var(--blue) !important; } .k4 { --c: var(--violet) !important; }
.k5 { --c: var(--pink) !important; } .k6 { --c: var(--orange) !important; } .k7 { --c: var(--yellow) !important; }

/* ------------------------------------------------ how */
.how { padding: 80px 0; background: var(--panel); border-block: 1px solid var(--line); text-align: center; }
.steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; margin-top: 34px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.steps b { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--latin); color: #fff; background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.steps li:nth-child(2) b { background: linear-gradient(135deg, var(--violet), var(--pink)); }
.steps li:nth-child(3) b { background: linear-gradient(135deg, var(--pink), var(--orange)); }
.steps li:not(:last-child)::after { content: "→"; margin-inline-start: 26px; color: var(--dim); }
html[dir="rtl"] .steps li:not(:last-child)::after { content: "←"; }
.own { margin-top: 28px; color: var(--muted); }

/* ------------------------------------------------ contact */
.contact { padding: 110px 0; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-text p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 440px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: #cdd2d8; }
.form input, .form textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-size: 15.5px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 120px; }
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
html[dir="rtl"] .form input[dir="ltr"]::placeholder { text-align: right; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.form .invalid { border-color: #ff6b6b; }
.form .btn { margin-top: 4px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.note { min-height: 22px; font-size: 14.5px; }
.note.ok { color: var(--green); } .note.err { color: #ff8a8a; }

/* ------------------------------------------------ footer */
.foot { padding: 40px 0 34px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-word { font: 800 clamp(64px, 17vw, 210px)/.85 var(--latin); letter-spacing: -.02em; text-align: center; user-select: none;
  background: var(--grad-loop); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 10s linear infinite; opacity: .9; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 30px; color: var(--dim); font-size: 14px; }
.foot .brand span { background: var(--grad-loop); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 8s linear infinite; }

/* ------------------------------------------------ small screens */
@media (max-width: 900px) {
  .hero { padding: 50px 0 80px; }
  .hero-in, .contact-in { grid-template-columns: 1fr; gap: 44px; }
  .list li { grid-template-columns: 50px 1fr; gap: 4px 14px; padding: 20px 6px; }
  .list li p { grid-column: 2; }
  .steps { flex-direction: column; align-items: center; }
  .steps li::after { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .menu { display: none; }
  .lang { margin-inline-start: auto; }
  .sub, .contact-text p { font-size: 16.5px; }
  .term-body { font-size: 12.5px; padding: 18px 16px 20px; }
  .how, .contact { padding: 70px 0; }
  .services { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .term-body .ln { opacity: 1; }
}

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.nf img { margin: 0 auto 24px; border-radius: 16px; }
.nf h1 { font-size: clamp(72px, 14vw, 130px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { margin: 14px 0 28px; color: var(--muted); }

/* footer: one line, the name alive */
.foot { padding: 34px 0 38px; border-top: 1px solid var(--line); text-align: center; }
.copy { font: 500 14px var(--latin); color: var(--dim); letter-spacing: .04em; }
.copy-name { position: relative; display: inline-block; margin-inline-start: 4px; font-weight: 800; letter-spacing: .28em; margin-inline-end: -.28em;
  background: var(--grad-loop); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: flow 6s linear infinite, name-glow 3s ease-in-out infinite; }
.copy-name::after { content: ""; position: absolute; inset-inline: 0 .28em; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad-loop); background-size: 300% auto; animation: flow 6s linear infinite, underline 3s ease-in-out infinite; transform-origin: center; }
@keyframes name-glow { 50% { filter: drop-shadow(0 0 10px rgba(236, 72, 153, .55)); } }
@keyframes underline { 0%, 100% { transform: scaleX(.25); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }
.copy-name { font-size: 17px; vertical-align: -1px; }

/* terminal typing */
.term.typing .term-body { min-height: calc(6 * 2em + 48px); }
.term-body { transition: opacity .4s; }
.term-body.fade { opacity: 0; }
.term-body .caret { width: 9px; height: 17px; margin-inline-start: 1px; background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, .6); }

/* =====================================================================
   Scroll-in motion: pieces slide in from the left / right as you scroll
   ===================================================================== */
.js .rv { opacity: 0; transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s; will-change: transform, opacity; }
.js .rv-l { transform: translateX(-70px); }
.js .rv-r { transform: translateX(70px); }
html[dir="rtl"].js .rv-l { transform: translateX(70px); }
html[dir="rtl"].js .rv-r { transform: translateX(-70px); }
.js .rv-up { transform: translateY(40px); }
.js .rv-pop { transform: translateY(24px) scale(.9); filter: blur(4px); }
.js .rv.in { opacity: 1; transform: none; filter: none; }
.js .term.rv-r { transform: translateX(70px) rotate(2deg); }
html[dir="rtl"].js .term.rv-r { transform: translateX(-70px) rotate(-2deg); }
.js .term.rv.in { transform: none; }

/* Telegram button: smaller, calmer — soft breathing halo + the plane takes off now and then */
.tg-pulse, .tg-pulse.lg { width: 50px; height: 50px; margin-top: 26px; animation: tg-breathe 3.2s ease-in-out infinite; }
.tg-pulse svg { width: 44%; height: 44%; animation: tg-fly 4.8s ease-in-out infinite; }
.tg-pulse .ring { border: 0; background: rgba(59, 195, 245, .35); animation: tg-halo 3.2s ease-out infinite; }
.tg-pulse .r2 { display: none; }
.tg-pulse:hover svg { animation-play-state: paused; }
@keyframes tg-breathe { 50% { box-shadow: 0 10px 30px -8px rgba(42, 171, 238, .95); } }
@keyframes tg-halo { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes tg-fly { 0%, 70%, 100% { transform: none; opacity: 1; }
  78% { transform: translate(9px, -9px) scale(.85); opacity: 0; } 79% { transform: translate(-9px, 9px) scale(.85); opacity: 0; } 88% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; filter: none; } }
main { overflow-x: clip; }
@media (max-width: 560px) {
  .js .rv-l, html[dir="rtl"].js .rv-r { transform: translateX(-36px); }
  .js .rv-r, html[dir="rtl"].js .rv-l { transform: translateX(36px); }
  .js .term.rv-r { transform: translateX(36px); } html[dir="rtl"].js .term.rv-r { transform: translateX(-36px); }
}
/* fix: the RTL start positions out-ranked the end state, so Arabic pages stayed shifted */
html.js .rv.in, html[dir].js .rv.in, html[dir].js .term.rv.in { opacity: 1; transform: none !important; filter: none; }

/* language menu items are links now */
.lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; }
.lang-menu a[lang="ar"] { font-family: var(--arabic); }
.lang-menu a:hover { background: rgba(255, 255, 255, .06); }
.lang-menu a[aria-checked="true"] { color: var(--pink); }

/* technologies strip: slow, endless, fades at the edges, pauses on hover */
.tech { padding: 8px 0 70px; }
.tech-title { text-align: center; font: 500 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 20px; }
html[lang="ar"] .tech-title { font-family: var(--arabic); letter-spacing: 0; font-size: 14px; text-transform: none; }
.tech-track { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tech-move { display: flex; width: max-content; animation: tech-scroll 55s linear infinite; }
.tech-track:hover .tech-move { animation-play-state: paused; }
.tech-row { display: flex; flex: none; }
.tech-row li { display: inline-flex; align-items: center; gap: 10px; padding: 18px 26px; font: 500 14.5px var(--mono); color: #b9c0c8; white-space: nowrap; transition: color .2s; }
.tech-row li:hover { color: #fff; }
.tech-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tech-row .d0 { background: #3b82f6; box-shadow: 0 0 10px #3b82f699; }
.tech-row .d1 { background: #facc15; box-shadow: 0 0 10px #facc1599; }
.tech-row .d2 { background: #38bdf8; box-shadow: 0 0 10px #38bdf899; }
.tech-row .d3 { background: #22c55e; box-shadow: 0 0 10px #22c55e99; }
.tech-row .d4 { background: #f97316; box-shadow: 0 0 10px #f9731699; }
.tech-row .d5 { background: #8b5cf6; box-shadow: 0 0 10px #8b5cf699; }
.tech-row .d6 { background: #22d3ee; box-shadow: 0 0 10px #22d3ee99; }
.tech-row .d7 { background: #a3e635; box-shadow: 0 0 10px #a3e63599; }
.tech-row .d8 { background: #60a5fa; box-shadow: 0 0 10px #60a5fa99; }
.tech-row .d9 { background: #94a3b8; box-shadow: 0 0 10px #94a3b899; }
.tech-row .d10 { background: #f43f5e; box-shadow: 0 0 10px #f43f5e99; }
.tech-row .d11 { background: #0ea5e9; box-shadow: 0 0 10px #0ea5e999; }
.tech-row .d12 { background: #fbbf24; box-shadow: 0 0 10px #fbbf2499; }
.tech-row .d13 { background: #10b981; box-shadow: 0 0 10px #10b98199; }
.tech-row .d14 { background: #fb923c; box-shadow: 0 0 10px #fb923c99; }
.tech-row .d15 { background: #38bdf8; box-shadow: 0 0 10px #38bdf899; }
.tech-row .d16 { background: #818cf8; box-shadow: 0 0 10px #818cf899; }
.tech-row .d17 { background: #4ade80; box-shadow: 0 0 10px #4ade8099; }
@keyframes tech-scroll { to { transform: translateX(-50%); } }
@media (max-width: 560px) { .tech { padding-bottom: 50px; } .tech-row li { padding: 15px 18px; font-size: 13.5px; } .tech-move { animation-duration: 40s; } }
@media (prefers-reduced-motion: reduce) { .tech-move { animation: none; } .tech-track { overflow-x: auto; } }

/* =====================================================================
   HEADER: main links + "More" menu (legal pages) + mobile menu
   ===================================================================== */
.menu { align-items: center; gap: 4px; }
.menu > a, .more-btn { padding: 8px 14px; border-radius: 10px; color: var(--muted); transition: color .2s, background .2s; }
.menu > a:hover, .more-btn:hover, .more.open .more-btn { color: var(--text); background: rgba(255, 255, 255, .05); }
.more { position: relative; }
.more-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 15px; }
.more-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .2s; }
.more.open .more-btn svg { transform: rotate(180deg); }
.more-menu { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 210px; padding: 6px; border-radius: 12px; background: #15181f; border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; z-index: 30; }
.more.open .more-menu { opacity: 1; visibility: visible; transform: none; }
.more-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: var(--text); }
.more-menu a:hover { background: rgba(255, 255, 255, .06); }
.lang { margin-inline-start: 6px; }
.burger { display: none; position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: none; cursor: pointer; margin-inline-start: 8px; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, top .25s, opacity .2s; }
.burger i:nth-child(1) { top: 13px; } .burger i:nth-child(2) { top: 19px; } .burger i:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { top: 19px; transform: rotate(-45deg); }
@media (max-width: 820px) {
  .burger { display: block; }
  .lang { margin-inline-start: auto; }
  .menu { display: none; position: absolute; top: 100%; inset-inline: 12px; flex-direction: column; align-items: stretch; gap: 2px; margin: 8px 0 0; padding: 10px; border-radius: 16px; background: #12151b; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px #000; }
  .menu.open { display: flex; }
  .menu > a, .more-btn { padding: 12px 14px; font-size: 16px; }
  .more-btn { width: 100%; justify-content: space-between; }
  .more-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: rgba(255, 255, 255, .03); display: none; margin: 2px 0 4px; }
  .more.open .more-menu { display: block; }
  .top-in { position: relative; }
}
@media (max-width: 560px) { .menu { display: none; } .menu.open { display: flex; } }

/* =====================================================================
   LEGAL / SITEMAP PAGES
   ===================================================================== */
.doc { padding: 60px 0 100px; }
.doc-in { max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--dim); margin-bottom: 36px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); }
.doc-kicker { font: 500 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
html[lang="ar"] .doc-kicker { font-family: var(--arabic); letter-spacing: 0; font-size: 14px; }
.doc h1 { margin-top: 10px; font-size: clamp(34px, 5vw, 50px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
html[lang="ar"] .doc h1 { font-weight: 700; letter-spacing: 0; }
.updated { margin-top: 12px; color: var(--dim); font-size: 14px; }
.prose { margin-top: 40px; color: #c9cfd6; font-size: 16.5px; line-height: 1.8; }
.prose .lede { font-size: 18.5px; color: var(--text); }
.prose h2 { margin: 44px 0 12px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
html[lang="ar"] .prose h2 { letter-spacing: 0; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0; padding-inline-start: 22px; list-style: disc; display: grid; gap: 8px; }
.prose li::marker { color: var(--violet); }
.prose strong { color: var(--text); }
.prose a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(34, 211, 238, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--cyan); }
.sm-list { list-style: none !important; padding: 0 !important; border-top: 1px solid var(--line); gap: 0 !important; }
.sm-list li { border-bottom: 1px solid var(--line); }
.sm-list a { display: block; padding: 14px 4px; text-decoration: none !important; color: var(--text) !important; font-size: 17px; }
.sm-list a:hover { color: var(--cyan) !important; }

/* =====================================================================
   FOOTER: about + three link columns + the animated © line
   ===================================================================== */
.foot { padding: 70px 0 34px; text-align: start; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.foot-about p { color: var(--muted); font-size: 15px; max-width: 300px; }
.foot-about .tg-pulse { margin-top: 22px; }
.foot-h { font: 600 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
html[lang="ar"] .foot-h { font-family: var(--arabic); letter-spacing: 0; font-size: 14.5px; }
.foot-col ul { display: grid; gap: 11px; }
.foot-col a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot .copy { text-align: center; margin-top: 30px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   HERO BACKGROUND: glowing perspective grid that slowly moves forward
   ===================================================================== */
body::before { display: none; }
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: -60%; right: -60%; bottom: -30%; height: 78%;
  background-image:
    linear-gradient(rgba(139, 92, 246, .55) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(34, 211, 238, .42) 1.5px, transparent 1.5px);
  background-size: 70px 70px;
  transform: perspective(420px) rotateX(66deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 60%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 60%, transparent 96%);
  animation: grid-run 2.6s linear infinite;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 60%; pointer-events: none;
  background:
    radial-gradient(55% 22% at 50% 10%, rgba(236, 72, 153, .28), transparent 70%),
    radial-gradient(70% 40% at 50% 12%, rgba(139, 92, 246, .22), transparent 75%),
    linear-gradient(to bottom, transparent, var(--bg) 92%);
}
@keyframes grid-run { to { background-position: 0 70px, 0 0; } }
/* keep the copy crisp over the grid */
.hero-text { position: relative; }
.hero-text::before { content: ""; position: absolute; inset: -40px -60px; z-index: -1; background: radial-gradient(closest-side, rgba(10, 11, 15, .85), transparent); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
@media (max-width: 900px) { .hero::before { height: 55%; bottom: -20%; } }
/* grid tune: brighter lines with glow, horizon glow placed on the horizon (no hard edge) */
.hero::before {
  background-image:
    linear-gradient(rgba(167, 139, 250, .85) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(34, 211, 238, .7) 1.5px, transparent 1.5px);
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, .9));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .9) 22%, #000 55%, transparent 97%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .9) 22%, #000 55%, transparent 97%);
}
.hero::after {
  top: 0; height: auto;
  background:
    radial-gradient(45% 9% at 50% 52%, rgba(236, 72, 153, .45), transparent 100%),
    radial-gradient(70% 22% at 50% 54%, rgba(139, 92, 246, .28), transparent 100%),
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}
@media (max-width: 900px) { .hero::after { background: radial-gradient(60% 8% at 50% 70%, rgba(236, 72, 153, .4), transparent 100%), linear-gradient(to bottom, transparent 75%, var(--bg) 100%); } }

/* floating Telegram button, fixed in the corner on every page */
.tg-float { position: fixed; z-index: 40; bottom: calc(22px + env(safe-area-inset-bottom)); inset-inline-end: 22px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; isolation: isolate;
  background: linear-gradient(135deg, #3bc3f5, #1f8fd8); box-shadow: 0 12px 30px -8px rgba(42, 171, 238, .8), 0 2px 8px rgba(0, 0, 0, .4);
  animation: tg-breathe 3.2s ease-in-out infinite, tg-in .5s cubic-bezier(.2, .8, .2, 1) .6s both; transition: transform .2s; }
.tg-float svg { width: 44%; height: 44%; fill: #fff; margin: 1px 0 0 -2px; animation: tg-fly 4.8s ease-in-out infinite; }
.tg-float .ring { position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: rgba(59, 195, 245, .4); animation: tg-halo 3.2s ease-out infinite; }
.tg-float:hover { transform: scale(1.08); }
@keyframes tg-in { from { opacity: 0; transform: translateY(20px) scale(.8); } }
@media (max-width: 560px) { .tg-float { width: 52px; height: 52px; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: 16px; } }
@media (prefers-reduced-motion: reduce) { .tg-float, .tg-float svg, .tg-float .ring { animation: none !important; } }

/* Telegram button on the other side: bottom-left in LTR, bottom-right in RTL */
.tg-float { inset-inline-end: auto; inset-inline-start: 22px; }
@media (max-width: 560px) { .tg-float { inset-inline-end: auto; inset-inline-start: 16px; } }

/* languages inside the mobile menu (always one tap away) */
.menu-langs { display: none; }
@media (max-width: 820px) {
  .menu-langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .menu-langs a { text-align: center; padding: 11px 6px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--muted); }
  .menu-langs a[lang="ar"] { font-family: var(--arabic); }
  .menu-langs a[aria-checked="true"] { color: #fff; border-color: transparent; background: var(--grad); }
  .lang-btn { height: 40px; padding: 0 14px; }
}
/* Telegram button: always bottom-right, in every language */
.tg-float { inset-inline-start: auto; inset-inline-end: auto; left: auto; right: 22px; }
@media (max-width: 560px) { .tg-float { right: 16px; } }

/* =====================================================================
   GRID FOR THE WHOLE SITE: fixed perspective floor behind every section,
   running to the bottom of the screen while you scroll
   ===================================================================== */
.hero::before, .hero::after { display: none; }
.bg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid::before {
  content: ""; position: absolute; left: -70%; right: -70%; top: 42vh; height: 120vh;
  background-image:
    linear-gradient(rgba(167, 139, 250, .8) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(34, 211, 238, .62) 1.5px, transparent 1.5px);
  background-size: 70px 70px;
  transform: perspective(420px) rotateX(64deg); transform-origin: 50% 0;
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, .85));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 100%);
  animation: grid-run 2.6s linear infinite;
}
.bg-grid::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(45% 8% at 50% 42vh, rgba(236, 72, 153, .42), transparent 100%),
    radial-gradient(75% 20% at 50% 44vh, rgba(139, 92, 246, .24), transparent 100%),
    linear-gradient(to bottom, var(--bg) 0, transparent 30vh);
}
/* sections sit on glass so text stays readable over the grid */
.how { background: rgba(17, 19, 25, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.list li { background: rgba(10, 11, 15, .55); }
.list li:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, rgba(10, 11, 15, .75)), rgba(10, 11, 15, .6) 70%); }
html[dir="rtl"] .list li:hover { background: linear-gradient(-90deg, color-mix(in srgb, var(--c) 12%, rgba(10, 11, 15, .75)), rgba(10, 11, 15, .6) 70%); }
.tech-track { background: rgba(10, 11, 15, .7); }
.form input, .form textarea { background: rgba(17, 19, 25, .88); }
.contact-text, .sec-head { position: relative; }
.foot { background: linear-gradient(to bottom, rgba(10, 11, 15, .6), rgba(10, 11, 15, .92)); }
.doc-in { padding: 34px 38px 44px; border-radius: 22px; background: rgba(10, 11, 15, .8); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 560px) { .doc-in { padding: 24px 18px 30px; } .bg-grid::before { top: 55vh; } }
@media (prefers-reduced-motion: reduce) { .bg-grid::before { animation: none; } }
/* performance: no filters on the animated layer, no backdrop blur on sections;
   the grid is promoted to its own GPU layer */
.bg-grid::before { filter: none; will-change: background-position; backface-visibility: hidden;
  background-image:
    linear-gradient(rgba(196, 181, 253, .95) 1px, rgba(139, 92, 246, .35) 1px, transparent 3px),
    linear-gradient(90deg, rgba(103, 232, 249, .85) 1px, rgba(34, 211, 238, .3) 1px, transparent 3px); }
.how, .doc-in { backdrop-filter: none; -webkit-backdrop-filter: none; }
.how { background: rgba(17, 19, 25, .8); }

/* =====================================================================
   SPACE BACKGROUND (replaces the grid): nebula + 3 star layers that drift
   and twinkle + an occasional shooting star. CSS only, GPU transforms.
   ===================================================================== */
.bg-grid { display: none; }
.bg-space { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, #0d0f1c 0%, #07080d 55%, #05060a 100%); }
.bg-space i { position: absolute; display: block; }
.nebula { inset: -10%; opacity: .9;
  background:
    radial-gradient(38% 30% at 78% 18%, rgba(139, 92, 246, .22), transparent 70%),
    radial-gradient(30% 26% at 18% 32%, rgba(34, 211, 238, .13), transparent 70%),
    radial-gradient(34% 28% at 62% 78%, rgba(236, 72, 153, .15), transparent 70%),
    radial-gradient(26% 22% at 12% 88%, rgba(59, 130, 246, .12), transparent 70%);
  animation: nebula-drift 40s ease-in-out infinite alternate; }
@keyframes nebula-drift { to { transform: translate(-3%, 2%) scale(1.06); } }
.stars { left: 0; right: 0; top: 0; will-change: transform; backface-visibility: hidden; }
.s1 { height: calc(100% + 260px); background-image: radial-gradient(0.8px 0.8px at 165px 77px, rgba(255,255,255,.9), transparent), radial-gradient(0.8px 0.8px at 37px 48px, rgba(255,255,255,.9), transparent), radial-gradient(0.6px 0.6px at 259px 109px, rgba(255,255,255,.9), transparent), radial-gradient(0.7px 0.7px at 214px 35px, rgba(186,230,253,.9), transparent), radial-gradient(1.0px 1.0px at 217px 30px, rgba(255,255,255,.9), transparent), radial-gradient(0.9px 0.9px at 114px 31px, rgba(255,255,255,.9), transparent), radial-gradient(0.6px 0.6px at 25px 113px, rgba(255,255,255,.9), transparent), radial-gradient(0.7px 0.7px at 148px 214px, rgba(255,255,255,.9), transparent), radial-gradient(0.7px 0.7px at 157px 92px, rgba(186,230,253,.9), transparent), radial-gradient(0.6px 0.6px at 96px 190px, rgba(186,230,253,.9), transparent), radial-gradient(0.9px 0.9px at 32px 30px, rgba(255,255,255,.9), transparent), radial-gradient(0.8px 0.8px at 218px 160px, rgba(255,255,255,.9), transparent), radial-gradient(0.7px 0.7px at 185px 153px, rgba(255,255,255,.9), transparent), radial-gradient(0.9px 0.9px at 124px 41px, rgba(186,230,253,.9), transparent); background-size: 260px 260px; opacity: .55; animation: drift1 90s linear infinite; }
.s2 { height: calc(100% + 420px); background-image: radial-gradient(1.4px 1.4px at 253px 175px, rgba(186,230,253,.9), transparent), radial-gradient(1.1px 1.1px at 311px 37px, rgba(186,230,253,.9), transparent), radial-gradient(1.2px 1.2px at 84px 387px, rgba(186,230,253,.9), transparent), radial-gradient(1.6px 1.6px at 215px 20px, rgba(255,255,255,.9), transparent), radial-gradient(1.3px 1.3px at 391px 285px, rgba(186,230,253,.9), transparent), radial-gradient(1.2px 1.2px at 174px 355px, rgba(186,230,253,.9), transparent), radial-gradient(1.3px 1.3px at 296px 408px, rgba(255,255,255,.9), transparent), radial-gradient(1.4px 1.4px at 138px 242px, rgba(255,255,255,.9), transparent), radial-gradient(1.4px 1.4px at 31px 374px, rgba(233,213,255,.9), transparent), radial-gradient(1.5px 1.5px at 295px 348px, rgba(186,230,253,.9), transparent), radial-gradient(1.5px 1.5px at 366px 197px, rgba(186,230,253,.9), transparent), radial-gradient(1.2px 1.2px at 11px 236px, rgba(233,213,255,.9), transparent); background-size: 420px 420px; opacity: .8; animation: drift2 140s linear infinite, twinkle 4.5s ease-in-out infinite alternate; }
.s3 { height: calc(100% + 700px); background-image: radial-gradient(1.6px 1.6px at 119px 505px, rgba(233,213,255,.9), transparent), radial-gradient(1.9px 1.9px at 132px 253px, rgba(254,240,138,.85), transparent), radial-gradient(2.0px 2.0px at 82px 170px, rgba(233,213,255,.9), transparent), radial-gradient(2.3px 2.3px at 140px 440px, rgba(233,213,255,.9), transparent), radial-gradient(2.1px 2.1px at 425px 367px, rgba(254,240,138,.85), transparent), radial-gradient(1.7px 1.7px at 236px 154px, rgba(186,230,253,.9), transparent), radial-gradient(1.8px 1.8px at 237px 674px, rgba(254,240,138,.85), transparent), radial-gradient(1.8px 1.8px at 603px 186px, rgba(255,255,255,.9), transparent), radial-gradient(2.0px 2.0px at 149px 429px, rgba(233,213,255,.9), transparent); background-size: 700px 700px; animation: drift3 200s linear infinite, twinkle 3.2s ease-in-out -1.5s infinite alternate; }
@keyframes drift1 { to { transform: translateY(-260px); } }
@keyframes drift2 { to { transform: translateY(-420px); } }
@keyframes drift3 { to { transform: translateY(-700px); } }
@keyframes twinkle { 0% { opacity: .45; } 100% { opacity: 1; } }
.shoot { top: 12%; left: 70%; width: 160px; height: 1.5px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(186, 230, 253, .5) 30%, transparent);
  transform: rotate(-35deg); transform-origin: 0 50%; animation: shoot 11s ease-in 3s infinite; }
.sh2 { top: 30%; left: 35%; width: 110px; animation-duration: 17s; animation-delay: 9s; }
@keyframes shoot { 0% { opacity: 0; transform: rotate(-35deg) translateX(0); } 1% { opacity: 1; }
  7% { opacity: 0; transform: rotate(-35deg) translateX(-520px); } 100% { opacity: 0; transform: rotate(-35deg) translateX(-520px); } }
@media (max-width: 560px) { .shoot { left: 85%; } }
@media (prefers-reduced-motion: reduce) { .bg-space i { animation: none !important; } .shoot { display: none; } }
/* space tune: brighter stars, a touch more colour in the nebula */
.s1 { opacity: .85; filter: none; }
.s2 { transform: scale(1.001); }
.stars { image-rendering: auto; }
.nebula { opacity: 1;
  background:
    radial-gradient(40% 32% at 80% 16%, rgba(139, 92, 246, .32), transparent 70%),
    radial-gradient(32% 28% at 16% 30%, rgba(34, 211, 238, .18), transparent 70%),
    radial-gradient(36% 30% at 62% 80%, rgba(236, 72, 153, .22), transparent 70%),
    radial-gradient(28% 24% at 10% 90%, rgba(59, 130, 246, .18), transparent 70%); }
@keyframes twinkle { 0% { opacity: .6; } 100% { opacity: 1; } }
.hero-text::before { background: radial-gradient(closest-side, rgba(7, 8, 13, .55), transparent); }

/* =====================================================================
   DESIGNS: data-theme = sky (follows the visitor's clock) | space | minimal
   SKY PHASES: data-sky = night | dawn | day | dusk (set by theme.js)
   ===================================================================== */
.bg-space { display: none; }
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #05060a; }
.sky i { position: absolute; display: block; transition: opacity 2.5s ease, transform 2.5s ease; }
html[data-theme="minimal"] .sky { display: none; }

/* sky gradients, cross-faded */
.sky-grad { inset: 0; opacity: 0; }
.g-night { background: linear-gradient(to bottom, #020309 0%, #050818 45%, #0c1530 85%, #16204a 100%); }
.g-dawn { background: linear-gradient(to bottom, #141b45 0%, #3b3f86 35%, #9a5a9c 62%, #f28b6e 85%, #ffc59a 100%); }
.g-day { background: linear-gradient(to bottom, #1260d0 0%, #2f84ec 35%, #6cb3fb 70%, #b9dcff 100%); }
.g-dusk { background: linear-gradient(to bottom, #1a1745 0%, #4a2a6e 35%, #a13f76 62%, #f47a45 85%, #ffb35c 100%); }
html[data-sky="night"] .g-night, html[data-sky="dawn"] .g-dawn, html[data-sky="day"] .g-day, html[data-sky="dusk"] .g-dusk { opacity: 1; }

/* night: Milky Way, moon, stars, shooting stars */
.milky { left: -30%; right: -30%; top: 8%; height: 46%; transform: rotate(-24deg); opacity: 0;
  background:
    radial-gradient(40% 50% at 50% 50%, rgba(214, 205, 255, .16), transparent 70%),
    radial-gradient(22% 30% at 38% 46%, rgba(255, 236, 214, .12), transparent 70%),
    radial-gradient(18% 26% at 62% 54%, rgba(190, 214, 255, .12), transparent 70%),
    radial-gradient(60% 18% at 50% 50%, rgba(10, 8, 30, .5), transparent 70%); }
.moon { width: 84px; height: 84px; right: 12%; top: 11%; border-radius: 50%; opacity: 0;
  background:
    radial-gradient(circle at 34% 30%, rgba(120, 115, 100, .35) 0 7px, transparent 8px),
    radial-gradient(circle at 62% 58%, rgba(120, 115, 100, .3) 0 10px, transparent 11px),
    radial-gradient(circle at 40% 70%, rgba(120, 115, 100, .25) 0 5px, transparent 6px),
    radial-gradient(circle at 70% 30%, rgba(120, 115, 100, .2) 0 4px, transparent 5px),
    radial-gradient(circle at 35% 35%, #fbf8ec, #d9d3bf 70%, #bdb6a0);
  box-shadow: 0 0 40px 8px rgba(255, 250, 225, .22), 0 0 120px 40px rgba(180, 190, 255, .1); }
.stars, .milky, .nebula, .moon, .shoot { opacity: 0; }
html[data-sky="night"] :is(.stars, .milky, .moon) { opacity: 1; }
html[data-sky="night"] .nebula { opacity: .7; }
html[data-sky="night"] .shoot { opacity: revert-layer; }
html[data-sky="dawn"] .stars, html[data-sky="dusk"] .stars { opacity: .25; }
html[data-sky="dawn"] .s3, html[data-sky="dusk"] .s3 { opacity: .4; }
html:not([data-sky="night"]) .shoot { display: none; }

/* sun: high in the day, low and warm at dawn / dusk */
.sun { width: 120px; height: 120px; right: 14%; top: 9%; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fffef6 0 38%, #fff3b8 52%, rgba(255, 226, 130, .55) 62%, transparent 72%);
  box-shadow: 0 0 80px 30px rgba(255, 240, 180, .55), 0 0 220px 110px rgba(255, 220, 140, .25); }
html[data-sky="day"] .sun { opacity: 1; }
html[data-sky="dawn"] .sun { opacity: 1; top: 74%; right: 18%; transform: scale(1.3);
  background: radial-gradient(circle, #fff2d6 0 36%, #ffc48a 52%, rgba(255, 140, 80, .5) 64%, transparent 74%);
  box-shadow: 0 0 90px 40px rgba(255, 150, 90, .45), 0 0 260px 130px rgba(255, 120, 90, .22); }
html[data-sky="dusk"] .sun { opacity: 1; top: 76%; right: 70%; transform: scale(1.35);
  background: radial-gradient(circle, #fff0d0 0 34%, #ffb070 52%, rgba(255, 110, 60, .5) 64%, transparent 74%);
  box-shadow: 0 0 90px 40px rgba(255, 130, 70, .45), 0 0 260px 130px rgba(240, 90, 90, .22); }

/* clouds: puffy groups drifting across */
.clouds { width: 520px; height: 180px; opacity: 0; will-change: transform;
  background:
    radial-gradient(28% 42% at 30% 60%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .6) 55%, transparent 72%),
    radial-gradient(24% 50% at 50% 45%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 55%, transparent 72%),
    radial-gradient(26% 40% at 70% 62%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .5) 55%, transparent 72%),
    radial-gradient(60% 30% at 50% 78%, rgba(235, 243, 255, .85), transparent 75%); }
.ca { top: 16%; left: -560px; animation: cloud 150s linear infinite; }
.cb { top: 40%; left: -560px; transform: scale(.7); animation: cloud 210s linear -90s infinite; }
.cc { top: 62%; left: -560px; transform: scale(1.2); animation: cloud 260s linear -170s infinite; }
@keyframes cloud { to { translate: calc(100vw + 620px) 0; } }
html[data-sky="day"] .clouds { opacity: .9; }
html[data-sky="dawn"] .clouds, html[data-sky="dusk"] .clouds { opacity: .35; }

/* space design = always night; minimal = no sky */
html[data-theme="space"] .moon { opacity: 0; }
html[data-theme="space"] .nebula { opacity: 1; }

/* =====================================================================
   DAY = light colours so text stays readable on a bright sky
   ===================================================================== */
html[data-sky="day"] { --text: #0c1322; --muted: #334155; --dim: #56627a; --line: rgba(15, 30, 60, .12); --line-2: rgba(15, 30, 60, .2); --panel: rgba(255, 255, 255, .75); color-scheme: light; }
html[data-sky="day"] body { color: var(--text); }
html[data-sky="day"] .top.scrolled { background: rgba(255, 255, 255, .72); }
html[data-sky="day"] .c1 { color: #0e7490; } html[data-sky="day"] .c2 { color: #be185d; } html[data-sky="day"] .c3 { color: #b45309; }
html[data-sky="day"] .hero-text::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .6), transparent); }
html[data-sky="day"] .hello, html[data-sky="day"] .sub { color: #1e293b; }
html[data-sky="day"] .tech-track { background: rgba(255, 255, 255, .6); }
html[data-sky="day"] .tech-row li { color: #1e293b; }
html[data-sky="day"] .tech-title { color: #1e3a5f; }
html[data-sky="day"] .list li { background: rgba(255, 255, 255, .66); }
html[data-sky="day"] .list li:hover { background: rgba(255, 255, 255, .85); }
html[data-sky="day"] .how { background: rgba(255, 255, 255, .72); }
html[data-sky="day"] .form label { color: #1e293b; }
html[data-sky="day"] .form input, html[data-sky="day"] .form textarea { background: rgba(255, 255, 255, .92); }
html[data-sky="day"] :is(.lang-menu, .more-menu) { background: #fff; }
html[data-sky="day"] .foot { background: linear-gradient(to bottom, rgba(255, 255, 255, .55), rgba(255, 255, 255, .88)); }
html[data-sky="day"] .foot-h { color: #0c1322; }
html[data-sky="day"] .doc-in { background: rgba(255, 255, 255, .86); }
html[data-sky="day"] .prose { color: #1e293b; }
html[data-sky="day"] .prose a { color: #0e7490; }
html[data-sky="day"] .crumbs a { color: #334155; }
@media (max-width: 820px) { html[data-sky="day"] .menu { background: #fff; } }

/* design button + toast */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.theme-btn { display: grid; place-items: center; width: 36px; height: 36px; margin-inline-start: 8px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, transform .4s; }
.theme-btn:hover { color: var(--text); }
.theme-btn.spin { transform: rotate(180deg); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 999px; background: rgba(15, 18, 26, .92); color: #fff; font-size: 14px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 40px -16px #000; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 820px) { .theme-btn { height: 40px; width: 40px; } }
@media (prefers-reduced-motion: reduce) { .clouds { animation: none; } }
/* performance: glows drawn with gradients on a bigger box instead of huge box-shadows */
.sun { width: 420px; height: 420px; right: calc(14% - 150px); top: calc(9% - 150px); box-shadow: none !important;
  background: radial-gradient(circle, #fffef6 0 10%, #fff3b8 14%, rgba(255, 236, 160, .55) 18%, rgba(255, 226, 140, .22) 32%, transparent 62%) !important; }
html[data-sky="dawn"] .sun { top: calc(74% - 150px); right: calc(18% - 150px);
  background: radial-gradient(circle, #fff2d6 0 10%, #ffc48a 14%, rgba(255, 150, 90, .5) 19%, rgba(255, 120, 90, .2) 34%, transparent 62%) !important; }
html[data-sky="dusk"] .sun { top: calc(76% - 150px); right: calc(70% - 150px);
  background: radial-gradient(circle, #fff0d0 0 10%, #ffb070 14%, rgba(255, 120, 70, .5) 19%, rgba(240, 90, 90, .2) 34%, transparent 62%) !important; }
.moon { box-shadow: none; }
.moon::after { content: ""; position: absolute; inset: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 250, 225, .22) 30%, rgba(180, 190, 255, .08) 50%, transparent 70%); }

/* «Our work» strip: project cards drifting sideways, pause on hover/focus, fade at the edges */
.work { padding: 90px 0 30px; }
.work-title { text-align: center; margin-bottom: 34px; }
.work-track { overflow: hidden; padding-block: 6px 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.work-move { display: flex; width: max-content; animation: work-scroll 60s linear infinite; }
.work-track:hover .work-move, .work-track:focus-within .work-move { animation-play-state: paused; }
.work-row { display: flex; flex: none; gap: 22px; padding-inline-end: 22px; }
.wcard { display: flex; flex-direction: column; width: 320px; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); position: relative; transition: transform .3s, border-color .3s, box-shadow .3s; }
.wcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad-loop); background-size: 200% 100%; z-index: 1; animation: work-glow 6s linear infinite; }
.wcard:hover, .wcard:focus-visible { transform: translateY(-6px); border-color: rgba(139, 92, 246, .55); box-shadow: 0 24px 50px -24px rgba(139, 92, 246, .55); }
.wshot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0f14; }
.wshot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.wcard:hover .wshot img { transform: scale(1.05); }
.wbody { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.wtag { font: 600 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.wcard[lang="ar"] .wtag { font-family: var(--arabic); letter-spacing: 0; font-size: 12.5px; }
.wname { font-size: 19px; font-weight: 800; color: var(--text); }
.wdesc { font-size: 14px; line-height: 1.6; color: var(--muted); }
.wdom { margin-top: 4px; font: 500 13px var(--mono); color: var(--dim); transition: color .2s; }
.wcard[dir="rtl"] .wdom { align-self: flex-end; }
.wcard:hover .wdom { color: var(--text); }
@keyframes work-scroll { to { transform: translateX(-50%); } }
@keyframes work-glow { to { background-position: 200% 0; } }
@media (max-width: 600px) { .wcard { width: 260px; } .work { padding-top: 70px; } }
@media (prefers-reduced-motion: reduce) { .work-move, .wcard::before { animation: none; } .work-track { overflow-x: auto; } }
