/* نظامي | Nezamy — landing page styles */

@property --bc {
  syntax: "<color>";
  inherits: true;
  initial-value: #7c3aed;
}

:root {
  --ink: #0d0a1a;
  --ink-2: #140e27;
  --ink-3: #1c1436;
  --line: rgba(196, 181, 253, 0.14);
  --line-2: rgba(196, 181, 253, 0.26);
  --violet: #a78bfa;
  --fuchsia: #e879f9;
  --dot-a: #f0abfc;
  --dot-b: #c084fc;
  --text: #ddd6fe;
  --text-2: #c4b5fd;
  --muted: #a397d1;
  --wa: #25d366;
  --grad: linear-gradient(90deg, #a78bfa, #e879f9);
  /* gradient + grow origin that follow the reading direction (RTL here, flipped for the English page below) */
  --grad-flow: linear-gradient(270deg, #a78bfa, #e879f9);
  --start-side: right;
  --ease-out: cubic-bezier(0.2, 0.75, 0.2, 1);
  --header-h: 64px;
  --gutter: 20px;
  --radius-lg: 28px;
  --radius-md: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-2);
  font-family: "Readex Pro", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--dot-a); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(232, 121, 249, 0.35); color: #fff; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.ico { width: 1.25em; height: 1.25em; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px;
  font-weight: 500; font-size: 1.02rem; line-height: 1; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.btn-grad {
  color: #1a0b2e;
  background: linear-gradient(90deg, #c4b5fd, #f0abfc, #c4b5fd);
  background-size: 200% 100%;
  box-shadow: 0 10px 30px -10px rgba(232, 121, 249, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  animation: sheen 6s linear infinite;
  font-weight: 700;
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(232, 121, 249, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(167, 139, 250, 0.06); }
.btn-ghost:hover { border-color: rgba(232, 121, 249, 0.6); background: rgba(167, 139, 250, 0.12); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 1em; font-size: 0.92rem; }
.btn-wa-outline { color: var(--text); border: 1px solid var(--line-2); background: rgba(13, 10, 26, 0.4); }
.btn-wa-outline .ico { color: var(--wa); }
.btn-wa-outline:hover { border-color: var(--wa); }
.btn-lg { min-height: 60px; font-size: 1.12rem; padding: 0 1.8em; }
@keyframes sheen { to { background-position: -200% 0; } }

/* ---------- progress + header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad-flow); transform-origin: var(--start-side) center; transform: scaleX(var(--p, 0)); }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(13, 10, 26, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word {
  font-weight: 700; font-size: 1.45rem; line-height: 1.3;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.12em; margin-bottom: -0.12em;
}
.nav { display: flex; gap: 26px; margin-inline-start: auto; font-size: 0.95rem; }
.nav a { color: var(--text-2); position: relative; padding: 6px 0; white-space: nowrap; transition: color 0.25s; }
.nav a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1.5px; background: var(--grad-flow); transform: scaleX(0); transform-origin: var(--start-side); transition: transform 0.35s var(--ease-out); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

/* language switcher (header + footer): a quiet pill next to the WhatsApp button */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 1em; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--text-2);
  border: 1px solid var(--line); background: rgba(167, 139, 250, 0.06);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s, transform 0.35s var(--ease-out);
}
.lang-switch:hover { color: var(--text); border-color: rgba(232, 121, 249, 0.55); background: rgba(167, 139, 250, 0.12); }
.lang-switch:active { transform: scale(0.97); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: calc(var(--header-h) + 40px) 0 110px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, #22113d 0%, rgba(13, 10, 26, 0) 70%);
}
.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-aura { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-aura::before, .hero-aura::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  left: 50%; top: 42%; margin: -30vmax 0 0 -30vmax; opacity: 0.55;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.32), rgba(167, 139, 250, 0) 62%);
  animation: aura 16s ease-in-out infinite alternate;
}
.hero-aura::after {
  background: radial-gradient(circle, rgba(232, 121, 249, 0.26), rgba(232, 121, 249, 0) 60%);
  animation-duration: 21s; animation-direction: alternate-reverse;
}
@keyframes aura {
  0% { transform: translate(-14%, -6%) scale(0.9); }
  50% { transform: translate(10%, 8%) scale(1.08); }
  100% { transform: translate(16%, -10%) scale(0.95); }
}
/* min-width: 0 lets this grid item shrink to the screen instead of growing to the logo's width */
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; min-width: 0; }

.lockup { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 40px); margin-bottom: clamp(18px, 3vw, 30px); }
.mark-anim { width: clamp(88px, 13vw, 176px); height: auto; overflow: visible; flex: none; }
.mark-anim .d { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 0.38s cubic-bezier(0.55, 0, 0.35, 1) both; }
.mark-anim .d1 { animation-delay: 0.15s; }
.mark-anim .d2 { animation-delay: 0.45s; animation-duration: 0.2s; }
.mark-anim .d3 { animation-delay: 0.6s; }
.mark-anim .d4 { animation-delay: 0.9s; animation-duration: 0.3s; }
.mark-anim .d5 { animation-delay: 1.12s; }
.mark-anim .d6 { animation-delay: 1.42s; animation-duration: 0.2s; }
.mark-anim .d7 { animation-delay: 1.57s; }
@keyframes draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  8% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.mark-anim .dot { transform-box: fill-box; transform-origin: 50% 100%; animation: drop 0.85s cubic-bezier(0.3, 0, 0.3, 1) 1.85s both; }
@keyframes drop {
  0% { transform: translateY(-150px) scale(0.7); opacity: 0; }
  45% { transform: translateY(0) scale(1, 1); opacity: 1; }
  58% { transform: translateY(2px) scale(1.14, 0.84); }
  74% { transform: translateY(-14px) scale(0.96, 1.05); }
  88% { transform: translateY(0) scale(1.04, 0.96); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.mark-anim .dot-ring { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ring 3.6s ease-out 2.5s infinite; }
@keyframes ring {
  0% { transform: scale(1); opacity: 0.7; }
  45%, 100% { transform: scale(2.3); opacity: 0; }
}

.wordmark { display: flex; flex-direction: column; align-items: center; }
.word-ar {
  font-weight: 700; font-size: clamp(70px, 11vw, 150px); line-height: 1.15;
  background: linear-gradient(90deg, #a78bfa 0%, #e879f9 45%, #f0abfc 70%, #a78bfa 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 0.06em 0.18em; margin-bottom: -0.18em;
  animation: wipe 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.45s both, shift 9s ease-in-out 1.4s infinite alternate;
}
@keyframes wipe { from { clip-path: inset(-20% 0 -20% 100%); } to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes shift { from { background-position: 0% 50%; } to { background-position: 45% 50%; } }
.word-en {
  font-family: "Alexandria", "Readex Pro", sans-serif; font-weight: 700;
  font-size: clamp(13px, 1.9vw, 28px); letter-spacing: 0.55em; padding-left: 0.55em;
  color: var(--text-2); direction: ltr; margin-top: clamp(2px, 0.8vw, 12px);
  animation: track 1.1s var(--ease-out) 1.1s both;
}
@keyframes track { from { letter-spacing: 1.1em; opacity: 0; } to { letter-spacing: 0.55em; opacity: 1; } }

.hero-title {
  color: var(--text); font-weight: 700; font-size: clamp(28px, 4.3vw, 54px); line-height: 1.4; text-wrap: balance;
  animation: rise 0.9s var(--ease-out) 0.95s both;
}
.hero-lede { max-width: 34em; margin-top: 14px; font-size: clamp(16px, 1.45vw, 19px); color: var(--text-2); animation: rise 0.9s var(--ease-out) 1.1s both; }
.hero-proof {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 18px 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(167, 139, 250, 0.08); color: var(--text-2);
  font-size: clamp(14px, 1.25vw, 16.5px); font-weight: 500; line-height: 1.5; animation: rise 0.9s var(--ease-out) 1.18s both;
}
.hero-proof b { color: #f5d0fe; font-weight: 700; }
.hero-proof i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #4ade80; animation: live 2.2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; animation: rise 0.9s var(--ease-out) 1.25s both; }
.hero-phone { margin-top: 18px; font-size: 0.95rem; color: var(--muted); animation: rise 0.9s var(--ease-out) 1.4s both; }
.hero-phone a { color: var(--text); font-weight: 500; letter-spacing: 0.04em; border-bottom: 1px dashed var(--line-2); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; padding: 8px; animation: rise 0.8s var(--ease-out) 2.2s both; }
.scroll-cue span { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--violet); animation: cue 1.8s ease-in-out infinite; }
.scroll-cue span:nth-child(2) { animation-delay: 0.2s; }
.scroll-cue span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cue { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); background: var(--fuchsia); border-color: var(--fuchsia); } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.sec-head { max-width: 44em; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { color: var(--text); font-weight: 700; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.35; text-wrap: balance; }
.sec-head p { margin-top: 12px; font-size: clamp(16px, 1.4vw, 19px); max-width: 36em; text-wrap: pretty; }
.chain { display: inline-flex; align-items: center; margin-bottom: 14px; }
.chain i { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--violet); }
.chain i:last-child { border-color: var(--fuchsia); }
.chain b { display: block; width: 30px; height: 3px; background: var(--grad-flow); border-radius: 2px; transform-origin: var(--start-side); }
html.js .sec-head .chain b { transform: scaleX(0); transition: transform 0.7s var(--ease-out) 0.25s; }
html.js .sec-head.in .chain b { transform: scaleX(1); }
.sub-title { color: var(--text); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.4; margin-bottom: 18px; }

/* reveal */
html.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 1s var(--ease-out); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-stagger] > * { opacity: 0; transform: translateY(34px) scale(0.98); transition: opacity 0.8s ease calc(var(--i, 0) * 110ms), transform 1s var(--ease-out) calc(var(--i, 0) * 110ms); }
html.js [data-stagger].in > * { opacity: 1; transform: none; }

/* ---------- cards ---------- */
.card {
  position: relative; border-radius: var(--radius-lg); isolation: isolate;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.085), rgba(167, 139, 250, 0.025));
  border: 1px solid var(--line);
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(232, 121, 249, 0.18), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(240, 171, 252, 0.7), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.4s;
}
.card.is-hover::before, .card.is-hover::after { opacity: 1; }
html.js [data-stagger].in > .card.tilting { transition: transform 0.15s linear; }

/* ---------- devices ---------- */
.phone {
  position: relative; padding: 7px; border-radius: 38px;
  background: linear-gradient(160deg, #2c2150, #120c24 60%);
  box-shadow: inset 0 0 0 1.5px rgba(221, 214, 254, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.7), 0 34px 70px -28px rgba(192, 132, 252, 0.55);
}
.phone::before {
  content: ""; position: absolute; z-index: 3; top: 15px; left: 50%; width: 28%; height: 16px; transform: translateX(-50%);
  background: #0b0816; border-radius: 20px;
}
.phone .screen, .tablet .screen { position: relative; overflow: hidden; background: #f4f6fb; }
.phone .screen { aspect-ratio: 540 / 1169; border-radius: 31px; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.035); transition: opacity 0.7s ease, transform 1.1s var(--ease-out); }
.screen img.on { opacity: 1; transform: none; }
.tablet {
  position: relative; padding: 10px; border-radius: 30px;
  background: linear-gradient(160deg, #2c2150, #120c24 60%);
  box-shadow: inset 0 0 0 1.5px rgba(221, 214, 254, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.7), 0 40px 80px -30px rgba(192, 132, 252, 0.5);
}
.tablet .screen { aspect-ratio: 900 / 1296; border-radius: 20px; }

