/* =============================================
   MAXWYNN — style.css
   Dark cinema + premium agency aesthetic
   ============================================= */

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

:root {
  --bg:        #0B0B0D;
  --bg2:       #16181D;
  --bg3:       #1C1E24;
  --accent:    #4F7CFF;
  --accent2:   #7C5CFF;
  --text:      #F5F7FA;
  --muted:     #9CA3AF;
  --border:    rgba(255,255,255,0.07);
  --glass:     rgba(255,255,255,0.04);
  --glow:      rgba(79,124,255,0.18);
  --glow2:     rgba(124,92,255,0.15);

  --font-head: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --nav-h:    72px;
  --r:        16px;
  --r-sm:     10px;
  --trans:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ── Light mode overrides ──────────────────── */
body.light {
  --bg:        #F0F2F7;
  --bg2:       #FFFFFF;
  --bg3:       #E8EBF3;
  --accent:    #3B6AE8;
  --accent2:   #6A44E8;
  --text:      #0D0F14;
  --muted:     #5A6278;
  --border:    rgba(0,0,0,0.09);
  --glass:     rgba(0,0,0,0.03);
  --glow:      rgba(59,106,232,0.14);
  --glow2:     rgba(106,68,232,0.12);
}
body.light .nav.scrolled {
  background: rgba(240,242,247,0.88);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
body.light .mobile-menu {
  background: rgba(240,242,247,0.97);
}
body.light .hero__grid-overlay {
  background-image:
    linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
}
body.light .stats { background: var(--bg2); }
body.light .stats__glow {
  background: radial-gradient(ellipse, rgba(59,106,232,0.07) 0%, transparent 70%);
}
body.light .workflow {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}
body.light .wf-connector__line--h,
body.light .wf-connector__line { background: rgba(0,0,0,0.1); }
body.light .hvc__bar { background: rgba(0,0,0,0.07); }
body.light .ring-bg  { stroke: rgba(0,0,0,0.08); }
body.light .about__bar { background: rgba(0,0,0,0.07); }
body.light .hero__visual-card {
  background: var(--bg2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
body.light .cta-final { background: var(--bg2); }
body.light .cta-final__glow {
  background: radial-gradient(ellipse, rgba(106,68,232,0.08) 0%, transparent 70%);
}
body.light .footer { background: var(--bg); }

/* Smooth global theme transition */
*, *::before, *::after {
  transition:
    background-color 0.35s ease,
    color            0.35s ease,
    border-color     0.35s ease,
    box-shadow       0.35s ease !important;
}
/* Restore reveal/transform transitions */
.reveal {
  transition:
    opacity   0.75s cubic-bezier(0.25,0.46,0.45,0.94),
    transform 0.75s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}
.btn, .service-card, .stat-card {
  transition:
    background-color 0.35s ease,
    color            0.35s ease,
    border-color     0.35s ease,
    box-shadow       0.35s ease,
    transform        0.3s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}

/* ── Theme toggle button ───────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg2);
  color: var(--text);
  transform: rotate(20deg);
}
/* Dark: moon visible, sun hidden */
.theme-toggle__icon--sun  { display: none; }
.theme-toggle__icon--moon { display: block; }
/* Light: sun visible, moon hidden */
body.light .theme-toggle__icon--moon { display: none; }
body.light .theme-toggle__icon--sun  { display: block; }


html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 120px 0; position: relative; }

/* ── Scroll Reveal ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--trans), transform 0.75s var(--trans);
}
.reveal--delay  { transition-delay: 0.15s; }
.reveal--delay2 { transition-delay: 0.3s; }
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--trans);
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px rgba(79,124,255,0.35);
}
.btn--primary:hover {
  background: #6a91ff;
  box-shadow: 0 0 44px rgba(79,124,255,0.55);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.25);
  background: var(--glass);
  transform: translateY(-2px);
}
.btn--large { padding: 18px 40px; font-size: 1.05rem; }
.btn__arrow { transition: transform 0.3s var(--trans); }
.btn--ghost:hover .btn__arrow { transform: translateX(4px); }

/* ── Section Headers ───────────────────────── */
.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.section__desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
}
.section__header { margin-bottom: 72px; }

/* ── NAV ───────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: background 0.4s var(--trans), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(11,11,13,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
}
.nav__logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}
.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s var(--trans);
  box-shadow: 0 0 20px rgba(79,124,255,0.3);
}
.nav__cta:hover {
  background: #6a91ff;
  box-shadow: 0 0 36px rgba(79,124,255,0.5);
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--trans);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ───────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11,11,13,0.97);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--trans);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.mobile-link {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--text); }
.mobile-link--cta {
  font-size: 1.2rem;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 50px;
  margin-top: 1rem;
}

/* ── HERO ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  width: 100%;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 8px var(--accent); }
  50%      { box-shadow: 0 0 20px var(--accent); }
}
.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero__headline--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Pipeline layout — stack 3 cards vertically */
.hero__right { display: flex; align-items: center; justify-content: center; }
.hero__visual {
  position: relative;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}
.hero__visual-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.35rem;
  backdrop-filter: blur(12px);
  animation: float-card 6s ease-in-out infinite;
}
.hero__visual-card--1 {
  animation-delay: 0s;
  margin-bottom: 0;
}
.hero__visual-card--2 {
  animation: float-card 6s ease-in-out infinite;
  animation-delay: 1.5s;
  margin-bottom: 0;
}
.hero__visual-card--3 {
  animation: float-card 6s ease-in-out infinite;
  animation-delay: 3s;
}
@keyframes float-card {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
/* Pipeline cards — label with emoji icon */
.hvc__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.hvc__label-icon {
  font-style: normal;
  font-size: 0.85rem;
}

/* Pipeline checklist inside each card */
.hvc__checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.hvc__checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 400;
}

/* Check dot — done (filled) vs active (pulsing) */
.hvc__check {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid var(--accent);
  position: relative;
}
.hvc__check--done {
  background: var(--accent);
}
.hvc__check--done::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%) rotate(45deg);
  width: 4px; height: 6px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
}
.hvc__check--active {
  background: rgba(79,124,255,0.15);
  animation: check-pulse 2s ease-in-out infinite;
}
.hvc__check--active::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes check-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(79,124,255,0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(79,124,255,0); }
}

/* Downward arrow connector between pipeline cards */
.hvc__connector-arrow {
  text-align: center;
  margin-top: 0.65rem;
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.5;
  line-height: 1;
}

/* New Changes */
/* ── Hero Match Visual ─────────────────────── */
.hero__visual {
  position: relative;
  width: 420px;
  height: 360px;
  display: block; /* override the old flex-column */
}
.hero__match-card {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  width: 150px;
  backdrop-filter: blur(12px);
}
.hero__match-card--brand   { top: 20px;  left: 0; animation: float-card 5s ease-in-out infinite; }
.hero__match-card--creator { bottom: 20px; left: 0; animation: float-card 5s ease-in-out 1.5s infinite; }
.hero__match-card--engine  {
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: 140px;
  border-color: rgba(79,124,255,0.4);
  background: linear-gradient(145deg, var(--bg2), var(--bg3));
  animation: float-engine 5s ease-in-out 0.75s infinite;
}
@keyframes float-engine {
  0%,100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(calc(-50% - 4px)) scale(1.02); }
}
.hvc__sub {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.25rem;
  opacity: 0.7;
}
.hvc__active-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 2px 8px;
  background: rgba(79,124,255,0.12);
  border: 1px solid rgba(79,124,255,0.25);
  border-radius: 20px;
  font-size: 0.6rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.match-orb {
  position: absolute;
  top: 50%; right: 12px;
  width: 134px; height: 175px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(79,124,255,0.1) 0%, transparent 70%);
  animation: orb-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
.match-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Dot travel animations */
.ms-dot { animation-fill-mode: both; }
.ms-d1 { offset-path: path('M 150,75  C 230,75  230,180 270,180'); animation: ms-travel 2.4s ease-in-out infinite; }
.ms-d2 { offset-path: path('M 150,75  C 230,75  230,180 270,180'); animation: ms-travel 2.4s ease-in-out 0.8s infinite; }
.ms-d3 { offset-path: path('M 150,285 C 230,285 230,180 270,180'); animation: ms-travel 2.4s ease-in-out 1.6s infinite; }
.ms-d4 { offset-path: path('M 150,285 C 230,285 230,180 270,180'); animation: ms-travel 2.4s ease-in-out 1.2s infinite; }
.ms-r1 { offset-path: path('M 270,180 C 230,180 230,75  150,75');  animation: ms-travel 2.8s ease-in-out 1.8s infinite; }
.ms-r2 { offset-path: path('M 270,180 C 230,180 230,285 150,285'); animation: ms-travel 2.8s ease-in-out 2.6s infinite; }
@keyframes ms-travel {
  0%   { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Mobile: shrink the visual */
@media (max-width: 768px) {
  .hero__visual { width: 260px; height: 230px; }
  .hero__match-card { width: 100px; padding: 0.75rem 1rem; }
  .hero__match-card--engine { width: 94px; }
  .match-orb { width: 110px; height: 110px; }
}

/* Card 2 is the "Maxwynn" card — slightly featured */
.hero__visual-card--2 {
  border-color: rgba(79,124,255,0.35);
  background: linear-gradient(145deg, var(--bg2), var(--bg3));
}
.hero__visual-card--2 .hvc__label { color: var(--accent); }

.hero__visual-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,124,255,0.12) 0%, transparent 70%);
  animation: orb-pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes orb-pulse {
  0%,100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.2); }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  80%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── SERVICES ──────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--trans), border-color 0.35s, box-shadow 0.35s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,124,255,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,124,255,0.4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(79,124,255,0.08);
}
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 52px; height: 52px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: background 0.3s, border-color 0.3s;
}
.service-card:hover .service-card__icon {
  background: rgba(79,124,255,0.12);
  border-color: rgba(79,124,255,0.3);
}
.service-card__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-card__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.service-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(79,124,255,0.1);
  border: 1px solid rgba(79,124,255,0.2);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── WORKFLOW ──────────────────────────────── */
.workflow {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}

/* ── Horizontal pipeline ── */
.workflow__pipeline {
  display: flex;
  flex-direction: row;
  align-items: stretch;   /* cards stretch to equal height */
  gap: 0;
  width: 100%;
}

/* Side nodes take equal flex; centre node is bigger */
.wf-node {
  flex: 1;
  min-width: 0;
}
.wf-node--center {
  flex: 1.35;             /* slightly wider to keep "engine" emphasis */
}

/* Cards fill the node's full height so connectors align mid-card */
.wf-node__card {
  height: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s;
}
.wf-node__card:hover {
  box-shadow: 0 0 60px rgba(79,124,255,0.1);
}
.wf-node__card--featured {
  background: linear-gradient(145deg, var(--bg2), var(--bg3));
  border-color: rgba(79,124,255,0.3);
  box-shadow: 0 0 80px rgba(79,124,255,0.08);
}

.wf-node__badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  padding: 4px 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.wf-node__icon {
  width: 52px; height: 52px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.wf-node__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.wf-node__title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.wf-node__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.wf-node__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;       /* push list to bottom of card */
}
.wf-node__list li {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}
.wf-node__list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.wf-node__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.wf-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}
.wf-feat__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}

/* Waveform (sits at bottom of centre card) */
.wf-node__wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
  margin-top: auto;
}
.wave-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), var(--accent2));
  border-radius: 4px 4px 0 0;
  opacity: 0.6;
  animation: wave 1.4s ease-in-out infinite;
}
.wave-bar:nth-child(1) { animation-delay: 0s;    height: 40%; }
.wave-bar:nth-child(2) { animation-delay: 0.1s;  height: 70%; }
.wave-bar:nth-child(3) { animation-delay: 0.2s;  height: 55%; }
.wave-bar:nth-child(4) { animation-delay: 0.3s;  height: 90%; }
.wave-bar:nth-child(5) { animation-delay: 0.4s;  height: 65%; }
.wave-bar:nth-child(6) { animation-delay: 0.5s;  height: 80%; }
.wave-bar:nth-child(7) { animation-delay: 0.3s;  height: 50%; }
.wave-bar:nth-child(8) { animation-delay: 0.15s; height: 75%; }
.wave-bar:nth-child(9) { animation-delay: 0.25s; height: 45%; }
@keyframes wave {
  0%,100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1.2); }
}

/* ── Horizontal connectors ── */
.wf-connector--h {
  display: flex;
  flex-direction: column;        /* stack line + arrow vertically, centred */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  padding: 0;
  gap: 4px;
}
.wf-connector__line--h {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.wf-connector__pulse--h {
  position: absolute;
  top: 0; left: -30px;
  width: 30px; height: 100%;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  animation: pulse-right 2.5s linear infinite;
}
@keyframes pulse-right {
  from { left: -30px; }
  to   { left: 100%; }
}
.wf-connector__arrow--h {
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.5;
  line-height: 1;
}

/* ── Responsive: stack vertically on narrow screens ── */
@media (max-width: 900px) {
  .workflow__pipeline {
    flex-direction: column;
    align-items: center;
  }
  .wf-node,
  .wf-node--center { flex: none; width: 100%; }

  .wf-connector--h {
    flex-direction: column;
    width: auto;
    height: 56px;
  }
  .wf-connector__line--h {
    width: 2px;
    height: 100%;
  }
  .wf-connector__pulse--h {
    width: 100%;
    height: 20px;
    top: -20px; left: 0;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    animation: pulse-down 2.5s linear infinite;
  }
  @keyframes pulse-down {
    from { top: -20px; }
    to   { top: 100%; }
  }
  .wf-connector__arrow--h { display: none; }
}

/* ── STATS ─────────────────────────────────── */
.stats {
  position: relative;
  background: var(--bg2);
  overflow: hidden;
}
.stats__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(79,124,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.35s var(--trans), border-color 0.35s;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,124,255,0.3);
}
.stat-card__num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  display: inline-block;
}
.stat-card__unit {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  margin-left: 2px;
}
.stat-card__label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ── ABOUT ─────────────────────────────────── */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 680px;
}
.about__body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* About Visual — What We Handle board */
.about__right {
  position: relative;
  display: flex;
  align-items: stretch;
}
.about__visual {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.about__handle-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.about__handle-header {
  font-family: var(--font-head);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.75rem;
}
/* Three groups laid out in a 3-column grid to fill the full card width */
.about__handle-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  flex: 1;
}
.about__handle-group {
  padding: 0 1.5rem 0 0;
}
.about__handle-group:not(:last-child) {
  border-right: 1px solid var(--border);
  margin-right: 1.5rem;
}
.about__handle-group-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about__handle-icon {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1;
}
.about__handle-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0;
}
.about__handle-list li {
  font-size: 0.865rem;
  color: var(--muted);
  line-height: 1.5;
  position: relative;
  padding-left: 1.1rem;
}
.about__handle-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.6;
}
.about__handle-divider {
  display: none;
}
.about__orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── CTA FINAL ─────────────────────────────── */
.cta-final {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  text-align: center;
}
.cta-final__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(124,92,255,0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-breathe 4s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.15); }
}
.cta-final__inner { position: relative; z-index: 1; }
.cta-final__title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 1.25rem 0;
}
.cta-final__sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-final__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── FOOTER ────────────────────────────────── */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.25rem;
}
.footer__tagline {
  font-size: 0.88rem;
  color: var(--muted);
}
.footer__copy {
  font-size: 0.8rem;
  color: rgba(156,163,175,0.5);
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .about__inner   { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 80px 0; }
  .section__header { margin-bottom: 48px; }

  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav { padding: 0 1.5rem; }

  .hero__content {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem 6rem;
    gap: 3rem;
    text-align: center;
  }
  .hero__sub { margin: 0 auto 2.5rem; }
  .hero__actions { justify-content: center; }
  .hero__eyebrow { justify-content: center; }

  .hero__visual {
    width: 240px;
    margin: 0 auto;
  }

  .services__grid { grid-template-columns: 1fr; gap: 1rem; }

  .about__inner { gap: 3rem; }
  .about__orb { display: none; }
  .about__handle-groups {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .about__handle-group:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border);
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 1.25rem;
  }

  .container { padding: 0 1.25rem; }

  .stat-card { padding: 2rem 1.25rem; }
  .stat-card__num { font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .hero__visual { width: 240px; }
  .cta-final__title { font-size: 2.2rem; }
  .btn--large { padding: 15px 28px; font-size: 0.95rem; }
}
