:root {
    --brand: #c5a059;
    --ink: #14213d;
    --muted: #5d6b82;
    --soft: #f3f6fa;
    --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); line-height: 1.6; background: #fff; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #c5a059; outline-offset: 2px; }

.w { width: min(1080px, 92%); margin-inline: auto; }
.sec { padding: 50px 0; }
.soft { background: var(--soft); }

h1 { font-size: clamp(1.6rem, 4vw, 2.7rem); line-height: 1.25; font-weight: 800; word-break: break-word; }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.9rem); margin-bottom: 0.5rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { color: var(--muted); line-height: 1.65; }

.b { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; border: 2px solid var(--brand); font-size: 0.92rem; transition: 0.2s ease; }
.b.o { background: transparent; color: var(--brand); }
.b:hover { opacity: 0.92; }

.bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 12px; flex-wrap: wrap; }
.bar nav { display: flex; gap: 14px; font-weight: 600; font-size: 0.92rem; flex-wrap: wrap; align-items: center; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--brand); }

.g { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.c { background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; padding: 20px; }
.ph { aspect-ratio: 4 / 3; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand), #14213d); font-size: 0.95rem; }

.demo-flag { background: #14213d; color: #f1f5f9; text-align: center; font-size: 0.8rem; padding: 8px 12px; font-weight: 500; }
input, textarea, select { width: 100%; padding: 10px 12px; border: 1px solid #c5cedb; border-radius: 10px; font: inherit; margin-bottom: 10px; font-size: 0.92rem; }
footer { background: #0f1b33; color: #b8c2d4; padding: 26px 0; font-size: 0.88rem; text-align: center; }

#toast { position: fixed; bottom: 18px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: 90%; background: #14213d; color: #fff; padding: 10px 18px; border-radius: 10px; opacity: 0; transition: 0.25s; pointer-events: none; z-index: 99; font-size: 0.9rem; }
#toast.on { opacity: 1; }

/* Mobile / Narrow Viewport Adjustments */
@media (max-width: 600px) {
    .sec { padding: 36px 0; }
    .bar { padding: 10px 0; }
    .bar nav { gap: 8px; font-size: 0.85rem; }
    .g { grid-template-columns: 1fr; gap: 14px; }
    .c { padding: 16px; }
    h1 { font-size: clamp(1.4rem, 6vw, 1.85rem); }
    h2 { font-size: 1.25rem; }
    .b { padding: 9px 16px; font-size: 0.88rem; }
}
