/* ==========================================================================
   MercantaX -?" Smart Supply. Stronger Business.
   Core stylesheet
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography
   5.  Buttons & links
   6.  Header / nav
   7.  Footer
   8.  Reveal animations
   9.  Components (cards, stats, accordion, timeline, testimonials, forms)
   10. Page-specific sections
   11. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg:            #0B0C0D;
  --bg-raise:      #0F1113;
  --bg-card:       #111416;
  --bg-card-hover: #14181A;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.14);

  --text:          #F5F5F5;
  --muted:         #A0A5A3;
  --muted-dim:     #6E7370;

  /* Accent -?" sampled directly from the MercantaX "MX" mark.
     The X runs mint (#7ED6BC) -> jade (#4FBBA0) -> deep teal (#2F9C85);
     the tagline rule is a brighter emerald (#2ECF8F). */
  --teal-deep:     #2F9C85;
  --jade:          #4FBBA0;
  --mint:          #7ED6BC;
  --emerald:       #2ECF8F;

  --accent-1:      #2ECF8F;
  --accent-2:      #6BD0B4;
  --accent-grad:   linear-gradient(120deg, #2ECF8F 0%, #4FBBA0 55%, #7ED6BC 100%);
  --accent-soft:   rgba(79, 187, 160, 0.12);
  --accent-glow:   0 12px 40px -12px rgba(46, 207, 143, 0.45);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 9vw, 132px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 260ms var(--ease);
}

/* 2. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

ul, ol { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent-1); color: #04140F; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Grain / vignette so the black never reads as flat #000 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(79, 187, 160, 0.07), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(46, 207, 143, 0.04), transparent 70%);
}

/* 3. Layout primitives ----------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--raise { background: var(--bg-raise); }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}

.rule--accent {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(79, 187, 160, 0.55) 30%, rgba(46, 207, 143, 0.55) 70%, transparent);
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }

/* 4. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.7vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { color: var(--muted); text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-grad);
}

.eyebrow--center { justify-content: center; }

.lede {
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  color: var(--muted);
  max-width: 62ch;
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 4.5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head h2 + .lede { margin-top: 20px; }

/* 5. Buttons & links -------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
}

.btn svg { width: 16px; height: 16px; transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--accent-grad);
  border-color: transparent;
  color: #04140F;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--accent-glow);
}

.btn--ghost { color: var(--text); }
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 187, 160, 0.5);
  background: var(--accent-soft);
  color: var(--text);
}

.btn--sm { padding: 11px 20px; font-size: 0.85rem; }
.btn--block { width: 100%; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-1);
  transition: gap var(--t), color var(--t);
}
.arrow-link:hover { gap: 14px; color: var(--accent-2); }
.arrow-link svg { width: 15px; height: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* 6. Header / nav ----------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 10, 0.35);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
}

.header.is-stuck {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 76px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 44px; height: 30px; flex: none; }
.logo__word {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
}
.logo__word span { background-image: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo:hover .logo__mark { filter: drop-shadow(0 0 14px rgba(79, 187, 160, 0.5)); }
.logo__mark { transition: filter var(--t); }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 6px; }

.nav__link {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
}

.header__cta { display: inline-flex; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.75px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--t), opacity 160ms linear, top var(--t);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 76px 0 0;
  z-index: 55;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 32px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 240ms;
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color var(--t), padding-left var(--t);
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--text); padding-left: 8px; }
.mobile-nav a[aria-current="page"] { background-image: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mobile-nav .btn { margin-top: 28px; }

/* 7. Footer ----------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: #070707;
  padding-top: clamp(56px, 6vw, 88px);
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 56px;
}

.footer__about p { margin-top: 18px; font-size: 0.925rem; max-width: 34ch; }

.footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer__list { display: flex; flex-direction: column; gap: 11px; }
.footer__list a, .footer__list li {
  font-size: 0.925rem;
  color: var(--muted);
  transition: color var(--t), transform var(--t);
  width: fit-content;
}
.footer__list a:hover { color: var(--accent-1); transform: translateX(3px); }

.footer__contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer__contact svg { width: 16px; height: 16px; margin-top: 4px; flex: none; color: var(--accent-1); }
.footer__contact a:hover { color: var(--accent-1); }

.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: all var(--t);
}
.socials a:hover {
  color: #04140F;
  background: var(--accent-grad);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--accent-glow);
}
.socials svg { width: 16px; height: 16px; }

.footer__bar {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bar p, .footer__bar a { font-size: 0.85rem; color: var(--muted-dim); }
.footer__bar a:hover { color: var(--accent-1); }
.footer__legal { display: flex; gap: 22px; }

/* 8. Reveal animations ------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* 9. Components -------------------------------------------------------------- */

/* --- Generic card --- */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
}

.card::after {
  /* thin gradient top-edge that lights up on hover */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity var(--t);
}

.card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(79, 187, 160, 0.28);
  box-shadow: 0 20px 50px -24px rgba(79, 187, 160, 0.35);
}
.card:hover::after { opacity: 1; }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; }
.card .arrow-link { margin-top: 22px; }

/* --- Icon chip --- */
.icon-chip {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  margin-bottom: 22px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 187, 160, 0.22);
  color: var(--accent-2);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.icon-chip svg { width: 24px; height: 24px; }
.card:hover .icon-chip {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 0 26px -6px rgba(79, 187, 160, 0.55);
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
  overflow: hidden;
}
.stat {
  padding: clamp(28px, 3vw, 42px) clamp(20px, 2.4vw, 34px);
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: 0; }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.45;
}

/* --- Service card grid --- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.services-grid .card { padding: 28px 24px; }
.services-grid .card p { font-size: 0.9rem; }

/* --- Why / feature list --- */
.feature {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 187, 160, 0.2);
  color: var(--accent-2);
}
.feature__icon svg { width: 19px; height: 19px; }
.feature h3 { font-size: 1.075rem; margin-bottom: 6px; }
.feature p { font-size: 0.925rem; }

/* --- Media frame (photos) --- */
.media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  isolation: isolate;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.9);
  transition: transform 700ms var(--ease), filter var(--t);
}
.media:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.05) brightness(0.95); }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }

/* floating stat badge over media */
.media-badge {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.media-badge__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.media-badge__txt { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* --- Process timeline --- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 187, 160,0.5), rgba(46, 207, 143,0.5));
  opacity: 0.35;
}
.step { position: relative; padding-right: 12px; }
.step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(79, 187, 160, 0.35);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-2);
  margin-bottom: 24px;
  transition: box-shadow var(--t), transform var(--t);
}
.step:hover .step__dot {
  transform: translateY(-3px);
  box-shadow: 0 0 0 5px rgba(79, 187, 160, 0.08), 0 0 30px -6px rgba(79, 187, 160, 0.7);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.925rem; }

/* --- Testimonials --- */
.tst-viewport { overflow: hidden; }
.tst-track {
  display: flex;
  gap: 22px;
  transition: transform 520ms var(--ease);
  will-change: transform;
}
.tst {
  flex: 0 0 calc((100% - 44px) / 3);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), transform var(--t);
}
.tst:hover { border-color: rgba(79, 187, 160, 0.25); transform: translateY(-4px); }
.tst__quote { font-size: 3rem; line-height: 1; font-family: var(--font-display); color: rgba(79, 187, 160, 0.35); height: 30px; }
.tst__body { color: var(--text); font-size: 0.975rem; margin: 22px 0 28px; flex: 1; }
.tst__stars { display: flex; gap: 3px; color: var(--accent-2); margin-top: 4px; }
.tst__stars svg { width: 14px; height: 14px; }
.tst__who { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.tst__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.tst__name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.tst__role { font-size: 0.8rem; color: var(--muted-dim); }

.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t);
}
.carousel-btn:hover:not(:disabled) { border-color: rgba(79, 187, 160,0.5); background: var(--accent-soft); color: var(--accent-2); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-btn svg { width: 17px; height: 17px; }

.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 4vw, 56px); }
.carousel-head .section-head { margin-bottom: 0; }

.tst-dots { display: none; gap: 8px; justify-content: center; margin-top: 28px; }
.tst-dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0;
  background: var(--line-strong); cursor: pointer; transition: all var(--t);
}
.tst-dots button[aria-selected="true"] { width: 24px; border-radius: 4px; background: var(--accent-grad); }

/* --- Accordion --- */
.accordion { border-top: 1px solid var(--line); }
.acc {
  border-bottom: 1px solid var(--line);
  transition: background var(--t);
}
.acc:hover { background: rgba(255,255,255,0.015); }

.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--t);
}
.acc__btn:hover { color: var(--accent-2); }

.acc__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: all var(--t);
}
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  transition: transform var(--t), opacity var(--t);
}
.acc__icon::before { width: 12px; height: 1.5px; }
.acc__icon::after  { width: 1.5px; height: 12px; }
.acc__btn[aria-expanded="true"] .acc__icon { background: var(--accent-grad); border-color: transparent; color: #04140F; }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 340ms var(--ease);
}
.acc__panel > div { overflow: hidden; }
.acc__btn[aria-expanded="true"] + .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { padding: 0 60px 28px 4px; font-size: 0.95rem; max-width: 78ch; }

/* --- Service blocks (Services page) --- */
.svc-block { padding-block: clamp(52px, 5.5vw, 84px); border-bottom: 1px solid var(--line); }
.svc-block:last-of-type { border-bottom: 0; }

.svc-block__index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted-dim);
  margin-bottom: 16px;
}
.svc-block h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); margin-bottom: 18px; }
.svc-block p { margin-bottom: 26px; }

.checklist { display: grid; gap: 12px; margin-bottom: 30px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.925rem; color: var(--muted); }
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent-2); }

/* --- Values / team --- */
.team-card { text-align: left; }
.team-card .media { margin-bottom: 20px; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.85rem; color: var(--accent-1); font-weight: 500; }
.team-card p { font-size: 0.9rem; margin-top: 12px; }

/* --- CTA banner --- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid rgba(79, 187, 160, 0.22);
  background:
    radial-gradient(600px 320px at 50% 120%, rgba(79, 187, 160, 0.16), transparent 70%),
    linear-gradient(180deg, #101012, #0B0B0C);
  padding: clamp(48px, 6vw, 84px) clamp(24px, 5vw, 72px);
  text-align: center;
}
.cta-banner h2 { max-width: 18ch; margin-inline: auto; }
.cta-banner .lede { margin: 22px auto 36px; }
.cta-banner .btn-row { justify-content: center; }
.cta-banner__glow {
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: min(560px, 80%);
  height: 1px;
  background: var(--accent-grad);
  opacity: 0.7;
}

/* --- Forms --- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.4vw, 46px);
}

.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
}
.field label .req { color: var(--accent-1); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0B0B0C;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #55555A; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(79, 187, 160, 0.6);
  background: #0D0D0F;
  box-shadow: 0 0 0 3px rgba(79, 187, 160, 0.12);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0A0A0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 44px;
  cursor: pointer;
}
.field select option { background: #0B0B0C; color: var(--text); }

.field--error input, .field--error select, .field--error textarea { border-color: #FF6B6B; }
.field__error { font-size: 0.78rem; color: #FF8585; display: none; }
.field--error .field__error { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.8rem; color: var(--muted-dim); margin-top: 16px; text-align: center; }

.form-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 26px;
  border-radius: var(--r-md);
  border: 1px solid rgba(79, 187, 160, 0.35);
  background: var(--accent-soft);
}
.form-success.is-shown { display: flex; }
.form-success svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; margin-top: 2px; }
.form-success p { color: var(--text); font-size: 0.92rem; }
.form-success strong { font-family: var(--font-display); }

/* --- Contact info tiles --- */
.info-tile {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  transition: border-color var(--t), transform var(--t);
}
.info-tile:hover { border-color: rgba(79, 187, 160,0.28); transform: translateY(-3px); }
.info-tile__icon {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid rgba(79, 187, 160,0.2); color: var(--accent-2);
}
.info-tile__icon svg { width: 19px; height: 19px; }
.info-tile h4 { margin-bottom: 4px; }
.info-tile a, .info-tile span { font-size: 0.925rem; color: var(--muted); }
.info-tile a:hover { color: var(--accent-1); }

.map-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  filter: grayscale(1) invert(0.92) contrast(0.85) hue-rotate(150deg);
  transition: filter var(--t);
  line-height: 0;
}
.map-frame:hover { filter: grayscale(0.55) invert(0.9) contrast(0.9) hue-rotate(150deg); }
.map-frame iframe { width: 100%; height: 340px; border: 0; }

/* 10. Page-specific sections -------------------------------------------------- */

/* --- Hero (Home) --- */
.hero {
  position: relative;
  padding-top: clamp(60px, 8vw, 104px);
  padding-bottom: clamp(64px, 7vw, 110px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.hero__orb--1 { width: 520px; height: 520px; right: -120px; top: -180px; background: radial-gradient(circle, rgba(79, 187, 160,0.35), transparent 65%); }
.hero__orb--2 { width: 420px; height: 420px; left: -140px; bottom: -200px; background: radial-gradient(circle, rgba(46, 207, 143,0.18), transparent 65%); }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(36px, 5vw, 72px); align-items: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero__badge b {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #04140F;
  background: var(--accent-grad);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.hero__badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; }
.hero .lede { margin-bottom: 38px; max-width: 54ch; }

.hero__meta { display: flex; align-items: center; gap: 18px; margin-top: 44px; flex-wrap: wrap; }
.hero__avatars { display: flex; }
.hero__avatars img {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bg); margin-left: -12px;
}
.hero__avatars img:first-child { margin-left: 0; }
.hero__meta p { font-size: 0.85rem; }
.hero__meta strong { color: var(--text); font-family: var(--font-display); }

/* Hero dashboard mock (abstract brand graphic) */
.hero__visual { position: relative; }
.dash {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0F0F11, #0A0A0B);
  padding: 22px;
  box-shadow: 0 40px 90px -40px rgba(79, 187, 160, 0.3), 0 0 0 1px rgba(255,255,255,0.02) inset;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.dash__dots i:first-child { background: rgba(46, 207, 143,0.6); }
.dash__tag {
  font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-1); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(79, 187, 160,0.25);
  background: var(--accent-soft);
}

.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.kpi { padding: 14px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.kpi span { display: block; font-size: 0.66rem; color: var(--muted-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.02em; margin-top: 6px; }
.kpi b.up { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.dash__chart { border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,0.015); padding: 16px 14px 10px; }
.dash__chart svg { width: 100%; height: auto; overflow: visible; }

/* animated draw of the chart line */
.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2.4s var(--ease) 0.35s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-dot { opacity: 0; animation: pop 400ms var(--ease) 2.5s forwards; }
@keyframes pop { to { opacity: 1; } }

.dash__bars { display: flex; align-items: flex-end; gap: 7px; height: 54px; margin-top: 18px; }
.dash__bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(79, 187, 160,0.75), rgba(79, 187, 160,0.08));
  transform-origin: bottom;
  animation: grow 900ms var(--ease) backwards;
}
.dash__bars i:last-child { background: var(--accent-grad); }
@keyframes grow { from { transform: scaleY(0); } }

/* Floating pill next to dashboard */
.dash__float {
  position: absolute;
  right: -18px;
  bottom: 44px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(79, 187, 160,0.3);
  background: rgba(12,12,13,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(79, 187, 160,0.5);
  animation: float 7s ease-in-out 0.8s infinite reverse;
}
.dash__float svg { width: 17px; height: 17px; color: var(--accent-2); }
.dash__float span { font-size: 0.8rem; color: var(--text); font-family: var(--font-display); font-weight: 600; }

/* --- Logo / trust strip --- */
.trust {
  padding-block: 34px;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.trust__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.trust p {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-dim); font-family: var(--font-display); font-weight: 600; white-space: nowrap;
}
.trust__marks { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.trust__marks span {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em;
  color: #5A5A60; transition: color var(--t);
}
.trust__marks span:hover { color: var(--text); }

/* --- Page hero (inner pages) --- */
.page-hero {
  position: relative;
  padding-block: clamp(64px, 8vw, 112px) clamp(44px, 5vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero__glow {
  position: absolute;
  width: 700px; height: 380px;
  left: 50%; top: -180px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(79, 187, 160,0.14), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 800px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); margin-bottom: 22px; }

.crumbs { display: flex; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--muted-dim); margin-bottom: 24px; }
.crumbs a:hover { color: var(--accent-1); }
.crumbs span { color: var(--muted-dim); }
.crumbs .sep { opacity: 0.5; }

/* --- Values grid --- */
.value-card { padding: 30px 26px; }
.value-card .num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted-dim);
  margin-bottom: 18px;
}

/* --- Mission quote --- */
.quote-block {
  border-left: 2px solid transparent;
  border-image: var(--accent-grad) 1;
  padding-left: clamp(20px, 3vw, 34px);
  margin-block: 34px;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 500;
}
.quote-block cite { display: block; margin-top: 16px; font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* --- Reassurance strip (Contact) --- */
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.assure__item { display: flex; gap: 14px; align-items: flex-start; }
.assure__item svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; margin-top: 3px; }
.assure__item h4 { margin-bottom: 5px; }
.assure__item p { font-size: 0.88rem; }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: 8px; transform: translate(-50%, -200%);
  z-index: 100; padding: 12px 20px; border-radius: 999px;
  background: var(--accent-grad); color: #04140F; font-weight: 600; font-family: var(--font-display);
  transition: transform var(--t);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* 11. Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr; row-gap: 44px; }
  .tst { flex: 0 0 calc((100% - 22px) / 2); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .dash__float { right: 0; }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: grid; }

  .split, .grid-2 { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { top: 0; bottom: 0; left: 26px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(79, 187, 160,0.5), rgba(46, 207, 143,0.15)); }
  .step { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding-bottom: 34px; }
  .step__dot { margin-bottom: 0; }

  .assure { grid-template-columns: 1fr; gap: 24px; }
  .carousel-head { flex-direction: column; align-items: flex-start; gap: 28px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .services-grid, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .tst { flex: 0 0 100%; }
  .tst-dots { display: flex; }
  .carousel-nav { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; text-align: center; }
  .btn-row .btn { flex: 1 1 100%; }
  .acc__panel p { padding-right: 8px; }
  .dash__float { display: none; }
  .hero__meta { gap: 14px; }
  .media-badge { left: 14px; right: 14px; bottom: 14px; padding: 14px; }
}
