/* ProgNovate — site styles
   Brand: Poppins (Latin) + Readex Pro (Arabic), #F6B22D orange, #2B96B8 blue */

:root {
  /* "only" forbids browsers' automatic force-dark recolouring, which turns the
     brand orange into brown-red. The site has its own dark theme below. */
  color-scheme: only light;
  --hero: #1E7A97;
  --bl: #2B96B8;
  --bld: #1D7593;
  --ink: #0E2A33;
  --or: #F6B22D;
  --or-h: #FFC54D;
  /* theme tokens: light (default) */
  --bg: #FFFFFF;
  --pale: #EEF5F8;
  --surface: #FFFFFF;
  --field: #EEF5F8;
  --text: #0E2A33;
  --mu: #4D6A76;
  --line: #DCE6EA;
  --acc: #1D7593;
  --band: #0E2A33;
  --foot: #0E2A33;
  --glass: rgba(255, 255, 255, .94);
  --err: #B4441E;
  --f: "Poppins", "Readex Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
/* theme tokens: dark (system setting, unless the visitor picked light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: only dark;
    --bg: #0A1A21; --pale: #0F242D; --surface: #0B1D25; --field: #0F242D;
    --text: #E3EEF2; --mu: #9DB6C0; --line: #1F3C48; --acc: #6CC7E3;
    --band: #163F4C; --foot: #06131A; --glass: rgba(10, 26, 33, .9); --err: #FF8A65;
  }
}
/* theme tokens: dark (picked with the toggle) */
:root[data-theme="dark"] {
  color-scheme: only dark;
  --bg: #0A1A21; --pale: #0F242D; --surface: #0B1D25; --field: #0F242D;
  --text: #E3EEF2; --mu: #9DB6C0; --line: #1F3C48; --acc: #6CC7E3;
  --band: #163F4C; --foot: #06131A; --glass: rgba(10, 26, 33, .9); --err: #FF8A65;
}
:root[lang="ar"] { --f: "Readex Pro", "Poppins", "Segoe UI", Tahoma, system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--text); transition: background-color .3s, color .3s; font-family: var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* Arabic letters must stay joined: no tracking, a little more leading */
:root[lang="ar"] * { letter-spacing: 0 !important; }
:root[lang="ar"] h1, :root[lang="ar"] h2 { line-height: 1.25; }
:root[lang="ar"] p, :root[lang="ar"] li { line-height: 1.9; }

/* ---------- Buttons & shared ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 8px; border: 1px solid transparent;
  font: 500 15px/1 var(--f); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn .i { width: 20px; height: 20px; }
.btn-or { background: var(--or); color: #1C1403; }
.btn-or:hover { background: var(--or-h); box-shadow: 0 10px 24px -10px rgba(246,178,45,.8); }
.btn-w { background: #fff; color: var(--bld); font-weight: 600; }
.btn-w:hover { background: var(--or); color: var(--ink); }
.btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-bl { background: var(--bld); color: #fff; }
.btn-bl:hover { background: #185E76; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #163F4C; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Poppins", sans-serif; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; direction: ltr; }
.logo-mk { width: 32px; height: 32px; flex: none; }
.logo b { font-weight: 600; color: var(--or); }
.logo .wm > span { font-weight: 500; color: var(--bl); }
.logo .wm { display: inline-grid; grid-template-columns: auto auto; line-height: 1; }
/* THE FUTURE IS HERE, spread across the width of the name like the brand logo */
.logo .wm > .wm-tag { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: .3em; font-weight: 400; letter-spacing: 0; margin-top: .62em; }
.wm-tag i { font-style: normal; }
.tagline { text-transform: uppercase; letter-spacing: .5em; font-size: 11.5px; font-weight: 500; }
.eyebrow { color: var(--acc); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.textlink { color: var(--acc); font-weight: 500; text-decoration: none; font-size: 15.5px; }
.textlink:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--or); }
.chamfer, .card { clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%); }
[dir="rtl"] .card { clip-path: polygon(0 30px, 30px 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--hero); color: #fff;
  transition: background-color .35s, box-shadow .35s, color .35s;
}
.nav-in { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.nav .logo { --mk-b: #fff; --mk-b2: #D8EEF5; }
/* the header shows THE FUTURE IS HERE only where there is room for a bigger logo */
.nav .wm-tag { display: none !important; }
@media (min-width: 1200px) {
  .nav .logo { font-size: 26px; gap: 12px; }
  .nav .logo-mk { width: 42px; height: 42px; }
  .nav .wm-tag { display: flex !important; }
}
.nav .logo .wm > span { color: #fff; }
.links { display: flex; gap: 30px; margin-inline-start: auto; font-size: 14.5px; }
.links a { text-decoration: none; opacity: .9; position: relative; padding-block: 6px; }
.links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--or); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .3s var(--ease); }
[dir="rtl"] .links a::after { --origin: right; }
.links a:hover { opacity: 1; }
.links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; align-items: center; text-decoration: none; font: 500 14px/1 "Readex Pro", "Poppins", sans-serif; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 999px; padding: 9px 14px; cursor: pointer; opacity: .9; }
.lang:hover { opacity: 1; background: rgba(255,255,255,.12); }
.theme { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 50%; cursor: pointer; opacity: .9; }
.theme:hover { opacity: 1; background: rgba(255,255,255,.12); }
.nav.scrolled .theme:hover { background: var(--pale); }
.theme svg { width: 18px; height: 18px; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav.scrolled { background: var(--glass); color: var(--text); box-shadow: 0 8px 30px -18px rgba(14,42,51,.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav.scrolled .logo { --mk-b: #2B96B8; --mk-b2: #2B96B8; }
.nav.scrolled .logo .wm > span { color: var(--bl); }
.nav.scrolled .lang:hover { background: var(--pale); }
/* scroll progress */
.nav::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--or); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .nav::after { transform-origin: right; }
@supports (animation-timeline: scroll()) {
  .nav::after { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero); color: #fff; overflow: hidden; padding-bottom: 150px; margin-bottom: -110px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 110px), 0 100%); }
[dir="rtl"] .hero { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 110px)); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 46px, rgba(255,255,255,.05) 46px 48px); }
.diamond { position: absolute; width: 900px; height: 900px; inset-inline-end: -380px; top: -300px; background: var(--bl); transform: rotate(45deg); opacity: .55; }
.rib { position: absolute; display: block; height: 72px; width: 80%; inset-inline-end: -12%; transform: rotate(-15deg); }
.rib-o { background: var(--or); top: 62%; opacity: .95; animation: drift 14s ease-in-out infinite alternate; }
.rib-w { background: rgba(255,255,255,.12); height: 28px; top: 30%; animation: drift 18s ease-in-out infinite alternate-reverse; }
[dir="rtl"] .rib { transform: rotate(15deg); }
@keyframes drift { from { translate: -40px 0; } to { translate: 60px 0; } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 56px 40px; }
.hero .tagline { color: #CFE9F1; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.8rem); line-height: .98; font-weight: 700; letter-spacing: -.045em; margin-block: 22px 26px; }
.tag { display: inline-block; background: var(--or); color: var(--ink); padding: 0 .4em 0 .12em; clip-path: polygon(0 0, calc(100% - .32em) 0, 100% 50%, calc(100% - .32em) 100%, 0 100%); }
[dir="rtl"] .tag { padding: 0 .12em 0 .4em; clip-path: polygon(.32em 0, 100% 0, 100% 100%, .32em 100%, 0 50%); }
.lead { font-size: 18px; line-height: 1.7; color: #EAF6FA; max-width: 31em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.chips li { font-size: 13px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }

/* hero load sequence */
.hero-copy > * { animation: rise-in .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .18s; }
.hero-copy > :nth-child(4) { animation-delay: .28s; }
.hero-copy > :nth-child(5) { animation-delay: .38s; }
@keyframes rise-in { from { opacity: .001; transform: translateY(24px); } }
.tag { animation: tag-in 1s .5s var(--ease) both; }
@keyframes tag-in { from { clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%); } }
[dir="rtl"] .tag { animation-name: tag-in-rtl; }
@keyframes tag-in-rtl { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 100% 50%); } }

/* Folding mark: one ribbon opening on its real hinges. The stem grows up, the
   ribbon swings out from behind it, folds down at the crease, the wing opens
   last; then the whole mark floats. The pieces share one plane (.rig is flat)
   so they never cut through each other; the mouse tilt in main.js moves them
   as one. */
.mark3d { position: relative; width: min(100%, 430px); aspect-ratio: 185.6 / 185.8; justify-self: center; perspective: 1100px; }
.mark-shadow { position: absolute; left: 12%; right: 12%; bottom: -10%; height: 14%; border-radius: 50%; background: rgba(6, 36, 47, .45); filter: blur(22px);
  animation: mk-fade 1s .2s both, mk-shadow 6s 2.2s ease-in-out infinite; }
.sway { position: absolute; inset: 0; transform-style: preserve-3d; animation: mk-float 6s 2.2s ease-in-out infinite; }
.rig { position: absolute; inset: 0; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.pc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc-stem { animation: mk-grow .75s var(--ease) both; }
.pc-top  { transform-origin: 58.3% 0;     animation: mk-open-r .8s .55s var(--ease) both; }
.pc-head { transform-origin: 63.4% 63.3%; animation: mk-fold .8s 1.05s var(--ease) both; }
.pc-wing { transform-origin: 41.7% 0;     animation: mk-open-l .8s 1.35s var(--ease) both; }
@keyframes mk-grow { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mk-open-r { from { transform: perspective(900px) rotateY(-95deg); opacity: 0; } 20% { opacity: 1; } }
@keyframes mk-open-l { from { transform: perspective(900px) rotateY(95deg); opacity: 0; } 20% { opacity: 1; } }
@keyframes mk-fold { from { transform: perspective(900px) rotate3d(1, -1, 0, 175deg); opacity: 0; } 15% { opacity: 1; } }
@keyframes mk-fade { from { opacity: 0; } }
@keyframes mk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.5%); } }
@keyframes mk-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .75; } }

/* ---------- Ribbons (marquee) ---------- */
.ribbons { position: relative; z-index: 2; height: 190px; margin-top: -20px; pointer-events: none; overflow: hidden; }
.ribbon { position: absolute; left: -5%; width: 110%; padding-block: 16px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(14,42,51,.6); }
.r-or { background: var(--or); color: var(--ink); top: 30px; transform: rotate(-3deg); z-index: 2; }
.r-bl { background: var(--band); color: #fff; top: 92px; transform: rotate(2deg); }
.track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.r-bl .track { animation-duration: 34s; animation-direction: reverse; }
.track span { font-size: 20px; font-weight: 600; white-space: nowrap; padding-inline: 28px; display: inline-flex; align-items: center; gap: 56px; }
.track span::after { content: ""; width: 12px; height: 12px; background: currentColor; transform: rotate(45deg); opacity: .6; margin-inline-start: 28px; }
.r-bl .track span { font-weight: 400; font-size: 17px; }
.r-bl .track span::after { background: var(--or); opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.block { padding-block: 104px; position: relative; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; align-items: end; margin-bottom: 52px; }
.head > p { color: var(--mu); line-height: 1.7; font-size: 16.5px; max-width: 32em; }
#services { padding-top: 56px; }

/* services */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; padding: 34px 30px 32px; display: flex; flex-direction: column; gap: 12px;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(43,150,184,.14), transparent 60%), var(--pale);
  transition: transform .35s var(--ease), background-color .35s;
}
.card::before { content: ""; position: absolute; top: 0; inset-inline-end: 0; width: 30px; height: 30px; background: var(--or); clip-path: polygon(0 0, 100% 100%, 0 100%); transform: scale(0); transform-origin: 0 100%; transition: transform .35s var(--ease); }
[dir="rtl"] .card::before { clip-path: polygon(100% 0, 100% 100%, 0 100%); transform-origin: 100% 100%; }
.card:hover { transform: translateY(-6px); }
.card:hover::before { transform: scale(1); }
.ico { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); color: var(--acc); display: grid; place-items: center; margin-bottom: 8px; transition: background-color .3s, color .3s, transform .4s var(--ease); }
.ico svg { width: 24px; height: 24px; }
.card:hover .ico { background: var(--bld); color: #fff; transform: rotate(-8deg); }
.card h3 { font-size: 19.5px; font-weight: 600; letter-spacing: -.01em; }
.card p { color: var(--mu); line-height: 1.7; font-size: 15px; }

/* ---------- Novium (product) ---------- */
.novium { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding-block: 112px; }
.nv-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px circle at 85% 20%, rgba(43,150,184,.28), transparent 60%),
    radial-gradient(500px circle at 10% 90%, rgba(246,178,45,.12), transparent 60%),
    repeating-linear-gradient(-45deg, transparent 0 46px, rgba(255,255,255,.03) 46px 48px); }
.novium .wrap { position: relative; }
.nv-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.novium .eyebrow { color: var(--or); }
.nv-lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; direction: ltr; justify-content: flex-start; }
[dir="rtl"] .nv-lockup { justify-content: flex-end; }
.nv-icon { width: 58px; height: 58px; flex: none; }
.nv-wm { font-family: "Poppins", sans-serif; font-size: 52px; line-height: 1; letter-spacing: -.02em; }
.nv-wm b { font-weight: 600; color: var(--or); }
.nv-wm span { font-weight: 500; color: #5BC0DE; }
.novium h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.novium h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.nv-page { padding-block: 56px 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: #9DB6C0; margin-bottom: 36px; }
.crumbs a { color: #CFE9F1; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.novium .d { color: #B9D2DB; line-height: 1.75; font-size: 16.5px; margin-block: 18px 24px; max-width: 34em; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { font-size: 13.5px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); display: inline-flex; align-items: center; gap: 8px; }
.roles li::before { content: ""; width: 7px; height: 7px; background: var(--or); transform: rotate(45deg); }
.novium .cta-row { margin-top: 32px; }

.nv-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 88px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; overflow: hidden; }
.nv-features li { background: var(--ink); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; transition: background-color .3s; }
.nv-features li:hover { background: #12343F; }
.novium .ico { background: rgba(43,150,184,.18); color: #6CC7E3; margin-bottom: 6px; }
.nv-features li:hover .ico { background: var(--or); color: var(--ink); transform: rotate(-8deg); }
.nv-features h3 { font-size: 18px; font-weight: 600; }
.nv-features p { color: #A9C4CE; line-height: 1.7; font-size: 14.5px; }

.tenants { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; margin-top: 24px; padding: 32px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.03); }
.tenants h3, .tenants .h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 8px; }
.tenants p { color: #A9C4CE; line-height: 1.7; font-size: 15px; }
.t-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.t-list li { position: relative; display: grid; gap: 4px; padding: 20px 22px; border-radius: 10px; }
.t-list b { font-size: 17px; font-weight: 600; }
.t-live { background: rgba(43,150,184,.16); border: 1px solid rgba(43,150,184,.55); }
.t-live small { color: #9FDDBA; font-size: 13.5px; }
.t-dot { position: absolute; top: 18px; inset-inline-end: 18px; width: 10px; height: 10px; border-radius: 50%; background: #5BD38F; }
/* the ring grows and fades with transform and opacity only, so it never repaints the page */
.t-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(91,211,143,.6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
.t-next { border: 1.5px dashed rgba(246,178,45,.75); }
.t-plus { position: absolute; top: 12px; inset-inline-end: 16px; color: var(--or); font-size: 24px; font-weight: 600; line-height: 1; }
.t-next a { color: var(--or); text-decoration: none; font-size: 14px; font-weight: 500; }
.t-next a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* hero announcement */
.announce { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(14,42,51,.35); border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-size: 13.5px; margin-bottom: 20px; transition: background-color .25s; }
[dir="rtl"] .announce { padding: 5px 5px 5px 14px; }
.announce:hover { background: rgba(14,42,51,.55); }
.announce .new { background: var(--or); color: var(--ink); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; }
.announce .arr { transition: transform .25s var(--ease); }
.announce:hover .arr { transform: translateX(4px); }
[dir="rtl"] .announce .arr { transform: scaleX(-1); }
[dir="rtl"] .announce:hover .arr { transform: scaleX(-1) translateX(4px); }

.devices { position: relative; padding-block: 20px 40px; padding-inline-end: 60px; }
.laptop .screen { background: #0B1E27; border: 1px solid rgba(255,255,255,.14); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.laptop .base { height: 16px; margin-inline: -4%; background: linear-gradient(#C9D6DC, #AEBFC6); border-radius: 0 0 14px 14px; }
.app { display: grid; grid-template-columns: 54px 1fr; background: #F6FAFB; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; direction: ltr; }
.app-side { background: var(--bld); display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 14px; }
.app-logo { width: 28px; height: 28px; padding: 4px; background: #fff; border-radius: 7px; margin-bottom: 8px; }
.app-side i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); }
.app-side i.on { background: #fff; }
.app-main { padding: 14px 16px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-title { font-weight: 600; font-size: 13px; color: var(--ink); }
.app-title small { font-weight: 400; color: #4D6A76; font-size: 11px; }
.app-av { width: 22px; height: 22px; border-radius: 50%; background: var(--bl); }
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-cards span { height: 44px; border-radius: 6px; background: #fff; border-top: 3px solid var(--bl); box-shadow: 0 2px 6px rgba(14,42,51,.06); }
.app-cards span:nth-child(2) { border-top-color: var(--or); }
.app-cards span:nth-child(3) { border-top-color: #7FC8A9; }
.app-chart { display: flex; align-items: flex-end; gap: 8px; background: #fff; border-radius: 6px; padding: 10px 12px 0; min-height: 70px; }
.app-chart i { flex: 1; height: var(--h); background: linear-gradient(var(--bl), var(--bld)); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.app-chart i:nth-child(6) { background: var(--or); }
.app-rows { display: grid; gap: 6px; }
.app-rows i { height: 8px; border-radius: 4px; background: #E1EBEF; }
.app-rows i:nth-child(2) { width: 80%; } .app-rows i:nth-child(3) { width: 60%; }
.phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 26%; aspect-ratio: 9 / 18.5; background: #0B1E27; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 10px 8px; box-shadow: 0 30px 50px -20px rgba(14,42,51,.6); display: flex; flex-direction: column; gap: 8px; animation: float 6s ease-in-out infinite; }
.ph-top { height: 30%; border-radius: 14px 14px 6px 6px; background: linear-gradient(135deg, var(--bl), var(--bld)); }
.ph-card { height: 16%; border-radius: 6px; background: var(--or); }
.ph-row { display: flex; gap: 6px; }
.ph-row i { height: 14px; border-radius: 4px; background: #28414C; flex: 1; }
.ph-row i:first-child { flex: 0 0 14px; background: #3A5866; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* why */
.why { position: relative; background: var(--hero); color: #fff; overflow: hidden; }
.why-bg i { position: absolute; display: block; height: 90px; width: 70%; inset-inline-end: -15%; background: var(--bl); transform: rotate(-15deg); opacity: .55; }
.why-bg i:first-child { top: 12%; }
.why-bg i:last-child { bottom: 8%; height: 18px; background: var(--or); opacity: .9; width: 45%; }
[dir="rtl"] .why-bg i { transform: rotate(15deg); }
.why-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; padding-block: 104px; }
.why .eyebrow { color: var(--or); }
.why h2 { color: #fff; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.why-list li { background: var(--hero); padding: 28px 26px; display: grid; gap: 8px; align-content: start; transition: background-color .3s; }
.why-list li:hover { background: #1A6D87; }
.why-list b { font-size: 18px; font-weight: 600; }
.why-list b::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--or); transform: rotate(45deg); margin-inline-end: 12px; vertical-align: 2px; }
.why-list span { color: #DDEFF5; line-height: 1.7; font-size: 15px; }

/* process stairs */
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.stairs li { --cap: polygon(0 28px, 50% 0, 100% 28px, 100% 100%, 0 100%); color: #fff; padding: 56px 24px 28px; clip-path: var(--cap); display: flex; flex-direction: column; gap: 10px; }
.stairs li:nth-child(1) { background: #6BBFD8; color: var(--ink); min-height: 250px; }
.stairs li:nth-child(2) { background: var(--bl); min-height: 300px; }
.stairs li:nth-child(3) { background: var(--bld); min-height: 350px; }
.stairs li:nth-child(4) { background: var(--or); color: var(--ink); min-height: 400px; }
.stairs .n { font-size: 46px; font-weight: 800; line-height: 1; font-family: "Poppins", sans-serif; }
.stairs h3 { font-size: 20px; font-weight: 600; }
.stairs p { font-size: 14.5px; line-height: 1.65; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 22px; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--or); border-bottom: 2px solid var(--or); transform: rotate(45deg); transition: transform .3s var(--ease); margin-top: -6px; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.faq details p { color: var(--mu); line-height: 1.75; font-size: 15.5px; margin-top: 12px; max-width: 42em; }

/* contact */
.contact-sec { background: var(--pale); }
.cinfo { display: grid; gap: 16px; margin-bottom: 32px; }
.cinfo li { border-top: 2px solid var(--ink); padding-top: 10px; }
.cinfo small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 2px; }
.cinfo a, .cinfo span { font-size: 19px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.cinfo a:hover { text-decoration: underline; text-underline-offset: 4px; }
[dir="rtl"] .cinfo a, [dir="rtl"] .cinfo span[dir="ltr"] { display: inline-block; }

/* ---------- Project planner (contact) ---------- */
.plan-head { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; margin-bottom: 44px; }
/* The ribbon always arrives from the upper right to become the wing, so the logo sits on the right in Arabic too. */
[dir="rtl"] .plan-head { grid-template-columns: auto 1fr; }
[dir="rtl"] .plan-head .endmark { order: -1; }
.plan-lead { color: var(--mu); font-size: 17px; line-height: 1.7; max-width: 36em; margin-top: 16px; }
.endmark { position: relative; width: 150px; aspect-ratio: 185.6 / 185.8; }
.endmark .pc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.endmark .ghost { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--mu); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .75; transition: opacity .6s; }
.endmark:not(.built) .pc { opacity: 0; animation: none; }   /* no tilted start poses sticking out while hidden */
.endmark.built .ghost { opacity: 0; }
.endmark.play .pc-wing { animation: mk-wing .55s ease-out both; }
.endmark.play .pc-stem { animation: mk-grow .7s .35s var(--ease) both; }
.endmark.play .pc-top  { transform-origin: 58.3% 0; animation: mk-open-r .8s .8s var(--ease) both; }
.endmark.play .pc-head { transform-origin: 63.4% 63.3%; animation: mk-fold .8s 1.25s var(--ease) both; }
@keyframes mk-wing { from { clip-path: inset(0 50% 100% 50%); } to { clip-path: inset(0 0 0 0); } }

.planner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: start; }
.pl-steps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pl-box { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.pl-box legend { float: left; width: 100%; padding: 0; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.pl-box > :not(legend) { clear: both; }
.pl-n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--or); color: var(--ink); font: 700 13px/1 "Poppins", sans-serif; }
.pl-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pl-kind, .pl-chip { position: relative; }
.pl-kind input, .pl-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pl-kind label { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 500; transition: border-color .2s, background-color .2s; }
.pl-kind svg { width: 28px; height: 28px; flex: none; color: var(--acc); }
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chip label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; transition: border-color .2s, background-color .2s; }
.pl-chip label::before { content: ""; width: 14px; height: 14px; flex: none; border: 1.5px solid var(--mu); border-radius: 4px; transition: background-color .2s, border-color .2s; }
.pl-chip input[type="radio"] + label::before { border-radius: 50%; }
.pl-kind input:checked + label, .pl-chip input:checked + label { border-color: var(--bl); background: rgba(43,150,184,.1); }
.pl-chip input:checked + label::before { border-color: var(--bl); background: var(--bl) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.pl-chip input[type="radio"]:checked + label::before { background: var(--bl); box-shadow: inset 0 0 0 3px var(--surface); }
.pl-kind input:focus-visible + label, .pl-chip input:focus-visible + label { outline: 2px solid var(--or); outline-offset: 3px; }
.pl-range { display: grid; gap: 8px; }
.pl-range label { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 500; }
.pl-range output { color: var(--acc); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-range input { width: 100%; accent-color: var(--bl); }
.pl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pl-fields label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
.pl-fields .pl-wide { grid-column: 1 / -1; }
.pl-fields input, .pl-fields select, .pl-fields textarea { font: 400 15px/1.5 var(--f); color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; transition: border-color .2s, background-color .2s; }
.pl-fields input:focus, .pl-fields select:focus, .pl-fields textarea:focus { outline: none; border-color: var(--bl); background: var(--bg); box-shadow: 0 0 0 3px rgba(43,150,184,.18); }
.pl-fields textarea { min-height: 84px; resize: vertical; }

.pl-side { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pl-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; }
.pl-panel h3, .pl-brief h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mu); margin-bottom: 12px; }
.pl-stage { min-height: 300px; padding: 18px; border-radius: 10px; background: var(--pale); display: grid; place-items: center; overflow: hidden; }
.pl-big { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.pl-big small { font-size: 14px; font-weight: 500; color: var(--mu); letter-spacing: 0; }
.pl-bar { display: flex; height: 34px; margin-block: 12px; border-radius: 8px; overflow: hidden; font-size: 11.5px; font-weight: 600; }
.pl-bar span { display: flex; align-items: center; justify-content: center; padding-inline: 4px; white-space: nowrap; overflow: hidden; color: var(--ink); transition: flex-grow .5s var(--ease); }
.pl-bar .s1 { background: #CFE8F1; } .pl-bar .s2 { background: #9FD2E4; } .pl-bar .s3 { background: var(--bl); color: #fff; } .pl-bar .s4 { background: var(--or); }
.pl-panel p { color: var(--mu); font-size: 13.5px; line-height: 1.65; }
.pl-panel .pl-big { color: var(--text); font-size: 26px; }
.pl-panel .pl-nf { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(246,178,45,.16); color: var(--text); }
.pl-brief { background: var(--or); color: var(--ink); padding: 24px 24px 26px; clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%); }
[dir="rtl"] .pl-brief { clip-path: polygon(0 30px, 30px 0, 100% 0, 100% 100%, 0 100%); }
.pl-brief h3 { color: var(--ink); opacity: .8; }
.pl-brief-text { margin: 0 0 14px; padding: 12px 14px; max-height: 190px; overflow: auto; border-radius: 8px; background: rgba(255,255,255,.55); font: 13.5px/1.65 var(--f); white-space: pre-wrap; color: var(--ink); }
.pl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pl-copy { border-color: rgba(14,42,51,.45); color: var(--ink); background: transparent; }
.pl-copy:hover { background: rgba(255,255,255,.35); }
.pl-copied { font-size: 13.5px; font-weight: 500; }
.pl-brief .cinfo { margin: 22px 0 0; gap: 12px; }
.pl-brief .cinfo a, .pl-brief .cinfo span { font-size: 15px; }

/* planner preview: small wireframes of the product (always light, like a real screen) */
.wf-browser { width: 100%; max-width: 430px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 34px -14px rgba(14,42,51,.45); color: #0E2A33; }
.wf-chrome { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #E9F1F4; }
.wf-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #C3D5DC; }
.wf-chrome span { margin-inline-start: 8px; flex-grow: 1; background: #fff; border-radius: 5px; font-size: 10px; color: #4D6A76; padding: 2px 8px; font-family: "Poppins", sans-serif; }
.wf-scr { position: relative; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.wf-row { display: flex; align-items: center; gap: 8px; }
.wf-grow { flex-grow: 1; }
.wf-logo { width: 26px; height: 10px; border-radius: 3px; background: #2B96B8; }
.wf-ln { display: block; height: 6px; border-radius: 3px; background: #DCE6EA; }
.wf-lang { font: 600 9px/1.4 "Poppins", "Readex Pro", sans-serif; border: 1px solid #DCE6EA; border-radius: 5px; padding: 1px 5px; color: #1D7593; }
.wf-av { width: 16px; height: 16px; border-radius: 50%; background: #9FD2E4; }
.wf-hero { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 8px; background: linear-gradient(135deg, #2B96B8, #1D7593); }
.wf-hero .wf-ln { background: rgba(255,255,255,.55); }
.wf-pill { display: inline-block; width: 46px; height: 12px; border-radius: 4px; background: #F6B22D; }
.wf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wf-blk { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid #DCE6EA; border-radius: 8px; background: #fff; }
.wf-blk small, .wf-cap { font-size: 9.5px; font-weight: 600; color: #4D6A76; }
.wf-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.wf-cal i { aspect-ratio: 1; border-radius: 2px; background: #EDF3F5; }
.wf-cal i.on { background: #F6B22D; }
.wf-cardic { height: 22px; border-radius: 5px; background: linear-gradient(135deg, #243B45, #0E2A33); }
.wf-bars { display: flex; align-items: flex-end; gap: 3px; height: 32px; }
.wf-bars i { flex: 1; border-radius: 2px 2px 0 0; background: #2B96B8; }
.wf-bars i:nth-child(odd) { background: #9FD2E4; }
.wf-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.wf-news i { height: 26px; border-radius: 4px; background: #E1EEF2; }
.wf-wa { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 26px; height: 26px; border-radius: 50%; background: #25D366; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.wf-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wf-phones { display: flex; align-items: flex-end; gap: 14px; }
.wf-phone { width: 170px; padding: 8px; border-radius: 26px; background: #0E2A33; box-shadow: 0 16px 34px -14px rgba(14,42,51,.55); color: #0E2A33; }
.wf-pscr { position: relative; min-height: 300px; display: flex; flex-direction: column; border-radius: 19px; overflow: hidden; background: #fff; }
.wf-notch { height: 18px; display: grid; place-items: center; }
.wf-notch i { width: 50px; height: 6px; border-radius: 3px; background: #0E2A33; }
.wf-phead { padding: 6px 10px; }
.wf-pbody { flex-grow: 1; display: flex; flex-direction: column; gap: 7px; padding: 4px 10px 10px; }
.wf-toast { position: absolute; z-index: 2; top: 20px; inset-inline: 8px; display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px rgba(14,42,51,.22); }
.wf-toast b { width: 14px; height: 14px; flex: none; border-radius: 4px; background: #2B96B8; }
.wf-toast span { flex-grow: 1; display: grid; gap: 3px; }
.wf-map { position: relative; height: 70px; border-radius: 8px; background: repeating-linear-gradient(0deg, transparent 0 13px, #DDE9EE 13px 14px), repeating-linear-gradient(90deg, transparent 0 13px, #DDE9EE 13px 14px), #F3F8FA; }
.wf-map::after { content: ""; position: absolute; left: 55%; top: 30%; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #F6B22D; }
.wf-tabs { display: flex; justify-content: space-around; padding: 8px; border-top: 1px solid #DCE6EA; }
.wf-tabs i { width: 14px; height: 14px; border-radius: 4px; background: #DCE6EA; }
.wf-tabs i:first-child { background: #2B96B8; }
.wf-os { display: flex; gap: 6px; font: 600 10px/1.4 "Poppins", sans-serif; color: var(--mu); }
.wf-os span { padding: 1px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.wf-mini { width: 150px; }
.wf-mini .wf-scr { min-height: 120px; }
.wf-sys { position: relative; display: grid; grid-template-columns: 76px 1fr; min-height: 230px; }
.wf-sidebar { display: flex; flex-direction: column; gap: 7px; padding: 10px 8px; background: #0E2A33; }
.wf-sidebar .wf-logo { background: #F6B22D; margin-bottom: 4px; }
.wf-side-item { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #CFE3EA; white-space: nowrap; overflow: hidden; }
.wf-side-item::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 2px; background: #5BC0DE; }
.wf-main { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-width: 0; }
.wf-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wf-kpi { display: flex; flex-direction: column; gap: 3px; padding: 6px; border: 1px solid #DCE6EA; border-radius: 6px; min-width: 0; }
.wf-kpi b { font-size: 11px; white-space: nowrap; }
.wf-kpi small { font-size: 8.5px; color: #4D6A76; }
.wf-table { display: grid; gap: 4px; }
.wf-table i { height: 9px; border-radius: 3px; background: #EDF3F5; }
.wf-roles { display: flex; flex-wrap: wrap; gap: 5px; }
.wf-roles span { font-size: 8.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: #E8F4F8; color: #1D7593; }
.wf-float-phone { position: absolute; bottom: 8px; inset-inline-end: 8px; width: 54px; height: 96px; padding: 4px; border-radius: 10px; background: #0E2A33; }
.wf-float-phone i { display: block; height: 100%; border-radius: 7px; background: #fff; }
.wf-nv { grid-template-columns: 64px 1fr; }
.wf-nv .wf-sidebar { align-items: center; background: #1D7593; }
.wf-nv .wf-sidebar svg { width: 28px; height: 28px; padding: 4px; margin-bottom: 4px; border-radius: 6px; background: #fff; }
.wf-nv .wf-sidebar span { width: 30px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.4); }
.wf-title { font-size: 11px; }
.wf-mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wf-mod { display: flex; align-items: center; gap: 6px; padding: 7px; border: 1px solid #DCE6EA; border-radius: 6px; font-size: 9.5px; font-weight: 600; }
.wf-mod i { width: 10px; height: 10px; flex: none; border-radius: 3px; background: #F6B22D; }
.wf-pop { animation: wf-pop .45s var(--ease) both; }
@keyframes wf-pop { from { transform: scale(.85); opacity: 0; } }


/* ---------- Small touches ---------- */
/* hero title types itself */
.hero h1.typing .tl-wrap { position: relative; display: inline-block; }
.hero h1.typing .tl { display: inline-block; clip-path: inset(-12% 100% -24% 0); animation: type-in var(--d) steps(var(--n), end) var(--delay) forwards; }
[dir="rtl"] .hero h1.typing .tl { clip-path: inset(-12% 0 -24% 100%); }
@keyframes type-in { to { clip-path: inset(-12% 0 -24% 0); } }
.hero h1.typing .tag { animation: none; }
.hero h1 .caret { position: absolute; top: 6%; bottom: 2%; inset-inline-start: 0; width: .07em; background: var(--or); opacity: 0;
  animation: caret-move var(--d) steps(var(--n), end) var(--delay) forwards, caret-show var(--d) step-end var(--delay) forwards; }
@keyframes caret-move { to { inset-inline-start: 100%; } }
@keyframes caret-show { 0%, 100% { opacity: 1; } }
.hero h1 .tl-wrap:not(:last-of-type) .caret { animation: caret-move var(--d) steps(var(--n), end) var(--delay) forwards, caret-hide var(--d) step-end var(--delay) forwards; }
@keyframes caret-hide { 0% { opacity: 1; } 100% { opacity: 0; } }
.hero h1 .tl-wrap:last-of-type .caret { animation: caret-move var(--d) steps(var(--n), end) var(--delay) forwards, caret-show var(--d) step-end var(--delay) forwards,
  caret-blink 1s step-end calc(var(--delay) + var(--d)) 3, caret-out .4s ease calc(var(--delay) + var(--d) + 3s) forwards; }
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes caret-out { to { opacity: 0; } }

/* footer extras */
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.kbd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #23434F; border-radius: 999px; background: transparent; color: #BFD6DE; font: 500 13px/1 var(--f); cursor: pointer; transition: border-color .2s, color .2s; }
.kbd-btn:hover { border-color: var(--or); color: #fff; }
kbd { font: 600 11px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; padding: 3px 6px; border-radius: 4px; background: #23434F; color: #DDEFF5; }
.speed { display: inline-flex; align-items: center; gap: 8px; }
.speed::before { content: ""; width: 7px; height: 7px; background: var(--or); transform: rotate(45deg); }

/* quick menu (Ctrl+K) */
.cmdk { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(6, 19, 26, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cmdk-box { width: min(560px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); animation: cmdk-in .22s var(--ease) both; }
@keyframes cmdk-in { from { transform: translateY(-10px) scale(.98); opacity: 0; } }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 20px; height: 20px; flex: none; color: var(--mu); }
.cmdk-in input { flex-grow: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 16px/1.4 var(--f); }
.cmdk-list { max-height: min(52vh, 420px); overflow: auto; padding: 6px; }
.cmdk-list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px; cursor: pointer; font-size: 15px; }
.cmdk-list li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--line); transform: rotate(45deg); transition: background-color .15s; }
.cmdk-list li[aria-selected="true"] { background: rgba(43,150,184,.12); }
.cmdk-list li[aria-selected="true"]::before { background: var(--or); }
.cmdk-list .cmdk-empty { cursor: default; color: var(--mu); }
.cmdk-list .cmdk-empty::before { display: none; }
.cmdk-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mu); }

.pn-toast { position: fixed; z-index: 96; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.pn-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* view this page as code */
.codeview { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: #06131A; color: #D5E6EC; animation: cv-in .35s var(--ease) both; }
@keyframes cv-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.cv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 20px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); border-bottom: 1px solid #1F3C48; background: #0B1D25; }
.cv-bar b { font-size: 15px; font-weight: 600; }
.cv-meta { font-size: 13px; color: #8FAEB9; margin-inline-end: auto; }
.cv-close { padding: 8px 14px; border: 1px solid #2B4A56; border-radius: 8px; background: transparent; color: #fff; font: 500 14px/1 var(--f); cursor: pointer; }
.cv-close:hover { border-color: var(--or); }
.cv-pre { flex-grow: 1; margin: 0; overflow: auto; padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)); font: 13px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; counter-reset: ln; tab-size: 2; }
.cv-pre code { display: block; white-space: pre; }
.cv-ln { display: block; counter-increment: ln; }
.cv-ln::before { content: counter(ln); display: inline-block; width: 3.5em; margin-inline-end: 1.2em; text-align: end; color: #3E5F6B; user-select: none; }
.cv-t { color: #6CC7E3; } .cv-a { color: #F6B22D; } .cv-s { color: #9FDDBA; } .cv-c { color: #5F7F8A; font-style: italic; }
.cv-cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--or); animation: caret-blink 1s step-end infinite; }

/* footer */
.foot { background: var(--foot); color: #BFD6DE; padding-block: 48px 36px; }
.foot .logo { font-size: 32px; gap: 14px; --mk-b: #fff; --mk-b2: #D8EEF5; }
.foot .logo-mk { width: 52px; height: 52px; }
.foot .logo .wm > span { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 32px 48px; padding-bottom: 36px; border-bottom: 1px solid #23434F; }
.foot-brand p { margin: 18px 0 0; max-width: 30ch; font-size: 14px; line-height: 1.75; color: #8FAEB9; }
.foot h3 { margin: 4px 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
[dir="rtl"] .foot h3 { letter-spacing: 0; font-size: 14px; }
.foot-col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.foot-col a { color: #BFD6DE; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-cta { align-self: start; padding: 22px; border: 1px solid #23434F; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.foot-cta b { display: block; font-size: 17px; color: #fff; }
.foot-cta p { margin: 6px 0 16px; font-size: 13.5px; line-height: 1.65; color: #8FAEB9; }
.foot-cta .btn { padding: 11px 18px; font-size: 14px; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; padding-top: 22px; }
.foot-bar small { font-size: 13px; color: #8FAEB9; }
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot-brand, .foot-cta { grid-column: 1 / -1; }
  .foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
  .foot-cta p { margin: 0; flex: 1 1 260px; }
  .foot-cta b { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot h3 { margin-bottom: 12px; }
  .foot-col ul { gap: 9px; }
  .foot .logo { font-size: 28px; }
  .foot .logo-mk { width: 46px; height: 46px; }
  .foot-cta .btn { width: 100%; justify-content: center; margin-top: 8px; }
  .foot-bar { flex-direction: column-reverse; align-items: flex-start; }
}

/* floating WhatsApp */
.wa-float { position: fixed; z-index: 30; inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); transition: transform .3s var(--ease); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Scroll-driven reveals (progressive enhancement) ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes reveal { from { opacity: .15; transform: translateY(48px) scale(.98); } }
  .svc .card:nth-child(3n+2) { animation-range: entry 8% entry 78%; }
  .svc .card:nth-child(3n) { animation-range: entry 16% entry 86%; }
  .stairs li { animation: climb linear both; animation-timeline: view(); }
  .stairs li:nth-child(1) { animation-range: entry 0% cover 30%; }
  .stairs li:nth-child(2) { animation-range: entry 10% cover 36%; }
  .stairs li:nth-child(3) { animation-range: entry 20% cover 42%; }
  .stairs li:nth-child(4) { animation-range: entry 30% cover 48%; }
  @keyframes climb { from { clip-path: polygon(0 55%, 50% 55%, 100% 55%, 100% 100%, 0 100%); } to { clip-path: var(--cap); } }
  .app-chart i { animation: bar linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  @keyframes bar { from { transform: scaleY(.25); } }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .head, .nv-grid, .tenants, .why-grid, .faq-grid { grid-template-columns: 1fr; }
  .planner { grid-template-columns: 1fr; }
  .pl-side { position: static; }
  .nv-features { grid-template-columns: repeat(2, 1fr); }
  .mark3d { width: min(70%, 300px); justify-self: start; order: -1; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .stairs { grid-template-columns: repeat(2, 1fr); }
  .stairs li { min-height: 0 !important; }
  .nv-grid { gap: 48px; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .links {
    position: absolute; top: 100%; inset-inline: 0; margin: 0; flex-direction: column; gap: 0;
    background: var(--surface); color: var(--text); padding: 8px 24px 20px; box-shadow: 0 20px 30px -20px rgba(14,42,51,.5);
    display: none;
  }
  .links.open { display: flex; }
  .links a { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-actions { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .block { padding-block: 72px; }
  .svc, .stairs, .why-list, .nv-features, .t-list { grid-template-columns: 1fr; }
  .novium { padding-block: 80px; }
  .nv-wm { font-size: 40px; }
  .nv-icon { width: 46px; height: 46px; }
  .tenants { padding: 22px; }
  .hero { padding-bottom: 120px; margin-bottom: -80px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%); }
  [dir="rtl"] .hero { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 70px)); }
  .ribbons { height: 150px; }
  .rib-o { display: none; }
  .r-bl { top: 76px; }
  .track span { font-size: 16px; }
  .endmark { width: 96px; }
  .plan-head, [dir="rtl"] .plan-head { grid-template-columns: 1fr; gap: 16px; }
  .plan-head .endmark { order: -1; justify-self: right; }
  .pl-kinds, .pl-fields { grid-template-columns: 1fr; }
  .pl-box { padding: 18px 16px 20px; }
  .pl-stage { padding: 12px; min-height: 260px; }
  .devices { padding-inline-end: 34px; }
  .logo { font-size: 20px; }
  .lang { padding: 8px 11px; }
  .theme { width: 36px; height: 36px; }
  .nav-actions { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
