/* Twasal Display — تنسيق الموقع (عربي وإنجليزي). القواعد الخاصة بالاتجاه مكتوبة بـ [dir=ltr] */
@font-face { font-family: 'Readex'; font-weight: 700; font-display: swap; src: url('ReadexPro-Bold.ttf') format('truetype'); }
  @font-face { font-family: 'Readex'; font-weight: 600; font-display: swap; src: url('ReadexPro-SemiBold.ttf') format('truetype'); }
  @font-face { font-family: 'Plex'; font-weight: 400; font-display: swap; src: url('IBMPlexSansArabic-Regular.ttf') format('truetype'); }
  @font-face { font-family: 'Plex'; font-weight: 600; font-display: swap; src: url('IBMPlexSansArabic-SemiBold.ttf') format('truetype'); }

  :root {
    --deep: #072B2D;     /* الأرضية الداكنة */
    --deep-2: #0A3A3D;
    --teal: #055E61;     /* لون العلامة */
    --coral: #FA6246;    /* لمسة العلامة */
    --mint: #7FD6D3;
    --paper: #F3F7F6;    /* أقسام فاتحة */
    --ink: #0E1F20;
    --muted: #536768;
    --line: #DCE6E5;
    --radius: 18px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Plex', system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  :focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
  .wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
  h1, h2, h3, .num { font-family: 'Readex', sans-serif; font-weight: 700; line-height: 1.25; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 12px; font-family: 'Readex', sans-serif; font-weight: 600; font-size: 17px; transition: transform .15s ease, background-color .15s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn-coral { background: var(--coral); color: #fff; }
  .btn-coral:hover { background: #e9553a; }
  .btn-ghost { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
  .btn-ghost:hover { border-color: #fff; }

  /* ── الرأس ── */
  header { position: absolute; inset-inline: 0; top: 0; z-index: 10; }
  .nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
  .nav .logo img { height: 40px; }
  .nav ul { display: flex; gap: 28px; list-style: none; color: rgba(255,255,255,.82); font-size: 16px; }
  .nav ul a:hover { color: #fff; }
  .nav .acts { display: flex; gap: 10px; }
  .nav .btn { padding: 9px 18px; font-size: 15px; }

  /* ── البطل ── */
  .hero { position: relative; overflow: hidden; color: #fff; padding: 150px 0 110px;
    background:
      radial-gradient(900px 600px at 18% 40%, rgba(5,94,97,.85), rgba(5,94,97,0) 70%),
      radial-gradient(700px 500px at 100% 0%, rgba(250,98,70,.10), rgba(250,98,70,0) 70%),
      var(--deep); }
  .hero .grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
  .eyebrow { display: inline-block; font-size: 15px; color: var(--mint); letter-spacing: .01em; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(42px, 5.4vw, 72px); }
  .hero h1 em { font-style: normal; color: var(--coral); }
  .hero p.lead { margin-top: 22px; font-size: 20px; color: rgba(255,255,255,.82); max-width: 540px; }
  .hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
  .hero .facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 15px; color: rgba(255,255,255,.7); }
  .hero .facts span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-inline-end: 9px; vertical-align: middle; }

  /* جدار الشاشات الحي — العنصر المميّز */
  .wall { position: relative; }
  .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tile { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: #041B1C; border: 5px solid #102628; overflow: hidden; container-type: inline-size; box-shadow: 0 18px 40px -20px rgba(0,0,0,.7); }
  .tile .m { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 7cqw 8cqw; gap: 2cqw; transition: opacity .45s ease, transform .45s ease; }
  .tile .m.out { opacity: 0; transform: translateY(6%); }
  .tile.flash { box-shadow: 0 0 0 2px var(--coral), 0 18px 40px -20px rgba(0,0,0,.7); }
  .m b { font-family: 'Readex', sans-serif; font-weight: 700; }
  .m i { font-style: normal; color: var(--mint); font-size: 7.5cqw; }
  .m p { display: flex; justify-content: space-between; font-size: 7cqw; color: rgba(255,255,255,.88); border-bottom: 1px solid rgba(255,255,255,.08); }
  .m-sale { background: linear-gradient(135deg, #FA6246, #c8432d); }
  .m-sale b { font-size: 15cqw; line-height: 1.1; white-space: nowrap; }
  .m-sale span { font-size: 8cqw; }
  .m-clock b { font-size: 22cqw; line-height: 1; direction: ltr; text-align: center; }
  .m-clock span { font-size: 7cqw; color: var(--coral); text-align: center; }
  .m-welcome { align-items: center; background: radial-gradient(circle at 30% 30%, #0b4a4d, #041B1C); }
  .m-welcome img { width: 22cqw; }
  .m-welcome b { font-size: 12cqw; }
  .m-meet b { font-size: 10cqw; }
  .m-meet span { font-size: 8cqw; direction: ltr; text-align: right; }
  [dir=ltr] .m-meet span { text-align: left; }
  .m-meet em { font-style: normal; font-size: 6.5cqw; color: rgba(255,255,255,.6); }
  .m-count { align-items: center; text-align: center; }
  .m-count b { font-size: 30cqw; line-height: 1; color: var(--coral); }
  .m-count span { font-size: 8cqw; }
  .m-data p b { font-family: 'Readex'; color: var(--mint); }
  .wall { padding-bottom: 112px; }
  .panel { position: absolute; inset-inline-end: -18px; bottom: 0; width: 230px; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); font-size: 13px; }
  .panel .row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
  .panel .row:last-of-type { border: 0; }
  .panel .row b { color: var(--ink); font-weight: 600; }
  .panel .pub { margin-top: 10px; width: 100%; padding: 9px; border: 0; border-radius: 10px; background: var(--teal); color: #fff; font-family: 'Readex'; font-weight: 600; font-size: 14px; position: relative; }
  .panel .pub::after { content: ''; position: absolute; inset: -4px; border-radius: 13px; border: 2px solid var(--coral); opacity: 0; }
  .panel .pub.go::after { animation: ring 1s ease-out; }
  @keyframes ring { from { opacity: .9; transform: scale(.96); } to { opacity: 0; transform: scale(1.12); } }

  /* ── الأقسام ── */
  section { padding: 100px 0; }
  .head { max-width: 720px; margin-bottom: 52px; }
  .head h2 { font-size: clamp(30px, 3.6vw, 44px); }
  .head p { margin-top: 14px; font-size: 19px; color: var(--muted); }
  .kicker { display: block; font-size: 15px; color: var(--teal); font-weight: 600; margin-bottom: 10px; }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
  .step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
  .step .num { font-size: 46px; color: var(--coral); line-height: 1; }
  .step h3 { font-size: 24px; margin: 14px 0 8px; }
  .step p { color: var(--muted); }

  .types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .type { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
  .type svg { flex: none; width: 26px; height: 26px; stroke: var(--teal); }

  .dark { background: var(--deep); color: #fff; }
  .dark .head p { color: rgba(255,255,255,.72); }
  .dark .kicker { color: var(--mint); }
  .feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
  .feat { background: var(--deep); padding: 32px; }
  .feat h3 { font-size: 21px; margin-bottom: 8px; }
  .feat h3::before { content: ''; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--coral); margin-bottom: 16px; }
  .feat p { color: rgba(255,255,255,.72); }

  .integ { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
  .integ ul { list-style: none; display: grid; gap: 16px; margin-top: 26px; }
  .integ li { display: flex; gap: 14px; font-size: 18px; }
  .integ li::before { content: ''; flex: none; margin-top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
  .flow { display: grid; grid-template-columns: 1fr; gap: 14px; justify-items: stretch; direction: ltr; }
  .code { background: var(--deep); color: #cfe9e7; border-radius: 14px; padding: 18px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.7; white-space: pre; overflow: hidden; }
  .code .k { color: var(--mint); } .code .s { color: #ffb4a6; } .code .n { color: #fff; }
  .arrow { width: 2px; height: 34px; background: var(--coral); position: relative; justify-self: center; }
  .arrow::after { content: ''; position: absolute; left: -5px; bottom: -6px; border: 6px solid transparent; border-top-color: var(--coral); }
  .scr { background: #041B1C; border: 8px solid #142A2C; border-radius: 12px; padding: 16px; color: #fff; direction: rtl; }
  [dir=ltr] .scr { direction: ltr; }
  .scr i { font-style: normal; color: var(--mint); font-size: 14px; }
  .scr p { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; }
  .scr p b { font-family: 'Readex'; color: var(--coral); }

  .sectors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .sector { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
  .sector h3 { font-size: 18px; margin-bottom: 8px; }
  .sector p { font-size: 15px; color: var(--muted); line-height: 1.65; }

  .host { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .host .card { border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); background: #fff; }
  .host .card.alt { background: var(--teal); color: #fff; border: 0; }
  .host h3 { font-size: 26px; margin-bottom: 10px; }
  .host p { color: var(--muted); font-size: 17px; }
  .host .alt p { color: rgba(255,255,255,.8); }

  .faq { max-width: 860px; }
  details { border-bottom: 1px solid var(--line); padding: 22px 0; }
  summary { cursor: pointer; font-family: 'Readex'; font-weight: 600; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: '+'; color: var(--coral); font-size: 26px; line-height: 1; }
  details[open] summary::after { content: '−'; }
  details p { margin-top: 12px; color: var(--muted); font-size: 17px; }

  .cta { background: var(--coral); color: #fff; border-radius: 26px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
  .cta h2 { font-size: clamp(28px, 3.4vw, 42px); }
  .cta p { margin-top: 10px; font-size: 19px; color: rgba(255,255,255,.88); }
  .cta .btn { background: #fff; color: var(--coral); }

  footer { background: var(--deep); color: rgba(255,255,255,.7); padding: 46px 0; font-size: 15px; }
  footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
  footer img { height: 34px; }
  footer nav { display: flex; gap: 22px; }
  footer a:hover { color: #fff; }


  /* ═══ الحركات ═══ */
  /* إقلاع الشاشات: خط ضوء أفقي ينفتح ثم يظهر المحتوى */
  .tile.off { background: #020c0d; }
  .tile.off .m { opacity: 0; }
  .tile.boot::before { content: ''; position: absolute; inset: 0; z-index: 2; background: #dff7f5; animation: boot .55s ease-out forwards; pointer-events: none; }
  @keyframes boot { 0% { transform: scaleY(.015) scaleX(.2); opacity: 1; } 35% { transform: scaleY(.015) scaleX(1); opacity: 1; } 70% { transform: scaleY(1); opacity: .35; } 100% { transform: scaleY(1); opacity: 0; } }
  /* خطوط النشر من اللوحة إلى كل شاشة، وشريط التنزيل داخل الشاشة */
  .beams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
  .beams path { fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(250,98,70,.8)); }
  .tile .dl { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: var(--coral); z-index: 2; }
  .tile .dl.run { width: 100%; transition: width .35s linear; }
  .tiles { transition: transform .4s ease-out; transform-style: preserve-3d; }
  .panel { z-index: 4; }

  /* شريط الأخبار — كمكوّن الشريط في النظام */
  .ticker { background: var(--teal); color: #fff; overflow: hidden; white-space: nowrap; border-block: 1px solid rgba(255,255,255,.12); }
  .ticker .track { display: inline-flex; padding: 16px 0; animation: tick 46s linear infinite; }
  .ticker span { font-family: 'Readex', sans-serif; font-weight: 600; font-size: 18px; padding-inline: 28px; display: inline-flex; align-items: center; gap: 28px; }
  .ticker span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
  @keyframes tick { from { transform: translateX(0); } to { transform: translateX(50%); } }
  @keyframes tick-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  [dir=ltr] .ticker .track { animation-name: tick-ltr; }

  /* تجربتان حيّتان: الجدولة واللمس */
  .demos { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-bottom: 22px; }
  .demo { background: var(--deep-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 28px; }
  .demo h3 { font-size: 22px; }
  .demo > p { color: rgba(255,255,255,.7); margin: 6px 0 20px; }
  .mini { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: #041B1C; border: 8px solid #12292b; overflow: hidden; container-type: inline-size; }
  .mini .v { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.6cqw; padding: 5cqw 7cqw; transition: opacity .4s ease, transform .4s ease; }
  .mini .v.hide { opacity: 0; transform: scale(.98); pointer-events: none; }
  .mini i { font-style: normal; color: var(--mint); font-size: 4cqw; }
  .mini b { font-family: 'Readex', sans-serif; font-size: 7.5cqw; line-height: 1.2; }
  .mini p { display: flex; justify-content: space-between; font-size: 3.6cqw; border-bottom: 1px solid rgba(255,255,255,.08); padding: .6cqw 0; color: rgba(255,255,255,.88); }
  .mini .eve { background: linear-gradient(135deg, #2a1240, #FA6246); }
  .mini .tag { position: absolute; top: 3cqw; inset-inline-end: 3cqw; font-size: 3cqw; background: rgba(0,0,0,.35); padding: .6cqw 2cqw; border-radius: 99px; }
  .dp-time { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
  .dp-time b { font-family: 'Readex', sans-serif; font-size: 30px; direction: ltr; }
  .dp-time span { color: rgba(255,255,255,.6); font-size: 14px; }
  .dp-bar { position: relative; display: grid; grid-template-columns: 5fr 6fr 6fr; gap: 4px; margin-top: 10px; }
  .dp-bar div { height: 34px; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 13px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); transition: background .3s ease, color .3s ease; }
  .dp-bar div.on { background: var(--teal); color: #fff; }
  .dp-bar div.on.eve { background: var(--coral); }
  .dp-range { width: 100%; margin-top: 12px; accent-color: var(--coral); }  /* يرث اتجاه الصفحة فيطابق ترتيب مقاطع اليوم */
  .kiosk { max-width: 300px; margin-inline: auto; }
  .kiosk .mini { aspect-ratio: 3 / 4; }
  .kiosk .mini .v { justify-content: flex-start; padding-top: 9cqw; }
  .kiosk .mini b { font-size: 11cqw; }
  .kiosk .mini i { font-size: 6cqw; }
  .kiosk .mini p { font-size: 6cqw; padding: 1.6cqw 0; }
  .kiosk .keys { position: absolute; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5cqw; padding: 3cqw; z-index: 2; }
  .kiosk .keys button { border: 0; border-radius: 3cqw; padding: 3.2cqw 0; font-family: 'Readex', sans-serif; font-size: 5cqw; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .2s ease, transform .1s ease; }
  .kiosk .keys button:active { transform: scale(.96); }
  .kiosk .keys button.on { background: var(--coral); }
  .kiosk .ripple { position: absolute; width: 14cqw; height: 14cqw; border-radius: 50%; border: 2px solid #fff; transform: translate(50%, -50%) scale(.2); opacity: .9; pointer-events: none; animation: rip .6s ease-out forwards; z-index: 3; }
  @keyframes rip { to { transform: translate(50%, -50%) scale(1.6); opacity: 0; } }
  .kiosk-note { text-align: center; font-size: 14px; color: rgba(255,255,255,.55); margin-top: 12px; }

  /* الجدار المتزامن: ضوء واحد يعبر ثلاث شاشات كأنها شاشة واحدة */
  .sync { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-radius: 8px; overflow: hidden; background: linear-gradient(100deg, #055E61 0%, #0a8f93 22%, #FA6246 42%, #7FD6D3 62%, #055E61 82%); background-size: 260% 100%; animation: sweep 5s linear infinite; }
  .sync div { aspect-ratio: 16 / 9; border: 3px solid var(--deep); }
  @keyframes sweep { from { background-position: 0% 0; } to { background-position: 260% 0; } }

  /* البيانات الحية */
  .code .n { transition: background .3s ease; border-radius: 3px; }
  .code .n.up { background: rgba(250,98,70,.45); }
  .scr p b { display: inline-block; }
  .scr p b.up { animation: up .7s ease; }
  @keyframes up { 0% { transform: translateY(-6px); color: #fff; } 100% { transform: none; } }
  .scr .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.6); float: inline-end; }
  .scr .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; animation: blink 1.4s ease infinite; }
  @keyframes blink { 50% { opacity: .25; } }

  /* ظهور الأقسام أثناء النزول */
  .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .rv.in { opacity: 1; transform: none; }
  .type, .sector, .step { transition: transform .2s ease, box-shadow .2s ease, opacity .7s ease; }
  .type:hover, .sector:hover, .step:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(5,94,97,.45); }

  @media (max-width: 1080px) {
    .types { grid-template-columns: repeat(3, 1fr); }
    .sectors { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 900px) {
    .nav ul { display: none; }
    .hero { padding-top: 120px; }
    .hero .grid, .integ { grid-template-columns: 1fr; }
    .wall { padding-bottom: 0; }
    .panel { position: relative; inset: auto; width: 100%; margin-top: 14px; }
    .steps, .feats, .host, .demos { grid-template-columns: 1fr; }
    .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  }
  @media (max-width: 560px) {
    .nav .acts .btn-ghost { display: none; }
    .types, .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .type { padding: 14px; gap: 10px; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
    .tiles { gap: 8px; }
    section { padding: 72px 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rv { opacity: 1; transform: none; transition: none; }
    .ticker .track { animation: none; flex-wrap: wrap; white-space: normal; }
    .sync, .scr .live::before { animation: none; }
    .tile.boot::before { animation: none; display: none; }
    .tile .m, .btn { transition: none; }
    .panel .pub.go::after { animation: none; }
  }

/* التواصل: واتساب وبريد */
.btn-wa { background: #25D366; color: #06381c; }
.btn-wa:hover { background: #1fc05c; }
.btn svg { width: 20px; height: 20px; flex: none; }
.contact-line { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; font-size: 17px; color: rgba(255,255,255,.9); }
.contact-line a { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact-line a:hover { border-color: #fff; }
.cta .acts { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.lang { color: rgba(255,255,255,.82); font-family: 'Readex', sans-serif; font-weight: 600; font-size: 15px; padding: 9px 12px; border-radius: 10px; }
.lang:hover { color: #fff; background: rgba(255,255,255,.08); }
footer .contact { display: flex; gap: 18px; flex-wrap: wrap; }
