/* ==========================================================================
   AlNour Tech — main stylesheet (mobile-first, RTL/LTR via logical properties)
   ========================================================================== */

:root {
  --c-primary: #0099ff; --c-secondary: #00e0ff; --c-accent: #7b61ff;
  --c-primary-rgb: 0,153,255; --c-secondary-rgb: 0,224,255; --c-accent-rgb: 123,97,255;
  --bg: #04060d; --bg-2: #080d1a; --bg-3: #0c1324;
  --surface: rgba(255,255,255,.035); --surface-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #eaf2ff; --muted: #8e9ab4; --dim: #5d6984;
  --grad: linear-gradient(120deg, var(--c-secondary), var(--c-primary) 45%, var(--c-accent));
  --radius: 22px; --radius-sm: 14px;
  --ease: cubic-bezier(.22,1,.36,1);
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-head: "Readex Pro", system-ui, sans-serif;
  --gutter: 20px; --header-h: 76px;
  --safe-top: env(safe-area-inset-top, 0px);
  --dock-h: 0px;
}
.lang-en { --font-head: "Space Grotesk", "Readex Pro", system-ui, sans-serif; }
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.75; font-weight: 300; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.lang-en body, body.lang-en { line-height: 1.65; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.lang-en h1, .lang-en h2 { letter-spacing: -.03em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(var(--c-primary-rgb), .5); color: #fff; }
:focus-visible { outline: 2px solid var(--c-secondary); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: -100px; inset-inline-start: 16px; z-index: 1000; background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
[dir=rtl] .flip-rtl { transform: scaleX(-1); }
.ico { flex: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: gradShift 6s linear infinite; }
@keyframes gradShift { to { background-position: 200% center; } }

/* Grain overlay */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: grid; place-items: center; }
.preloader-inner { display: grid; justify-items: center; gap: 22px; }
.preloader-mark { width: 110px; color: #fff; overflow: visible; }
.preloader-mark path { stroke: currentColor; stroke-width: 6; fill-opacity: 0; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: drawMark .9s var(--ease) forwards; }
.preloader-mark .mark-n { stroke: var(--c-primary); animation-delay: .12s; }
@keyframes drawMark { 70% { fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
.preloader-bar { width: 160px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0; background: var(--grad); }
.preloader-count { font-family: "Space Grotesk", monospace; font-size: 13px; color: var(--muted); letter-spacing: .2em; }
body:not(.has-preloader) .preloader { display: none; }
.is-loaded .preloader { pointer-events: none; }

/* ---------- Cursor (desktop) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 998; opacity: 0; transition: opacity .4s; }
  .has-cursor .cursor.is-on { opacity: 1; }
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
  .cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; }
  .cursor-label { font-size: 11px; font-weight: 500; opacity: 0; transition: opacity .2s; white-space: nowrap; color: #fff; }
  .cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(var(--c-primary-rgb), .12); border-color: rgba(var(--c-primary-rgb), .6); }
  .cursor.is-label .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--c-primary); border-color: transparent; }
  .cursor.is-label .cursor-label { opacity: 1; }
  .cursor.is-label .cursor-dot { opacity: 0; }
}

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 101; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--c-primary); }
[dir=rtl] .scroll-progress span { transform-origin: 100% 50%; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding-inline: 26px; border-radius: 100px; font-weight: 500; font-size: 15px; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s var(--ease); white-space: nowrap; }
.btn-bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; }
.btn--primary { color: #fff; box-shadow: 0 10px 30px -10px rgba(var(--c-primary-rgb), .8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary .btn-bg { background: linear-gradient(120deg, var(--c-primary), var(--c-accent) 60%, var(--c-primary)); background-size: 200% 100%; transition: background-position .6s var(--ease); }
.btn--primary:hover .btn-bg { background-position: 100% 0; }
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(var(--c-primary-rgb), 1); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(var(--c-primary-rgb), .6); background: rgba(var(--c-primary-rgb), .08); }
.btn--light { background: #fff; color: #050812; }
.btn--light:hover { box-shadow: 0 14px 40px -12px rgba(255,255,255,.6); }
.btn--sm { height: 42px; padding-inline: 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-ico { display: inline-flex; transition: transform .4s var(--ease); }
.btn:hover .btn-ico { transform: translateX(4px); }
[dir=rtl] .btn:hover .btn-ico { transform: translateX(-4px); }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn-ico { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; inset-inline: 0; z-index: 100; height: calc(var(--header-h) + var(--safe-top)); padding-top: var(--safe-top);transition: transform .5s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(4,6,13,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.logo-mark { width: 38px; height: auto; color: #fff; transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-word { display: flex; flex-direction: column; line-height: 1; direction: ltr; }
.logo-word b { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .04em; }
.logo-word i { font-style: normal; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 10px; letter-spacing: .55em; color: var(--c-primary); margin-top: 3px; }
.logo-img { height: 40px; width: auto; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.025); backdrop-filter: blur(10px); }
.nav-link { position: relative; display: block; padding: 8px 16px; font-size: 14px; color: var(--muted); border-radius: 100px; transition: color .3s, background .3s; }
.nav-link span { display: block; position: relative; }
.nav-link::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--c-secondary); box-shadow: 0 0 8px var(--c-secondary); opacity: 0; transform: translateY(4px); transition: .35s var(--ease); }
.nav-link:hover { color: #fff; }
.nav-link:hover::after { opacity: 1; transform: none; }
.nav-link.is-active { color: #fff; background: rgba(var(--c-primary-rgb), .14); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding-inline: 14px; border-radius: 100px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: border-color .3s, background .3s; }
.lang-switch:hover { border-color: var(--c-primary); background: rgba(var(--c-primary-rgb), .1); }
.lang-switch--text { border: 0; height: auto; padding: 0; color: var(--muted); }
.header-cta { display: none; }
.burger { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-content: center; gap: 6px; position: relative; z-index: 2; background: rgba(255,255,255,.03); }
.burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .5s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 1100px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .burger { display: none; }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 99; visibility: hidden; pointer-events: none; }
.menu-open .mobile-menu { visibility: visible; pointer-events: auto; }
.mm-bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(var(--c-primary-rgb), .25), transparent 60%), radial-gradient(100% 70% at 0% 100%, rgba(var(--c-accent-rgb), .22), transparent 60%), var(--bg); clip-path: circle(0% at calc(100% - 44px) calc(38px + var(--safe-top))); transition: clip-path .8s var(--ease); }
html[dir=rtl] .mm-bg { clip-path: circle(0% at 44px calc(38px + var(--safe-top))); }
.menu-open .mm-bg { clip-path: circle(150% at calc(100% - 44px) calc(38px + var(--safe-top))); }
html[dir=rtl].menu-open .mm-bg { clip-path: circle(150% at 44px calc(38px + var(--safe-top))); }
.mm-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; padding: calc(var(--header-h) + var(--safe-top) + 24px) var(--gutter) calc(30px + env(safe-area-inset-bottom)); }
.mm-links li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mm-links a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; transform: translateY(110%); transition: transform .7s var(--ease); }
.menu-open .mm-links a { transform: none; }
.mm-links li:nth-child(1) a { transition-delay: .15s; } .mm-links li:nth-child(2) a { transition-delay: .2s; } .mm-links li:nth-child(3) a { transition-delay: .25s; }
.mm-links li:nth-child(4) a { transition-delay: .3s; } .mm-links li:nth-child(5) a { transition-delay: .35s; } .mm-links li:nth-child(6) a { transition-delay: .4s; } .mm-links li:nth-child(7) a { transition-delay: .45s; }
.mm-num { font-family: "Space Grotesk", monospace; font-size: 12px; color: var(--c-primary); }
.mm-label { font-family: var(--font-head); font-size: clamp(28px, 8vw, 44px); font-weight: 600; }
.mm-foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; color: var(--muted); opacity: 0; transform: translateY(20px); transition: .6s var(--ease) .45s; }
.menu-open .mm-foot { opacity: 1; transform: none; }
.mm-lang { display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line-2); color: #fff; }

/* Socials */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); transition: .3s var(--ease); }
.socials a:hover { color: #fff; background: var(--c-primary); border-color: var(--c-primary); transform: translateY(-3px); }

/* ---------- Mobile dock ---------- */
.dock { position: fixed; bottom: calc(12px + env(safe-area-inset-bottom)); inset-inline: 12px; z-index: 95; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: 64px; padding: 0 6px; border-radius: 22px; background: rgba(10,15,30,.78); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); transform: translateY(140%); transition: transform .6s var(--ease); }
.dock.is-visible { transform: none; }
.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px; font-size: 10.5px; color: var(--muted); transition: color .3s; }
.dock a:active { color: #fff; }
.dock a.is-active { color: #fff; }
.dock a.is-active .ico { color: var(--c-primary); }
.dock-main { position: relative; }
.dock-fab { width: 52px; height: 52px; margin-top: -28px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 24px -6px rgba(var(--c-primary-rgb), .9); animation: fabPulse 2.6s ease-in-out infinite; }
@keyframes fabPulse { 0%,100% { box-shadow: 0 10px 24px -6px rgba(var(--c-primary-rgb), .9), 0 0 0 0 rgba(var(--c-primary-rgb), .5); } 50% { box-shadow: 0 10px 24px -6px rgba(var(--c-primary-rgb), .9), 0 0 0 10px rgba(var(--c-primary-rgb), 0); } }
@media (min-width: 768px) { .dock { display: none; } }
@media (max-width: 767px) { body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: 90px; }
@media (min-width: 1024px) { .section { padding-block: 140px; } }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { margin-inline: auto; }
@media (min-width: 1024px) { .sec-head { margin-bottom: 70px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 100px; border: 1px solid rgba(var(--c-primary-rgb), .3); background: rgba(var(--c-primary-rgb), .07); color: var(--c-secondary); font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-secondary); box-shadow: 0 0 10px var(--c-secondary); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.sec-title { font-size: clamp(30px, 6.4vw, 58px); }
.sec-sub { margin-top: 18px; color: var(--muted); font-size: clamp(15px, 2vw, 18px); max-width: 640px; }
.sec-head--center .sec-sub { margin-inline: auto; }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; }

/* Cards */
.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--c-primary-rgb), .7), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.card-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--c-primary-rgb), .12), transparent 45%); opacity: 0; transition: opacity .4s; }
.card:hover::before, .card:hover .card-glow { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + var(--safe-top) + 30px) 0 90px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.hero-aurora .a1 { width: 55vmax; height: 55vmax; background: radial-gradient(circle, rgba(var(--c-primary-rgb), .55), transparent 65%); top: -20vmax; inset-inline-end: -15vmax; animation: float1 18s ease-in-out infinite; }
.hero-aurora .a2 { width: 45vmax; height: 45vmax; background: radial-gradient(circle, rgba(var(--c-accent-rgb), .45), transparent 65%); bottom: -20vmax; inset-inline-start: -15vmax; animation: float2 22s ease-in-out infinite; }
.hero-aurora .a3 { width: 30vmax; height: 30vmax; background: radial-gradient(circle, rgba(var(--c-secondary-rgb), .3), transparent 65%); top: 30%; left: 40%; animation: float1 26s ease-in-out infinite reverse; }
@keyframes float1 { 50% { transform: translate(-8vmax, 6vmax) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(8vmax, -6vmax) scale(1.15); } }
.hero-grid { position: absolute; inset: auto 0 0 0; height: 55%; z-index: 0; pointer-events: none; perspective: 600px; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 40%, #000 70%, transparent); mask: linear-gradient(transparent, #000 40%, #000 70%, transparent); }
.hero-grid::before { content: ""; position: absolute; inset: 0 -50%; background-image: linear-gradient(rgba(var(--c-primary-rgb), .18) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--c-primary-rgb), .18) 1px, transparent 1px); background-size: 60px 60px; transform: rotateX(62deg); transform-origin: 50% 100%; animation: gridMove 4s linear infinite; }
@keyframes gridMove { to { background-position: 0 60px; } }
.hero-inner { position: relative; z-index: 2; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 30px; } }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 100px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); font-size: 13px; color: var(--text); backdrop-filter: blur(10px); margin-bottom: 26px; }
[dir=rtl] .hero-badge { padding: 8px 12px 8px 16px; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22e3a1; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #22e3a1; animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.hero-title { font-size: clamp(38px, 9.5vw, 86px); font-weight: 700; line-height: 1.15; }
.lang-en .hero-title { line-height: 1.02; }
.ht-line { display: block; }
.ht-rotator { position: relative; display: grid; overflow: hidden; padding-block: .06em; }
.ht-word { grid-area: 1 / 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: gradShift 6s linear infinite; opacity: 0; transform: translateY(70%); transition: transform .55s var(--ease), opacity .3s ease; visibility: hidden; text-wrap: balance; }
@media (min-width: 768px) { .ht-word { white-space: nowrap; } }
/* Sequential swap: the old word leaves first, the new one enters after it — never overlapping */
.ht-word.is-active { opacity: 1; transform: none; visibility: visible; transition: transform .7s var(--ease) .38s, opacity .45s ease .38s, visibility 0s .38s; }
.ht-word.is-out { opacity: 0; transform: translateY(-70%); visibility: visible; transition: transform .4s cubic-bezier(.55,0,.75,0), opacity .3s ease, visibility 0s .4s; }
.hero-sub { margin-top: 24px; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 480px) { .hero-ctas .btn { flex: 1 1 100%; } }

.hero-visual { position: relative; height: 380px; }
@media (min-width: 768px) { .hero-visual { height: 520px; } }
.orb-stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1000px; }
.orb { position: relative; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; z-index: 2; }
@media (min-width: 768px) { .orb { width: 240px; height: 240px; } }
.orb-glass { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 30%), radial-gradient(circle at 70% 80%, rgba(var(--c-accent-rgb), .55), transparent 55%), radial-gradient(circle at 50% 50%, rgba(var(--c-primary-rgb), .55), rgba(5,8,18,.9) 70%); box-shadow: 0 0 80px rgba(var(--c-primary-rgb), .55), inset 0 0 40px rgba(var(--c-secondary-rgb), .4), inset 0 -20px 60px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.18); animation: orbBreath 6s ease-in-out infinite; }
@keyframes orbBreath { 50% { box-shadow: 0 0 120px rgba(var(--c-primary-rgb), .75), inset 0 0 50px rgba(var(--c-secondary-rgb), .5), inset 0 -20px 60px rgba(0,0,0,.6); } }
.orb-mark { position: relative; width: 52%; color: #fff; filter: drop-shadow(0 0 18px rgba(var(--c-primary-rgb), .9)); animation: markFloat 5s ease-in-out infinite; }
.orb-mark .mark-n { fill: var(--c-secondary); }
@keyframes markFloat { 50% { transform: translateY(-8px) rotate(-3deg); } }
.orb-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(var(--c-primary-rgb), .3); transform-style: preserve-3d; }
.orb-ring span { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c-secondary); box-shadow: 0 0 16px var(--c-secondary), 0 0 4px #fff; }
.orb-ring.r1 { width: 260px; height: 260px; transform: rotateX(70deg); animation: ring1 9s linear infinite; }
.orb-ring.r2 { width: 330px; height: 330px; transform: rotateX(70deg) rotateY(30deg); animation: ring2 14s linear infinite; border-style: dashed; border-color: rgba(var(--c-accent-rgb), .35); }
.orb-ring.r2 span { background: var(--c-accent); box-shadow: 0 0 16px var(--c-accent); }
.orb-ring.r3 { width: 200px; height: 200px; transform: rotateY(70deg); animation: ring3 11s linear infinite; border-color: rgba(var(--c-secondary-rgb), .25); }
@media (min-width: 768px) { .orb-ring.r1 { width: 380px; height: 380px; } .orb-ring.r2 { width: 480px; height: 480px; } .orb-ring.r3 { width: 300px; height: 300px; } }
@keyframes ring1 { to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes ring2 { to { transform: rotateX(70deg) rotateY(30deg) rotateZ(-360deg); } }
@keyframes ring3 { to { transform: rotateY(70deg) rotateZ(360deg); } }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(12,18,36,.65); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -15px rgba(0,0,0,.7); font-size: 12px; white-space: nowrap; will-change: transform; }
[dir=rtl] .chip { padding: 10px 10px 10px 14px; }
.chip-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(var(--c-primary-rgb), .35), rgba(var(--c-accent-rgb), .25)); color: #fff; }
.chip-txt { display: flex; flex-direction: column; line-height: 1.35; }
.chip-txt b { font-weight: 600; font-size: 13px; }
.chip-txt small { color: var(--muted); font-size: 11px; }
.chip-1 { top: 8%; inset-inline-start: 0; animation: chipFloat 6s ease-in-out infinite; }
.chip-2 { bottom: 12%; inset-inline-end: 0; animation: chipFloat 7s ease-in-out infinite -2s; }
.chip-3 { top: 52%; inset-inline-start: -2%; animation: chipFloat 8s ease-in-out infinite -4s; }
@media (min-width: 768px) { .chip-1 { top: 10%; inset-inline-start: 6%; } .chip-3 { top: auto; bottom: 4%; inset-inline-start: 10%; } .chip-2 { bottom: auto; top: 40%; inset-inline-end: 0; } }
@keyframes chipFloat { 50% { translate: 0 -14px; } }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: none; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
@media (min-width: 768px) { .scroll-cue { display: flex; } }
.sc-mouse { width: 24px; height: 38px; border-radius: 12px; border: 1.5px solid var(--line-2); display: flex; justify-content: center; padding-top: 7px; }
.sc-mouse span { width: 3px; height: 7px; border-radius: 3px; background: var(--c-secondary); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ---------- Tech marquee ---------- */
.tech { position: relative; padding-block: 50px; border-block: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(var(--c-primary-rgb), .03), transparent); }
.tech-title { text-align: center; color: var(--dim); font-size: 13px; letter-spacing: .1em; margin-bottom: 26px; text-transform: uppercase; }
.marquee { position: relative; overflow: hidden; direction: ltr; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: marquee 40s linear infinite; }
.marquee--rev .marquee-track { animation-direction: reverse; }
.marquee--slow .marquee-track { animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .3s, border-color .3s; }
.marquee-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.marquee-item:hover { color: #fff; border-color: rgba(var(--c-primary-rgb), .5); }

/* ---------- Services bento ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(4, 1fr); gap: 18px; } .svc--featured { grid-column: span 2; } }
.svc { display: flex; flex-direction: column; padding: 28px; min-height: 260px; transition: transform .5s var(--ease), border-color .4s; transform-style: preserve-3d; }
.svc:hover { border-color: rgba(var(--c-primary-rgb), .25); }
.svc-num { position: absolute; top: 22px; inset-inline-end: 24px; font-family: "Space Grotesk", monospace; font-size: 13px; color: var(--dim); }
.svc-ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 26px; color: #fff; background: linear-gradient(135deg, rgba(var(--c-primary-rgb), .3), rgba(var(--c-accent-rgb), .18)); border: 1px solid rgba(var(--c-primary-rgb), .3); box-shadow: 0 10px 30px -10px rgba(var(--c-primary-rgb), .6); transition: transform .6s var(--ease); }
.svc:hover .svc-ico { transform: translateY(-4px) rotate(-6deg) scale(1.05); }
.svc-title { font-size: 21px; margin-bottom: 10px; }
.svc-text { color: var(--muted); font-size: 15px; }
.svc-points { margin-top: 18px; display: grid; gap: 8px; }
.svc-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.svc-points .ico { color: var(--c-secondary); }
.svc--featured { background: radial-gradient(120% 120% at 100% 0%, rgba(var(--c-primary-rgb), .22), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border-color: rgba(var(--c-primary-rgb), .22); }
.svc--featured .svc-title { font-size: 26px; }
@media (min-width: 1024px) { .svc--featured .svc-points { grid-template-columns: 1fr 1fr; } }
.svc-more { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--c-secondary); font-weight: 500; font-size: 14px; }

/* ---------- E-commerce ---------- */
.ecom { overflow: hidden; }
.ecom-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 80% 50%, rgba(var(--c-primary-rgb), .16), transparent 70%), radial-gradient(40% 40% at 10% 20%, rgba(var(--c-accent-rgb), .1), transparent 70%); }
.ecom-inner { display: grid; gap: 60px; align-items: center; }
@media (min-width: 1024px) { .ecom-inner { grid-template-columns: 1fr 1fr; gap: 60px; } }
.ecom-features { display: grid; gap: 12px; margin-bottom: 30px; }
@media (min-width: 640px) { .ecom-features { grid-template-columns: 1fr 1fr; } }
/* Mobile: heading → live phone → swipeable features */
@media (max-width: 1023px) {
  .ecom-inner { gap: 0; }
  .ecom-copy { display: contents; }
  .ecom .sec-head { order: 1; margin-bottom: 10px; }
  .ecom-visual { order: 2; margin-bottom: 30px; }
  .ecom-features { order: 3; }
  .ecom-copy > .platforms { order: 4; }
  .ecom-copy > [data-reveal]:last-child { order: 5; }
}
@media (max-width: 639px) {
  .ecom-features { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .ecom-features::-webkit-scrollbar { display: none; }
  .ef { flex: 0 0 78%; scroll-snap-align: start; flex-direction: column; }
}
.ef { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, background .3s, transform .4s var(--ease); }
.ef:hover { border-color: rgba(var(--c-primary-rgb), .35); background: rgba(var(--c-primary-rgb), .05); transform: translateY(-3px); }
.ef-ico { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; color: var(--c-secondary); background: rgba(var(--c-primary-rgb), .12); }
.ef h3 { font-size: 16px; margin-bottom: 4px; }
.ef p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 30px; }
.platforms-lbl { font-size: 13px; color: var(--dim); margin-inline-end: 6px; }
.pill { padding: 6px 14px; border-radius: 100px; font-size: 13px; border: 1px solid var(--line-2); font-family: "Space Grotesk", sans-serif; color: var(--text); background: rgba(255,255,255,.02); }

.ecom-visual { position: relative; height: 560px; display: grid; place-items: center; }
@media (min-width: 768px) { .ecom-visual { height: 640px; } }
.phone { position: relative; width: 270px; height: 550px; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #1d2740, #0a0f1c); box-shadow: 0 0 0 1.5px rgba(255,255,255,.12), 0 50px 100px -30px rgba(var(--c-primary-rgb), .55), 0 30px 60px -20px rgba(0,0,0,.8), inset 0 0 0 2px #05070f; z-index: 2; transform-style: preserve-3d; }
@media (min-width: 768px) { .phone { width: 300px; height: 610px; } }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 20px; background: #000; z-index: 5; }
.phone-screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: linear-gradient(180deg, #0d1426, #070b16); padding: 52px 14px 14px; direction: inherit; }
.ps-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ps-store { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
.ps-mark { width: 20px; color: #fff; }
.ps-cart { position: relative; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.ps-badge { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ff4d7a; font-size: 10px; display: grid; place-items: center; font-weight: 600; transition: transform .3s var(--ease); }
.ps-badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }
.ps-search { display: flex; align-items: center; gap: 8px; height: 36px; padding-inline: 12px; border-radius: 12px; background: rgba(255,255,255,.05); color: var(--dim); font-size: 11.5px; margin-bottom: 12px; }
.ps-banner { position: relative; height: 104px; border-radius: 16px; overflow: hidden; background: linear-gradient(120deg, var(--c-primary), var(--c-accent)); padding: 16px; margin-bottom: 12px; }
.ps-banner span { display: block; border-radius: 4px; background: rgba(255,255,255,.9); }
.psb-t1 { width: 55%; height: 10px; margin-bottom: 7px; }
.psb-t2 { width: 38%; height: 7px; opacity: .6; margin-bottom: 14px; }
.psb-btn { width: 64px !important; height: 22px; border-radius: 11px !important; background: #fff !important; }
.psb-shape { position: absolute; width: 90px !important; height: 90px; border-radius: 50% !important; background: rgba(255,255,255,.18) !important; top: -10px; inset-inline-end: -14px; animation: markFloat 4s ease-in-out infinite; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-prod { border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); padding: 8px; transition: transform .3s var(--ease), border-color .3s; }
.ps-prod.is-tapped { transform: scale(.95); border-color: var(--pc); }
.pp-img { height: 74px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--pc) 70%, white 10%), color-mix(in srgb, var(--pc) 35%, #070b16)); margin-bottom: 8px; }
@media (min-width: 768px) { .pp-img { height: 92px; } }
.pp-line { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); margin-bottom: 5px; }
.pp-line.short { width: 60%; }
.pp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12px; font-family: "Space Grotesk", sans-serif; }
.pp-add { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--pc); color: #fff; }
.ps-toast { position: absolute; bottom: 18px; left: 50%; transform: translate(-50%, 80px); display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; background: #fff; color: #06101f; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .5s var(--ease); }
.ps-toast .ico { color: #12b76a; }
.ps-toast.show { transform: translate(-50%, 0); }
.ps-tap { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgba(255,255,255,.35); border: 2px solid rgba(255,255,255,.8); opacity: 0; pointer-events: none; top: 0; left: 0; transition: top .6s var(--ease), left .6s var(--ease), opacity .3s; z-index: 4; }
.ps-tap.show { opacity: 1; }
.ps-tap.press { animation: tap .4s ease; }
@keyframes tap { 50% { transform: scale(.7); } }

.float-card { position: absolute; z-index: 3; border-radius: 18px; background: rgba(12,18,36,.7); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); padding: 14px 16px; will-change: transform; }
.fc-sales { width: 200px; top: 6%; inset-inline-start: 0; }
@media (min-width: 768px) { .fc-sales { width: 230px; inset-inline-start: -2%; } }
.fc-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.fc-up { color: #22e3a1; font-weight: 600; }
.fc-value { font-family: "Space Grotesk", sans-serif; font-size: 26px; font-weight: 700; direction: ltr; text-align: start; }
[dir=rtl] .fc-value { text-align: end; }
.fc-chart { width: 100%; height: 50px; margin-top: 6px; overflow: visible; }
.fc-line { stroke-dasharray: 400; stroke-dashoffset: 400; }
.is-inview .fc-line { animation: dash 2.2s var(--ease) forwards .3s; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.fc-orders { width: 220px; bottom: 8%; inset-inline-end: 0; padding: 10px; min-height: 70px; }
@media (min-width: 768px) { .fc-orders { inset-inline-end: -2%; width: 240px; } }
.fo-list { display: grid; gap: 8px; }
.fo-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: 12px; animation: foIn .6s var(--ease); }
@keyframes foIn { from { opacity: 0; transform: translateY(-14px) scale(.95); } }
.fo-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(34,227,161,.15); color: #22e3a1; flex: none; }
.fo-item b { display: block; font-weight: 600; }
.fo-item small { color: var(--muted); font-family: "Space Grotesk", sans-serif; }
.fc-pay { top: 48%; inset-inline-end: 2%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 12px; }
@media (max-width: 767px) {
  .fc-pay { display: none; }
  .fc-sales { width: 160px; top: 2%; inset-inline-start: -6px; padding: 10px 12px; }
  .fc-value { font-size: 20px; }
  .fc-chart { height: 34px; }
  .fc-orders { width: 190px; inset-inline-end: -6px; bottom: 4%; }
  .fo-item:nth-child(n+3) { display: none; }
}
.fp-ico { color: var(--c-secondary); }
.fp-dots { display: flex; gap: 4px; }
.fp-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.fp-ok { display: inline-flex; gap: 4px; align-items: center; color: #22e3a1; font-weight: 600; }

/* ---------- Work rail ---------- */
.work { overflow: hidden; }
.work-rail { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.work-rail::-webkit-scrollbar { display: none; }
.work-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.work-rail.is-dragging * { pointer-events: none; }
.work-track { display: flex; gap: 18px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); padding-block: 10px 20px; }
.shot { width: min(82vw, 420px); scroll-snap-align: center; flex: none; }
@media (min-width: 1024px) { .shot { width: 460px; } }
button.shot-browser { display: block; width: 100%; padding: 0; text-align: start; cursor: zoom-in; font: inherit; color: inherit; }
.sb-view { display: block; }
.sb-bar span .ico { display: inline; vertical-align: -1px; margin-inline-end: 4px; color: #28c840; }
.sb-zoom { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(5,8,18,.75); backdrop-filter: blur(8px); color: #fff; border: 1px solid var(--line-2); opacity: 0; transform: scale(.7); transition: .4s var(--ease); }
.shot:hover .sb-zoom { opacity: 1; transform: none; }
@media (hover: none) { .sb-zoom { opacity: 1; transform: none; } }
.shot-idx { font-family: "Space Grotesk", monospace; color: var(--dim); margin-inline-end: 8px; }
.shot-browser { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #0b1122; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.shot:hover .shot-browser { transform: translateY(-8px); box-shadow: 0 40px 80px -30px rgba(var(--c-primary-rgb), .45); }
.sb-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); direction: ltr; }
.sb-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .sb-bar i:nth-child(2) { background: #febc2e; } .sb-bar i:nth-child(3) { background: #28c840; }
.sb-bar span { flex: 1; margin-inline-start: 10px; font-size: 11px; color: var(--dim); background: rgba(255,255,255,.04); border-radius: 6px; padding: 2px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-view { height: 300px; overflow: hidden; position: relative; }
@media (min-width: 1024px) { .sb-view { height: 340px; } }
.sb-view img { width: 100%; height: auto; transform: translateY(0); transition: transform 6s cubic-bezier(.45,0,.55,1); user-select: none; }
.shot:hover .sb-view img, .shot.is-auto .sb-view img { transform: translateY(calc(-100% + 300px)); }
@media (min-width: 1024px) { .shot:hover .sb-view img { transform: translateY(calc(-100% + 340px)); } }
/* Short (non full-page) screenshots: fill the frame and zoom gently instead of scrolling */
.shot.is-short .sb-view { height: auto; aspect-ratio: 3 / 2; }
.shot.is-short .sb-view img { height: 100%; object-fit: cover; object-position: top center; transform: none !important; transition: scale 1.2s var(--ease); }
.shot.is-short:hover .sb-view img { scale: 1.06; }
.shot-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 4px 0; }
.shot-cat { font-size: 12px; color: var(--c-secondary); }
.shot-meta h3 { font-size: 19px; }
.shot-meta p { font-size: 14px; color: var(--muted); }
.shot-link { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); transition: .4s var(--ease); }
.shot-link:hover { background: var(--c-primary); border-color: var(--c-primary); transform: rotate(-45deg); }
[dir=rtl] .shot-link:hover { transform: rotate(45deg); }
.work-progress { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.wp-bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wp-bar i { display: block; height: 100%; width: 20%; background: var(--grad); transform-origin: 0 0; }
[dir=rtl] .wp-bar i { margin-inline-start: auto; }
.wp-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); }

/* ---------- Stats ---------- */
.stats { padding-block: 30px 60px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 30px 20px; text-align: center; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: auto 20% 0; height: 1px; background: var(--grad); opacity: 0; transition: opacity .4s; }
.stat:hover::after { opacity: 1; }
.stat-num { font-family: "Space Grotesk", sans-serif; font-size: clamp(34px, 6vw, 56px); font-weight: 700; line-height: 1.1; background: linear-gradient(180deg, #fff, #9fb4d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-lbl { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 22px; padding-inline-start: 34px; }
.tl-line { position: absolute; top: 10px; bottom: 10px; inset-inline-start: 22px; width: 2px; background: var(--line); }
.tl-line i { display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: 50% 0; transform: scaleY(0); box-shadow: 0 0 12px var(--c-primary); }
.tl-step { position: relative; }
.tl-node { position: absolute; inset-inline-start: -34px; top: 18px; width: 46px; height: 46px; margin-inline-start: -11px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--muted); z-index: 2; transition: .5s var(--ease); }
.tl-step.is-active .tl-node { background: var(--c-primary); color: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 6px rgba(var(--c-primary-rgb), .15), 0 0 30px rgba(var(--c-primary-rgb), .6); }
.tl-card { padding: 24px; margin-inline-start: 26px; }
.tl-num { font-family: "Space Grotesk", monospace; font-size: 13px; color: var(--c-primary); }
.tl-card h3 { font-size: 20px; margin: 6px 0 8px; }
.tl-card p { color: var(--muted); font-size: 15px; }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(4, 1fr); padding: 60px 0 0; gap: 20px; }
  .tl-line { top: 22px; bottom: auto; inset-inline: 0; width: auto; height: 2px; }
  .tl-line i { transform-origin: 0 50%; transform: scaleX(0); }
  [dir=rtl] .tl-line i { transform-origin: 100% 50%; }
  .tl-node { top: -60px; inset-inline-start: 0; margin: 0; }
  .tl-card { margin: 0; }
}

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.why-card { padding: 30px 26px; transition: transform .5s var(--ease); }
.why-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; color: var(--c-secondary); background: radial-gradient(circle, rgba(var(--c-primary-rgb), .25), rgba(var(--c-primary-rgb), .05)); border: 1px solid rgba(var(--c-primary-rgb), .25); position: relative; }
.why-ico::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(var(--c-primary-rgb), .3); animation: spin 14s linear infinite; }
.why-card h3 { font-size: 19px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 15px; }

/* ---------- Testimonials ---------- */
.t-marquee .marquee-track { gap: 18px; padding-block: 10px; }
.tcard { width: min(80vw, 380px); padding: 26px; flex: none; margin: 0; white-space: normal; }
.t-stars { display: flex; gap: 3px; color: #ffc547; margin-bottom: 14px; }
.t-stars .ico { fill: currentColor; }
.tcard blockquote { margin: 0 0 20px; font-size: 15.5px; color: var(--text); }
.tcard figcaption { display: flex; align-items: center; gap: 12px; }
.t-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--grad); font-weight: 700; }
.t-av img { width: 100%; height: 100%; object-fit: cover; }
.tcard b { display: block; font-weight: 600; }
.tcard small { color: var(--muted); }
.t-marquee .tcard { direction: inherit; }
html[dir=rtl] .t-marquee .tcard { direction: rtl; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; gap: 30px; }
@media (min-width: 1024px) { .faq-inner { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; } .faq .sec-head { position: sticky; top: 120px; } }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(var(--c-primary-rgb), .35); background: rgba(var(--c-primary-rgb), .04); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 500; font-size: 16.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: .4s var(--ease); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--c-primary); border-color: var(--c-primary); transform: rotate(180deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-a { padding: 0 22px 22px; color: var(--muted); overflow: hidden; }

/* ---------- CTA ---------- */
.cta { padding-block: 40px 90px; }
.cta-box { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 70px 24px; border-radius: 32px; background: radial-gradient(80% 120% at 50% 0%, rgba(var(--c-secondary-rgb), .35), transparent 60%), linear-gradient(135deg, var(--c-primary), var(--c-accent)); box-shadow: 0 40px 100px -40px rgba(var(--c-primary-rgb), .9); }
@media (min-width: 768px) { .cta-box { padding: 100px 40px; } }
.cta-beams { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta-beams span { position: absolute; top: -50%; width: 30%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transform: rotate(20deg); animation: beam 7s linear infinite; }
.cta-beams span:nth-child(2) { animation-delay: -2.3s; } .cta-beams span:nth-child(3) { animation-delay: -4.6s; }
@keyframes beam { from { left: -40%; } to { left: 120%; } }
.cta-mark { position: absolute; width: 420px; color: rgba(255,255,255,.08); bottom: -110px; inset-inline-end: -60px; z-index: -1; transform: rotate(-12deg); }
.cta-mark .mark-n { fill: rgba(255,255,255,.12); }
.cta-title { font-size: clamp(30px, 6vw, 60px); color: #fff; max-width: 820px; margin-inline: auto; }
.cta-title .grad-text { background: none; color: #fff; -webkit-text-fill-color: initial; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: rgba(255,255,255,.5); animation: none; }
.cta-box p { color: rgba(255,255,255,.85); font-size: 18px; margin: 18px auto 34px; max-width: 560px; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-inner { grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; } }
.ci-cards { display: grid; gap: 12px; }
.ci { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: .4s var(--ease); }
a.ci:hover { border-color: rgba(var(--c-primary-rgb), .4); transform: translateX(-4px); }
[dir=ltr] a.ci:hover { transform: translateX(4px); }
.ci-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: rgba(var(--c-primary-rgb), .12); color: var(--c-secondary); flex: none; }
.ci small { display: block; color: var(--dim); font-size: 12px; }
.ci b { font-weight: 500; font-size: 16px; }
.cform { padding: 24px; }
@media (min-width: 768px) { .cform { padding: 40px; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fgrid { display: grid; gap: 14px; }
@media (min-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; } }
.fld { position: relative; display: block; }
.fld input, .fld textarea, .fld select { width: 100%; height: 58px; padding: 22px 16px 6px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .3s, background .3s, box-shadow .3s; -webkit-appearance: none; appearance: none; }
.fld select { cursor: pointer; }
.fld select option { background: var(--bg-2); color: var(--text); }
.fld textarea { height: auto; min-height: 130px; resize: vertical; padding-top: 28px; }
.fld input[dir=ltr] { text-align: start; }
html[dir=rtl] .fld input[dir=ltr] { text-align: right; }
.fld > span { position: absolute; top: 18px; inset-inline-start: 17px; color: var(--muted); font-size: 15px; pointer-events: none; transition: .25s var(--ease); }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--c-primary); background: rgba(var(--c-primary-rgb), .05); box-shadow: 0 0 0 4px rgba(var(--c-primary-rgb), .12); }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span, .fld textarea:focus + span, .fld textarea:not(:placeholder-shown) + span, .fld select:focus + span, .fld select.has-value + span { top: 8px; font-size: 11.5px; color: var(--c-secondary); }
.fld--select::after { content: ""; position: absolute; top: 26px; inset-inline-end: 18px; width: 8px; height: 8px; border-inline-end: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.fld--area { margin-top: 14px; }
.ferr { display: none; font-style: normal; font-size: 12px; color: #ff6b8b; margin-top: 6px; }
.fld.has-error input, .fld.has-error textarea { border-color: #ff6b8b; }
.fld.has-error .ferr { display: block; }
.svc-pick { border: 0; padding: 0; margin: 22px 0 0; }
.svc-pick legend { font-size: 14px; color: var(--muted); margin-bottom: 12px; padding: 0; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.schip input { position: absolute; opacity: 0; pointer-events: none; }
.schip span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 13.5px; cursor: pointer; transition: .3s var(--ease); background: rgba(255,255,255,.02); }
.schip span:hover { border-color: rgba(var(--c-primary-rgb), .5); }
.schip input:checked + span { background: rgba(var(--c-primary-rgb), .18); border-color: var(--c-primary); color: #fff; box-shadow: 0 0 20px -6px rgba(var(--c-primary-rgb), .8); }
.schip input:focus-visible + span { outline: 2px solid var(--c-secondary); outline-offset: 2px; }
.cform .btn { margin-top: 22px; height: 58px; font-size: 16px; }
.form-msg { margin-top: 14px; font-size: 14px; text-align: center; min-height: 1px; }
.form-msg.ok { color: #22e3a1; padding: 14px; border-radius: 12px; background: rgba(34,227,161,.08); border: 1px solid rgba(34,227,161,.3); }
.form-msg.err { color: #ff6b8b; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.footer-glow { position: absolute; width: 80vw; height: 50vw; left: 50%; bottom: -35vw; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--c-primary-rgb), .3), transparent); pointer-events: none; }
.footer-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding-block: 70px 50px; border-bottom: 1px solid var(--line); }
.fh-mark { width: 54px; color: #fff; filter: drop-shadow(0 0 20px rgba(var(--c-primary-rgb), .7)); animation: markFloat 5s ease-in-out infinite; }
.fh-text { font-family: var(--font-head); font-weight: 700; font-size: clamp(32px, 6.5vw, 84px); line-height: 1.2; max-width: 1000px; color: #fff; text-shadow: 0 0 60px rgba(var(--c-primary-rgb), .35); }
.lang-en .fh-text { letter-spacing: -.03em; line-height: 1.05; }
.footer-grid { position: relative; display: grid; gap: 40px; padding-block: 40px 50px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; } }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 18px 0 22px; max-width: 360px; }
.logo--footer .logo-mark { width: 44px; }
.footer-col h4 { font-size: 15px; margin-bottom: 18px; color: #fff; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color .3s; }
.footer-col a:hover { color: var(--c-secondary); }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; }
.footer-contact .ico { color: var(--c-primary); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }
.to-top { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transform: rotate(-90deg); transition: .4s var(--ease); }
.to-top:hover { background: var(--c-primary); border-color: var(--c-primary); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + var(--safe-top) + 70px) 0 50px; border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; z-index: 2; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.page-title { font-size: clamp(34px, 7vw, 64px); }
.prose { max-width: 820px; color: #c8d3e8; font-size: 16.5px; }
.prose h2, .prose h3 { color: #fff; margin: 1.8em 0 .6em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose ul { list-style: disc; padding-inline-start: 1.4em; }
.prose ol { list-style: decimal; padding-inline-start: 1.4em; }
.prose a { color: var(--c-secondary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: rgba(3,5,11,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(14px + var(--safe-top)) var(--gutter) 14px; border-bottom: 1px solid var(--line); }
.lb-title { font-weight: 600; font-size: 16px; }
.lb-close { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: .3s var(--ease); }
.lb-close:hover { background: var(--c-primary); border-color: var(--c-primary); transform: rotate(90deg); }
.lb-body { flex: 1; overflow: auto; display: flex; flex-direction: column; padding: 20px var(--gutter); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.lb-body img { width: 100%; max-width: 1200px; margin: auto; flex: none; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); transform: translateY(30px) scale(.97); transition: transform .6s var(--ease); }
.lightbox.is-open .lb-body img { transform: none; }
.lb-cta { display: flex; justify-content: center; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.lightbox-open .dock { transform: translateY(140%); }

/* 404 */
.e404 { position: relative; z-index: 2; text-align: center; }
.e404-num { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(110px, 26vw, 240px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e404-mark { width: .7em; color: #fff; animation: markFloat 4s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(var(--c-primary-rgb), .8)); }
.e404 h1 { font-size: clamp(26px, 5vw, 40px); margin: 10px 0; }
.e404 p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Reveal defaults (JS enhances; no-JS stays visible) ---------- */
.js [data-reveal], .js [data-stagger], .js [data-hero] { opacity: 0; }
.js.reduced [data-reveal], .js.reduced [data-stagger], .js.reduced [data-hero] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
