/* ==========================================================================
   TheDarkForce — Homepage stylesheet (light, data-led redesign)
   brand-book.html keeps using styles.css
   ========================================================================== */

:root {
  /* Palette: navy + electric blue */
  --navy: #0B1F44;
  --navy-2: #12295A;
  --navy-3: #1B3A78;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-soft: #EAF1FF;
  --sky: #38BDF8;
  --brand-grad: linear-gradient(90deg, #2563EB 0%, #38BDF8 100%);
  --df-red: #DC2626;
  --df-whatsapp: #25D366;

  /* Surfaces */
  --paper: #F5F7FB;
  --paper-2: #EBF0F8;
  --surface: #FFFFFF;
  --ink: var(--navy);
  --ink-2: var(--navy-2);
  --ink-3: var(--navy-3);

  /* Text */
  --text: #0F172A;
  --text-muted: #5B6B82;
  --text-soft: #94A3B8;
  --on-ink: #E6EDF8;
  --on-ink-muted: #A3B3CC;

  /* Lines */
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --line-ink: rgba(255, 255, 255, 0.1);

  /* Actions */
  --accent: var(--blue);
  --accent-hover: var(--blue-hover);
  --good: #059669;

  /* Type */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Layout */
  --max-w: 1240px;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --nav-h: 76px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --section-pad: clamp(4rem, 9vw, 7rem);
  --shadow-sm: 0 1px 2px rgba(11, 31, 68, 0.05), 0 2px 8px rgba(11, 31, 68, 0.04);
  --shadow-md: 0 2px 4px rgba(11, 31, 68, 0.04), 0 12px 32px rgba(11, 31, 68, 0.08);
  --shadow-lg: 0 4px 8px rgba(11, 31, 68, 0.04), 0 30px 60px -12px rgba(11, 31, 68, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}

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

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; }

/* Highlighter mark on headline words */
.mark {
  color: var(--blue);
}

.spectrum-text {
  background: linear-gradient(90deg, #60A5FA 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; background: var(--blue); border-radius: 2px;
}
.eyebrow-light { color: var(--sky); }
.eyebrow-light::before { background: var(--sky); }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue); position: relative;
}
.eyebrow:has(.pulse-dot)::before { display: none; }
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(3); opacity: 0; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn i { font-size: 0.85em; transition: transform 0.2s; }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px rgba(37, 99, 235, 0.55); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.95rem 1.65rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: wait; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  --header-bg: rgba(247, 246, 242, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would trap the fixed mobile drawer inside the 76px header bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background 0.25s;
}
/* Keep the header (and its drawer) above the dimming overlay */
.nav-open .site-header { z-index: 120; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.3rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.brand-name b { font-weight: 800; }
.brand-sub { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.3rem; }
.brand--light .brand-name { color: #fff; }
.brand--light .brand-sub { color: var(--on-ink-muted); }

.site-nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: 0.25rem; }
.nav-link {
  display: block; padding: 0.5rem 0.85rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-link.active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.nav-drawer-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-size: 1.1rem; color: var(--ink);
}
.nav-overlay { display: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(600px 400px at 85% 20%, rgba(37, 99, 235, 0.12), transparent 70%),
    radial-gradient(500px 380px at 70% 85%, rgba(56, 189, 248, 0.12), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  opacity: 0.9;
}

.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero-title { font-size: clamp(2.6rem, 6.2vw, 4.6rem); letter-spacing: -0.035em; }
.hero-tricolon {
  margin-top: 1.1rem;
  font-family: var(--mono); font-weight: 600; font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--ink);
}
.hero-lead { margin-top: 1rem; max-width: 34rem; font-size: 1.08rem; color: var(--text-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.hero-pills li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
}
.hero-pills i { color: var(--accent); font-size: 0.8em; }

/* Dashboard */
.dash {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.1rem;
  box-shadow: var(--shadow-lg);
  min-width: 0;
}
.dash::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px;
  background: var(--brand-grad); border-radius: 0 0 4px 4px;
}
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-2); }
.dash-dots span { background: var(--line-strong); }

.dash-tabs { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.dash-tab {
  border: 0; background: transparent; cursor: pointer;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.dash-tab.is-active { background: var(--ink); color: #fff; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.kpi {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.8rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
  min-width: 0;
}
.kpi-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.kpi-delta { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; color: var(--good); }
.kpi.is-swapping .kpi-value, .kpi.is-swapping .kpi-delta { animation: swapIn 0.45s ease; }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chart-card { margin-top: 0.75rem; padding: 1rem 1rem 0.75rem; border: 1px solid var(--line); border-radius: var(--r-md); }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.chart-title { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.chart-badge {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  color: var(--blue); background: var(--blue-soft); padding: 0.2rem 0.55rem; border-radius: 999px;
}
.chart { width: 100%; height: 170px; display: block; overflow: visible; }
.chart-grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart-area { fill: url(#areaFill); transition: d 0.6s ease; }
.chart-line {
  fill: none; stroke: url(#lineStroke); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: d 0.6s ease;
}
.chart-line.is-drawing { animation: drawLine 1.4s cubic-bezier(0.3, 0.8, 0.3, 1) both; }
@keyframes drawLine { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.chart-pt { fill: #fff; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.68rem; color: var(--text-soft); margin-top: 0.35rem; }
.dash-note { margin-top: 0.75rem; text-align: center; font-size: 0.72rem; color: var(--text-soft); }

/* --------------------------------------------------------------------------
   Logo strip
   -------------------------------------------------------------------------- */
.logo-strip { padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.logo-strip-title {
  text-align: center; font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 1.25rem;
}
/* Edge fades are overlays rather than mask-image: Safari on iPhone stops
   repainting an animated track inside a masked container. */
.marquee-container {
  --fade: var(--surface);
  position: relative;
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.marquee-container::before,
.marquee-container::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 1;
  width: min(12%, 120px); pointer-events: none;
}
.marquee-container::before { left: 0; background: linear-gradient(90deg, var(--fade), transparent); }
.marquee-container::after { right: 0; background: linear-gradient(-90deg, var(--fade), transparent); }
.marquee-content {
  display: flex; gap: 1rem; width: max-content;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-animation: marquee 40s linear infinite;
  animation: marquee 40s linear infinite;
}
.marquee-content > * { flex-shrink: 0; }
/* Pause on hover only where there's a real mouse — a tap on iPhone leaves
   :hover stuck on and would freeze the strip. */
@media (hover: hover) and (pointer: fine) {
  .marquee-container:hover .marquee-content { -webkit-animation-play-state: paused; animation-play-state: paused; }
}
@-webkit-keyframes marquee { from { -webkit-transform: translate3d(0, 0, 0); } to { -webkit-transform: translate3d(-50%, 0, 0); } }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
/* Reduce Motion: show every logo in a centred, wrapped row instead */
@media (prefers-reduced-motion: reduce) {
  .marquee-content { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
  .marquee-container::before, .marquee-container::after { display: none; }
}
.logo-chip {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 1.25rem 0.6rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-weight: 700; font-size: 0.95rem; color: var(--ink); white-space: nowrap;
  filter: grayscale(0.6); transition: filter 0.25s, border-color 0.25s;
}
.logo-chip:hover { filter: none; border-color: var(--line-strong); }
.logo-chip img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: #fff; padding: 4px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--section-pad) 0; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section-head p { margin-top: 1rem; color: var(--text-muted); font-size: 1.06rem; }
.section-head--left { text-align: left; margin: 0; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.75rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}
.svc::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.svc:hover::after { transform: scaleX(1); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem;
  color: var(--blue); background: var(--blue-soft);
}
.svc-num { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--text-soft); }
.svc h3 { font-size: 1.3rem; }
.svc-tag { margin-top: 0.35rem; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--c); }
.svc > p:not(.svc-tag) { margin-top: 0.85rem; color: var(--text-muted); font-size: 0.95rem; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.25rem 0 1.5rem; }
.svc-chips li { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--text-muted); }
.svc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.svc-link i { transition: transform 0.2s; color: var(--c); }
.svc-link:hover i { transform: translateX(4px); }

/* Dark band — DarkForce One */
.band-dark {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(37, 99, 235, 0.22), transparent 70%),
    var(--ink);
  color: var(--on-ink);
}
.band-dark h2, .band-dark h3 { color: #fff; }
.one-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.one-copy h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.one-lead { margin-top: 1rem; font-size: 1.25rem; font-weight: 700; color: #fff; }
.one-copy > p:not(.one-lead) { margin: 1rem 0 2rem; color: var(--on-ink-muted); }

.flow { position: relative; display: flex; flex-direction: column; gap: 0.75rem; }
.flow::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px;
  background: linear-gradient(180deg, #2563EB, #38BDF8);
  opacity: 0.5;
}
.flow-step {
  position: relative; display: flex; align-items: center; gap: 1.1rem;
  padding: 0.9rem 1.1rem 0.9rem 0.5rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-ink);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.flow-step:hover { background: rgba(255, 255, 255, 0.06); border-color: color-mix(in srgb, var(--c) 50%, transparent); transform: translateX(4px); }
.flow-dot {
  flex-shrink: 0; z-index: 1;
  width: 40px; height: 40px; margin-left: 0; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: #fff;
  background: var(--c); box-shadow: 0 0 0 5px var(--ink), 0 0 22px color-mix(in srgb, var(--c) 60%, transparent);
}
.flow-step h3 { font-size: 1.02rem; letter-spacing: -0.01em; }
.flow-step p { font-size: 0.88rem; color: var(--on-ink-muted); line-height: 1.5; }

/* Why different */
.diff { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 5.5rem); }
.diff-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.diff-row--flip .diff-copy { order: 2; }
.diff-num {
  display: block; font-family: var(--mono); font-size: 3.5rem; font-weight: 600; line-height: 1;
  color: var(--blue);
  margin-bottom: 1rem;
}
.diff-copy h3 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.diff-copy > p { margin-top: 1rem; color: var(--text-muted); font-size: 1.03rem; }
.tick-list { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.tick-list li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.tick-list i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.65rem; color: #fff; background: var(--blue); flex-shrink: 0; }
.stack-pills { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stack-pills li { padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; }

.diff-visual { display: grid; place-items: center; min-width: 0; }

.mini-report {
  width: 100%; max-width: 440px; padding: 1.4rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.mini-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.mini-up { font-family: var(--mono); font-size: 0.75rem; color: var(--good); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 1.25rem 0; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.bars span {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #93C5FD, #60A5FA);
  transform-origin: bottom; transform: scaleY(0); transition: transform 0.8s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.bars span:nth-child(n+7) { background: linear-gradient(180deg, var(--sky), var(--blue)); }
.is-visible .bars span { transform: scaleY(1); }
.bars span:nth-child(2) { transition-delay: 0.05s; } .bars span:nth-child(3) { transition-delay: 0.1s; }
.bars span:nth-child(4) { transition-delay: 0.15s; } .bars span:nth-child(5) { transition-delay: 0.2s; }
.bars span:nth-child(6) { transition-delay: 0.25s; } .bars span:nth-child(7) { transition-delay: 0.3s; }
.bars span:nth-child(8) { transition-delay: 0.35s; } .bars span:nth-child(9) { transition-delay: 0.4s; }
.bars span:nth-child(10) { transition-delay: 0.45s; }
.mini-rows > div { display: grid; grid-template-columns: 1.4fr 1fr 1fr; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 0.85rem; }
.mini-rows > div:first-child { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }
.mini-rows > div:last-child { border-bottom: 0; }
.mini-rows span:not(:first-child) { text-align: right; color: var(--text-muted); }
.mini-rows i { width: 18px; color: var(--text-muted); }

.orbit { position: relative; width: min(360px, 82vw); aspect-ratio: 1; }
.orbit::before, .orbit::after {
  content: ""; position: absolute; border-radius: 50%; border: 1.5px dashed var(--line-strong);
}
.orbit::before { inset: 0; }
.orbit::after { inset: 22%; border-style: solid; border-color: var(--line); }
.orbit-core { position: absolute; inset: 31%; width: 38%; height: 38%; object-fit: contain; animation: spin 40s linear infinite reverse; }
.orbit-node {
  --r: calc(min(360px, 82vw) / 2);
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.15rem;
  color: var(--c); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
}
@keyframes spin { to { transform: rotate(360deg); } }

.chat {
  width: 100%; max-width: 380px; border-radius: var(--r-lg); overflow: hidden;
  background: #ECE5DD; border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.chat-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; background: #075E54; color: #fff; }
.chat-head small { display: block; opacity: 0.8; font-size: 0.72rem; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--df-whatsapp); font-size: 1.1rem; }
.chat-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; }
.msg { max-width: 82%; padding: 0.55rem 0.8rem; border-radius: 12px; font-size: 0.85rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.msg.out { align-self: flex-end; background: #DCF8C6; border-top-right-radius: 2px; }
.msg-btn { display: block; margin-top: 0.5rem; padding: 0.35rem; text-align: center; border-top: 1px solid rgba(0, 0, 0, 0.08); color: #0A7CFF; font-weight: 700; }
.msg.sys { align-self: center; max-width: 100%; background: rgba(255, 255, 255, 0.85); font-family: var(--mono); font-size: 0.7rem; color: var(--good); }
.reveal .msg { opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s; }
.reveal.is-visible .msg { opacity: 1; transform: none; }
.reveal.is-visible .msg:nth-child(2) { transition-delay: 0.4s; }
.reveal.is-visible .msg:nth-child(3) { transition-delay: 0.8s; }
.reveal.is-visible .msg:nth-child(4) { transition-delay: 1.2s; }
.reveal.is-visible .msg:nth-child(5) { transition-delay: 1.7s; }

/* Stats band */
.stats-band { background: var(--ink); color: var(--on-ink); padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; }
.stats-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-grad); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 0.5rem 1.5rem; border-left: 1px solid var(--line-ink); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.stat-label { display: block; margin-top: 0.4rem; color: var(--on-ink-muted); font-size: 0.92rem; }

/* Process timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.timeline::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 36px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px);
}
.tl-step { position: relative; text-align: center; padding: 0 0.5rem; }
.tl-num { display: block; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--text-soft); margin-bottom: 0.4rem; position: absolute; top: -1.4rem; left: 0; right: 0; }
.tl-icon {
  position: relative; z-index: 1;
  width: 72px; height: 72px; margin: 0 auto 1.25rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.35rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  transition: background 0.25s, color 0.25s;
}
.tl-step:hover .tl-icon { background: var(--blue); color: #fff; border-color: var(--blue); }
.tl-step h3 { font-size: 1.2rem; }
.tl-step p { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.93rem; }

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.client {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2rem 1.25rem 1.5rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}
.client:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.client-logo { width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 1rem; }
.client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.client-name { font-weight: 800; color: var(--ink); }
.client-link { margin-top: 0.3rem; font-family: var(--mono); font-size: 0.72rem; color: var(--text-soft); }
.client-link i { font-size: 0.85em; }
.join-cta {
  margin-top: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--line-strong);
}
.join-cta p { color: var(--text-muted); }
.join-cta b { color: var(--ink); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.inline-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-container { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item.active { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-heading { font-size: 1rem; letter-spacing: -0.01em; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.35rem; background: none; border: 0; cursor: pointer; text-align: left;
  font-weight: 700; color: var(--ink);
}
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 0.8rem; transition: transform 0.25s, background 0.25s, color 0.25s;
}
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-answer { padding: 0 1.35rem 1.25rem; color: var(--text-muted); }

/* Contact */
.contact { padding-top: 0; }
.contact-card {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: var(--r-xl);
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(37, 99, 235, 0.3), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(56, 189, 248, 0.16), transparent 70%),
    var(--ink);
  color: var(--on-ink);
}
.contact-info h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.contact-info > p { margin-top: 1rem; color: var(--on-ink-muted); }
.contact-details { margin-top: 2rem; display: grid; gap: 0.75rem; }
.cd-row { display: flex; align-items: center; gap: 0.9rem; color: #fff; font-weight: 600; }
.cd-row small { display: block; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-ink-muted); }
.cd-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-ink); color: var(--sky); flex-shrink: 0; }
a.cd-row:hover .cd-icon { background: var(--accent); color: #fff; border-color: var(--accent); }

.contact-form { background: var(--surface); color: var(--text); border-radius: var(--r-lg); padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1rem; min-width: 0; }
.form-title { font-size: 1.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.form-field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.req { color: var(--accent); }
.input-field, .select-field {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; border-radius: var(--r-sm);
  background: var(--paper); border: 1.5px solid var(--line);
  /* 16px stops iPhone Safari zooming in when a field is tapped */
  font-size: 16px; line-height: 1.4;
  transition: border-color 0.2s, background 0.2s;
}
/* Same look for the dropdown on every browser, with our own arrow */
.select-field {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 2.5rem; cursor: pointer; color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B6B82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 12px 8px;
}
.input-field::placeholder { color: var(--text-soft); }
.input-field:focus, .select-field:focus { outline: none; border-color: var(--ink); background-color: #fff; }
.input-field.is-invalid { border-color: var(--df-red); background: #FEF2F2; }
textarea.input-field { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.78rem; color: var(--text-soft); text-align: center; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); margin-top: var(--section-pad); }
.spectrum-rule { height: 3px; background: var(--brand-grad); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer-brand p { margin: 1.25rem 0; max-width: 22rem; font-size: 0.93rem; }
.footer-wa { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px; background: rgba(37, 211, 102, 0.12); color: var(--df-whatsapp); font-weight: 700; font-size: 0.88rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.8); font-size: 1rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: #fff; transform: translateY(-2px); border-color: transparent; }
.footer-social li:nth-child(1) a:hover { background: #0A66C2; }
.footer-social li:nth-child(2) a:hover { background: #1877F2; }
.footer-social li:nth-child(3) a:hover { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF 80%, #515BD4); }
.footer-heading { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-links { display: grid; gap: 0.6rem; font-size: 0.93rem; }
.footer-links a:hover { color: #fff; }
.footer-links i { width: 18px; color: var(--sky); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line-ink); font-size: 0.85rem; }
.footer-motto { font-family: var(--mono); font-size: 0.75rem; }

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--df-whatsapp); color: #fff; font-size: 1.6rem;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s;
}
.fab-whatsapp:hover { transform: scale(1.08); }

/* Floating call — sits just above the WhatsApp button */
.fab-call {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + 56px + 12px); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #FF9800, #FF5722); color: #fff; font-size: 1.3rem;
  box-shadow: 0 10px 24px -6px rgba(255, 87, 34, 0.6);
  transition: transform 0.2s;
}
.fab-call:hover { transform: scale(1.08); }
.fab-call::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255, 120, 40, 0.6);
  animation: fabRing 2.4s ease-out infinite;
}
@keyframes fabRing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }

/* Toast */
.toast-msg {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200;
  display: flex; align-items: center; gap: 0.6rem;
  max-width: calc(100% - 2rem); padding: 0.85rem 1.2rem; border-radius: var(--r-md);
  background: var(--ink); color: #fff; font-size: 0.92rem; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 150%); opacity: 0; transition: transform 0.3s, opacity 0.3s;
}
.toast-msg.show { transform: translate(-50%, 0); opacity: 1; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .menu-toggle { display: grid; place-items: center; }
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
    width: min(320px, 85vw); flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: calc(var(--nav-h) + 1rem) 1.25rem 1.5rem;
    background: var(--surface); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform 0.3s ease; visibility: hidden;
  }
  .nav-open .site-nav { transform: none; visibility: visible; }
  .nav-menu { flex-direction: column; gap: 0.25rem; }
  .nav-link { padding: 0.8rem 1rem; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-drawer-cta { display: inline-flex; }
  .menu-toggle { position: relative; z-index: 120; }
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 105; background: rgba(11, 22, 38, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 40rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .one-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head--left { text-align: center; max-width: 40rem; margin: 0 auto; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .diff-row { grid-template-columns: 1fr; }
  .diff-row--flip .diff-copy { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .timeline::before { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .nav-cta { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.1rem; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash { padding: 0.8rem; border-radius: var(--r-lg); }
  .chart { height: 140px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .services-grid, .client-grid { grid-template-columns: 1fr; }
  .svc { padding: 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .stat { padding: 0 0 0 1rem; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .join-cta { flex-direction: column; align-items: flex-start; }
  .orbit-node { width: 44px; height: 44px; margin: -22px 0 0 -22px; font-size: 1rem; border-radius: 12px; }
  .fab-whatsapp { width: 50px; height: 50px; font-size: 1.4rem; right: 1rem; bottom: 1rem; }
  .fab-call { width: 50px; height: 50px; font-size: 1.15rem; right: 1rem; bottom: calc(1rem + 50px + 10px); }

  /* Contact: let the form use the full width of the card */
  .contact-card { padding: 1.75rem 0.75rem 0.75rem; gap: 1.75rem; border-radius: 22px; }
  .contact-card .contact-info { padding: 0 0.5rem; }
  .contact-card .contact-details { margin-top: 1.5rem; }
  .contact-card .contact-form { padding: 1.4rem 1.1rem 1.2rem; gap: 0.9rem; border-radius: 16px; }
  .contact-card .form-title { font-size: 1.25rem; margin-bottom: 0.15rem; }
  .contact-card .form-row { gap: 0.9rem; }
  .contact-card .form-field { gap: 0.4rem; }
  .contact-card textarea.input-field { min-height: 120px; }
  .contact-card .btn-block { margin-top: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .reveal .msg { opacity: 1 !important; transform: none !important; }
  .bars span { transform: none !important; }
}
