/* أساس مشترك لنماذج SPACE Z Web — كل نموذج يعرّف ألوانه في :root */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.8 'IBM Plex Sans Arabic', system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display, 'IBM Plex Sans Arabic'), 'IBM Plex Sans Arabic', sans-serif; line-height: 1.25; margin: 0 0 .4em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(100% - 32px, 1160px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.demo-bar { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 14px; background: #0b1026; color: #d9d6ff; font-size: 13px; text-align: center; }
.demo-bar b { color: #fff; } .demo-bar a { color: #0b1026; background: linear-gradient(135deg, #a78bfa, #ff8a3d); padding: 4px 12px; border-radius: 999px; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius-btn, 999px); font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 12px 26px -12px var(--accent); }
.btn-main:hover { filter: brightness(1.08); }
.btn-main[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-line { border-color: currentColor; background: transparent; }
.btn-block { width: 100%; }
.kicker { display: inline-block; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; margin-bottom: 6px; }
.sec { padding: 84px 0; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 34px; }
.sec-head h2 { font-size: clamp(28px, 4.4vw, 42px); } .sec-head p { color: var(--muted); margin: 0; }

.field { display: grid; gap: 6px; } .field > span { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

.toast { position: fixed; bottom: 24px; left: 50%; translate: -50% 20px; opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 90; transition: .3s; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; translate: -50% 0; }
.reveal { animation: rise .55s both; } @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.made { font-size: 13px; opacity: .75; } .made a { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
