/* ─────────────────────────────────────────────
   Nirvana Dev — landing styles (FA · EN · DE)
   ───────────────────────────────────────────── */
:root {
  --bg: #07070a;
  --bg-2: #0b0b12;
  --surface: rgba(255, 255, 255, .03);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ededf2;
  --muted: #9a9aab;
  --dim: #5f5f6d;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --pink: #f472b6;
  --grad: linear-gradient(90deg, #b39dff 0%, #22d3ee 55%, #34d399 100%);
  --grad-loop: linear-gradient(90deg, #b39dff, #22d3ee, #34d399, #f472b6, #b39dff);
  --radius: 22px;
  --maxw: 1200px;
  --font-fa: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-latin: 'Manrope', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --flip: 1;
  --origin: right;
  --tdir: 270deg;
}
[dir="ltr"] { --flip: -1; --origin: left; --tdir: 90deg; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-fa);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html:not([lang="fa"]) body { font-family: var(--font-latin); line-height: 1.7; }

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(139, 92, 246, .45); color: #fff; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.sprite { position: absolute; overflow: hidden; }

.container { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: .02em; unicode-bidi: isolate; }
.dim { color: var(--dim); }
.grad {
  background: var(--grad-loop);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
.accent-title {
  background: linear-gradient(var(--tdir), #ffffff 25%, rgb(var(--glow, 167, 139, 250)) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes rise { to { transform: none; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }

/* ───────── Loader ───────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 26px;
  background: radial-gradient(40% 40% at 50% 45%, rgba(139, 92, 246, .16), transparent 70%), var(--bg);
  transition: opacity .9s var(--ease), visibility .9s;
}
html:not(.js) .loader { display: none; }
.loaded .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-core { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.loader-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .06);
  border-top-color: var(--cyan);
  animation: spin 1.1s linear infinite;
}
.loader-orbit.two { inset: 14px; border-top-color: transparent; border-bottom-color: #b39dff; animation-duration: 1.6s; animation-direction: reverse; }
.loader-mark { width: 50px; height: 50px; filter: drop-shadow(0 0 16px rgba(34, 211, 238, .5)); }
.loader-bar { width: 190px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.loader-bar i { display: block; width: 45%; height: 100%; background: var(--grad); animation: loaderSlide 1.2s var(--ease) infinite; }
.loader-text { font-size: 10.5px; letter-spacing: .32em; color: var(--muted); }
@keyframes loaderSlide { from { transform: translateX(-110%); } to { transform: translateX(250%); } }

/* ───────── Scroll progress / cursor / back to top ───────── */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 80; pointer-events: none; }
.scroll-progress i {
  display: block;
  height: 100%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, .7);
  transform-origin: var(--origin);
  transform: scaleX(var(--p, 0));
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 45;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(139, 92, 246, .14), rgba(34, 211, 238, .05) 42%, transparent 70%);
  transition: opacity .5s ease;
}
.cursor-glow.on { opacity: 1; }

.to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(12, 12, 20, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px) scale(.85);
  pointer-events: none;
  box-shadow: 0 12px 40px -12px rgba(139, 92, 246, .7);
  transition: opacity .45s var(--ease), transform .45s var(--ease), border-color .3s, box-shadow .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: rgba(255, 255, 255, .3); box-shadow: 0 14px 50px -10px rgba(34, 211, 238, .8); }
.to-top .ring { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 2; }
.to-top .track { stroke: rgba(255, 255, 255, .08); }
.to-top .bar { stroke: url(#progGrad); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.to-top .up { position: relative; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.to-top:hover .up { transform: translateY(-3px); }
.to-top:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ───────── Buttons ───────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .3s, color .3s;
}
.btn-primary {
  background: #f4f4f7;
  color: #0a0a0f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 10px 40px -12px rgba(139, 92, 246, .7);
}
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 14px 50px -10px rgba(34, 211, 238, .7); }
.btn-ghost {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-2);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .26); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(calc(-4px * var(--flip))); }
.btn .i, .btn .gh { width: 18px; height: 18px; flex: none; }
.btn .i { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn .mono { font-size: 13.5px; font-weight: 500; }
.btn:focus-visible, .nav-links a:focus-visible, .menu-btn:focus-visible, .pill:focus-visible, .lang-switch button:focus-visible, .teaser:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ───────── Nav ───────── */
.nav {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-inner {
  position: relative;
  pointer-events: auto;
  width: min(var(--maxw), 100% - 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
  padding-inline: 18px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .4s, border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.nav.scrolled .nav-inner,
.nav.open .nav-inner {
  background: rgba(11, 11, 18, .62);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; font-weight: 800; }
.brand-text small { font-size: 9.5px; color: var(--muted); letter-spacing: .18em; }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  white-space: nowrap;
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  direction: ltr;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .06em;
  padding: 9px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s, background .25s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { color: #0a0a0f; background: #f1f1f5; }

.menu-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 22px; }
.nav.open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 0 120px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(45% 45% at 28% 45%, rgba(139, 92, 246, .2), transparent 70%),
    radial-gradient(35% 35% at 18% 70%, rgba(34, 211, 238, .1), transparent 70%),
    var(--bg);
}
#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.6s ease;
}
#gl.ready { opacity: 1; }

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 72%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.hero-inner { position: relative; z-index: 1; }

/* hologram HUD brackets */
.holo-hud {
  position: absolute;
  left: var(--hx, 25%);
  top: var(--hy, 50%);
  width: var(--hs, 520px);
  height: var(--hs, 520px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease) 1.6s;
}
.loaded .holo-hud.on { opacity: 1; }
.hud-corner { position: absolute; width: 26px; height: 26px; border: 1.5px solid rgba(34, 211, 238, .5); }
.hud-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud-tag {
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
  font-size: 10.5px;
  letter-spacing: .3em;
  white-space: nowrap;
}
.hud-tag .h { color: #e9b8ff; font-weight: 500; }
.hud-tag .a { color: #67e8f9; font-weight: 500; }
.hud-tag i { width: 60px; height: 1px; background: linear-gradient(90deg, #e9b8ff, #67e8f9); box-shadow: 0 0 8px rgba(103, 232, 249, .8); }

.hero-content { position: relative; max-width: 700px; }
.hero-content::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 7, 10, .55), transparent);
}
.hero-lede { text-shadow: 0 2px 18px rgba(7, 7, 10, .9); }
html:not([lang="fa"]) .hero-content { max-width: 760px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 5px;
  padding-inline: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  color: #c9c9d6;
  transition: border-color .3s, background .3s;
}
.pill:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); }
.pill-tag {
  font-size: 10.5px;
  letter-spacing: .14em;
  padding: 3px 10px;
  border-radius: 999px;
  color: #0a0a0f;
  background: var(--grad);
  font-weight: 500;
}
.pill-arrow { color: var(--muted); transition: transform .3s var(--ease); }
.pill:hover .pill-arrow { transform: translateX(calc(-3px * var(--flip))); }

.hero-title {
  font-size: clamp(46px, 7.6vw, 100px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -.01em;
  margin: 28px 0 26px;
  text-shadow: 0 10px 60px rgba(7, 7, 10, .6);
}
html:not([lang="fa"]) .hero-title {
  font-size: clamp(42px, 6.6vw, 92px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.045em;
}
.hero-title .line { display: block; overflow: hidden; padding-block: .04em .16em; }
.hero-title .w {
  display: inline-block;
  transform: translateY(115%);
  animation: rise 1.15s var(--ease) forwards;
  animation-delay: calc(var(--i) * 85ms + 150ms);
}
.hero-title .w.grad {
  text-shadow: none;
  animation: rise 1.15s var(--ease) forwards, shimmer 8s linear infinite;
  animation-delay: calc(var(--i) * 85ms + 150ms), 0s;
}
html.js:not(.loaded) .hero-title .w,
html.js:not(.loaded) .intro { animation-play-state: paused; }

/* glitch burst on the gradient word (synced with the hologram pulse) */
.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.glitch::before { -webkit-text-fill-color: #22d3ee; color: #22d3ee; }
.glitch::after { -webkit-text-fill-color: #f472b6; color: #f472b6; }
.glitch.on { filter: drop-shadow(0 0 22px rgba(34, 211, 238, .55)); }
.glitch.on::before { opacity: .9; transform: translate(-5px, 1px); animation: glitchA .28s steps(3) both; }
.glitch.on::after { opacity: .9; transform: translate(5px, -1px); animation: glitchB .28s steps(3) both; }
@keyframes glitchA { 0% { clip-path: inset(8% 0 62% 0); } 50% { clip-path: inset(44% 0 30% 0); } 100% { clip-path: inset(72% 0 6% 0); } }
@keyframes glitchB { 0% { clip-path: inset(66% 0 8% 0); } 50% { clip-path: inset(18% 0 58% 0); } 100% { clip-path: inset(4% 0 78% 0); } }

.hero-lede {
  font-size: clamp(16px, 1.55vw, 19px);
  color: #a9a9ba;
  max-width: 590px;
  margin: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero-foot {
  position: absolute;
  inset-inline: 0;
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--dim);
}
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; }
.scroll-hint i { position: relative; width: 1px; height: 34px; background: var(--line-2); overflow: hidden; }
.scroll-hint i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, var(--cyan), transparent);
  animation: scrollLine 2.2s var(--ease) infinite;
}

.intro {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

/* ───────── Marquee ───────── */
.marquee {
  direction: ltr;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 24px 0 18px;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-inline: 30px 0;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; font-size: 10px; color: var(--dim); }
.marquee-track.big { animation-duration: 70s; animation-direction: reverse; }
.marquee-track.big span {
  gap: 44px;
  padding-inline: 44px 0;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1.15;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .2);
}
.marquee-track.big span:nth-child(3n + 1) {
  -webkit-text-stroke: 0;
  background: var(--grad-loop);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}
.marquee-track.big span::after { content: "✦"; font-size: .32em; -webkit-text-stroke: 0; color: #8b5cf6; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Sections ───────── */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: 60px;
}
.eyebrow {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: linear-gradient(90deg, rgba(139, 92, 246, .14), rgba(34, 211, 238, .05));
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #d8d8e4;
  box-shadow: 0 0 30px -12px rgba(139, 92, 246, .8);
}
.eyebrow b {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #07070a;
  background: var(--grad);
}
.section-title {
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -.01em;
  margin: 20px 0 0;
}
html:not([lang="fa"]) .section-title { font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }
.section-title .grad { filter: drop-shadow(0 0 28px rgba(139, 92, 246, .35)); }
.section-sub { color: var(--muted); max-width: 440px; margin: 0; font-size: 17px; }

/* reveal on scroll */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s;
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* spotlight */
.spot { position: relative; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--glow, 139, 92, 246), .16), transparent 45%);
}
.spot:hover::before { opacity: 1; }

.icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: rgb(var(--glow, 167, 139, 250));
  background: linear-gradient(145deg, rgba(var(--glow, 167, 139, 250), .24), rgba(var(--glow, 167, 139, 250), .04));
  border: 1px solid rgba(var(--glow, 167, 139, 250), .35);
  box-shadow: 0 0 34px -10px rgba(var(--glow, 167, 139, 250), .75), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: #cfcfe0;
  direction: ltr;
  unicode-bidi: isolate;
  transition: border-color .3s, color .3s, background .3s;
}
.chip:hover { border-color: rgba(var(--glow, 167, 139, 250), .6); color: #fff; background: rgba(var(--glow, 167, 139, 250), .1); }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.6; color: #cfcfdc; }
.features svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: rgb(var(--glow, 52, 211, 153)); }

/* shared hover lift */
.card:hover, .stack-card:hover, .product:hover, .step:hover, .teaser:hover {
  translate: 0 -6px;
  border-color: rgba(var(--glow, 167, 139, 250), .45);
  box-shadow: 0 30px 80px -40px rgba(var(--glow, 167, 139, 250), .7);
}

/* ───────── Services / bento ───────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  grid-column: span 2;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(var(--glow), .07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--glow)), transparent);
  opacity: .55;
}
.card-half { grid-column: span 3; }
.card-wide { grid-column: span 6; display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; }
.card .icon { margin-bottom: 24px; }
.card h3 { font-size: clamp(21px, 1.9vw, 25px); font-weight: 800; margin: 0 0 10px; line-height: 1.45; }
html:not([lang="fa"]) .card h3 { letter-spacing: -.02em; line-height: 1.2; }
.card-half h3, .card-wide h3 { font-size: clamp(25px, 2.6vw, 32px); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags span {
  font-size: 12px;
  line-height: 1.6;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: #c3c3d1;
  transition: border-color .3s, color .3s;
}
.card:hover .tags span { border-color: rgba(var(--glow), .3); }

.code-win {
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: #09090e;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(var(--glow, 139, 92, 246), .7);
}
.code-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.code-bar i, .browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2b2b35; }
.code-bar span { margin-left: auto; font-size: 11px; color: var(--dim); }
.code-win pre { margin: 0; padding: 16px 18px; font-size: 12.5px; line-height: 1.9; color: #c9c9d6; overflow-x: auto; }
.tk { color: #c4b5fd; } .tf { color: #67e8f9; } .tt { color: #6ee7b7; } .ta { color: #fcd34d; }
.caret { display: inline-block; width: 7px; height: 15px; margin-left: 3px; vertical-align: -3px; background: #a78bfa; animation: blink 1.1s steps(2) infinite; }

/* ───────── Stack ───────── */
.stack-langs {
  padding: clamp(24px, 3.5vw, 40px);
  margin-bottom: 16px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(139, 92, 246, .14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}
.stack-langs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.stack-langs h3 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; line-height: 1.3; }
.count { font-size: 14px; color: var(--muted); }
.lang-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-chip {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-family: var(--mono);
  font-size: 14.5px;
  color: #e2e2ea;
  transition: border-color .3s, transform .3s var(--ease), background .3s, box-shadow .3s;
}
.lang-chip:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .05); transform: translateY(-3px); box-shadow: 0 10px 30px -12px var(--c); }
.lang-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack-card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(var(--glow), .07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
}
.stack-card h3 { margin: 0 0 18px; font-size: 19px; font-weight: 800; line-height: 1.4; display: inline-flex; }

/* ───────── Projects ───────── */
.projects { display: grid; gap: 28px; }
.project {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(var(--glow), .08), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .005) 60%);
}
.project:hover { border-color: rgba(var(--glow), .4); box-shadow: 0 40px 120px -60px rgba(var(--glow), .7); }
.project-alt .project-visual { order: -1; }

.project-info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4.2vw, 56px); }
.project-top { display: flex; justify-content: space-between; align-items: center; }
.idx { font-size: 12px; color: var(--dim); letter-spacing: .14em; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #6ee7b7;
  background: rgba(52, 211, 153, .08);
  border: 1px solid rgba(52, 211, 153, .25);
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: pulse 2s infinite; }

.project h3 { font-size: clamp(34px, 4vw, 54px); font-weight: 900; line-height: 1.25; margin: 0; }
html:not([lang="fa"]) .project h3 { font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
.project h3 small { display: block; margin-top: 8px; font-size: 12px; font-weight: 500; color: rgb(var(--glow)); letter-spacing: .22em; opacity: .85; }
.project-info > p { margin: 0; color: var(--muted); font-size: 16px; }
.project-link { align-self: flex-start; margin-top: 6px; }
.project-link .host { font-size: 12.5px; color: var(--muted); }
.project-link.is-disabled { opacity: .5; pointer-events: none; }

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 48px 40px;
  perspective: 1400px;
  overflow: hidden;
  border-inline-start: 1px solid var(--line);
  background:
    radial-gradient(60% 60% at 50% 55%, rgba(var(--glow), .24), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 32px 32px;
}
.project-alt .project-visual { border-inline-start: 0; border-inline-end: 1px solid var(--line); }

.mock { position: relative; transform-style: preserve-3d; transition: transform .7s var(--ease); will-change: transform; }

/* Thaler browser mock */
.browser {
  width: min(430px, 100%);
  border-radius: 16px;
  background: #0b0b10;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 30px 120px -40px rgba(var(--glow), .6);
  transform: rotateY(-12deg) rotateX(7deg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.url {
  flex: 1;
  height: 26px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  font-size: 11.5px;
  color: var(--muted);
}
.lock { width: 7px; height: 6px; border-radius: 1.5px; background: var(--emerald); position: relative; top: 1px; }
.lock::before { content: ""; position: absolute; left: 1px; top: -4px; width: 3px; height: 4px; border: 1.2px solid var(--emerald); border-bottom: 0; border-radius: 3px 3px 0 0; }

.thaler-ui {
  display: grid;
  gap: 16px;
  padding: 22px;
  transform-style: preserve-3d;
  background: radial-gradient(120% 80% at 50% 0%, rgba(139, 92, 246, .14), transparent 60%);
}
.t-top { display: flex; justify-content: space-between; align-items: center; }
.t-logo { font-weight: 900; font-size: 18px; }
.t-count { font-size: 11px; color: var(--dim); }
.flash {
  position: relative;
  padding: 34px 20px 28px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .9);
  transform: translateZ(50px);
}
.flash .lvl { position: absolute; top: 10px; inset-inline-end: 14px; font-size: 10px; color: var(--dim); }
.flash .de { font-family: Georgia, 'Times New Roman', serif; font-size: 30px; color: #fff; line-height: 1.4; }
.flash .de em { font-style: normal; color: #b39dff; }
.flash .fa { margin-top: 4px; font-size: 15px; color: var(--muted); }
.fsrs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; transform: translateZ(25px); }
.fsrs span {
  padding: 7px 0 5px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.fsrs small { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--dim); }
.fsrs .good { color: #6ee7b7; border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .09); }
.retention { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.retention .bar { flex: 1; height: 6px; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.retention .bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad); transition: width 1.8s var(--ease) .5s; }
.in .retention .bar i { width: 92%; }

/* Trader terminal mock */
.terminal {
  width: min(440px, 100%);
  overflow: hidden;
  border-radius: 18px;
  background: #08090e;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 30px 120px -40px rgba(var(--glow), .55);
  transform: rotateY(12deg) rotateX(7deg);
}
.tr-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tr-brand { font-size: 11.5px; letter-spacing: .16em; color: #cfcfe0; }
.tr-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: #6ee7b7; letter-spacing: .12em; }
.tr-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: pulse 1.6s infinite; }
.tr-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 12px 0; font-size: 10.5px; color: var(--dim); }
.tr-tabs span { padding: 3px 8px; border-radius: 6px; }
.tr-tabs .on { color: #e5e5ee; background: rgba(255, 255, 255, .07); }
.tr-tabs .tf { margin-left: auto; }
.tr-tabs b { color: #67e8f9; font-weight: 500; }
.tr-chart { padding: 4px 10px 0; transform: translateZ(40px); }
.tr-chart svg { width: 100%; height: auto; }
.cdl {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(.1);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .6s;
  transition-delay: calc(var(--k) * 28ms + 150ms);
}
.in .cdl { transform: none; opacity: 1; }
.ema { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .9s; }
.in .ema { stroke-dashoffset: 0; }
.mk { opacity: 0; transition: opacity .6s 1.8s; }
.in .mk { opacity: 1; }
.tr-log { display: grid; gap: 2px; padding: 10px 12px 14px; border-top: 1px solid var(--line); font-size: 12px; transform: translateZ(20px); }
.tr-log div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #cfcfdc;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.tr-log div:first-child { background: rgba(52, 211, 153, .07); }
.in .tr-log div { opacity: 1; transform: none; }
.in .tr-log div:nth-child(1) { transition-delay: 1.9s; }
.in .tr-log div:nth-child(2) { transition-delay: 2.2s; }
.in .tr-log div:nth-child(3) { transition-delay: 2.5s; }
.tr-log .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.d0 { background: #34d399; box-shadow: 0 0 8px #34d399; } .d1 { background: #22d3ee; } .d2 { background: #a78bfa; }
.tr-log .time { margin-inline-start: auto; font-size: 10px; color: var(--dim); }

/* Reminder phone mock */
.phone {
  width: min(290px, 100%);
  padding: 9px;
  border-radius: 38px;
  background: #0e0e14;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 30px 120px -40px rgba(var(--glow), .55);
  transform: rotateY(-12deg) rotateX(7deg);
}
.phone-screen {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(180deg, #0f1719, #0a0e11);
}
.tg-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; background: rgba(255, 255, 255, .035); border-bottom: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #34d399, #22d3ee); color: #03140e; flex: none; }
.avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tg-head b { display: block; font-size: 14px; line-height: 1.4; }
.tg-head small { font-family: var(--mono); font-size: 10.5px; color: #6ee7b7; }
.tg-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 14px 14px;
}
.bubble {
  align-self: flex-start;
  max-width: 84%;
  padding: 8px 12px 4px;
  border-radius: 16px;
  border-end-start-radius: 5px;
  font-size: 13px;
  line-height: 1.6;
  background: #17212b;
  border: 1px solid rgba(255, 255, 255, .06);
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.bubble b { font-size: 12px; color: #6ee7b7; }
.bubble p { margin: 1px 0; }
.bubble .meta { display: block; text-align: end; font-size: 9.5px; color: var(--dim); }
.bubble:nth-child(2) { transition-delay: .35s; }
.bubble:nth-child(3) { transition-delay: .7s; }
.in .bubble { opacity: 1; transform: none; }
.prio { display: inline-block; font-size: 10.5px; padding: 0 7px; border-radius: 6px; color: #fda4af; border: 1px solid rgba(251, 113, 133, .4); }

.float-card {
  position: absolute;
  inset-inline-end: -64px;
  bottom: 70px;
  width: 210px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  background: rgba(22, 22, 32, .94);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9);
  transform: translateZ(70px);
}
.fc-row { display: flex; align-items: center; gap: 8px; }
.fc-row b { font-size: 13px; }
.fc-check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 211, 153, .15); color: var(--emerald); flex: none; }
.fc-check svg { width: 14px; height: 14px; }
.fc-title { margin-top: 8px; font-weight: 600; }
.fc-meta { font-size: 11.5px; color: var(--muted); }

/* Coming-soon teaser */
.teaser {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 32px;
  padding: 30px 38px;
  border-radius: 26px;
  border: 1px dashed rgba(244, 114, 182, .35);
  background: linear-gradient(120deg, rgba(244, 114, 182, .09), rgba(139, 92, 246, .05) 60%, transparent);
}
.teaser h3 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; line-height: 1.4; }
.teaser p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.teaser-link { display: inline-flex; align-items: center; gap: 8px; color: #f9a8d4; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.teaser-link .arrow { transition: transform .35s var(--ease); }
.teaser:hover .teaser-link .arrow { transform: translateX(calc(-4px * var(--flip))); }
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
  color: #f9a8d4;
  background: rgba(244, 114, 182, .1);
  border: 1px solid rgba(244, 114, 182, .3);
}
.soon-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: pulse 2s infinite; }

/* ───────── Products ───────── */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding: clamp(26px, 3.5vw, 44px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(var(--glow), .15), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
}
.product-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.product h3 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); font-weight: 900; line-height: 1.3; }
html:not([lang="fa"]) .product h3 { font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.product h3 small { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; color: rgb(var(--glow)); opacity: .85; }
.product > p { margin: 0; color: var(--muted); }
.product .note { font-size: 12.5px; line-height: 1.7; color: var(--dim); border-top: 1px solid var(--line); padding-top: 14px; }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }

/* ───────── Process ───────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(var(--glow), .08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent);
}
.step::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(var(--glow)), transparent);
  transform: scaleX(0);
  transform-origin: var(--origin);
  transition: transform 1.3s var(--ease) calc(var(--d, 0ms) + 250ms);
}
.step.in::after { transform: scaleX(1); }
.step .num { display: block; margin-bottom: 48px; font-size: 12.5px; color: rgb(var(--glow)); letter-spacing: .14em; }
.step h3 { position: relative; font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; margin: 0 0 10px; line-height: 1.4; }
.step p { position: relative; margin: 0; font-size: 14.5px; color: var(--muted); }
.step .big {
  position: absolute;
  top: -22px;
  inset-inline-end: 10px;
  font-size: 150px;
  font-weight: 900;
  line-height: 1.2;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--glow), .22);
}

/* ───────── About ───────── */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-text > p { color: var(--muted); font-size: 17px; margin: 18px 0 0; }
.about-text .section-title { margin-bottom: 8px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.value {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--glow), .08), rgba(255, 255, 255, .01));
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
}
.value svg { width: 20px; height: 20px; margin-bottom: 10px; color: rgb(var(--glow)); }
.reg {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line-2);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}
.reg .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }

.stamp { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin-inline: auto; }
.stamp::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .4), rgba(34, 211, 238, .14) 50%, transparent 70%);
  filter: blur(40px);
}
.stamp .ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 38s linear infinite; }
.stamp .core {
  position: absolute;
  inset: 24%;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: radial-gradient(circle at 35% 28%, rgba(139, 92, 246, .3), rgba(34, 211, 238, .08) 55%, rgba(10, 10, 16, .9) 80%);
  box-shadow: inset 0 0 60px rgba(139, 92, 246, .18), 0 0 0 10px rgba(255, 255, 255, .015);
}
.stamp .core svg { width: 64px; height: 64px; margin: 0 auto 6px; }
.stamp .core b { display: block; font-size: 24px; font-weight: 900; line-height: 1.4; }
.stamp .core small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--muted); }

/* ───────── CTA ───────── */
.section-cta { padding-top: 40px; }
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: clamp(56px, 9vw, 120px) clamp(24px, 5vw, 72px);
  border-radius: 34px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 110% at 50% 130%, rgba(139, 92, 246, .5), transparent 60%),
    radial-gradient(45% 70% at 95% -10%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(40% 60% at 0% 0%, rgba(52, 211, 153, .12), transparent 60%),
    var(--bg-2);
}
.cta .grid-bg { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 5%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 5%, transparent 75%); }
.cta h2 { font-size: clamp(40px, 6.6vw, 88px); line-height: 1.26; font-weight: 900; margin: 22px 0; letter-spacing: -.01em; }
html:not([lang="fa"]) .cta h2 { line-height: 1.02; font-weight: 800; letter-spacing: -.045em; }
.cta p { max-width: 540px; margin: 0 auto; color: #b7b7c6; font-size: 17px; }
.cta-actions { justify-content: center; }
.cta .cta-mail { margin-top: 22px; font-size: 13px; color: var(--muted); }
.contact-fallback { color: var(--muted); font-size: 15px; padding: 12px 20px; border-radius: 999px; border: 1px dashed var(--line-2); }

/* ───────── Footer ───────── */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 60px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }
.footer .credit { flex-basis: 100%; font-size: 10.5px; color: var(--dim); letter-spacing: .06em; text-align: center; }
.social { display: flex; gap: 8px; }
.social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--muted);
  transition: color .25s, border-color .25s, background .25s;
}
.social a:hover { color: var(--text); border-color: rgba(255, 255, 255, .28); background: var(--surface-2); }
.social svg { width: 18px; height: 18px; }
.social .i { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    flex-direction: column;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(11, 11, 18, .94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 16px; font-size: 16px; color: var(--text); }
}

@media (max-width: 1024px) {
  .bento .card { grid-column: span 3; }
  .bento .card-wide { grid-column: span 6; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .project { grid-template-columns: 1fr; }
  .project-alt .project-visual { order: 0; }
  .project-visual, .project-alt .project-visual { border: 0; border-top: 1px solid var(--line); min-height: 440px; }
  .products { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .stamp { width: min(360px, 100%); }
}

@media (max-width: 860px) {
  .hero { justify-content: flex-end; padding-bottom: 130px; }
  .teaser { grid-template-columns: 1fr; justify-items: start; padding: 24px; }
  .holo-hud { display: none; }
}

@media (max-width: 640px) {
  .container { width: min(var(--maxw), 100% - 32px); }
  .nav-inner { padding-inline: 12px 6px; gap: 8px; }
  .nav-cta { display: none; }
  .brand-text small { display: none; }
  .bento .card, .bento .card-half, .bento .card-wide { grid-column: span 6; }
  .card-wide { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .stack-grid, .steps, .values { grid-template-columns: 1fr; }
  .project-visual { min-height: 400px; padding: 40px 20px; }
  .float-card { inset-inline-end: -12px; bottom: 30px; width: 190px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-foot > span:last-child { display: none; }
  .reg { flex-wrap: wrap; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cta-actions .btn { flex: 1 1 100%; }
  .to-top { width: 48px; height: 48px; bottom: 16px; inset-inline-end: 16px; }
  .eyebrow { font-size: 11px; letter-spacing: .16em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
