/* ============================================================
   NOVARIXX — CYBERBRUTALISM
   Black / Lime / Mono
   + Peyda for Persian (fallback: Vazirmatn)
============================================================ */

/* ============================================================
   LOCAL FONTS — Peyda (Persian only via unicode-range)
============================================================ */
@font-face {
  font-family: "Peyda";
  src: url("../fonts/Peyda-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
                 U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda-extralight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
                 U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
                 U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/Peyda-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
                 U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/Peyda-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
                 U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/Peyda-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
                 U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/Peyda-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
                 U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/Peyda-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
                 U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/Peyda-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
                 U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}

/* ============================================================
   1) TOKENS
============================================================ */
:root {
  --black: #000000;
  --ink: #0a0a0a;
  --panel: #0e0e0e;
  --line: #1a1a1a;
  --line-2: #262626;
  --gray: #666666;
  --gray-2: #999999;
  --white: #ffffff;
  --lime: #ccff00;
  --red: #ff3b30;

  --header: 68px;
  --wrap: 1440px;
  --gutter: 24px;

  /* Peyda اول همه‌جا — انگلیسی خودکار می‌ره سراغ Syne / JetBrains Mono */
  --font-display: "Peyda", "Syne", system-ui, sans-serif;
  --font-body:    "Peyda", "Vazirmatn", system-ui, sans-serif;
  --font-mono:    "Peyda", "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 240ms;
}

/* ============================================================
   2) RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.03em; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  word-spacing: normal;
}
em { font-style: normal; color: var(--lime); }

/* ============================================================
   3) LAYOUT
============================================================ */
.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ============================================================
   4) BACKGROUND
============================================================ */
.grid-bg {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(204, 255, 0, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.028) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 20%, #000 30%, transparent 90%);
  mask-image: radial-gradient(ellipse 100% 80% at 50% 20%, #000 30%, transparent 90%);
}
.scanline {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
  opacity: 0.5;
  mix-blend-mode: overlay;
}

main, .site-header, .site-footer, .mobile-menu, .float-dock { position: relative; z-index: 2; }

/* ============================================================
   5) PROGRESS
============================================================ */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 200;
  background: transparent; pointer-events: none;
}
.progress > span {
  display: block; height: 100%; width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  will-change: transform;
}

/* ============================================================
   6) HEADER
============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 380ms var(--ease), background var(--t), border-color var(--t);
}
.site-header.is-hidden { transform: translateY(-110%); }

.header-shell {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

/* Brand */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800;
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--black);
  font-weight: 800; font-size: 1.2rem;
  font-family: var(--font-display);
}
.brand-body { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em;
  color: var(--white);
}
.brand-meta {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  color: var(--gray); margin-top: 4px;
}

/* Nav */
.nav {
  display: flex; justify-content: center; align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  color: var(--gray-2);
  font-size: 0.9rem;
  transition: color var(--t);
  position: relative;
}
.nav-link .nav-num {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--line-2);
  transition: color var(--t);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover .nav-num { color: var(--lime); }
.nav-link.is-active { color: var(--lime); }
.nav-link.is-active .nav-num { color: var(--lime); }

/* CTA */
.header-cta { display: flex; align-items: center; gap: 10px; }

/* ============================================================
   7) BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--white);
  transition: transform 180ms var(--ease), background 180ms, color 180ms, border-color 180ms;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }

.btn-lime {
  background: var(--lime);
  color: var(--black);
  border-color: var(--lime);
}
.btn-lime:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn-block { width: 100%; }

.btn-arrow {
  display: inline-block;
  transition: transform 240ms var(--ease);
}
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  place-items: center;
  position: relative;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--white);
  margin: 3px 0;
  transition: transform 300ms var(--ease), opacity 200ms;
  transform-origin: center;
}
.burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

/* ============================================================
   8) MOBILE MENU
============================================================ */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 320ms var(--ease), visibility 0s linear 320ms;
}
.mobile-menu.is-open {
  pointer-events: auto; opacity: 1; visibility: visible;
  transition: opacity 320ms var(--ease), visibility 0s;
}
.mobile-menu-bg {
  position: absolute; inset: 0;
  background: var(--black);
  transform: translateY(-100%);
  transition: transform 500ms var(--ease);
}
.mobile-menu.is-open .mobile-menu-bg { transform: translateY(0); }

.mobile-menu-inner {
  position: relative;
  height: 100%;
  padding: calc(var(--header) + 24px) 24px 24px;
  display: flex; flex-direction: column;
}
.mobile-menu-header {
  display: flex; justify-content: space-between;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.mobile-nav { display: flex; flex-direction: column; flex: 1; }
.mobile-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  opacity: 0; transform: translateY(20px);
}
.mobile-menu.is-open .mobile-link {
  animation: riseIn 500ms var(--ease) forwards;
  animation-delay: calc(80ms * var(--i) + 200ms);
}
.mobile-num {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--lime); letter-spacing: 0.1em;
}
.mobile-label { font-weight: 700; }
.mobile-arrow { color: var(--gray); font-size: 1.4rem; transition: color var(--t), transform var(--t); }
.mobile-link:hover .mobile-arrow { color: var(--lime); transform: translate(4px, -4px); }

.mobile-menu-foot {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 24px;
  opacity: 0; transform: translateY(20px);
}
.mobile-menu.is-open .mobile-menu-foot {
  animation: riseIn 500ms var(--ease) forwards;
  animation-delay: calc(80ms * var(--i) + 400ms);
}
.mobile-socials {
  display: flex; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.mobile-socials a {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--gray);
}
.mobile-socials a:hover { color: var(--lime); }

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   9) HERO
============================================================ */
.hero {
  min-height: 100svh;
  padding: calc(var(--header) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-wrap {
  display: flex; flex-direction: column;
  gap: 32px;
  min-height: calc(100svh - var(--header) - 160px);
  justify-content: center;
}

.hero-corner {
  position: absolute;
  font-family: var(--font-mono);
  color: var(--gray);
  pointer-events: none;
}
.hero-corner--tl { top: calc(var(--header) + 20px); right: 24px; }
.hero-corner--tr { top: calc(var(--header) + 20px); left: 24px; }
.hero-corner .mono { color: var(--gray); font-size: 0.65rem; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  align-self: flex-start;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 2s infinite;
}
.hero-eyebrow .mono { color: var(--gray-2); font-size: 0.68rem; }

.hero-title {
  font-size: clamp(2.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 16ch;
  color: var(--white);
  margin: 0;
}
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.05em;
}
.hero-title .word-inner {
  display: inline-block;
  transform: translateY(110%);
}
.hero-title em {
  font-style: normal;
  color: var(--lime);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-top: 24px;
}
.hero-lead {
  max-width: 44ch;
  font-size: 1.05rem;
  color: var(--gray-2);
  line-height: 1.8;
}
.hero-lead em { color: var(--lime); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: auto;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label { font-size: 0.68rem; }

.hero-scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--gray);
}
.hero-scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--lime);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

.hero-watermark {
  position: absolute;
  bottom: -2vw; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 22rem);
  font-weight: 800;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(204, 255, 0, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

@keyframes pulse { 50% { opacity: 0.4; } }
@keyframes scrollDrop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ============================================================
   10) MARQUEE
============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  background: var(--black);
}
.marquee-track {
  display: flex; gap: 40px;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--gray);
}
.marquee-track .sep { color: var(--lime); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ============================================================
   11) SECTION
============================================================ */
.section { padding: 100px 0; position: relative; }

.section-head { margin-bottom: 64px; max-width: 56rem; }
.section-num {
  display: block;
  color: var(--lime);
  font-size: 0.7rem;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.section-title em { color: var(--lime); }

/* ============================================================
   12) WHY
============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.why-card {
  background: var(--black);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background var(--t);
}
.why-card:hover { background: var(--ink); }
.why-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--lime);
}
.why-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.why-card p { color: var(--gray-2); font-size: 0.95rem; }
.why-tag {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--gray);
}

/* ============================================================
   13) SERVICES (horizontal)
============================================================ */
.services { position: relative; }
.services-pin {
  height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 80px 0;
}
.services-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px;
}
.services-hint { color: var(--lime); }

.services-viewport {
  width: 100%;
  overflow: hidden;
}
.services-track {
  display: flex;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: max-content;
  will-change: transform;
}
.service-card {
  width: 420px;
  flex-shrink: 0;
  background: var(--black);
  padding: 48px 40px;
  display: flex; flex-direction: column;
  gap: 16px;
  min-height: 420px;
  position: relative;
  transition: background 300ms;
}
.service-card:hover { background: var(--ink); }
.service-num { color: var(--lime); font-size: 0.75rem; }
.service-card h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.service-card p { color: var(--gray-2); font-size: 0.95rem; }
.service-tag {
  margin-top: auto;
  color: var(--gray);
}

/* ============================================================
   14) PROCESS (stacking)
============================================================ */
.process { padding: 100px 0; }
.stack {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  position: relative;
}
.stack-card {
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: 56px 48px;
  min-height: 400px;
  display: flex; flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  will-change: transform;
}
.stack-card:nth-child(2) { background: #101010; }
.stack-card:nth-child(3) { background: #121212; }
.stack-card:nth-child(4) { background: #141414; }

.stack-num {
  color: var(--lime);
  font-size: 0.75rem;
}
.stack-body {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.stack-body h3 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.stack-body p {
  max-width: 48ch;
  color: var(--gray-2);
  font-size: 1.05rem;
}
.stack-tag {
  color: var(--lime);
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
}

/* ============================================================
   15) PLANS
============================================================ */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.plan {
  background: var(--black);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  gap: 16px;
  transition: background var(--t);
}
.plan--featured {
  background: var(--ink);
  position: relative;
}
.plan--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--lime);
  pointer-events: none;
}
.plan-head {
  display: flex; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.plan-head .mono { color: var(--gray); }
.plan-num { color: var(--lime) !important; }

.plan-badge {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--lime);
  color: var(--black);
  font-weight: 700;
  font-size: 0.62rem;
}
.plan h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.plan-desc { color: var(--gray-2); font-size: 0.92rem; }
.plan-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.plan-price-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price-unit { color: var(--gray); }
.plan-list {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 0;
  margin-bottom: 8px;
}
.plan-list li {
  display: flex; gap: 10px;
  font-size: 0.92rem;
  color: var(--gray-2);
}
.plan-list li::before {
  content: "▸";
  color: var(--lime);
  flex-shrink: 0;
}

/* ============================================================
   16) WORKS (editorial list)
============================================================ */
.works-list {
  border-top: 1px solid var(--line);
}
.work-row {
  display: grid;
  grid-template-columns: 60px 1fr auto 40px;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: padding 300ms var(--ease);
}
.work-row:hover { padding-inline: 16px; }
.work-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 400ms var(--ease);
  z-index: -1;
}
.work-row:hover::before { transform: scaleY(1); transform-origin: top; }
.work-row:hover .work-name,
.work-row:hover .work-meta,
.work-row:hover .work-num,
.work-row:hover .work-arrow { color: var(--black); }

.work-num { color: var(--lime); transition: color 300ms; }
.work-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color 300ms;
}
.work-meta { color: var(--gray); transition: color 300ms; }
.work-arrow {
  font-size: 1.5rem;
  color: var(--gray);
  text-align: center;
  transition: color 300ms, transform 300ms;
}
.work-row:hover .work-arrow { transform: translate(4px, -4px); }

/* ============================================================
   17) QUOTES
============================================================ */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.quote {
  background: var(--black);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  gap: 24px;
  margin: 0;
}
.quote-mark {
  color: var(--lime);
  font-size: 2rem;
  line-height: 1;
  font-family: var(--font-display);
}
.quote blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--white);
}
.quote figcaption {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.quote-name { font-weight: 700; font-size: 0.95rem; }
.quote-role { color: var(--gray); font-size: 0.65rem; }

/* ============================================================
   18) BLOG
============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.blog-card {
  background: var(--black);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  gap: 16px;
  min-height: 280px;
  position: relative;
  transition: background var(--t);
  cursor: pointer;
}
.blog-card:hover { background: var(--ink); }
.blog-tag { color: var(--lime); font-size: 0.65rem; }
.blog-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.blog-card p { color: var(--gray-2); font-size: 0.92rem; }
.blog-arrow {
  position: absolute;
  top: 32px; left: 32px;
  color: var(--gray);
  font-size: 1.2rem;
  transition: color var(--t), transform var(--t);
}
.blog-card:hover .blog-arrow { color: var(--lime); transform: translate(-4px, -4px); }

/* ============================================================
   19) CTA
============================================================ */
.cta-section { padding: 120px 0; }
.cta {
  border: 1px solid var(--line-2);
  background: var(--ink);
  padding: 80px 48px;
  display: flex; flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(204, 255, 0, 0.08), transparent 70%);
  pointer-events: none;
}
.cta-num { color: var(--lime); position: relative; }
.cta-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 20ch;
  position: relative;
}
.cta-title em { color: var(--lime); }
.cta-lead {
  max-width: 40ch;
  color: var(--gray-2);
  font-size: 1.05rem;
  position: relative;
}
.cta-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  position: relative;
}
.cta-meta {
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: center;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  width: 100%;
  position: relative;
}
.cta-meta .mono { color: var(--gray-2); }

/* ============================================================
   20) FOOTER
============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  background: var(--black);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-brand .brand-mark {
  width: 44px; height: 44px;
  font-size: 1.4rem;
}
.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--lime);
  margin-bottom: 8px;
  font-weight: 400;
}
.footer-col a {
  color: var(--gray-2);
  font-size: 0.9rem;
  transition: color var(--t);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--lime); }
.footer-col p { color: var(--gray-2); font-size: 0.88rem; }

.newsletter {
  display: flex;
  margin-top: 8px;
  border: 1px solid var(--line-2);
}
.newsletter input {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
}
.newsletter input::placeholder { color: var(--gray); }
.newsletter button {
  width: 48px;
  background: var(--lime);
  color: var(--black);
  font-size: 1.2rem;
  transition: background var(--t);
}
.newsletter button:hover { background: var(--white); }
.form-note {
  display: block;
  margin-top: 8px;
  color: var(--lime);
  font-size: 0.7rem;
}

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.footer-bottom .mono { color: var(--gray); font-size: 0.65rem; }

/* ============================================================
   21) FLOAT CONTACT
============================================================ */
.float-dock {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 80;
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.float-btn {
  width: 52px; height: 52px;
  background: var(--lime);
  color: var(--black);
  display: grid; place-items: center;
  border: 1px solid var(--lime);
  transition: transform var(--t), background var(--t);
}
.float-btn:hover {
  transform: scale(1.05);
  background: var(--white);
  border-color: var(--white);
}
.float-btn svg { width: 20px; height: 20px; }
.float-links {
  display: flex; flex-direction: column;
  gap: 8px;
}
.float-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--ink);
  border: 1px solid var(--line-2);
  font-size: 0.85rem;
  transition: border-color var(--t), color var(--t);
}
.float-links a:hover { border-color: var(--lime); color: var(--lime); }
.float-links a .mono { color: var(--lime); }

/* ============================================================
   22) REVEAL
============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   23) PERSIAN TEXT — reset Latin-only spacing rules
============================================================ */
html[dir="rtl"] .mono,
html[dir="rtl"] .section-num,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .nav-num,
html[dir="rtl"] .mobile-num,
html[dir="rtl"] .work-num,
html[dir="rtl"] .stack-num,
html[dir="rtl"] .service-num,
html[dir="rtl"] .why-num,
html[dir="rtl"] .cta-num,
html[dir="rtl"] .blog-tag,
html[dir="rtl"] .plan-badge,
html[dir="rtl"] .brand-meta,
html[dir="rtl"] .quote-role,
html[dir="rtl"] .stat-label {
  letter-spacing: 0;
  word-spacing: normal;
}

/* mark پاک‌سازی letter-spacing برای تیترها و متن‌های طولانی فارسی */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] p,
html[dir="rtl"] blockquote,
html[dir="rtl"] .btn,
html[dir="rtl"] .plan-list li,
html[dir="rtl"] .why-card p,
html[dir="rtl"] .service-card p,
html[dir="rtl"] .blog-card p,
html[dir="rtl"] .hero-lead {
  word-spacing: normal;
}

/* تیترهای فارسی نباید منفی‌باشن، چسبندگی Peyda رو خراب می‌کنه */
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .cta-title,
html[dir="rtl"] .stack-body h3 {
  letter-spacing: -0.01em;
}

/* ============================================================
   24) RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-shell { grid-template-columns: auto 1fr; }
  .header-cta { justify-self: end; }

  .hero-corner { display: none; }

  .why-grid,
  .plans,
  .quotes,
  .blog-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; }

  .work-row { grid-template-columns: 40px 1fr auto; }
  .work-meta { display: none; }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; --header: 60px; }

  .hero { padding: calc(var(--header) + 40px) 0 60px; }
  .hero-wrap { gap: 24px; min-height: auto; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-lead { font-size: 0.95rem; }
  .hero-watermark { display: none; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .service-card { width: 280px; padding: 32px 24px; min-height: 340px; }
  .service-card h3 { font-size: 1.5rem; }

  .stack-card { padding: 32px 24px; min-height: 300px; }
  .stack-body h3 { font-size: 1.8rem; }

  .cta { padding: 48px 24px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }

  .float-dock { bottom: 16px; left: 16px; }
}

/* ============================================================
   25) REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}