/* X Digital Signage — public website (no build step) */
@font-face { font-family: 'Plex Arabic'; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Plex Arabic'; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Plex Arabic'; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --ink: #0B0B0E;
  --ink-2: #141418;
  --ink-3: #1E1E24;
  --brand: #E07B0B;
  --brand-2: #F7941D;
  --brand-soft: #FFF7ED;
  --green: #059669;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Plex Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0; color: var(--ink); }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -8px rgba(224, 123, 11, .6); }
.btn-primary:hover { background: #B95F06; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--bg-2); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 14, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: #000; border: 1px solid rgba(233, 185, 73, .35); display: grid; place-items: center; }
.logo small { display: block; font-size: 10.5px; font-weight: 600; color: #E9B949; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; direction: ltr; text-align: right; }
.nav { display: none; gap: 4px; margin-inline-start: 16px; }
.nav a { color: #cbd5e1; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.top-cta { margin-inline-start: auto; display: flex; gap: 8px; }
.top-cta .login { display: none; }
@media (min-width: 900px) { .nav { display: flex; } .top-cta .login { display: inline-flex; } }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 72px 0 88px; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero::before { width: 520px; height: 520px; background: rgba(224, 123, 11, .35); top: -160px; inset-inline-start: -160px; }
.hero::after { width: 420px; height: 420px; background: rgba(233, 185, 73, .18); bottom: -180px; inset-inline-end: -120px; }
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } .hero { padding: 96px 0 112px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #FED7AA; background: rgba(247, 148, 29, .14); border: 1px solid rgba(247, 148, 29, .3); padding: 6px 12px; border-radius: 999px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero h1 { color: #fff; font-size: clamp(32px, 5.2vw, 54px); margin: 18px 0 16px; letter-spacing: -.5px; }
.hero h1 span { background: linear-gradient(90deg, #F7941D, #E9B949); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #cbd5e1; font-size: clamp(16px, 2vw, 19px); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: #94a3b8; font-size: 14px; }
.hero-facts span::before { content: '✓'; color: #34d399; margin-inline-end: 6px; font-weight: 700; }

/* screen mock */
.mock { position: relative; }
.tv { background: #020617; border-radius: 18px; padding: 10px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #7A3E05, #0B0B0E 60%); }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 6% 7%; opacity: 0; animation: slides 12s infinite; }
.slide:nth-child(2) { animation-delay: 4s; background: linear-gradient(135deg, #065f46, #022c22); }
.slide:nth-child(3) { animation-delay: 8s; background: linear-gradient(135deg, #7c2d12, #1c1917); }
.slide:nth-child(1) { background: linear-gradient(135deg, #9A4A06, #0B0B0E); }
.slide b { font-size: clamp(18px, 3vw, 30px); color: #fff; }
.slide em { font-style: normal; color: rgba(255, 255, 255, .75); font-size: clamp(12px, 1.5vw, 16px); margin-top: 6px; }
.slide .tag { align-self: flex-start; font-size: 11px; background: rgba(255, 255, 255, .14); color: #fff; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
@keyframes slides { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
.ticker { position: absolute; bottom: 0; left: 0; right: 0; height: 13%; background: rgba(0, 0, 0, .55); color: #fde68a; font-size: clamp(10px, 1.4vw, 14px); display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.ticker span { display: inline-block; padding-left: 100%; animation: tick 18s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.tv-stand { width: 28%; height: 10px; margin: 0 auto; background: #1e293b; border-radius: 0 0 10px 10px; }
.mini { position: absolute; bottom: -26px; inset-inline-start: -10px; background: #fff; color: var(--text); border-radius: 14px; padding: 12px 14px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.mini .dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; }
@media (max-width: 520px) { .mini { display: none; } }

/* devices strip */
.devices { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.devices .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding-top: 22px; padding-bottom: 22px; color: var(--muted); font-size: 14px; }
.devices b { color: var(--ink); font-weight: 600; }

/* sections */
section.block { padding: 80px 0; }
section.alt { background: var(--bg-2); }
.head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 14px; }
.head h2 { font-size: clamp(26px, 3.6vw, 38px); margin-top: 6px; }
.head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; margin: 14px 0 6px; }
.card p { color: var(--muted); font-size: 15px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.ico svg { width: 22px; height: 22px; }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; inset-inline-start: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* branches */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.split h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 6px 0 12px; }
.split .lead { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: #d1fae5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.tree { background: var(--ink); color: #e2e8f0; border-radius: 20px; padding: 24px; font-size: 14px; }
.tree .node { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 8px; }
.tree .node small { color: #94a3b8; }
.tree .root { background: var(--brand); border-color: transparent; color: #fff; font-weight: 600; }
.tree .kids { margin-top: 10px; padding-inline-start: 18px; border-inline-start: 2px dashed rgba(255, 255, 255, .15); display: grid; gap: 8px; }
.tree .on { color: #34d399; }

/* pricing */
.cycle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 0 auto 28px; }
.cycle button { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 8px 18px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.cycle button.on { background: var(--ink); color: #fff; }
.cycle .save { color: var(--green); font-size: 12px; margin-inline-start: 4px; }
.cycle button.on .save { color: #6ee7b7; }
.center { text-align: center; }
.plan { display: flex; flex-direction: column; }
.plan.hl { border: 2px solid var(--brand); box-shadow: 0 30px 60px -30px rgba(224, 123, 11, .45); position: relative; }
.plan .badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--brand); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 999px; font-weight: 600; }
.plan h3 { margin-top: 0; }
.price { font-size: 38px; font-weight: 700; color: var(--ink); margin: 10px 0 2px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; color: var(--text); font-size: 15px; flex: 1; }
.plan li::before { content: '✓'; color: var(--green); font-weight: 700; margin-inline-end: 8px; }
.calc { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.calc label { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.calc input { width: 84px; height: 40px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font: inherit; font-weight: 600; }
.calc .total { font-size: 22px; font-weight: 700; color: var(--ink); }
.note { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }

/* apps / QR */
.apps .app { text-align: center; display: flex; flex-direction: column; align-items: center; }
.qr { width: 148px; height: 148px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin: 14px auto 14px; display: grid; place-items: center; }
.qr img, .qr canvas, .qr svg { width: 100%; height: 100%; }
.qr.off { color: var(--muted); font-size: 13px; padding: 16px; line-height: 1.5; background: var(--bg-2); }
.apps .app p { font-size: 14px; }
.apps .app .btn { margin-top: auto; }
.platforms { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.platforms a, .platforms span { font-size: 14px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; color: var(--text); }
.platforms a:hover { border-color: var(--brand); color: var(--brand); }
.platforms span { color: var(--muted); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* cta band */
.band { background: linear-gradient(120deg, #B95F06, #0B0B0E); color: #fff; border-radius: 24px; padding: 44px 28px; text-align: center; }
.band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); }
.band p { color: #cbd5e1; margin: 10px auto 24px; max-width: 560px; }
.band .hero-cta { justify-content: center; margin-top: 0; }

/* footer */
footer { background: var(--ink); color: #94a3b8; padding: 48px 0 28px; font-size: 14px; margin-top: 80px; }
footer .cols { display: grid; gap: 28px; }
@media (min-width: 760px) { footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
footer .foot-brand { display: flex; gap: 16px; align-items: flex-start; }
footer .foot-brand img { width: 96px; height: 96px; border-radius: 50%; flex: none; }
footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
footer a { display: block; padding: 3px 0; }
footer a:hover { color: #fff; }
footer .copy { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }

/* legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 16px 0; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); }
.legal .updated { color: var(--muted); margin: 6px 0 28px; font-size: 14px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-inline-start: 22px; margin: 8px 0; }
.legal li { margin: 4px 0; }
.legal .box { background: var(--brand-soft); border: 1px solid #FED7AA; border-radius: 14px; padding: 16px 18px; margin: 18px 0; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[hidden] { display: none !important; }
