/* ══════════════════════════════════════════════
   امید افزار پارس — Design System
   ══════════════════════════════════════════════ */

@font-face {
  font-family: 'YekanBakh';
  src: url('../assets/fonts/YekanBakh-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../assets/fonts/YekanBakh-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../assets/fonts/YekanBakh-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

:root {
  --ink:        #04060d;
  --navy:       #123a6b;
  --cyan:       #3fe0ff;
  --cyan-soft:  #7ceeff;
  --line:       rgba(140, 190, 235, .14);
  --line-2:     rgba(140, 190, 235, .07);

  --fg:         #e8eef8;
  --fg-mute:    #94a4be;
  --fg-dim:     #66748f;

  --shell:      1240px;
  --r:          18px;
  --r-lg:       24px;

  --ease:       cubic-bezier(.22, 1, .36, 1);
  --ease-io:    cubic-bezier(.65, 0, .35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'YekanBakh', system-ui, 'Segoe UI', Tahoma, sans-serif;
  background: var(--ink);
  color: var(--fg);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 100%; height: 100%; display: block; }

::selection { background: var(--cyan); color: #04060d; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05080f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--navy), #0d2a52);
  border-radius: 10px;
  border: 2px solid #05080f;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--cyan), var(--navy)); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ══════════ Preloader ══════════ */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ink);
  transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 26px; width: min(300px, 70vw); }
.preloader__logo { width: 100%; opacity: .95; animation: breathe 2.4s var(--ease-io) infinite; }
@keyframes breathe { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.preloader__bar {
  width: 100%; height: 2px;
  background: rgba(255,255,255,.08);
  border-radius: 2px; overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--navy), var(--cyan));
  box-shadow: 0 0 14px var(--cyan);
  transition: width .3s linear;
}
.preloader__pct { font-size: .8rem; letter-spacing: .1em; color: var(--fg-dim); }

/* ══════════ WebGL stage ══════════ */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(24, 78, 145, .38) 0%, transparent 58%),
    radial-gradient(90% 70% at 12% 88%, rgba(12, 52, 104, .32) 0%, transparent 60%),
    linear-gradient(180deg, #04060d 0%, #060a15 40%, #04070e 100%);
}
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.stage__grain {
  position: absolute; inset: -50%;
  opacity: .032; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}
.stage__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 42%, rgba(2,4,9,.76) 100%);
}

/* ══════════ Cursor ══════════ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150;
  width: 320px; height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(63,224,255,.09) 0%, rgba(18,58,107,.05) 40%, transparent 70%);
  transition: opacity .4s;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) { .cursor { opacity: 1; } }

.scrollbar {
  position: fixed; top: 0; right: 0; z-index: 120;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  box-shadow: 0 0 12px rgba(63,224,255,.6);
}

/* ══════════ Header ══════════ */
.hdr {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 48px);
  transition: padding .4s var(--ease), background .4s var(--ease);
}
.hdr.is-stuck {
  padding-block: 12px;
  background: rgba(5, 8, 16, .74);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line-2);
}
.hdr__brand img {
  height: 28px; width: auto;
  transition: height .4s var(--ease), filter .4s;
  filter: drop-shadow(0 0 16px rgba(63,224,255,.22));
}
.hdr.is-stuck .hdr__brand img { height: 24px; }
.hdr__brand:hover img { filter: drop-shadow(0 0 22px rgba(63,224,255,.55)); }

.hdr__nav { display: flex; gap: 2px; }
.hdr__nav a {
  position: relative;
  padding: 8px 15px;
  font-size: .94rem;
  color: var(--fg-mute);
  transition: color .3s;
}
.hdr__nav a::after {
  content: '';
  position: absolute; bottom: 2px; inset-inline: 50%;
  height: 1.5px; border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transition: inset-inline .35s var(--ease);
}
.hdr__nav a:hover, .hdr__nav a.is-active { color: var(--fg); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { inset-inline: 16%; }

.hdr__side { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0; border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  place-items: center; gap: 5px;
}
.burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--fg); border-radius: 2px;
  transition: transform .35s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 99;
  display: grid; align-content: center; justify-items: center;
  gap: 8px;
  background: rgba(4, 7, 14, .97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer a {
  font-size: clamp(1.5rem, 6.5vw, 2.2rem);
  font-weight: 700;
  color: var(--fg-mute);
  opacity: 0; transform: translateY(24px);
  transition: color .3s, opacity .5s var(--ease), transform .5s var(--ease);
}
.drawer.is-open a { opacity: 1; transform: none; }
.drawer.is-open a:nth-child(1) { transition-delay: .06s; }
.drawer.is-open a:nth-child(2) { transition-delay: .12s; }
.drawer.is-open a:nth-child(3) { transition-delay: .18s; }
.drawer.is-open a:nth-child(4) { transition-delay: .24s; }
.drawer.is-open a:nth-child(5) { transition-delay: .30s; }
.drawer.is-open a:nth-child(6) { transition-delay: .36s; }
.drawer a:hover { color: var(--fg); }
.drawer__cta {
  margin-top: 22px;
  padding: 12px 34px;
  font-size: 1.02rem !important;
  color: #04060d !important;
  background: linear-gradient(135deg, var(--cyan), #1fa8d8);
  border-radius: 99px;
}

/* ══════════ Buttons ══════════ */
.btn {
  --btn-fg: var(--fg);
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  color: var(--btn-fg);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
.btn:active { transform: scale(.97); }

.btn--primary {
  --btn-fg: #04060d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan-soft) 0%, var(--cyan) 45%, #1b8fc4 100%);
  box-shadow: 0 6px 30px -8px rgba(63,224,255,.5);
}
.btn--primary::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #fff, var(--cyan-soft));
  opacity: 0; transition: opacity .35s;
}
.btn--primary:hover { box-shadow: 0 10px 44px -8px rgba(63,224,255,.75); transform: translateY(-2px); }
.btn--primary:hover::before { opacity: 1; }

.btn--ghost { background: rgba(255,255,255,.03); backdrop-filter: blur(10px); }
.btn--ghost:hover {
  border-color: rgba(63,224,255,.45);
  box-shadow: 0 0 30px -10px rgba(63,224,255,.55);
  transform: translateY(-2px);
}
.btn--sm { padding: 10px 22px; font-size: .9rem; }
.btn--full { width: 100%; justify-content: center; }

/* ══════════ Hero ══════════ */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: 150px clamp(20px, 5vw, 48px) 130px;
}
.hero__wrap { width: 100%; max-width: var(--shell); margin-inline: auto; }

/* HUD corner brackets */
.hud { position: absolute; inset: clamp(14px, 3vw, 30px); pointer-events: none; }
.hud i { position: absolute; width: 22px; height: 22px; opacity: .5; }
.hud i::before, .hud i::after {
  content: ''; position: absolute; background: var(--cyan);
  box-shadow: 0 0 8px rgba(63,224,255,.6);
}
.hud i::before { width: 100%; height: 1px; }
.hud i::after { width: 1px; height: 100%; }
.hud i:nth-child(1) { top: 0; left: 0; }
.hud i:nth-child(1)::before { top: 0; left: 0; }
.hud i:nth-child(1)::after { top: 0; left: 0; }
.hud i:nth-child(2) { top: 0; right: 0; }
.hud i:nth-child(2)::before { top: 0; right: 0; }
.hud i:nth-child(2)::after { top: 0; right: 0; }
.hud i:nth-child(3) { bottom: 0; left: 0; }
.hud i:nth-child(3)::before { bottom: 0; left: 0; }
.hud i:nth-child(3)::after { bottom: 0; left: 0; }
.hud i:nth-child(4) { bottom: 0; right: 0; }
.hud i:nth-child(4)::before { bottom: 0; right: 0; }
.hud i:nth-child(4)::after { bottom: 0; right: 0; }

/* Vertical spine label on the far edge */
.spine {
  position: absolute; left: clamp(16px, 3.4vw, 36px); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  writing-mode: vertical-rl;
  font-size: .68rem; letter-spacing: .34em;
  color: var(--fg-dim);
  pointer-events: none;
}
.spine em {
  display: block; width: 1px; height: 64px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
}

.hero__title {
  margin: 0 0 34px;
  font-size: clamp(2.5rem, 7.6vw, 6rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.02em;
}
.hero__title .line { display: block; overflow: hidden; padding-block: .05em; }
.hero__title .w {
  display: inline-block;
  transform: translateY(110%) rotate(3deg);
  opacity: 0;
  transition: transform 1.05s var(--ease), opacity 1.05s var(--ease);
}
.is-ready .hero__title .w { transform: none; opacity: 1; }
.hero__title .line:nth-child(1) .w:nth-child(1) { transition-delay: .08s; }
.hero__title .line:nth-child(1) .w:nth-child(2) { transition-delay: .14s; }
.hero__title .line:nth-child(1) .w:nth-child(3) { transition-delay: .20s; }
.hero__title .line:nth-child(2) .w:nth-child(1) { transition-delay: .28s; }
.hero__title .line:nth-child(2) .w:nth-child(2) { transition-delay: .34s; }
.hero__title .line:nth-child(2) .w:nth-child(3) { transition-delay: .40s; }
.hero__title .line:nth-child(2) .w:nth-child(4) { transition-delay: .46s; }

.grad {
  background: linear-gradient(100deg, var(--cyan-soft) 0%, var(--cyan) 40%, #4d9fe0 75%, #7ceeff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 7s var(--ease-io) infinite;
}
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.hero__lede {
  max-width: 56ch;
  margin: 0 0 40px;
  font-size: clamp(1rem, 2.1vw, 1.16rem);
  color: var(--fg-mute);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ══════════ Sections ══════════ */
.sec {
  position: relative; z-index: 2;
  padding-block: clamp(84px, 12vw, 148px);
}
.sec--alt::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(7, 13, 27, .74);
  border-block: 1px solid var(--line-2);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
}

.sec__head { max-width: 660px; margin-bottom: clamp(48px, 7vw, 76px); }
.sec__head--tight { margin-bottom: 0; }
.sec__title {
  margin: 16px 0 18px;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -.015em;
}
.sec__sub { margin: 0 0 14px; font-size: clamp(.97rem, 1.9vw, 1.08rem); color: var(--fg-mute); }
.sec__sub:last-child { margin-bottom: 0; }

/* Numbered section marker */
.mark {
  display: flex; align-items: center; gap: 12px;
  margin: 0;
  font-size: .82rem; letter-spacing: .2em;
  color: var(--fg-dim);
}
.mark b {
  font-weight: 700; color: var(--cyan);
  letter-spacing: .05em;
}
.mark::after {
  content: '';
  flex: 1; max-width: 90px; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ══════════ Stats ══════════ */
.stats { position: relative; z-index: 2; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border-block: 1px solid var(--line-2);
  overflow: hidden;
}
.stat {
  display: grid; gap: 4px; justify-items: center;
  padding: 40px 16px;
  text-align: center;
  background: rgba(6, 10, 20, .55);
  transition: background .4s;
}
.stat:hover { background: rgba(18, 58, 107, .2); }
.stat b {
  font-size: clamp(2rem, 4.8vw, 3rem);
  font-weight: 900; line-height: 1.2;
  background: linear-gradient(180deg, #fff, #7ea9d6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat span { font-size: .86rem; color: var(--fg-dim); }

/* ══════════ Cards ══════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  padding: 32px 30px 30px;
  background: linear-gradient(160deg, rgba(19, 32, 58, .46), rgba(7, 12, 23, .52));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  transition: border-color .45s, box-shadow .45s, transform .2s var(--ease);
}
.card::before {
  content: '';
  position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63,224,255,.5), transparent);
  opacity: 0; transition: opacity .45s;
}
.card:hover {
  border-color: rgba(63, 224, 255, .3);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 60px -25px rgba(63,224,255,.3);
}
.card:hover::before { opacity: 1; }

.card__glow {
  position: absolute; width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,224,255,.14), transparent 65%);
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .45s;
  left: var(--mx, 50%); top: var(--my, 50%);
}
.card:hover .card__glow { opacity: 1; }

/* Sits in the far corner from the icon so the two never collide */
.card__no {
  position: absolute; top: 26px; inset-inline-end: 28px;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .12em;
  color: var(--fg-dim);
}

.card__ico {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  padding: 13px;
  color: var(--cyan);
  background: rgba(63, 224, 255, .07);
  border: 1px solid rgba(63, 224, 255, .18);
  border-radius: 15px;
  transform: translateZ(30px);
  transition: background .45s, box-shadow .45s;
}
.card:hover .card__ico {
  background: rgba(63, 224, 255, .13);
  box-shadow: 0 0 30px -6px rgba(63,224,255,.45);
}
.card h3 { margin: 0 0 12px; font-size: 1.24rem; font-weight: 700; transform: translateZ(22px); }
.card p { margin: 0 0 20px; font-size: .95rem; color: var(--fg-mute); transform: translateZ(14px); }
.card__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card__list li {
  position: relative;
  padding-inline-start: 18px;
  font-size: .88rem; color: var(--fg-dim);
}
.card__list li::before {
  content: '';
  position: absolute; inset-inline-start: 0; top: .8em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan); opacity: .65;
}

/* ══════════ Steps ══════════ */
.steps {
  position: relative;
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 16px;
}
.steps::before {
  content: '';
  position: absolute; inset-block: 34px; inset-inline-start: 33px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), rgba(63,224,255,.26), var(--line), transparent);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 26px;
  background: rgba(8, 13, 25, .5);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
  transition: border-color .45s, transform .45s var(--ease), background .45s;
}
.step:hover {
  border-color: rgba(63,224,255,.26);
  background: rgba(14, 26, 48, .62);
  transform: translateX(-8px);
}
.step__n {
  display: grid; place-items: center;
  width: 66px; height: 66px;
  font-size: 1.1rem; font-weight: 900;
  color: var(--cyan);
  background: rgba(6, 12, 24, .95);
  border: 1px solid rgba(63,224,255,.22);
  border-radius: 16px;
  box-shadow: 0 0 34px -12px rgba(63,224,255,.5);
}
.step h3 { margin: 6px 0 8px; font-size: 1.2rem; font-weight: 700; }
.step p { margin: 0; font-size: .95rem; color: var(--fg-mute); max-width: 68ch; }

/* ══════════ Stack ══════════ */
.stackgrid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.techs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tech {
  padding: 26px 24px;
  background: rgba(7, 12, 24, .6);
  backdrop-filter: blur(10px);
  transition: background .4s;
}
.tech:hover { background: rgba(18, 40, 74, .5); }
.tech b {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 12px;
  font-size: .82rem; letter-spacing: .1em;
  color: var(--cyan);
  border-bottom: 1px solid var(--line-2);
}
.tech ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.tech li { font-size: .92rem; color: var(--fg-mute); direction: ltr; text-align: right; }

.marquee {
  /* LTR: in RTL the track overflows leftward, so translating left scrolls the
     list away instead of pulling the duplicate in behind it. */
  direction: ltr;
  margin-top: clamp(48px, 7vw, 76px);
  padding-block: 22px;
  border-block: 1px solid var(--line-2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__row { overflow: hidden; }
.marquee__track {
  display: flex; width: max-content;
  will-change: transform;
  animation: marq 44s linear infinite;
}
.marquee__row[data-dir="-1"] .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* The list is duplicated in the markup, so -50% wraps seamlessly. */
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__track span {
  /* margin, not gap — keeps the duplicate exactly half the total width */
  margin-inline-start: 12px;
  padding: 10px 26px;
  font-size: clamp(.95rem, 2vw, 1.15rem); font-weight: 700;
  color: var(--fg-dim);
  white-space: nowrap;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  transition: color .35s, border-color .35s;
}
.marquee__track span:hover { color: var(--fg); border-color: rgba(63,224,255,.35); }

/* ══════════ About ══════════ */
.about {
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.about__p { margin: 0 0 18px; font-size: 1.02rem; color: var(--fg-mute); max-width: 62ch; }

.checks { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.checks li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  font-size: .98rem;
}
.checks svg {
  width: 24px; height: 24px;
  margin-top: .28em;
  padding: 4px;
  color: var(--cyan);
  background: rgba(63,224,255,.08);
  border: 1px solid rgba(63,224,255,.28);
  border-radius: 50%;
}

.idcard {
  position: relative;
  padding: 34px 30px 30px;
  text-align: center;
  background: linear-gradient(165deg, rgba(19, 40, 74, .5), rgba(6, 11, 22, .58));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.idcard__glow {
  position: absolute; inset-inline: -30%; top: -60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(63,224,255,.14), transparent 62%);
  pointer-events: none;
}
.idcard__logo {
  position: relative;
  width: 132px; margin: 6px auto 26px;
  opacity: .95;
  filter: drop-shadow(0 0 26px rgba(63,224,255,.22));
  animation: float 6s var(--ease-io) infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.idcard h3 { margin: 0 0 2px; font-size: 1.3rem; font-weight: 900; }
.idcard__legal { margin: 0 0 24px; font-size: .85rem; color: var(--fg-dim); }
.idcard__facts {
  margin: 0; padding: 22px 0 0;
  list-style: none;
  display: grid; gap: 11px;
  border-top: 1px solid var(--line-2);
}
.idcard__facts li { font-size: .92rem; color: var(--fg-mute); }

/* ══════════ Contact ══════════ */
.contact {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: clamp(26px, 4vw, 38px);
  background: linear-gradient(165deg, rgba(17, 30, 56, .48), rgba(6, 11, 22, .54));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  padding: 21px 18px 9px;
  font-family: inherit; font-size: .97rem;
  color: var(--fg);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  resize: vertical;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 116px; line-height: 1.75; }
.field label {
  position: absolute; inset-inline-start: 18px; top: 15px;
  font-size: .95rem; color: var(--fg-dim);
  pointer-events: none;
  transform-origin: right top;
  transition: transform .3s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus {
  border-color: rgba(63,224,255,.5);
  background: rgba(63,224,255,.05);
  box-shadow: 0 0 0 4px rgba(63,224,255,.07);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.76);
  color: var(--cyan);
}
.field label i { font-style: normal; opacity: .6; font-size: .85em; }
.field.is-bad input, .field.is-bad textarea { border-color: rgba(255, 106, 106, .55); }

.form .btn { grid-column: 1 / -1; }
.form__note {
  grid-column: 1 / -1;
  margin: 0; min-height: 1.4em;
  font-size: .9rem; color: var(--cyan);
  text-align: center;
}
.form__note.is-bad { color: #ff8a8a; }

.info { display: grid; gap: 10px; align-content: start; }
.info__row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 19px 22px;
  background: rgba(8, 13, 25, .48);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
  transition: border-color .35s, transform .35s var(--ease), background .35s;
}
a.info__row:hover {
  border-color: rgba(63,224,255,.28);
  background: rgba(14, 26, 48, .6);
  transform: translateX(-6px);
}
.info__ico {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  padding: 10px;
  color: var(--cyan);
  background: rgba(63,224,255,.07);
  border: 1px solid rgba(63,224,255,.18);
  border-radius: 12px;
}
.info__row > span:last-child { display: grid; gap: 2px; }
.info__row b { font-size: .77rem; font-weight: 400; color: var(--fg-dim); }
.info__row em { font-style: normal; font-size: .99rem; font-weight: 700; line-height: 1.65; }

/* ══════════ Footer ══════════ */
.ftr {
  position: relative; z-index: 2;
  padding-top: clamp(56px, 8vw, 84px);
  border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, transparent, rgba(4, 8, 16, .88));
}
.ftr__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr auto;
  gap: 40px;
  padding-bottom: 44px;
}
.ftr__brand img { height: 26px; width: auto; margin-bottom: 18px; opacity: .88; }
.ftr__brand p { margin: 0; font-size: .93rem; color: var(--fg-dim); max-width: 34ch; }
.ftr__nav, .ftr__legal, .ftr__trust { display: grid; gap: 9px; align-content: start; }
.ftr__nav b, .ftr__legal b, .ftr__trust b { font-size: .8rem; letter-spacing: .12em; color: var(--cyan); margin-bottom: 4px; }

/* The Enamad seal art assumes a light backdrop — give it one. */
.enamad {
  display: block; width: fit-content;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.enamad:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); }
.enamad img { width: 86px; height: auto; }
.ftr__nav a { font-size: .93rem; color: var(--fg-mute); width: fit-content; transition: color .3s, transform .3s; }
.ftr__nav a:hover { color: var(--fg); transform: translateX(-4px); }
.ftr__legal span { font-size: .9rem; color: var(--fg-mute); }
.ftr__bottom {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid var(--line-2);
  font-size: .84rem; color: var(--fg-dim);
}
.ftr__bottom a { transition: color .3s; }
.ftr__bottom a:hover { color: var(--cyan); }

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

/* ══════════ Responsive ══════════ */
@media (max-width: 1100px) {
  .stackgrid { grid-template-columns: 1fr; }
  .sec__head--tight { margin-bottom: 40px; }
}

@media (max-width: 1024px) {
  .about, .contact { grid-template-columns: 1fr; }
  /* Brand takes its own row; the three short columns stay side by side so the
     Enamad seal never drops onto a line of its own. */
  .ftr__grid { grid-template-columns: repeat(3, 1fr); }
  .ftr__brand { grid-column: 1 / -1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .spine { display: none; }
}

@media (max-width: 860px) {
  .hdr__nav { display: none; }
  .hdr__side .btn { display: none; }
  .burger { display: grid; }
  .hero { padding: 130px clamp(20px, 5vw, 48px) 110px; }
  /* On narrow screens the globe sits directly behind the copy — scrim it back. */
  .hero::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(4,6,13,.3) 0%, rgba(4,6,13,.78) 42%, rgba(4,6,13,.6) 100%);
  }
  .techs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .form { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; gap: 30px; }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .steps::before { display: none; }
  .step__n { width: 52px; height: 52px; font-size: .98rem; }
  .card { padding: 28px 24px; }
  .hud { display: none; }
  .techs { grid-template-columns: 1fr; }
}

/* ══════════ Reduced motion ══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .w { opacity: 1; transform: none; }
  .stage__grain { display: none; }
}
