/* ============================================================
   AgenAI Framer UI clone — fidelity pass vs agen-ai.framer.website
   Branding only: Yaxis logo / name
   ============================================================ */

:root {
  --bg-page: #edecec;
  --bg-soft: #f4f4f5;
  --bg-muted: #f5f5f5;
  --bg-white: #ffffff;
  --bg-elevated: #fafafa;

  --text: #09090b;
  --text-2: #292c2e;
  --text-3: #3f3f46;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;
  --text-ghost: #e4e4e7;

  --border: #d4d4d8;
  --border-soft: #e4e4e7;

  --accent: #ff4d00;
  --accent-hot: #ff5a00;
  --link: #0099ff;

  --dark: #0a0a0a;
  --dark-2: #18181b;
  --dark-3: #09090b;
  --dark-card: #141414;

  --radius-pill: 100px;
  --radius-xl: 40px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 14px;

  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 14px 36px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 24px 60px rgba(0, 0, 0, 0.1);

  --font: "Urbanist", system-ui, sans-serif;
  --font-alt: "Figtree", system-ui, sans-serif;
  --font-mono: "Fragment Mono", "IBM Plex Mono", ui-monospace, monospace;
  --font-fa: "Vazirmatn", "Urbanist", system-ui, sans-serif;

  --nav-h: 72px;
  --container: 1296px;
  --pad-x: clamp(20px, 4vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
em { font-style: normal; }

/* ---------- Page shell ---------- */
.page-pad {
  padding: 16px;
}
@media (min-width: 900px) {
  .page-pad { padding: 16px 16px 40px; }
}

.stage {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-float);
  overflow: clip;
  position: relative;
}

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 var(--pad-x);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: min(100%, 862px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 18px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(44px);
  -webkit-backdrop-filter: blur(44px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 36px #fff, 0 10px 40px rgba(0, 0, 0, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-brand img { width: 28px; height: 22px; object-fit: contain; }
.nav-brand span {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  border-radius: var(--radius-pill);
  transition: color .2s, background .2s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--text);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(237, 236, 236, 0.96);
  backdrop-filter: blur(12px);
  padding: 100px 28px 40px;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  overflow: hidden;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(50% 50% at 50% 50%, #fff 0%, #ababab 100%);
  filter: blur(35px);
  opacity: 0.35;
  transform: rotate(-135deg);
  pointer-events: none;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 45%);
  pointer-events: none;
  border-radius: inherit;
}
.btn-primary > * { position: relative; z-index: 1; }

.btn-secondary {
  background: rgba(255,255,255,0.72);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.btn-secondary:hover { background: var(--bg-soft); }

.btn-sm {
  height: 44px;
  padding: 0 18px;
  font-size: 13.5px;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 77, 0, 0.35);
}

.btn-glass {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--pad-x) 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 77, 0, 0.4);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.08);
}
.badge .spark { font-size: 12px; }

.hero-title {
  font-size: clamp(42px, 8.2vw, 96px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #000;
  max-width: 14ch;
}
.hero-title-line { display: block; }
.hero-title-demand {
  position: relative;
  display: inline-block;
}
.hero-title-demand .pill-bar {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  width: 108%;
  height: 0.42em;
  background: var(--accent);
  border-radius: var(--radius-pill);
  z-index: -1;
  box-shadow: 0 8px 28px rgba(255, 77, 0, 0.4);
}
.hero-icons {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 1;
}
.hero-icons .hi {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-2);
}
.hi-g { color: #10a37f; }
.hi-b { color: #4f46e5; }
.hi-c { color: #0ea5e9; }

.hero-lead {
  max-width: 540px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.92;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.scroll-more {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.scroll-more .notch {
  width: 140px;
  height: 40px;
  border-radius: 0 0 60px 60px;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.04);
}
.scroll-more .arrow {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
}

/* ---------- Section chrome ---------- */
section {
  padding: 100px var(--pad-x);
  position: relative;
}
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.section-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.section-tag.pill {
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
.section-tag.accent {
  color: var(--accent);
}
.section-tag.dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  box-shadow: none;
}
.section-tag.accent-border {
  border-color: rgba(255, 77, 0, 0.45);
}

.section-h {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-2);
  max-width: 14ch;
}
.section-h.wide { max-width: 22ch; }
.section-h .fade-line {
  color: #9ca3af;
}
.section-lead {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.55;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 48px;
}
.section-head.center {
  align-items: center;
  text-align: center;
}
.section-head.center .section-h,
.section-head.center .section-lead {
  max-width: 18ch;
}

/* ---------- About ---------- */
#about {
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
}
.about-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.about-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.about-stage-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.78) 42%, rgba(10, 10, 10, 0.45) 70%, rgba(10, 10, 10, 0.72) 100%),
    radial-gradient(ellipse 70% 60% at 78% 45%, rgba(255, 77, 0, 0.14), transparent 58%);
}
html[dir="rtl"] .about-stage-fade {
  background:
    linear-gradient(255deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.78) 42%, rgba(10, 10, 10, 0.42) 70%, rgba(10, 10, 10, 0.72) 100%),
    radial-gradient(ellipse 70% 60% at 22% 48%, rgba(255, 77, 0, 0.16), transparent 58%);
}
.about-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.about-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
#about .about-h {
  max-width: 18ch;
  margin-bottom: 32px;
  color: #fff;
}
#about .about-h .fade-line {
  color: rgba(255, 255, 255, 0.55);
}
.about-h {
  max-width: 16ch;
  margin-bottom: 40px;
}
.about-body {
  display: grid;
  gap: 36px;
  margin-bottom: 36px;
  max-width: 920px;
}
@media (min-width: 900px) {
  .about-body {
    grid-template-columns: 1.15fr 0.9fr;
    gap: 48px;
    align-items: start;
  }
}
.about-copy {
  display: grid;
  gap: 16px;
}
.about-copy p {
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
}
.about-points {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.about-points li {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.about-point-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.about-point-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  max-width: 36ch;
}
.about-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}
.about-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}
.about-loc .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.15);
}
@media (prefers-reduced-motion: reduce) {
  .about-stage canvas {
    opacity: 0.85;
  }
}

/* About bento (product / legacy light panels) */
.about-bento {
  display: grid;
  gap: 20px;
}
@media (min-width: 960px) {
  .about-bento {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 20px;
    align-items: stretch;
  }
}
.about-globe {
  position: relative;
  background: #0c0c0c;
  border-radius: var(--radius-lg);
  padding: 36px 28px 0;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-card);
}
.globe-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}
.globe-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.globe-loc {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.globe-loc span { color: var(--accent); }
.about-globe .btn { margin-bottom: 24px; }
.globe-visual {
  margin-top: auto;
  width: 120%;
  max-width: 640px;
  aspect-ratio: 1;
  position: relative;
}
.globe-sphere {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.18), transparent 42%),
    radial-gradient(circle at 50% 55%, #1a1a1a 0%, #050505 70%);
  box-shadow: 0 0 80px rgba(255,255,255,0.08), inset 0 0 60px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.globe-sphere::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1.2px);
  background-size: 14px 14px;
  opacity: 0.45;
  mask-image: radial-gradient(circle at 55% 45%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 55% 45%, #000 20%, transparent 70%);
}
.about-side {
  display: grid;
  gap: 20px;
}
.about-trust {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.about-trust > p {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 36ch;
}
.trust-bottom {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}
.tp-name {
  font-size: 13px;
  font-weight: 700;
  color: #00b67a;
  margin-bottom: 4px;
}
.tp-stars {
  color: #00b67a;
  letter-spacing: 2px;
  font-size: 14px;
}
.trust-big {
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--text-ghost);
}

.about-quote-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: stretch;
  min-height: 240px;
}
.quote-photo {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--accent);
}
.quote-body {
  display: flex;
  flex-direction: column;
  padding: 8px 4px;
}
.qmark {
  font-size: 48px;
  line-height: 0.8;
  color: var(--text-ghost);
  font-weight: 700;
  margin-bottom: 8px;
}
.quote-body > p {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-2);
  margin-bottom: auto;
}
.quote-attr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.quote-attr img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-marquee {
  margin-top: 48px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
  align-items: center;
  opacity: 0.4;
}
.logo-track span {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-3);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 700px) {
  .about-quote-card { grid-template-columns: 90px 1fr; }
}

/* ---------- Services ---------- */
.svc-layout {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .svc-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: start;
  }
}
.svc-left .section-h { margin-bottom: 8px; }
.svc-visual {
  margin-top: 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #111;
  box-shadow: var(--shadow-card);
}
.svc-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.svc-item {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  transition: background .25s, color .25s, box-shadow .25s;
}
.svc-item.open {
  background: #111;
  color: #fff;
  box-shadow: var(--shadow-card);
}
.svc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 28px;
  text-align: left;
  color: inherit;
}
.svc-head h3 {
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-2);
}
.svc-item.open .svc-head h3 { color: #fff; }
.svc-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 6px;
}
.svc-item.open .svc-num { color: rgba(255,255,255,0.4); }
.svc-body {
  display: none;
  padding: 0 28px 28px;
}
.svc-item.open .svc-body { display: block; }
.svc-body p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 42ch;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc-tags span {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

/* ---------- Works ---------- */
#works,
#products { background: var(--bg-soft); }
.works-stack {
  display: grid;
  gap: 28px;
}
.work-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease;
  display: block;
}
.work-card:hover { transform: translateY(-3px); }
.work-media {
  aspect-ratio: 1272 / 660;
  background: #111;
  overflow: hidden;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.work-card:hover .work-media img { transform: scale(1.02); }
.work-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.work-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d8;
  display: block;
}
.work-dots i.on { background: var(--accent); }
.work-body {
  padding: 28px 32px 32px;
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .work-body {
    grid-template-columns: 0.9fr 1.4fr;
    align-items: start;
  }
}
.work-body h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.work-meta {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .work-meta { grid-template-columns: 1.3fr 1fr 0.6fr; gap: 20px; }
}
.work-meta .lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
.work-meta p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

/* ---------- Process ---------- */
.process-steps {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--bg-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.step h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.step > p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: auto;
}
.step-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 28px;
  gap: 12px;
}
.step-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.step-idx {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text-faint);
}
.step-idx .dim { color: var(--text-faint); }
.step-idx .slash {
  color: var(--text-ghost);
  font-size: 28px;
}

/* ---------- Benefits ---------- */
#benefits { background: #fff; }
.benefit-bento {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .benefit-bento {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto;
  }
  .benefit-card.tall { grid-row: span 1; }
}
.benefit-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-soft);
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.benefit-viz {
  margin-bottom: 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pills-viz span {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}
.checks-viz span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.icon-viz {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.benefit-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.benefit-card p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.55;
}

/* ---------- Features ---------- */
.feat-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
}
.feat-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.04);
}
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 18px;
  box-shadow: var(--shadow-soft);
}
.feat-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.feat-card p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.55;
}

/* ---------- Tools ---------- */
#tools { background: var(--bg-soft); }
.tools-panel {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 800px) {
  .tools-panel {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 56px;
  }
}
.tools-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tools-icons span {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-3);
  box-shadow: var(--shadow-soft);
}

/* ---------- Team ---------- */
#team {
  background: #000;
  color: #fff;
  background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.12), transparent 60%);
}
#team .section-h { color: #fff; max-width: 16ch; }
.team-bento {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .team-bento {
    grid-template-columns: 0.9fr 1.3fr;
    gap: 16px;
  }
}
.team-card {
  background: #151515;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.team-card.featured {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.team-card.featured img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--accent);
}
.team-card .info h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.team-card .info p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-top: 4px;
}
.team-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.team-social span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.team-grid-sm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.team-card .team-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.team-card .team-top img {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  background: #222;
}
.team-card .team-top .team-social { margin-top: 0; }

/* ---------- Stats ---------- */
#stats {
  background: linear-gradient(180deg, #000 0%, #111 100%);
  color: #fff;
  overflow: hidden;
  padding-bottom: 64px;
}
.stats-head { margin-bottom: 40px; }
#stats .section-h { color: #fff; max-width: 14ch; }
#stats .section-lead { color: rgba(255,255,255,0.55); }
.stats-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stats-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.stat-item {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}
.stat-item .num {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.stat-item .lbl {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ---------- Awards ---------- */
.awards-list {
  display: grid;
  gap: 12px;
}
.award {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  transition: background .2s;
}
.award:hover { background: var(--bg-soft); }
.award strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.award span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.award .year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Testimonials ---------- */
#testimonials {
  background: var(--bg-soft);
  padding-top: 40px;
  padding-bottom: 40px;
}
.testi-panel {
  background: #050505;
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  display: grid;
  gap: 32px;
  align-items: center;
  min-height: 560px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .testi-panel {
    grid-template-columns: 1fr 1fr;
    padding: 56px;
  }
}
.testi-copy .section-h {
  color: #fff;
  max-width: 12ch;
  margin-bottom: 18px;
}
.stars {
  color: var(--accent);
  letter-spacing: 4px;
  font-size: 18px;
  margin-bottom: 18px;
}
.testi-slides { position: relative; min-height: 140px; }
.testi-slide {
  display: none;
}
.testi-slide.active { display: block; }
.testi-slide p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  max-width: 36ch;
  margin-bottom: 20px;
}
.testi-slide footer {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding-left: 14px;
  border-left: 2px solid rgba(255,255,255,0.35);
}
.testi-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.testi-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.testi-idx {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
}
.testi-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  border: 8px solid #1a1a1a;
  aspect-ratio: 1;
  max-width: 480px;
  margin-left: auto;
}
.testi-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Pricing ---------- */
.pricing-h { max-width: 18ch; }
.billing-toggle {
  width: 72px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  position: relative;
  margin-top: 24px;
  box-shadow: 0 0 40px rgba(255, 77, 0, 0.35);
}
.billing-toggle .knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.billing-toggle.on .knob { transform: translateX(36px); }

.pricing-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
.price-card {
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: var(--dark-2);
  color: #fff;
  border-color: transparent;
}
.plan-label {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.plan-label em {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 14px;
}
.price-card.featured .plan-label em { color: rgba(255,255,255,0.55); }
.plan-label .sep {
  width: 1px;
  height: 16px;
  background: rgba(0,0,0,0.15);
  display: inline-block;
}
.price-card.featured .plan-label .sep { background: rgba(255,255,255,0.2); }

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-amount .num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-amount .per {
  font-size: 14px;
  opacity: 0.55;
}
.price-incl {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 22px;
  display: grid;
  gap: 18px;
}
@media (min-width: 700px) {
  .price-incl { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.price-card.featured .price-incl {
  border-top-color: rgba(255,255,255,0.12);
}
.price-incl h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.price-incl > div > p,
.price-incl > p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}
.price-card.featured .price-incl > div > p { color: rgba(255,255,255,0.55); }
.price-incl li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 8px;
}
.price-card.featured .price-incl li { color: rgba(255,255,255,0.7); }
.price-incl li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
#faq { background: var(--bg-soft); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq-q .plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .25s, background .25s, color .25s;
}
.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
.faq-a {
  display: none;
  padding: 0 22px 22px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}
.faq-item.open .faq-a { display: block; }

/* ---------- Contact ---------- */
#contact {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.contact-inner { position: relative; z-index: 1; }
.contact-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
}
.contact-info-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.contact-info-rows .row.cardish {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.88);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.contact-info-rows .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-info-rows .row label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2px;
  font-weight: 600;
}
.contact-info-rows .row a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact-form {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 18px;
}
.contact-form h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.field.underline input,
.field.underline textarea,
.field.underline select {
  height: 44px;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.field.underline textarea {
  height: auto;
  min-height: 88px;
  padding: 8px 0;
  resize: vertical;
}
.field.underline input:focus,
.field.underline textarea:focus,
.field.underline select:focus {
  border-bottom-color: var(--text);
}
.field.underline select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371717a' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark-3);
  color: #fff;
  padding: 64px var(--pad-x) 28px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}
@media (min-width: 800px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand img {
  width: 32px;
  height: 26px;
  filter: brightness(0) invert(1);
}
.footer-brand span {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.footer p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  font-weight: 400;
  max-width: 32ch;
  line-height: 1.5;
}
.footer h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}
.footer-col a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.footer-bottom {
  max-width: var(--container);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Floating chip ---------- */
.promo-chip {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-btn);
}
.promo-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 600px) {
  section { padding: 64px var(--pad-x); }
  .hero { padding-top: 100px; min-height: 85vh; }
  .hero-icons .hi { width: 22px; height: 22px; font-size: 9px; }
  .team-grid-sm { grid-template-columns: 1fr; }
  .testi-panel { padding: 32px 22px; }
}

/* ---------- Persian / RTL ---------- */
html[lang="fa"],
html[dir="rtl"] {
  font-family: var(--font-fa);
}
html[lang="fa"] body,
html[dir="rtl"] body {
  font-family: var(--font-fa);
  letter-spacing: 0;
}
html[dir="rtl"] .nav-brand,
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .about-person,
html[dir="rtl"] .quote-attr,
html[dir="rtl"] .contact-info-rows .row,
html[dir="rtl"] .promo-chip,
html[dir="rtl"] .testi-nav,
html[dir="rtl"] .price-row,
html[dir="rtl"] .step-foot,
html[dir="rtl"] .svc-head,
html[dir="rtl"] .faq-q,
html[dir="rtl"] .work-meta,
html[dir="rtl"] .hero-ctas,
html[dir="rtl"] .badge {
  /* flex children flip with direction */
}
html[dir="rtl"] .promo-chip {
  right: auto;
  left: 20px;
}
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-h,
html[dir="rtl"] .about-h,
html[dir="rtl"] .pricing-h {
  letter-spacing: -0.02em;
  line-height: 1.15;
}
html[dir="rtl"] .hero-title {
  font-weight: 800;
}
html[dir="rtl"] .nav-links a,
html[dir="rtl"] .btn,
html[dir="rtl"] .section-tag,
html[dir="rtl"] .faq-q,
html[dir="rtl"] .svc-head h3 {
  font-family: var(--font-fa);
}
html[dir="rtl"] .logo-track,
html[dir="rtl"] .stats-track {
  animation-name: marqueeRtl;
}
@keyframes marqueeRtl {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
html[dir="rtl"] .en-only { display: none !important; }
html[lang="en"] .fa-only { display: none !important; }

.lang-en { font-family: var(--font); }
.lang-fa { font-family: var(--font-fa); }

/* ---------- Product page (mutual fund risk) ---------- */
.product-hero .hero-inner {
  padding-top: clamp(100px, 14vw, 140px);
}
.product-brand {
  font-family: var(--font);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  margin: 0 0 10px;
}
.product-slogan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 28px;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.product-slogan-sep {
  color: var(--text-faint);
  font-weight: 500;
}
.product-slogan .lang-en {
  color: var(--text-3);
  font-weight: 600;
}
.product-title {
  font-size: clamp(28px, 4.2vw, 44px) !important;
  max-width: 18ch;
  margin-bottom: 18px;
}
.product-title .hero-title-line {
  font-weight: 700;
}
html[dir="rtl"] .product-brand {
  font-family: var(--font);
  letter-spacing: -0.04em;
}
html[dir="rtl"] .product-slogan {
  font-family: var(--font-fa);
}
html[dir="rtl"] .nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* ---------- Product showcase · 3D shots ---------- */
.product-hero {
  min-height: min(100vh, 920px);
  display: flex;
  flex-direction: column;
}
.product-hero .hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(24px, 4vw, 48px);
  position: relative;
  z-index: 2;
}
.hero-shot-stage {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 28px;
  perspective: 1400px;
}
.shot-3d {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #0a0a0a;
  transform: rotateX(8deg) rotateY(-4deg) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 77, 0, 0.12);
  cursor: zoom-in;
}
.shot-3d:hover {
  transform: rotateX(2deg) rotateY(0deg) translateY(-8px) scale(1.01);
}
.shot-3d img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 420px);
  object-fit: cover;
  object-position: top right;
}
.shot-3d-glow {
  position: absolute;
  inset: -30% -10% auto;
  height: 60%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 77, 0, 0.35), transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
}
.shot-3d-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.88));
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-fa, inherit);
}

.tour-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: 40px;
}
.tour-split.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}
.tour-split.reverse .tour-copy { order: 2; }
.tour-split.reverse .tour-media { order: 1; }
.tour-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.tour-copy h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.25;
}
.tour-copy p {
  color: var(--text-3);
  line-height: 1.75;
  margin: 0 0 16px;
  max-width: 42ch;
}
.tour-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tour-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
}
.tour-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.15);
}
.tour-media {
  perspective: 1200px;
}
.tour-media .shot-3d {
  transform: rotateY(-6deg) rotateX(3deg);
  max-height: none;
}
.tour-media .shot-3d img {
  max-height: min(52vh, 480px);
}
.tour-media .shot-3d:hover {
  transform: rotateY(0) rotateX(0) translateY(-6px);
}

.shot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.shot-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft, #e4e4e7);
  background: #0a0a0a;
  cursor: zoom-in;
  transform: perspective(800px) rotateX(0);
  transition: transform 0.4s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 0.4s;
  box-shadow: var(--yx-shadow-soft, 0 8px 30px rgba(0, 0, 0, 0.06));
}
.shot-tile:nth-child(3n+1) { transform: perspective(800px) rotateY(3deg); }
.shot-tile:nth-child(3n) { transform: perspective(800px) rotateY(-3deg); }
.shot-tile:hover {
  transform: perspective(800px) rotateY(0) translateY(-10px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(255, 77, 0, 0.25);
  z-index: 2;
}
.shot-tile img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top right;
}
.shot-tile figcaption {
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  background: #fff;
  font-family: var(--font-fa, inherit);
}

.module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.module-chips span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 77, 0, 0.08);
  color: var(--text-2);
  border: 1px solid rgba(255, 77, 0, 0.18);
}

.yx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(10px);
}
.yx-lightbox.open { display: flex; }
.yx-lightbox img {
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 0, 0.25);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.yx-lightbox-close {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(24, 24, 27, 0.9);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .tour-split,
  .tour-split.reverse {
    grid-template-columns: 1fr;
  }
  .tour-split.reverse .tour-copy,
  .tour-split.reverse .tour-media { order: unset; }
  .shot-gallery { grid-template-columns: 1fr 1fr; }
  .shot-tile:nth-child(n) { transform: none; }
  .hero-shot-stage .shot-3d {
    transform: rotateX(4deg);
  }
}
@media (max-width: 560px) {
  .shot-gallery { grid-template-columns: 1fr; }
  .shot-tile img { height: 180px; }
}

/* Presentation-derived sections */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 36px;
}
@media (min-width: 800px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
.why-card {
  padding: 22px 20px;
  border-radius: 16px;
  background: var(--bg-white);
  border: 1px solid rgba(10, 10, 10, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 0, 0.35);
  box-shadow: 0 16px 40px rgba(10, 10, 10, 0.06);
}
.why-num {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.why-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-2);
}

.module-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}
@media (min-width: 700px) {
  .module-map { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .module-map { grid-template-columns: repeat(4, 1fr); }
}
.mod-tile {
  position: relative;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  background: var(--bg-white);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
.mod-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.mod-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 0, 0.4);
}
.mod-tile:hover::before { opacity: 1; }
.mod-tile .idx {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
}
.mod-tile h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 4px;
  position: relative;
  color: var(--text);
}
.mod-tile p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
  position: relative;
}

.risk-kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}
@media (min-width: 520px) {
  .risk-kpi-strip { grid-template-columns: repeat(4, 1fr); }
}
.risk-kpi {
  padding: 14px 10px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(10, 10, 10, 0.06);
  text-align: center;
}
.risk-kpi .val {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.risk-kpi .lbl {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 4px;
}
.risk-kpi .badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.risk-kpi .badge.danger { background: rgba(248, 113, 113, 0.15); color: #dc2626; }
.risk-kpi .badge.warn { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.risk-kpi .badge.ok { background: rgba(52, 211, 153, 0.15); color: #059669; }

.stack-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.stack-node {
  flex: 1 1 200px;
  max-width: 280px;
  padding: 20px 18px;
  border-radius: 16px;
  background: #0A0A0A;
  color: #f5f5f5;
  border: 1px solid rgba(255, 77, 0, 0.25);
}
.stack-node strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #fff;
}
.stack-node span {
  font-size: 0.82rem;
  color: #a1a1aa;
  line-height: 1.6;
}
.stack-arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0 4px;
}
@media (max-width: 700px) {
  .stack-arrow { display: none; }
}

#modules { background: var(--bg-soft); }
#architecture { background: var(--bg-soft); }


/* Form status feedback */
.form-status {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-status.ok { color: #1a7f4b; }
.form-status.err { color: #c0392b; }

/* ===== SEO / Blog / Solutions extras ===== */
.blog-list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.blog-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.blog-card h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.blog-card p { margin: 0; opacity: .75; font-size: .95rem; line-height: 1.6; }
.blog-meta { font-size: .8rem; opacity: .55; margin-bottom: .4rem; }
.article-wrap { max-width: 720px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.article-wrap h1 { font-size: 1.75rem; line-height: 1.35; margin-bottom: 1rem; }
.article-wrap h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: .75rem; }
.article-wrap p, .article-wrap li { line-height: 1.85; margin-bottom: 1rem; }
.article-wrap ul { padding-right: 1.25rem; }
.article-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: #0b1f33;
  color: #fff;
}
.article-cta a { color: #ff8a4c; }
.page-hero-simple {
  padding: 3rem 1.25rem 1.5rem;
  text-align: center;
}
.page-hero-simple h1 { font-size: 1.85rem; margin-bottom: .75rem; }
.page-hero-simple p { max-width: 560px; margin: 0 auto; opacity: .8; line-height: 1.7; }
.breadcrumb { font-size: .85rem; opacity: .6; margin-bottom: 1rem; }
.breadcrumb a { color: inherit; }
