/* ============================================================
   VOCSY.IO — Stylesheet
   Dark, premium agency design · gradient accents · glassmorphism
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-2: #0b0d16;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef1f7;
  --muted: #9aa3b8;
  --cyan: #00d4ff;
  --violet: #7c5cff;
  --magenta: #ff4d8d;
  --grad: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: calc(var(--nav-h) + 12px); }

/* Decorative elements (orbs, the wide process track) intentionally extend
   past the viewport edge — clip them at the root so they can never cause
   horizontal scrolling or iOS rubber-banding. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--violet); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* Subtle custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232738; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2f3550; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Atmosphere layers ---------- */
#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 240;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='300'%20height='300'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'/%3E%3C/filter%3E%3Crect%20width='300'%20height='300'%20filter='url(%23n)'/%3E%3C/svg%3E");
}

main, footer { position: relative; z-index: 2; }

/* Background glows behind sections */
.section { position: relative; padding-block: clamp(90px, 12vh, 150px); }

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-glow { display: none; }

@media (pointer: fine) {
  .cursor-dot {
    display: block;
    position: fixed;
    left: 0; top: 0;
    z-index: 500;
    pointer-events: none;
    opacity: 0;
  }
  body.has-cursor .cursor-dot { opacity: 1; }
  .cursor-dot i {
    display: block;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s ease, background 0.25s ease;
  }
  body.cursor-active .cursor-dot i { transform: scale(2.8); background: var(--cyan); }

  .cursor-glow {
    display: block;
    position: fixed;
    left: 0; top: 0;
    z-index: 1;
    pointer-events: none;
    width: 520px; height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(124, 92, 255, 0.14), transparent 70%);
  }

  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  /* Pure-CSS escape hatch: if scripts never run, the overlay dismisses
     itself after 6s instead of trapping the visitor. JS removes the node
     long before this fires in the normal case. */
  animation: preloaderAutoHide 0.6s ease 6s forwards;
}
@keyframes preloaderAutoHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.preloader-logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.preloader-count {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}
.preloader-bar {
  margin: 18px auto 0;
  width: min(260px, 60vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--grad);
  border-radius: 2px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
  /* Hide via `top` rather than transform: a transform would become the
     containing block for the fixed mobile menu panel. */
  transition: top 0.45s ease;
}
.nav.nav-hidden { top: calc(-1 * var(--nav-h) - 2px); }
/* Keyboard focus inside the hidden bar slides it back into view */
.nav.nav-hidden:focus-within { top: 0; }
/* The blurred background lives on a pseudo-element: backdrop-filter on .nav
   itself would make it the containing block for the fixed mobile menu panel,
   collapsing the panel to the bar's height. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled::before {
  background: rgba(5, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  position: relative;
  z-index: 401;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.nav-logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  color: var(--text);
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.nav-links a.nav-cta:hover {
  border-color: var(--violet);
  background: rgba(124, 92, 255, 0.12);
  transform: translateY(-1px);
}
.nav-burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn-primary {
  color: #fff;
  /* Stops chosen so white text keeps >=4.5:1 contrast across the gradient */
  background: linear-gradient(90deg, #007fab, #6243e6 60%, #cf2168);
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.5);
}
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.07);
}
.btn-lg { padding: 19px 38px; font-size: 1.08rem; }
.btn-arrow { transition: transform 0.3s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Shared section headings ---------- */
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.sec-tag::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--grad);
}
.sec-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: clamp(36px, 5vh, 60px);
  max-width: 760px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  z-index: 2;
}
.hero-inner { width: 100%; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.7rem, 7.4vw, 6.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .word { display: inline-block; will-change: transform; }
.hero-sub {
  max-width: 640px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--muted);
  margin-bottom: 38px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(44px, 7vh, 70px); }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
}
.hstat { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 1px solid var(--border); }
.hstat-num {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hstat-label { font-size: 0.85rem; color: var(--muted); }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--cyan));
  animation: scrollLine 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-right: 38px;
}
.marquee-group span {
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(238, 241, 247, 0.75);
  white-space: nowrap;
}
.marquee-group i {
  font-style: normal;
  color: var(--violet);
  font-size: 0.9rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Manifesto (pinned cinematic chapter) ---------- */
.manifesto { position: relative; z-index: 2; }
.manifesto-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  text-align: center;
  padding-block: clamp(90px, 14vh, 160px);
  /* Side padding for the static (no-JS / reduced-motion) stacked layout;
     in cinema mode the lines are absolutely positioned and unaffected. */
  padding-inline: var(--pad);
}
.manifesto-line {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 5.8vw, 5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 1000px;
}
/* body.cinema is added by JS when the scroll-driven mode is active —
   without JS the lines simply stack as a readable static section. */
body.cinema .manifesto-pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  padding-block: 0;
  overflow: hidden;
}
body.cinema .manifesto-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 1000px);
  will-change: transform, opacity, filter;
}

/* ---------- Decorative parallax orbs ---------- */
.orb {
  position: absolute;
  z-index: -1;
  width: clamp(260px, 34vw, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
  will-change: transform;
}
.orb-cyan { background: radial-gradient(closest-side, rgba(0, 212, 255, 0.5), transparent 70%); top: 4%; right: -8%; }
.orb-violet { background: radial-gradient(closest-side, rgba(124, 92, 255, 0.55), transparent 70%); top: 16%; left: -10%; }
.orb-magenta { background: radial-gradient(closest-side, rgba(255, 77, 141, 0.4), transparent 70%); bottom: -10%; right: -6%; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-text { color: var(--muted); margin-bottom: 18px; max-width: 560px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.chip:hover { border-color: rgba(0, 212, 255, 0.45); background: rgba(0, 212, 255, 0.06); }

.about-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.08), rgba(255, 255, 255, 0.02) 45%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: clamp(26px, 3vw, 40px);
  overflow: hidden;
}
.about-panel::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 212, 255, 0.18), transparent);
  pointer-events: none;
}
.about-panel-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 24px;
}
.about-row {
  display: flex;
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--border);
}
.about-row:last-child { padding-bottom: 0; }
.about-row-dot {
  flex: none;
  width: 9px; height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--grad);
}
.about-row strong { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; }
.about-row p { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: clamp(26px, 2.6vw, 36px);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover {
  border-color: rgba(124, 92, 255, 0.55);
  background: var(--surface-2);
  box-shadow: 0 24px 60px rgba(5, 6, 10, 0.6), 0 0 0 1px rgba(124, 92, 255, 0.15);
}
.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(0, 212, 255, 0.12), rgba(124, 92, 255, 0.12));
  color: var(--cyan);
  margin-bottom: 22px;
}
.card-icon svg { width: 25px; height: 25px; }
.card-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.card-text { font-size: 0.93rem; color: var(--muted); margin-bottom: 22px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
}
.card-link span { transition: transform 0.3s ease; }
.card-link:hover span { transform: translateX(4px); }
.card-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Process ---------- */
.process {
  position: relative;
  z-index: 2;
  padding-top: clamp(90px, 12vh, 150px);
  overflow: hidden;
}
.process-head { margin-bottom: clamp(10px, 2vh, 30px); }
.process-head .sec-title { margin-bottom: 0; }
.process-wrap {
  padding-block: clamp(30px, 6vh, 70px);
}
.process-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-inline: var(--pad);
  padding-right: clamp(60px, 10vw, 160px);
  will-change: transform;
}
.process-card {
  width: min(440px, 82vw);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: clamp(28px, 3vw, 44px);
  transition: border-color 0.35s ease;
}
.process-card:hover { border-color: rgba(0, 212, 255, 0.45); }
.process-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  margin-bottom: 22px;
}
.process-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.process-text { color: var(--muted); font-size: 0.95rem; max-width: 330px; }

/* Reduced motion: process stacks instead of scrolling horizontally */
body.reduced-motion .process-track { flex-wrap: wrap; width: auto; }

/* ---------- Numbers ---------- */
.numbers { background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.05) 50%, transparent); }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.numbox {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(26px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.numbox:hover { border-color: rgba(0, 212, 255, 0.4); transform: translateY(-4px); }
.num {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.num-label { font-size: 0.9rem; color: var(--muted); }

/* Portfolio cards (reuse .numbox shell) */
.numbox.folio { cursor: pointer; }
.folio-name {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.folio-link {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
}
.folio-note {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Why ---------- */
.why-list { border-top: 1px solid var(--border); }
.why-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.6fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  padding-block: clamp(26px, 3.6vh, 42px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, padding-left 0.35s ease;
}
.why-row:hover { background: rgba(255, 255, 255, 0.02); padding-left: 14px; }
.why-num {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--violet);
  padding-top: 6px;
}
.why-title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.why-text { color: var(--muted); max-width: 560px; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(124, 92, 255, 0.12), transparent),
    radial-gradient(ellipse 40% 40% at 30% 30%, rgba(0, 212, 255, 0.07), transparent);
}
.contact-inner { text-align: center; }
.contact .sec-tag { justify-content: center; }
.contact .sec-tag::before { display: none; }
.contact-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.contact-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 520px;
  margin: 0 auto 42px;
}
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.contact-legal {
  margin-top: 34px;
  font-size: 0.85rem;
  color: var(--muted);
}
.contact-legal strong { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 10, 0.85);
  padding-block: clamp(50px, 7vh, 80px) 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  padding-bottom: clamp(36px, 5vh, 56px);
  border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-col a { font-size: 0.92rem; color: var(--muted); transition: color 0.25s ease; width: fit-content; }
.footer-col a:hover { color: var(--text); }
.footer-legal {
  padding-top: 26px;
  display: grid;
  gap: 10px;
}
.footer-legal p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 900px;
}
.footer-legal strong { color: var(--text); font-weight: 600; }
.footer-id {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem !important;
  color: var(--text);
  opacity: 0.85;
}
.footer-made {
  font-family: var(--font-head);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-page {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-inline: auto;
  padding: 150px var(--pad) 90px;
}
.legal-page h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.legal-updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 44px; }
.legal-page h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 40px 0 14px;
}
.legal-page p, .legal-page li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }
.legal-page a { color: var(--cyan); }
.legal-page strong { color: var(--text); font-weight: 600; }
.legal-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    align-items: center;
    position: relative;
    z-index: 402;
  }
  .nav-burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Keep the logo above the full-screen menu panel */
  .nav .nav-logo { position: relative; z-index: 402; }

  body.nav-open { overflow: hidden; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 399;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(5, 6, 10, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translateY(-102%);
    /* visibility removes the closed menu's links from the tab order;
       the 0.5s delay keeps the slide-up animation visible on close */
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1),
                visibility 0s linear 0.5s;
  }
  body.nav-open .nav-links {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1),
                visibility 0s;
  }
  .nav-links a { font-size: 1.45rem; font-family: var(--font-head); font-weight: 600; color: var(--text); }
  .nav-links a.nav-cta { font-size: 1.1rem; }

  .about-grid { grid-template-columns: 1fr; }

  /* Process becomes a vertical stack on mobile */
  .process-wrap { overflow: visible; }
  .process-track {
    flex-direction: column;
    width: auto;
    padding-right: var(--pad);
  }
  .process-card { width: 100%; }
  .process-text { max-width: none; }

  .why-row { grid-template-columns: 56px 1fr; }
  .why-text { grid-column: 2; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .hstat { flex: 1 1 40%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .contact-ctas .btn { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  /* The second group only exists to make the scroll loop seamless —
     without the animation it would just duplicate every item. */
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; }
  .pulse-dot { animation: none; }
  .hero-scroll-line { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
