/* ============================================================
   AWOL Studio — Design System
   Black + Neon Green | RTL-first (Persian)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-var.woff2') format('woff2-variations'),
       url('../fonts/Vazirmatn-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-var.woff2') format('woff2-variations'),
       url('../fonts/SpaceGrotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --bg:            #030604;
  --bg-2:          #06100a;
  --bg-3:          #08160f;
  --surface:       rgba(255, 255, 255, .035);
  --surface-2:     rgba(255, 255, 255, .06);

  /* Opaque base painted under every content panel.
     The ink simulation lives behind the page, so panels must not
     be see-through or the paint shows under the text. */
  --panel:         #070f0b;
  --panel-glass:   rgba(6, 14, 10, .92);
  --panel-blur:    blur(22px) saturate(130%);
  --stroke:        rgba(126, 255, 168, .12);
  --stroke-2:      rgba(126, 255, 168, .25);

  --neon:          #00ff88;
  --neon-2:        #b4ff39;
  --neon-3:        #16f0c0;
  --neon-deep:     #04b866;
  --neon-glow:     rgba(0, 255, 136, .55);

  --text:          #eafff3;
  --text-2:        rgba(234, 255, 243, .72);
  --text-3:        rgba(234, 255, 243, .48);

  /* type */
  --font-fa:  'Vazirmatn', 'Tahoma', system-ui, sans-serif;
  --font-en:  'Space Grotesk', 'Vazirmatn', system-ui, sans-serif;

  /* layout */
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
  --radius-sm: 16px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-fa);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--neon); color: #012; }

/* Persian numerals stay latin-friendly */
.num { font-family: var(--font-en); font-variant-numeric: tabular-nums; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(64px, 9vw, 130px); }
/* ---------- Panels ----------
   Every element listed here is also in BLOCK_SELECTOR inside bg.js,
   so the ink simulation stops painting when the cursor is over it.
   Keep the two lists in sync if you add a new card type.        */
.svc, .plan, .proj, .tcard, .stat, .step,
.tech__grid, .mcard, .acc__item, .plans__foot,
.field input, .field textarea, .field select {
  background-color: var(--panel);
}

/* The big outer panels stay very slightly translucent with a heavy blur,
   so ink drifting behind them reads as a soft glow rather than a shape. */
.shell {
  position: relative;
  border-radius: var(--radius);
  background-color: var(--panel-glass);
  background-image: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
  border: 1px solid var(--stroke);
  overflow: hidden;
}
.shell::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 85% 0%, rgba(0,255,136,.10), transparent 60%);
  pointer-events: none;
}

/* ---------- Backgrounds ---------- */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  display: block;
}
/* Shown only if WebGL is unavailable. Mirrors the approved base lighting. */
.bg-fallback {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 50% at 20% 15%, rgba(0,255,136,.16), transparent 60%),
    radial-gradient(55% 45% at 85% 30%, rgba(22,240,192,.13), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(180,255,57,.10), transparent 60%),
    var(--bg);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  z-index: 90;
  padding-block: 18px;
  transition: padding .4s var(--ease);
}
.header.is-stuck { padding-block: 10px; }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 12px;
  border-radius: 999px;
  background: rgba(4, 12, 8, .55);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.header.is-stuck .header__inner {
  background: rgba(3, 8, 5, .82);
  border-color: var(--stroke-2);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-inline-start: 8px;
}
/* Logo lockup is 1000 × 257 (≈3.89:1). Set width only and let the
   intrinsic ratio drive the height — no distortion, no layout shift. */
.logo__image {
  display: block;
  width: 190px;
  height: auto;
}
.logo__image--footer { width: 214px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: color .25s, background .25s;
  white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: var(--text); background-image: linear-gradient(var(--surface-2), var(--surface-2)); }

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

.lang {
  display: flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 999px;
  background-image: linear-gradient(var(--surface), var(--surface)); border: 1px solid var(--stroke);
}
.lang a {
  font-family: var(--font-en);
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 5px 11px; border-radius: 999px; color: var(--text-3);
  transition: .25s;
}
.lang a.is-active { background: var(--neon); color: #021207; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  background-color: transparent;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: linear-gradient(120deg, var(--neon), var(--neon-2));
  color: #021207;
  box-shadow: 0 0 0 rgba(0,255,136,0), 0 10px 30px -12px rgba(0,255,136,.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px -4px var(--neon-glow), 0 14px 34px -14px rgba(0,255,136,.9); }
.btn--ghost { background-image: linear-gradient(var(--surface), var(--surface)); border-color: var(--stroke-2); color: var(--text); }
.btn--ghost:hover { background-image: linear-gradient(var(--surface-2), var(--surface-2)); transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; }

.burger {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  background-color: var(--panel);
  background-image: linear-gradient(var(--surface), var(--surface)); border: 1px solid var(--stroke);
  cursor: pointer; position: relative;
}
.burger span {
  position: absolute; inset-inline: 13px; height: 2px; background: var(--text);
  border-radius: 2px; transition: .35s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(2, 6, 4, .96);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: .45s var(--ease);
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  font-size: 26px; font-weight: 800; padding: 14px 0;
  border-bottom: 1px solid var(--stroke);
}
.drawer .btn { margin-block-start: 28px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block-start: clamp(120px, 17vw, 190px); padding-block-end: 0; position: relative; }
.hero__inner { text-align: center; position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(34px, 6.4vw, 74px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-block-end: 22px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--neon) 0%, var(--neon-3) 45%, var(--neon-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  max-width: 720px; margin-inline: auto;
  font-size: clamp(15px, 1.9vw, 19px); color: var(--text-2);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-block-start: 36px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-block-start: 64px;
}
.stat {
  padding: 22px 16px; border-radius: var(--radius-sm);
  background-image: linear-gradient(var(--surface), var(--surface)); border: 1px solid var(--stroke);
  text-align: center;
}
.stat b {
  display: block; font-family: var(--font-en);
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 700;
  color: var(--neon); line-height: 1.1;
}
.stat span { font-size: 13.5px; color: var(--text-3); }

/* ============================================================
   Marquee
   ============================================================ */
.marquee-rows { display: flex; flex-direction: column; gap: 16px; }
/* direction:ltr is deliberate. Inside an RTL page an overflowing flex track
   anchors to the right, so translateX(-50%) drains it and leaves the strip
   half empty. Forcing LTR here makes the loop behave identically in both
   directions — the content itself has no reading order to preserve. */
.marquee { position: relative; overflow: hidden; direction: ltr; }
.marquee::before, .marquee::after {
  content: ''; position: absolute; inset-block: 0; width: 15%; z-index: 3; pointer-events: none;
}
/* Physical left/right, not logical — the strip is forced to LTR above, so
   these must not flip with the page direction. */
.marquee::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollx var(--marquee-duration, 130s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* Large enough for interface copy inside the screenshots to remain legible. */
.mcard {
  position: relative;
  width: clamp(300px, 30vw, 480px);
  aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; flex: none;
  border: 1px solid var(--stroke-2);
  background-color: var(--panel);
  /* resting neon rim so the cards lift off the dark background */
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, .06),
    0 0 26px -8px rgba(0, 255, 136, .40),
    0 16px 34px -20px rgba(0, 0, 0, .95);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.mcard::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .12);
  border-radius: inherit;
}
.mcard:hover {
  border-color: var(--neon);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, .16),
    0 0 32px -8px rgba(0, 255, 136, .52),
    0 16px 34px -20px rgba(0, 0, 0, .95);
}
.mcard img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation-play-state: paused;
    transform: none;
  }
}

/* ============================================================
   Section heads
   ============================================================ */
.shead {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px;
  align-items: end; margin-block-end: 52px;
}
.shead--center { grid-template-columns: 1fr; text-align: center; max-width: 760px; margin-inline: auto; }
.shead h2 {
  font-size: clamp(28px, 4.6vw, 52px); font-weight: 900; letter-spacing: -.02em;
}
.shead p { color: var(--text-2); font-size: clamp(14.5px, 1.7vw, 17px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--neon);
  letter-spacing: .06em; margin-block-end: 14px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--neon); opacity: .6;
}

/* ============================================================
   Services
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.svc {
  position: relative; overflow: hidden;
  padding: 34px; border-radius: var(--radius-sm);
  background-image: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid var(--stroke);
  transition: .45s var(--ease);
}
.svc::after {
  content: ''; position: absolute; inset-block-start: -60%; inset-inline-end: -30%;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,136,.22), transparent 65%);
  opacity: 0; transition: opacity .5s;
}
.svc:hover { transform: translateY(-5px); border-color: var(--stroke-2); }
.svc:hover::after { opacity: 1; }
.svc__top { display: flex; align-items: center; gap: 14px; margin-block-end: 16px; }
.svc__icon {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(0,255,136,.10); border: 1px solid var(--stroke-2);
  color: var(--neon);
}
.svc__icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: clamp(20px, 2.6vw, 27px); }
.svc p { color: var(--text-2); font-size: 15px; position: relative; z-index: 2; }
.svc__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-block-start: 18px; font-weight: 700; font-size: 14.5px; color: var(--neon);
}
.svc__link svg { width: 16px; height: 16px; transition: transform .3s; }
.svc:hover .svc__link svg { transform: translateX(-5px); }

/* ============================================================
   Client / case block
   ============================================================ */
.case {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px;
  align-items: center; padding: clamp(24px, 4vw, 52px);
}
.case h3 { font-size: clamp(24px, 3.4vw, 38px); margin-block-end: 16px; }
.case p { color: var(--text-2); }
.case__media { border-radius: 18px; overflow: hidden; border: 1px solid var(--stroke); }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 22px; }
.tag {
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
  background-image: linear-gradient(var(--surface), var(--surface)); border: 1px solid var(--stroke); color: var(--text-2);
}
.case__kpis { display: flex; gap: 28px; flex-wrap: wrap; margin-block-start: 26px; }
.case__kpis b { display: block; font-family: var(--font-en); font-size: 30px; color: var(--neon); line-height: 1; }
.case__kpis span { font-size: 13px; color: var(--text-3); }

/* ============================================================
   Globe
   ============================================================ */
.globe { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center; }
.globe__stage {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  max-width: 620px; margin-inline: auto;
  cursor: grab; touch-action: pan-y;
}
.globe__stage:active { cursor: grabbing; }
.globe__stage canvas { width: 100% !important; height: 100% !important; }
.globe__hint {
  position: absolute; inset-block-end: 6px; inset-inline: 0; text-align: center;
  font-size: 12.5px; color: var(--text-3); pointer-events: none;
}
.globe__tip {
  position: absolute; z-index: 5; pointer-events: none;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(3,10,6,.9); border: 1px solid var(--stroke-2); color: var(--neon);
  transform: translate(-50%, -140%); opacity: 0; transition: opacity .2s;
  white-space: nowrap;
}
.globe__tip.is-on { opacity: 1; }

.acc { display: flex; flex-direction: column; gap: 10px; margin-block-start: 28px; }
.acc__item { border-radius: 18px; background-image: linear-gradient(var(--surface), var(--surface)); border: 1px solid var(--stroke); overflow: hidden; transition: .35s; }
.acc__item.is-open { border-color: var(--stroke-2); background-image: linear-gradient(var(--surface-2), var(--surface-2)); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 22px; background: none; border: 0; cursor: pointer;
  font-weight: 700; font-size: 16.5px; text-align: start;
}
.acc__plus { position: relative; width: 22px; height: 22px; flex: none; }
.acc__plus::before, .acc__plus::after {
  content: ''; position: absolute; inset-block-start: 50%; inset-inline-start: 0;
  width: 100%; height: 2px; background: var(--neon); border-radius: 2px; transition: .35s var(--ease);
}
.acc__plus::after { transform: rotate(90deg); }
.acc__item.is-open .acc__plus::after { transform: rotate(0); opacity: 0; }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.acc__body > div { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; }

/* ============================================================
   Projects
   ============================================================ */
.projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.proj {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--stroke); background-image: linear-gradient(var(--surface), var(--surface));
  transition: .45s var(--ease);
}
.proj:hover { transform: translateY(-6px); border-color: var(--stroke-2); }
/* Matches a browser viewport, so real screenshots sit in the card
   without losing the sides. */
.proj__img { aspect-ratio: 16 / 9; overflow: hidden; }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.proj:hover .proj__img img { transform: scale(1.06); }
.proj__body { padding: 24px 26px 28px; }
.proj__kind { font-size: 12.5px; letter-spacing: .12em; color: var(--neon); margin-block-end: 6px; }
.proj h3 { font-size: 22px; margin-block-end: 8px; }
.proj p { font-size: 14.5px; color: var(--text-2); }

/* ============================================================
   Studio concepts gallery
   ============================================================ */
.concepts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cpt {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background-color: var(--panel);
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.cpt:hover { transform: translateY(-6px); border-color: var(--stroke-2); }
.cpt img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: saturate(.92) brightness(.94);
  transition: filter .45s var(--ease), transform .8s var(--ease);
}
.cpt:hover img { filter: none; transform: scale(1.03); }
.cpt figcaption {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 16px 20px 18px;
}
.cpt figcaption b { font-size: 16px; }
.cpt figcaption span { font-size: 12.5px; color: var(--text-3); }

@media (max-width: 900px) { .concepts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .concepts { grid-template-columns: 1fr; } }

/* ============================================================
   Commitments
   ============================================================ */
.pledges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pledge {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 26px 28px; border-radius: var(--radius-sm);
  background-color: var(--panel);
  background-image: linear-gradient(150deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  border: 1px solid var(--stroke);
  transition: .4s var(--ease);
}
.pledge:hover { transform: translateY(-4px); border-color: var(--stroke-2); }
.pledge__no {
  font-family: var(--font-en); font-size: 15px; font-weight: 700;
  color: var(--neon); flex: none; padding-block-start: 3px; opacity: .8;
}
.pledge h4 { font-size: 18px; margin-block-end: 7px; }
.pledge p { font-size: 14.5px; color: var(--text-2); }
@media (max-width: 780px) { .pledges { grid-template-columns: 1fr; } }

/* ============================================================
   Tech stack
   ============================================================ */
.tech__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--stroke); border-radius: var(--radius-sm); overflow: hidden;
  background-image: linear-gradient(var(--surface), var(--surface));
}
.tech__cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 38px 12px; min-height: 168px;
  border-inline-end: 1px solid var(--stroke);
  border-block-end: 1px solid var(--stroke);
  transition: background .35s;
}
.tech__cell:hover { background: rgba(0,255,136,.06); }
.tech__cell img {
  width: 44px; height: 44px; opacity: .82;
  filter: brightness(0) invert(1);
  transition: .4s var(--ease);
}
.tech__cell:hover img { opacity: 1; transform: translateY(-4px) scale(1.06); }
.tech__cell span { font-family: var(--font-en); font-size: 13px; color: var(--text-3); letter-spacing: .04em; }
.tech__cell:hover span { color: var(--neon); }

/* ============================================================
   Process
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.step {
  position: relative; padding: 28px 22px; border-radius: var(--radius-sm);
  background-image: linear-gradient(var(--surface), var(--surface)); border: 1px solid var(--stroke);
  transition: .4s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: var(--stroke-2); }
.step b {
  font-family: var(--font-en); font-size: 34px; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px var(--neon); display: block; line-height: 1;
  margin-block-end: 14px;
}
.step h4 { font-size: 17.5px; margin-block-end: 8px; }
.step p { font-size: 14px; color: var(--text-3); }

/* ============================================================
   Pricing / templates
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: 30px 26px; border-radius: var(--radius-sm);
  background-image: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--stroke);
  position: relative; overflow: hidden;
  transition: .45s var(--ease);
}
.plan:hover { transform: translateY(-6px); border-color: var(--stroke-2); }
.plan--featured {
  border-color: var(--stroke-2);
  background-image: linear-gradient(160deg, rgba(0,255,136,.10), rgba(255,255,255,.015));
  box-shadow: 0 24px 60px -30px rgba(0,255,136,.55);
}
.plan--vip {
  border-color: rgba(0, 200, 111, .48);
  background-image:
    radial-gradient(100% 70% at 100% 0%, rgba(0, 200, 111, .15), transparent 62%),
    linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  box-shadow: 0 24px 60px -32px rgba(0, 200, 111, .65);
}
.plan__badge {
  position: absolute; inset-block-start: 18px; inset-inline-end: 18px;
  padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--neon); color: #021207;
  line-height: 1.45;
  white-space: nowrap;
}
.plan__badge--quiet {
  background: rgba(0, 200, 111, .10);
  color: #55e8a3;
  border: 1px solid rgba(0, 200, 111, .24);
}
.plan__badge--vip {
  background: #0b3926;
  color: #7af0b4;
  border: 1px solid rgba(85, 232, 163, .42);
}
.plan h3 {
  font-size: 22px;
  line-height: 1.4;
  margin-block-start: 36px;
  margin-block-end: 10px;
}
.plan__desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-3);
  min-height: 72px;
}
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-block: 22px 7px; }
.plan__price b { font-family: var(--font-en); font-size: 40px; font-weight: 700; color: var(--neon); line-height: 1; }
.plan__price span { font-size: 14px; color: var(--text-3); }
.plan__price--custom b {
  font-family: var(--font-fa);
  font-size: 27px;
  letter-spacing: 0;
}
.plan__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-3);
  margin-block-end: 24px;
}
.plan ul { display: flex; flex-direction: column; gap: 13px; margin-block-end: 30px; }
.plan li {
  display: flex;
  gap: 9px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  align-items: flex-start;
}
.plan li svg { width: 17px; height: 17px; flex: none; color: var(--neon); margin-block-start: 4px; }
.plan .btn { margin-block-start: auto; }
.plan .btn--ghost {
  background-color: rgba(0, 200, 111, .08);
  background-image: none;
  border-color: rgba(0, 200, 111, .42);
  color: #55e8a3;
}
.plan .btn--ghost:hover {
  background-color: rgba(0, 200, 111, .16);
  background-image: none;
  border-color: #00c86f;
  color: var(--text);
  box-shadow: 0 12px 28px -18px rgba(0, 200, 111, .8);
}
.plan .btn--primary {
  background: #00c86f;
  color: #021207;
  box-shadow: 0 12px 30px -16px rgba(0, 200, 111, .9);
}
.plan .btn--primary:hover {
  background: #26dc89;
  box-shadow: 0 0 28px -7px rgba(0, 200, 111, .75);
}
.plan .btn--vip {
  background: linear-gradient(120deg, #0b432c, #00a85e);
  border-color: #00c86f;
  color: var(--text);
  box-shadow: 0 12px 30px -16px rgba(0, 200, 111, .9);
}
.plan .btn--vip:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #0d5134, #00c86f);
  box-shadow: 0 0 30px -8px rgba(0, 200, 111, .85);
}

.plans__foot {
  margin-block-start: 22px; padding: 22px 26px; border-radius: var(--radius-sm);
  background-image: linear-gradient(var(--surface), var(--surface)); border: 1px dashed var(--stroke-2);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 14.5px; color: var(--text-2);
}

/* ============================================================
   Testimonials
   ============================================================ */
.tstm { display: grid; grid-template-columns: .55fr 1.45fr; gap: 34px; align-items: center; }
.tstm__score b { font-family: var(--font-en); font-size: 62px; color: var(--neon); line-height: 1; }
.tstm__score .stars { color: var(--neon-2); font-size: 20px; letter-spacing: 3px; }
.tstm__score p { font-size: 14.5px; color: var(--text-2); margin-block-start: 14px; }

.tslider { overflow: hidden; }
.tslider__track { display: flex; gap: 18px; transition: transform .6s var(--ease); }
.tcard {
  flex: 0 0 calc(50% - 9px); min-width: 0;
  padding: 30px; border-radius: var(--radius-sm);
  background-image: linear-gradient(var(--surface), var(--surface)); border: 1px solid var(--stroke);
  display: flex; flex-direction: column; gap: 18px;
}
.tcard__stars { color: var(--neon-2); letter-spacing: 3px; }
.tcard p { font-size: 15px; color: var(--text-2); flex: 1; }
.tcard__who { display: flex; align-items: center; gap: 12px; }
.tcard__who img { width: 46px; height: 46px; border-radius: 50%; }
.tcard__who b { display: block; font-size: 15px; }
.tcard__who span { font-size: 13px; color: var(--text-3); }

.tnav { display: flex; gap: 10px; margin-block-start: 26px; }
.tnav button {
  width: 48px; height: 48px; border-radius: 50%;
  background-image: linear-gradient(var(--surface), var(--surface)); border: 1px solid var(--stroke);
  cursor: pointer; display: grid; place-items: center; transition: .3s;
}
.tnav button:hover { background: var(--neon); color: #021207; border-color: var(--neon); }
.tnav svg { width: 18px; height: 18px; }

/* ============================================================
   CTA + Contact
   ============================================================ */
.cta { padding: clamp(32px, 6vw, 76px); text-align: center; }
.cta h2 { font-size: clamp(28px, 5vw, 54px); font-weight: 900; margin-block-end: 16px; }
.cta p { color: var(--text-2); max-width: 620px; margin-inline: auto; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block-start: 34px; text-align: start; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--text-3); }
.field input, .field textarea, .field select {
  padding: 14px 18px; border-radius: 14px;
  background-image: linear-gradient(rgba(255,255,255,.045), rgba(255,255,255,.045)); border: 1px solid var(--stroke);
  outline: none; transition: .3s; width: 100%;
}
.field select { appearance: none; background-image: none; }
.field select option { background: #061009; color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0,255,136,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--text-3); }
.form__ok {
  grid-column: 1 / -1; display: none; padding: 16px 20px; border-radius: 14px;
  background: rgba(0,255,136,.10); border: 1px solid var(--stroke-2); color: var(--neon);
  font-size: 14.5px;
}
.form__ok.is-on { display: block; }
.form__ok.is-error {
  color: #ffb9b9;
  border-color: rgba(255, 92, 92, .38);
  background: rgba(255, 70, 70, .09);
}
.hp-field {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
button:disabled {
  cursor: wait;
  opacity: .72;
}

/* ============================================================
   Footer
   ============================================================ */
.footer { border-block-start: 1px solid var(--stroke); margin-block-start: 40px; padding-block: 56px 34px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { font-size: 15px; margin-block-end: 16px; color: var(--text); }
.footer li, .footer p { font-size: 14px; color: var(--text-3); margin-block-end: 9px; }
.footer a:hover { color: var(--neon); }
.footer__bottom {
  margin-block-start: 40px; padding-block-start: 22px; border-block-start: 1px solid var(--stroke);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background-image: linear-gradient(var(--surface), var(--surface)); border: 1px solid var(--stroke); transition: .3s;
}
.socials a:hover { background: var(--neon); color: #021207; }
.socials svg { width: 19px; height: 19px; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(120deg, var(--neon), var(--neon-2)); color: #021207;
  border: 0; display: grid; place-items: center;
  box-shadow: 0 12px 34px -12px rgba(0,255,136,.8);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .4s var(--ease);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 22px; height: 22px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .tech__grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .globe { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .tstm { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .tcard { flex: 0 0 100%; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .shead { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .services__grid, .projects__grid { grid-template-columns: 1fr; }
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .logo__image { width: 138px; }
  .header { padding-block: 10px; }
  .header__inner { gap: 10px; padding: 8px 10px; }
  .header__actions { gap: 0; }
  .header__actions > .btn { display: none; }
  .burger { flex: 0 0 46px; }
  .cta { padding: 30px 20px; }
  .cta h2 { font-size: clamp(29px, 9vw, 40px); line-height: 1.35; }
  .field input, .field textarea, .field select { min-height: 50px; font-size: 16px; }
  .field textarea { min-height: 140px; }
  .form .btn { width: 100%; justify-content: center; min-height: 50px; }
  .form__ok { line-height: 1.85; }
}

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