/* =========================================================
   Nexxol Media — styles.css
   Phase 1: foundation, header, hero, trust bar
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900; /* variable */
  font-display: swap;
  font-style: normal;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors — single source of truth (per brief §1) */
  --color-orange: #f9b17a;      /* TODO: confirm with client — hex had a typo (#fgb17a); reference/logo read closer to a deeper #f5891f */
  --color-navy-dark: #2d3250;   /* confirmed */
  --color-navy-mid: #424769;    /* confirmed */
  --color-periwinkle: #676fbd;  /* TODO: confirm with client — hex had a typo (#676fgd) */
  --color-white: #ffffff;

  /* Derived / supporting */
  --orange-deep: #f5891f;       /* richer orange seen in logo & reference (used for depth/gradients) */
  --navy-900: #23273f;
  --navy-950: #1b1e33;
  --ink: #eef0f7;
  --ink-muted: #a9adc4;
  --ink-soft: #c9cce0;
  --surface: #f6f7fb;
  --surface-card: #ffffff;
  --line: rgba(255, 255, 255, 0.10);

  /* Ink on light surfaces */
  --text-dark: #2d3250;
  --text-dark-muted: #5b6079;

  /* Type */
  --font: "Vazirmatn", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-head: "Vazirmatn", system-ui, "Segoe UI", Tahoma, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 18px 40px -24px rgba(45, 50, 80, 0.35);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Quiet-luxury supporting tokens */
  --hairline: rgba(45, 50, 80, 0.10);      /* subtle line on light surfaces */
  --hairline-strong: rgba(45, 50, 80, 0.16);
  --line-light: rgba(255, 255, 255, 0.08);  /* subtle line on dark surfaces */
  --shadow-lux: 0 40px 80px -40px rgba(45, 50, 80, 0.28);
  --shadow-lux-sm: 0 20px 44px -28px rgba(45, 50, 80, 0.30);
  --gold-tint: rgba(245, 137, 31, 0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--navy-950);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.text-orange { color: var(--color-orange); }

/* ---------- Headings (amplified, Vazirmatn-led) ---------- */
h1, h2, h3,
.hero__title, .section__title, .final-cta__title,
.timeline__title, .service-card__title, .stat__num,
.contact__title, .contact__aside-title, .blog-hero__title, .footer__title {
  font-family: var(--font-head);
  font-feature-settings: "ss01" 1, "kern" 1;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }

/* Interactive reveal button: label slides out, arrow layer slides in, dot fills */
.btn--reveal { position: relative; overflow: hidden; }
.btn--reveal .btn-reveal__label {
  display: inline-block;
  position: relative;
  z-index: 1;
  transform: translateX(4px);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.btn--reveal:hover .btn-reveal__label,
.btn--reveal:focus-visible .btn-reveal__label { transform: translateX(48px); opacity: 0; }
.btn--reveal .btn-reveal__in {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #3a250f;
  transform: translateX(48px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.btn--reveal .btn-reveal__in svg { width: 18px; height: 18px; }
.btn--reveal:hover .btn-reveal__in,
.btn--reveal:focus-visible .btn-reveal__in { transform: translateX(-4px); opacity: 1; }
.btn--reveal .btn-reveal__dot {
  position: absolute;
  left: 20%;
  top: 40%;
  z-index: 0;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--orange-deep);
  transform: scale(0);
  transition: all 0.45s var(--ease);
}
.btn--reveal:hover .btn-reveal__dot,
.btn--reveal:focus-visible .btn-reveal__dot {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.8);
}
/* navy fill variant (bottom CTA) */
.btn-reveal--navy .btn-reveal__dot { background: #424769; }
.btn-reveal--navy .btn-reveal__in { color: var(--color-white); }

.btn--primary {
  background: linear-gradient(135deg, var(--color-orange), var(--orange-deep));
  color: #3a250f;
  box-shadow: 0 10px 22px -12px rgba(245, 137, 31, 0.45), 0 2px 6px -2px rgba(45, 50, 80, 0.18);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(245, 137, 31, 0.5), 0 4px 10px -4px rgba(45, 50, 80, 0.2); }

/* ---------- Header (floating quiet-luxury nav) ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s, border-color 0.4s, transform 0.4s var(--ease);
  border-block-end: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header--solid {
  background: rgba(23, 26, 46, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block-end-color: var(--line-light);
  box-shadow: 0 12px 40px -22px rgba(0, 0, 0, 0.85);
}
/* hide-on-scroll-down / show-on-scroll-up */
.site-header.is-hidden { transform: translateY(-115%); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
/* Logo pinned to the visual left, actions to the visual right (LTR order over RTL page) */
.header-inner > .brand { grid-column: 1; justify-self: start; }
.header-inner > .nav { grid-column: 2; justify-self: center; }
.header-inner > .header-actions { grid-column: 3; justify-self: end; }

/* Keep the wordmark reading Ⓝexxol (mark left) — scoped to the header so the footer brand is untouched */
.site-header .brand { direction: ltr; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo {
  height: 34px; width: auto; display: block;
  transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease);
}
.brand:hover .brand__logo { transform: translateY(-1px); filter: drop-shadow(0 6px 16px rgba(245, 137, 31, 0.3)); }
.brand__name { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.5px; }

/* Nav sits inside a subtle glass capsule */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.is-scrolled .nav { background: rgba(255, 255, 255, 0.03); }
.nav__link {
  position: relative;
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  z-index: 1;
}
.nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: -1;
}
.nav__link:hover { color: var(--color-white); }
.nav__link:hover::before { opacity: 1; transform: scale(1); }
/* Active link — soft filled pill with a warm hairline */
.nav__link.is-active,
.nav__link[aria-current="page"] {
  color: var(--color-white);
}
.nav__link.is-active::before,
.nav__link[aria-current="page"]::before {
  opacity: 1;
  transform: scale(1);
  background: linear-gradient(180deg, rgba(249, 177, 122, 0.20), rgba(245, 137, 31, 0.10));
  box-shadow: inset 0 0 0 1px rgba(249, 177, 122, 0.28);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
/* Slightly refined header CTA */
.header-actions .btn--primary { border-radius: 999px; letter-spacing: 0.2px; }

/* Mobile nav toggle */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; position: relative; }
.nav-toggle span {
  position: absolute;
  inset-inline: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 0;
  background: #0c0e16;
  overflow: hidden;
}

/* Parallax photo layer (scaled slightly so it never shows edges while it drifts) */
.hero__media {
  position: absolute;
  inset: -6% -2%;
  z-index: 0;
  background: #0c0e16 url("../assets/new-hero-bg.jpg") center center / cover no-repeat;
  transform: translate3d(var(--hero-mx, 0px), var(--hero-py, 0px), 0) scale(var(--hero-scale, 1.06));
  will-change: transform;
}

/* Dark overlay + a soft directional gradient so the copy side stays readable */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 8, 16, 0.30) 0%, rgba(6, 8, 16, 0.62) 55%, rgba(6, 8, 16, 0.82) 100%),
    radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, 0.55), transparent 60%),
    rgba(0, 0, 0, 0.42);
}

/* Warm light that follows the cursor (very subtle, screen-blended) */
.hero__spot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  width: 860px;
  height: 860px;
  margin: -430px 0 0 -430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 235, 0.10), rgba(245, 137, 31, 0.04) 45%, transparent 64%);
  opacity: var(--hero-spot, 0);
  mix-blend-mode: screen;
  transform: translate3d(var(--spot-x, 72vw), var(--spot-y, 38vh), 0);
  transition: opacity 0.9s var(--ease);
  will-change: transform;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
/* Text block sits at the RTL start (right); tiny pointer parallax for depth */
.hero__copy {
  max-width: 46rem;
  text-align: right;
  transform: translate3d(var(--copy-mx, 0px), calc(var(--copy-my, 0px) + var(--scroll-y, 0px)), 0);
  transition: transform 0.5s var(--ease-out);
}

.hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4.15rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.5px;
}

/* Scroll cue at the base of the hero */
.hero__scroll-cue {
  position: absolute;
  inset-block-end: 26px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0.8;
  transition: opacity 0.3s var(--ease);
}
.hero__scroll-cue:hover { opacity: 1; }
.hero__scroll-track {
  display: block;
  width: 26px; height: 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  position: relative;
}
.hero__scroll-thumb {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 8px;
  width: 4px; height: 8px;
  margin-inline-start: -2px;
  border-radius: 999px;
  background: var(--color-orange);
  animation: scrollThumb 1.8s var(--ease) infinite;
}
@keyframes scrollThumb {
  0% { opacity: 0; transform: translateY(-4px); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(14px); }
}
.hero__subtitle {
  margin-block-start: 22px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 30em;
}
.hero__actions { margin-block-start: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Frosted-glass buttons (recreates shadcn bg-white/10 backdrop-blur border-white/20) */
.btn--glass {
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-2px);
}

/* Staggered fade/slide-up on load (recreates the framer-motion stagger) */
.hero-stagger { opacity: 0; animation: heroReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero__title.hero-stagger { animation-delay: 0.2s; }
.hero__subtitle.hero-stagger { animation-delay: 0.35s; }
.hero__actions.hero-stagger { animation-delay: 0.5s; }
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Hidden per request — markup kept in index.html, just not rendered */
.hero__trust { display: none; margin-block-start: 36px; align-items: center; gap: 14px; }
.avatar-stack { display: flex; flex-direction: row-reverse; }
.avatar-stack__item {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--navy-950);
  margin-inline-start: -12px;
  background: linear-gradient(135deg, var(--color-periwinkle), var(--color-navy-mid));
}
.avatar-stack__item:nth-child(2) { background: linear-gradient(135deg, var(--color-orange), var(--orange-deep)); }
.avatar-stack__item:nth-child(3) { background: linear-gradient(135deg, #7c83c9, #4a4f79); }
.avatar-stack__item:first-child { margin-inline-start: 0; }
.hero__trust-text { font-size: 0.95rem; color: var(--ink-muted); }
.hero__trust-text strong { color: var(--color-white); font-weight: 700; }

/* ---------- Trust marquee ---------- */
/* Hidden per request — markup kept in index.html, just not rendered */
.trust-bar { display: none; padding-block: 40px; background: var(--navy-950); border-block-start: 1px solid var(--line); }
.trust-bar__title { text-align: center; color: var(--ink-muted); font-size: 0.95rem; margin-block-end: 26px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-size: 1.3rem; font-weight: 700; color: var(--ink);
  opacity: 0.42; filter: grayscale(1);
  white-space: nowrap;
  transition: opacity 0.3s, filter 0.3s;
}
.marquee__item:hover { opacity: 0.9; filter: grayscale(0); color: var(--color-orange); }
@keyframes marquee { to { transform: translateX(50%); } }

/* Single static client name (no scrolling) */
.marquee--static .marquee__track { width: 100%; animation: none; justify-content: center; }
.marquee--static .marquee__item { opacity: 1; filter: none; }

/* ---------- Section system ---------- */
.section { position: relative; padding-block: 96px; }
.section--light { background: var(--surface); color: var(--text-dark); }
.section__head { text-align: center; max-width: 720px; margin-inline: auto; margin-block-end: 56px; }
.eyebrow {
  display: inline-block;
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-block-end: 14px;
}
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.3px; }
.section--light .section__title { color: var(--text-dark); }
.section__sub { margin-block-start: 16px; font-size: 1.05rem; color: var(--text-dark-muted); }
.section:not(.section--light) .section__sub { color: var(--ink-muted); }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface-card);
  border: 1px solid #e7e9f2;
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: right;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.service-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(249, 177, 122, 0.22), rgba(245, 137, 31, 0.14));
  color: var(--orange-deep);
  margin-block-end: 18px;
  transition: transform 0.3s var(--ease);
}
.service-card:hover .service-card__icon { transform: scale(1.06) rotate(-4deg); }
.service-card__title { font-size: 1.18rem; font-weight: 800; color: var(--text-dark); }
.service-card__desc { margin-block-start: 10px; font-size: 0.97rem; color: var(--text-dark-muted); }

/* Featured service (SEO/AEO/GEO — first in Iran) */
.service-card--featured {
  position: relative;
  border-color: rgba(245, 137, 31, 0.35);
  background:
    linear-gradient(180deg, rgba(249, 177, 122, 0.06), rgba(255, 255, 255, 0) 40%),
    var(--surface-card);
}
.service-card--featured::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--color-orange), var(--orange-deep));
}
.service-card__badge {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7a3d05;
  background: linear-gradient(135deg, rgba(249, 177, 122, 0.85), rgba(245, 137, 31, 0.75));
  border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(245, 137, 31, 0.7);
}
.service-card__badge svg { color: #7a3d05; }

/* ---------- Process timeline (matte brand-blue) ---------- */
.process {
  background: linear-gradient(160deg, var(--color-navy-mid) 0%, var(--color-navy-dark) 68%);
  color: var(--ink);
  overflow: hidden;
}
.process__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 88% -10%, rgba(103, 111, 189, 0.28), transparent 60%),
    radial-gradient(50% 50% at 0% 110%, rgba(245, 137, 31, 0.06), transparent 60%);
}
.process__bg::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}
.process .container { position: relative; z-index: 1; }
.process .section__title { color: var(--color-white); }
.process .section__sub { color: var(--ink-soft); }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  counter-reset: step;
}
/* dashed connecting rail behind the node row */
.timeline::before {
  content: "";
  position: absolute;
  inset-block-start: 33px;
  inset-inline: 7%;
  height: 0;
  border-block-start: 2px dashed rgba(255, 255, 255, 0.18);
  z-index: 0;
}
.timeline__step { position: relative; z-index: 1; text-align: center; padding-inline: 4px; }
.timeline__node {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-inline: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.timeline__step:hover .timeline__node { transform: translateY(-4px); background: rgba(255, 255, 255, 0.12); color: var(--color-white); border-color: rgba(255, 255, 255, 0.28); }
.timeline__step--active .timeline__node {
  background: linear-gradient(135deg, var(--color-orange), var(--orange-deep));
  color: #3a250f;
  border-color: transparent;
  box-shadow: 0 16px 30px -14px rgba(245, 137, 31, 0.5);
}
.timeline__num {
  display: block;
  margin-block-start: 16px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-orange);
  letter-spacing: 1px;
}
.timeline__title { margin-block-start: 6px; font-size: 1.02rem; font-weight: 700; color: var(--color-white); }
.timeline__desc { margin-block-start: 6px; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Trust / why choose us (light, matte, editorial) ---------- */
.trust {
  position: relative;
  background: var(--surface);
  color: var(--text-dark);
  overflow: hidden;
}
.trust__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(90% 60% at 88% -10%, rgba(103, 111, 189, 0.06), transparent 60%);
}
.trust .container { position: relative; z-index: 1; }
.trust__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: start;
}
.trust__intro { position: sticky; inset-block-start: calc(var(--header-h) + 28px); text-align: right; }
.trust__title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.28; color: var(--text-dark); }
.trust__sub { color: var(--text-dark-muted); max-width: 34em; }

.trust__seal {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-block-start: 32px;
  padding: 15px 22px;
  border-radius: var(--radius);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lux-sm);
}
.trust__seal-mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--orange-deep);
  background: var(--gold-tint);
  border: 1px solid rgba(245, 137, 31, 0.24);
}
.trust__seal-body { display: flex; flex-direction: column; line-height: 1.5; }
.trust__seal-body strong { font-size: 0.98rem; color: var(--text-dark); font-weight: 800; }
.trust__seal-body span { font-size: 0.86rem; color: var(--text-dark-muted); }

.trust__list { display: grid; }
.trust-pillar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 24px;
  padding-block: 30px;
  border-block-end: 1px solid var(--hairline);
  transition: padding-inline-start 0.4s var(--ease);
}
.trust-pillar:first-child { padding-block-start: 6px; }
.trust-pillar:last-child { border-block-end: none; }
.trust-pillar__num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(45, 50, 80, 0.30);
  transition: color 0.4s var(--ease), -webkit-text-stroke-color 0.4s var(--ease);
}
.trust-pillar__title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-dark);
  transition: color 0.3s var(--ease);
}
.trust-pillar__desc { margin-block-start: 8px; font-size: 0.98rem; color: var(--text-dark-muted); line-height: 1.85; }
.trust-pillar:hover { padding-inline-start: 8px; }
.trust-pillar:hover .trust-pillar__num {
  color: var(--orange-deep);
  -webkit-text-stroke-color: transparent;
}
.trust-pillar:hover .trust-pillar__title { color: var(--orange-deep); }

/* ---------- Pricing / packages (deep matte blue, premium) ---------- */
.pricing {
  position: relative;
  background: linear-gradient(165deg, #2f3454 0%, #272b47 55%, #20233a 100%);
  color: var(--ink);
  overflow: hidden;
}
.pricing__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 85% -8%, rgba(103, 111, 189, 0.30), transparent 60%),
    radial-gradient(55% 55% at 5% 108%, rgba(245, 137, 31, 0.06), transparent 60%);
}
.pricing__bg::before {
  content: "";
  position: absolute;
  inset-block-start: 0; inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), transparent);
}
.pricing .container { position: relative; z-index: 1; }
.pricing .section__title { color: var(--color-white); }
.pricing .section__sub { color: var(--ink-soft); }

/* Pointer-follow glow (process + pricing) — vars set on the section, inherited here */
.process__bg::after,
.pricing__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 760px;
  height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(139, 147, 221, 0.24), transparent 62%);
  opacity: var(--glow, 0);
  transform: translate3d(var(--gx, 50vw), var(--gy, 30vh), 0);
  transition: opacity 0.45s var(--ease);
  will-change: transform;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Opaque cards so the moving glow behind them never forces per-frame recompositing */
  background: linear-gradient(180deg, #3a4063, #2f3452);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 34px 30px;
  text-align: right;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease);
}
.plan:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(255, 255, 255, 0.20);
}

/* Featured plan — elevated, blue gradient border, gold badge */
.plan--featured {
  background: linear-gradient(180deg, #40466e, #34395f);
  transform: translateY(-16px) scale(1.02);
  box-shadow: 0 54px 96px -40px rgba(0, 0, 0, 0.72);
  z-index: 2;
}
.plan--featured:hover { transform: translateY(-22px) scale(1.02); }
.plan--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.6px;
  background: linear-gradient(180deg, #8b93dd, #4f7fe0 55%, #3b82f6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.plan__badge {
  position: absolute;
  inset-block-start: -13px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #3a2e05;
  background: linear-gradient(135deg, #ecd57f, #d4af37);
  border-radius: 999px;
  box-shadow: 0 10px 20px -8px rgba(212, 175, 55, 0.5);
  white-space: nowrap;
  z-index: 3;
}

.plan__head { padding-block-end: 20px; border-block-end: 1px solid rgba(255, 255, 255, 0.10); }
.plan__name { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--color-white); }
.plan__for { margin-block-start: 12px; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.85; }

.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; padding-block: 22px 20px; }
.plan__price-pre { flex-basis: 100%; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.plan__price-num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--color-white); font-variant-numeric: tabular-nums; letter-spacing: 0.3px; line-height: 1; }
.plan__price-unit { font-size: 0.98rem; font-weight: 600; color: var(--ink-soft); }

.plan__cta { order: 5; margin-block-start: auto; width: 100%; }

.plan__features { display: grid; gap: 12px; margin-block: 4px 18px; }
.plan__features li {
  position: relative;
  padding-inline-start: 30px;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.7;
}
.plan__features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(245, 137, 31, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f9b17a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan__features-head { padding-inline-start: 0 !important; font-weight: 800; color: var(--ink-soft); font-size: 0.86rem !important; }
.plan__features-head::before { display: none; }

/* Excluded features */
.plan__excludes {
  display: grid;
  gap: 10px;
  margin-block: 4px 22px;
  padding-block-start: 18px;
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
}
.plan__excludes li {
  position: relative;
  padding-inline-start: 30px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.plan__excludes li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%239aa0c0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.pricing__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-block-start: 30px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-align: center;
}
.pricing__note svg { color: var(--color-orange); flex-shrink: 0; }

/* Ghost button for dark/blue surfaces (light outline → light fill) */
.btn--ghost-blue {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn--ghost-blue:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

/* ---------- Stats bar ---------- */
.stats-section { padding-block: 40px 96px; background: var(--color-white); }
.stats {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  background: var(--color-navy-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  overflow: hidden;
  box-shadow: var(--shadow-lux);
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}
/* Fine top hairline for a crafted edge */
.stats::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
}
/* Light sheen that follows the cursor */
.stats__sheen {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(260px 260px at var(--sx, 80%) var(--sy, 0%),
    rgba(255, 255, 255, 0.05), transparent 62%);
  opacity: var(--sheen, 0);
  transition: opacity 0.6s var(--ease);
}
.stats__brand { position: relative; display: grid; place-items: center; width: 120px; height: 120px; z-index: 1; }
.stats__brand-mark {
  width: 88px; height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
  position: relative;
  z-index: 1;
  transform: translate3d(var(--mark-x, 0px), var(--mark-y, 0px), 40px);
  transition: transform 0.5s var(--ease-out);
}
.stats__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-orange);
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-block-start: 8px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Testimonials carousel ---------- */
.tcar { position: relative; }
.tcar__viewport {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 6px 4px;
  scrollbar-width: none;
}
.tcar__viewport::-webkit-scrollbar { display: none; }
.tcard {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
  background: var(--surface-card);
  border: 1px solid #e7e9f2;
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: right;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.tcard__quote {
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--color-orange);
  font-family: Georgia, "Times New Roman", serif;
  opacity: 0.5;
}
.tcard__text { margin-block: 14px 22px; font-size: 1rem; color: var(--text-dark); line-height: 1.8; }
.tcard__person { display: flex; align-items: center; gap: 12px; padding-block-start: 16px; border-block-start: 1px solid #eceef5; }
.tcard__avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-orange), var(--orange-deep));
  color: #3a250f; font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.tcard__meta { display: flex; flex-direction: column; }
.tcard__meta strong { font-size: 0.98rem; color: var(--text-dark); font-weight: 800; }
.tcard__meta span { font-size: 0.82rem; color: var(--text-dark-muted); }

.tcar__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-block-start: 34px; }
.tcar__arrow {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-card); border: 1px solid #e2e5f0; color: var(--text-dark);
  box-shadow: 0 8px 20px -12px rgba(45,50,80,0.4);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.tcar__arrow:hover { background: var(--color-navy-dark); color: var(--color-white); transform: translateY(-2px); }
.tcar__dots { display: flex; align-items: center; gap: 8px; }
.tcar__dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: #c7cbdd; transition: width 0.3s var(--ease), background 0.3s;
}
.tcar__dot.is-active { width: 26px; background: var(--orange-deep); }

/* ---------- Final CTA (climax — solid matte navy) ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--color-navy-dark);
  text-align: center;
  padding-block: 116px;
}
.final-cta__bg {
  position: absolute;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  /* Matte depth: soft solid radials, no bright blur/glow */
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(103, 111, 189, 0.16), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(245, 137, 31, 0.08), transparent 60%);
  transform: translate3d(var(--cta-mx, 0px), var(--cta-my, 0px), 0);
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 12%;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 177, 122, 0.4), transparent);
}
.final-cta__grain {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 70% at 50% 50%, #000, transparent 78%);
}
.final-cta__inner { position: relative; z-index: 1; }
.final-cta__title { font-size: clamp(1.9rem, 4.4vw, 3.2rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.5px; color: var(--color-white); }
.final-cta__sub { margin-block-start: 18px; font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--ink-soft); }
.final-cta__actions { margin-block-start: 34px; }
.final-cta__reassure {
  margin-block-start: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.92rem; color: var(--ink-muted);
}
.final-cta__reassure svg { color: var(--color-orange); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: var(--ink-soft); padding-block-start: 72px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 40px;
  padding-block-end: 50px;
}
.footer__title { font-size: 1.08rem; font-weight: 800; color: var(--color-white); margin-block-end: 18px; }
.footer__text { font-size: 0.92rem; line-height: 1.8; color: var(--ink-muted); margin-block-end: 18px; }
.footer__contact { display: grid; gap: 12px; margin-block-start: 20px; }
.footer__contact li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.footer__contact svg { color: var(--color-orange); flex-shrink: 0; }
.footer__contact a { transition: color 0.2s; }
.footer__phones { display: flex; flex-direction: column; gap: 2px; }
.footer__contact a:hover { color: var(--color-orange); }
.footer__links { display: grid; gap: 12px; }
.footer__links a { font-size: 0.94rem; color: var(--ink-muted); transition: color 0.2s, padding-inline-start 0.2s; }
.footer__links a:hover { color: var(--color-orange); padding-inline-start: 4px; }
.footer__brand { margin-block-end: 16px; }
.footer__wordmark { color: var(--color-white); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.footer__social { display: flex; gap: 12px; margin-block-start: 6px; }
.footer__social-link {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--ink-soft);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.footer__social-link:hover { background: linear-gradient(135deg, var(--color-orange), var(--orange-deep)); color: #3a250f; transform: translateY(-3px); }
.footer__bottom { border-block-start: 1px solid var(--line); padding-block: 22px; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.86rem; color: var(--ink-muted); }

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

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-stagger { animation: none; opacity: 1; transform: none; }
  .hero__scroll-thumb { animation: none; }
  .hero__media, .hero__copy, .stats, .stats__brand-mark, .final-cta__bg { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .tcard { flex-basis: calc((100% - 22px) / 2); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer__col--brand { grid-column: 1 / -1; order: -1; }
  .stats { grid-template-columns: 1fr; gap: 28px; text-align: center; padding: 34px 28px; }
  .stats__brand { margin-inline: auto; width: 96px; height: 96px; }
  .stats__brand-mark { width: 68px; }
  /* Timeline → 2-col grid, drop the horizontal rail */
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .timeline::before { display: none; }
  /* Trust → single column, non-sticky intro */
  .trust__grid { grid-template-columns: 1fr; gap: 40px; }
  .trust__intro { position: static; }
  /* Pricing → single column, reset the featured lift */
  .pricing__grid { grid-template-columns: 1fr; gap: 30px; max-width: 460px; margin-inline: auto; }
  .plan--featured { transform: none; order: -1; }
  .plan--featured:hover { transform: translateY(-6px); }
}

@media (max-width: 900px) {
  .section { padding-block: 72px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn--sm { display: none; }
  .hero__scroll-cue { display: none; }
  /* Mobile: full-screen photo hero, centered text */
  .hero { padding-block: calc(var(--header-h) + 24px) 40px; }
  .hero__copy { max-width: 100%; text-align: center; margin-inline: auto; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }

  /* Mobile slide-down nav */
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0;
    background: rgba(23,26,46,0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px; gap: 4px;
    border: none;
    border-radius: 0;
    border-block-end: 1px solid var(--line-light);
  }
  .nav.is-open .nav__link { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; border-block-end: 1px solid rgba(255,255,255,0.05); }
  .nav.is-open .nav__link::before { border-radius: 12px; }
}

@media (max-width: 700px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

@media (max-width: 620px) {
  .services__grid { grid-template-columns: 1fr; }
  .tcard { flex-basis: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__col--brand { grid-column: auto; }
  .timeline { grid-template-columns: 1fr; gap: 22px; text-align: right; }
  .timeline__step { display: grid; grid-template-columns: 68px 1fr; align-items: center; column-gap: 16px; }
  .timeline__node { margin-inline: 0; grid-row: span 3; }
  .timeline__num { margin-block-start: 0; }
}

@media (max-width: 560px) {
  .hero { padding-block: calc(var(--header-h) + 20px) 8px; }
  .btn--lg { padding: 13px 22px; font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 auto; }
}
