/* NorthEdge Automations — Site CSS
   Bigger, more captivating version. Imports tokens. */

@import url('./tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg1); font-family: var(--font-body); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--navy-800); color: var(--ivory-50); }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 48px; }

.section { padding: 120px 0; position: relative; }
.section-ivory { background: var(--ivory-50); color: var(--fg1); }
.section-navy { background: var(--navy-900); color: var(--ivory-50); }
.section-tight { padding: 64px 0; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg3);
  margin: 0 0 20px;
}
.section-navy .eyebrow { color: var(--navy-400); }
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--sun-500);
}

/* ---------- Display type ---------- */
.display-h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.92; letter-spacing: -0.04em; margin: 0;
}
.display-h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 6.2vw, 88px);
  line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 28px;
  text-wrap: balance;
}
.display-h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0;
}
.accent-italic { font-style: italic; font-weight: 800; }
.accent-sun { color: var(--sun-500); }

.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55; color: var(--fg2);
  max-width: 56ch; text-wrap: pretty;
}
.section-navy .lead { color: var(--navy-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 150ms cubic-bezier(.4,0,.2,1), background 150ms, border-color 150ms, color 150ms;
  white-space: nowrap;
}
.btn-accent { background: var(--sun-500); color: #fff; border-color: var(--sun-500); box-shadow: var(--shadow-sm); font-weight: 700; }
.btn-accent:hover { background: var(--sun-600); border-color: var(--sun-600); }
.btn-accent:active { transform: translateY(1px); box-shadow: none; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: 0.9; }
.btn-ghost:hover { opacity: 1; }
.btn-primary { background: var(--ivory-50); color: var(--navy-900); border-color: var(--ivory-50); font-weight: 700; }
.btn-primary:hover { background: #fff; }
.btn-dark { background: var(--navy-900); color: var(--ivory-50); border-color: var(--navy-900); font-weight: 700; }
.btn-dark:hover { background: var(--navy-800); }
.btn .arrow { transition: transform 200ms cubic-bezier(.4,0,.2,1); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-950);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.nav[data-scrolled="true"] {
  border-bottom-color: var(--navy-700);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; max-width: 1400px; margin: 0 auto;
  color: var(--ivory-50);
  min-height: 80px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; color: inherit; }
.nav-logo .nav-mark, .nav-logo img {
  height: 110px; width: auto; display: block;
  margin: -22px 0;
  image-rendering: -webkit-optimize-contrast;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--navy-300); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 150ms;
  position: relative;
}
.nav-links a:hover { color: var(--ivory-50); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--sun-500); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 0;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--ivory-50);
  background: var(--navy-900);
}
.hero::before {
  /* subtle radial for depth */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 85% 15%, rgba(228,106,39,0.12), transparent 60%),
    radial-gradient(900px 500px at 15% 80%, rgba(54,86,137,0.35), transparent 65%);
  pointer-events: none;
}
.hero-topo {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
.hero-topo svg { width: 100%; height: 100%; }
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px;
  align-items: center;
  padding: 60px 0 80px;
  max-width: 1400px; margin: 0 auto; width: 100%;
  padding-left: 48px; padding-right: 48px;
}
.hero-copy .eyebrow { color: var(--navy-300); }
.hero-copy .eyebrow::before { background: var(--sun-500); }
.hero h1 { color: var(--ivory-50); }
.hero h1 .line2 { display: block; color: var(--navy-300); font-style: italic; }
.hero h1 .line2 b { color: var(--sun-500); font-style: italic; font-weight: 900; }
.hero-lead {
  color: var(--navy-300);
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.55; max-width: 52ch; margin: 32px 0 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 40px;
  display: flex; gap: 28px; flex-wrap: wrap;
  color: var(--navy-400);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-meta b { color: var(--ivory-50); font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }

/* Hero live demo panel */
.hero-panel {
  position: relative; z-index: 2;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4), var(--shadow-inset);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy-300);
  min-height: 460px;
  display: flex; flex-direction: column;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--navy-700);
}
.panel-head .dots { display: flex; gap: 6px; }
.panel-head .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-600); }
.panel-head .title {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-400);
}
.panel-head .live {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 11px; letter-spacing: 0.12em; color: var(--success-500);
  text-transform: uppercase; font-family: var(--font-body); font-weight: 600;
}
.panel-head .live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success-500);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}
.panel-feed { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feed-row {
  display: grid; grid-template-columns: 68px 1fr auto;
  gap: 14px; align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--navy-700);
  border-radius: 6px;
  opacity: 0; transform: translateY(8px);
  animation: feedIn 500ms cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes feedIn { to { opacity: 1; transform: none; } }
.feed-row .ts { color: var(--navy-400); font-size: 11px; }
.feed-row .label {
  font-family: var(--font-body); color: var(--ivory-50);
  font-size: 14px; font-weight: 500; line-height: 1.35;
}
.feed-row .label b { font-weight: 700; }
.feed-row .tag {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600;
}
.tag-ok { background: rgba(16,185,129,0.15); color: var(--success-500); }
.tag-sent { background: rgba(228,106,39,0.15); color: var(--sun-500); }
.tag-sync { background: rgba(37,99,235,0.15); color: #60a5fa; }
.tag-new { background: rgba(255,255,255,0.08); color: var(--navy-300); }

.panel-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; margin-top: 14px;
  border-top: 1px solid var(--navy-700);
  font-size: 11px; color: var(--navy-400); letter-spacing: 0.08em; text-transform: uppercase;
}
.panel-foot b { color: var(--sun-500); font-family: var(--font-body); }

/* Marquee */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--navy-700);
  border-bottom: 1px solid var(--navy-700);
  padding: 18px 0;
  background: rgba(10,20,36,0.6);
}
.marquee-track {
  display: inline-flex; gap: 48px;
  animation: marquee 50s linear infinite;
  font-family: var(--font-display); font-weight: 900;
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--ivory-50);
  text-transform: uppercase;
}
.marquee-track .sep { color: var(--sun-500); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats Block ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--navy-700);
}
.stat-card {
  padding: 48px 32px 40px;
  border-right: 1px solid var(--navy-700);
  position: relative;
}
.stat-card:last-child { border-right: 0; }
.stat-card .stat-num-wrap { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.stat-fig {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(72px, 9vw, 140px);
  line-height: 0.85; letter-spacing: -0.05em; color: var(--ivory-50);
}
.stat-unit { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 3.5vw, 52px); color: var(--sun-500); letter-spacing: -0.02em; }
.stat-line { font-family: var(--font-display); font-weight: 700; color: var(--ivory-50); font-size: 20px; line-height: 1.25; margin-bottom: 14px; letter-spacing: -0.01em; }
.stat-note { font-size: 14px; color: var(--navy-300); line-height: 1.5; margin-bottom: 16px; }
.stat-src { font-family: var(--font-mono); font-size: 11px; color: var(--navy-400); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Before / After timeline ---------- */
.ba-wrap { margin-top: 56px; }
.ba-scrubber {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 32px;
  padding: 18px 22px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.ba-scrubber .now {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg3);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ba-scrubber .now b { color: var(--navy-900); font-family: var(--font-body); font-size: 14px; margin-left: 8px; }
.ba-scrubber .track {
  position: relative; flex: 1; height: 6px; background: var(--ivory-200); border-radius: 999px;
  cursor: pointer;
}
.ba-scrubber .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--sun-500), var(--sun-400));
  border-radius: 999px;
}
.ba-scrubber .handle {
  position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sun-500); border: 3px solid #fff; box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%);
}
.ba-scrubber .ticks {
  position: absolute; inset: 0; pointer-events: none;
}
.ba-scrubber .tick { position: absolute; top: -6px; width: 1px; height: 18px; background: var(--ivory-300); }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba-col {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 36px;
  min-height: 560px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms, box-shadow 200ms;
}
.ba-col.auto { background: var(--navy-900); border-color: var(--navy-700); color: var(--ivory-50); }
.ba-col:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ba-col .ba-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 8px; }
.ba-col .ba-tag.manual { color: var(--danger-500); }
.ba-col .ba-tag.auto { color: var(--sun-500); }
.ba-col .ba-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ba-col h3 { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.1; margin: 0 0 28px; letter-spacing: -0.02em; }
.ba-steps { list-style: none; padding: 0; margin: 0 0 auto; flex: 1; }
.ba-steps li {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 12px;
  padding: 12px 0; align-items: start;
  border-bottom: 1px dashed var(--border);
  font-size: 15px; line-height: 1.4;
  color: var(--fg2);
  transition: opacity 400ms, color 400ms;
}
.ba-col.auto .ba-steps li { border-bottom-color: var(--navy-700); color: var(--navy-300); }
.ba-steps li .num { font-family: var(--font-mono); font-size: 11px; color: var(--fg3); padding-top: 2px; }
.ba-col.auto .ba-steps li .num { color: var(--navy-400); }
.ba-steps li .time { font-family: var(--font-mono); font-size: 12px; color: var(--fg3); white-space: nowrap; padding-top: 2px; }
.ba-col.auto .ba-steps li .time { color: var(--navy-300); }
.ba-steps li[data-active="true"] { color: var(--fg1); }
.ba-col.auto .ba-steps li[data-active="true"] { color: var(--ivory-50); }
.ba-steps li[data-active="true"] .num { color: var(--sun-500); font-weight: 700; }
.ba-steps li[data-past="true"] { opacity: 0.5; }
.ba-result {
  margin-top: 28px;
  padding-top: 24px; border-top: 2px solid var(--sun-500);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.ba-result .big { font-family: var(--font-display); font-weight: 900; font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.ba-col .ba-result .big { color: var(--danger-600); }
.ba-col.auto .ba-result .big { color: var(--sun-500); }
.ba-result .meta { font-size: 13px; color: var(--fg3); text-align: right; max-width: 60%; line-height: 1.4; }
.ba-col.auto .ba-result .meta { color: var(--navy-300); }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--navy-700);
  border-left: 1px solid var(--navy-700);
}
.svc-card {
  grid-column: span 2;
  padding: 44px 36px 36px;
  border-right: 1px solid var(--navy-700);
  border-bottom: 1px solid var(--navy-700);
  position: relative;
  transition: background 300ms;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.svc-card:hover { background: var(--navy-800); }
.svc-card.wide { grid-column: span 3; }
.svc-card .stag {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.12em; color: var(--sun-500);
  margin-bottom: 28px;
}
.svc-card h4 {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; color: var(--ivory-50);
  max-width: 18ch;
}
.svc-card p { font-size: 14.5px; line-height: 1.55; color: var(--navy-300); margin: 0 0 24px; flex: 1; max-width: 42ch; }
.svc-card .arr {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  color: var(--sun-500); text-decoration: none; display: inline-flex; gap: 8px; align-items: center;
  text-transform: uppercase; letter-spacing: 0.1em;
  align-self: flex-start;
}
.svc-card .arr::after { content: '→'; transition: transform 200ms; }
.svc-card:hover .arr::after { transform: translateX(4px); }

/* ---------- CRM Wall ---------- */
.crm-section { padding: 80px 0; }
/* ---------- CRM rail (continuous marquee, hero-style) ---------- */
.crm-section { padding: 80px 0; }
.crm-rail {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--ivory-50);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.crm-track {
  display: flex;
  gap: 88px;
  width: max-content;
  animation: crmScroll 38s linear infinite;
  align-items: center;
}
.crm-logo {
  flex: 0 0 auto;
  height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.crm-logo img {
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 200ms ease;
}
.crm-logo:hover img { opacity: 1; }
@keyframes crmScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 44px)); }
}
@media (max-width: 720px) {
  .crm-logo { height: 60px; }
  .crm-track { gap: 56px; animation-duration: 28s; }
  @keyframes crmScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 28px)); }
  }
}

/* ---------- Process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 64px;
}
.process-step {
  padding: 28px 24px 28px 0;
  border-top: 2px solid var(--navy-900);
  position: relative;
}
.process-step::after {
  content: ''; position: absolute; left: 0; top: -2px; height: 2px;
  width: 0; background: var(--sun-500); transition: width 600ms cubic-bezier(.4,0,.2,1);
}
.process-step.reveal-in::after { width: 60%; }
.process-step .pnum { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--fg3); margin-bottom: 22px; }
.process-step h4 { font-family: var(--font-display); font-weight: 800; font-size: 28px; margin: 0 0 14px; letter-spacing: -0.02em; color: var(--navy-900); }
.process-step p { font-size: 14.5px; line-height: 1.55; color: var(--fg2); margin: 0 0 18px; max-width: 34ch; }
.process-step .pwhen { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fg3); text-transform: uppercase; }
.process-step .pwhen b { color: var(--sun-500); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: none; }

/* ---------- Case study ---------- */
.case-head { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: end; }
.case-sub { color: var(--navy-300); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.case-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 40px 0; }
.case-kpi .big { font-family: var(--font-display); font-weight: 900; font-size: clamp(56px, 6vw, 88px); line-height: 0.9; letter-spacing: -0.04em; color: var(--ivory-50); }
.case-kpi .big .u { font-size: 0.5em; color: var(--sun-500); margin-left: 4px; }
.case-kpi .lbl { font-size: 13px; color: var(--navy-300); margin-top: 12px; }
.case-quote {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.3;
  letter-spacing: -0.01em; margin: 0 0 24px; color: var(--ivory-50);
}
.case-quote::before { content: '"'; color: var(--sun-500); margin-right: 4px; }
.case-quote::after { content: '"'; color: var(--sun-500); margin-left: 4px; }
.case-attr { display: flex; align-items: center; gap: 14px; }
.case-attr .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-700); border: 1px solid var(--navy-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.04em;
}
.case-attr b { display: block; font-weight: 700; }
.case-attr .role { font-size: 13px; color: var(--navy-300); }

.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.case-body .case-quote { margin-top: 16px; }
.case-body .case-kpis { margin-top: 48px; margin-bottom: 0; }

/* Flow diagram */
.flow {
  background: var(--navy-800); border: 1px solid var(--navy-700);
  border-radius: 14px; padding: 22px;
  box-shadow: var(--shadow-inset);
}
.flow-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--navy-700);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--navy-400); letter-spacing: 0.1em; text-transform: uppercase;
}
.flow-head b { color: var(--sun-500); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: none; }
.flow-body { display: grid; gap: 6px; }
.flow-step {
  display: grid; grid-template-columns: 120px 1fr 20px;
  gap: 14px; align-items: center;
  padding: 14px 16px;
  background: var(--navy-900); border: 1px solid var(--navy-700); border-radius: 8px;
  transition: border-color 200ms, background 200ms;
}
.flow-step.live { border-color: var(--sun-500); background: rgba(228,106,39,0.08); }
.flow-step.done { opacity: 0.55; }
.flow-step .n { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--navy-300); }
.flow-step.live .n { color: var(--sun-500); }
.flow-step .label { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ivory-50); }
.flow-step .check { color: var(--navy-500); font-size: 14px; }
.flow-step.done .check { color: var(--success-500); }
.flow-step.live .check { color: var(--sun-500); }
.flow-arrow { text-align: center; color: var(--navy-500); font-size: 12px; height: 8px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 900px; margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  cursor: pointer; border: 0; background: transparent;
  padding: 26px 0; width: 100%;
  text-align: left; color: var(--navy-900); letter-spacing: -0.01em;
  transition: color 200ms;
}
.faq-q:hover { color: var(--sun-500); }
.faq-q .plus {
  font-family: var(--font-mono); font-weight: 400; font-size: 24px;
  transition: transform 300ms cubic-bezier(.4,0,.2,1); line-height: 1;
  flex-shrink: 0; margin-left: 24px;
  width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900);
}
.faq-item[data-open="true"] .plus { transform: rotate(45deg); background: var(--navy-900); color: var(--ivory-50); border-color: var(--navy-900); }
.faq-a {
  font-size: 16px; line-height: 1.65; color: var(--fg2);
  max-width: 780px; overflow: hidden; max-height: 0;
  transition: max-height 400ms cubic-bezier(.4,0,.2,1), padding 300ms;
  padding: 0 0 0;
}
.faq-item[data-open="true"] .faq-a { max-height: 400px; padding: 0 0 26px; }

/* ---------- CTA / Form ---------- */
.cta-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: start; }
.cta-copy .lead { color: var(--navy-300); }
.cta-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.cta-extras {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cta-extra {
  padding: 20px; border: 1px solid var(--navy-700); border-radius: 10px;
  background: var(--navy-800);
}
.cta-extra .ex-num { font-family: var(--font-display); font-weight: 900; font-size: 32px; color: var(--sun-500); letter-spacing: -0.02em; line-height: 1; }
.cta-extra .ex-lbl { font-size: 13px; color: var(--navy-300); margin-top: 10px; line-height: 1.5; }

.form-card {
  background: var(--ivory-50); border: 1px solid var(--ivory-300);
  border-radius: 14px; padding: 36px;
  box-shadow: var(--shadow-lg);
  color: var(--fg1);
}
.form-card h4 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 0 0 8px; letter-spacing: -0.02em; color: var(--navy-900); }
.form-card .sub { font-size: 14px; color: var(--fg2); margin-bottom: 24px; line-height: 1.5; }
.form-row { margin-bottom: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card label {
  display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; color: var(--fg3); margin-bottom: 8px; text-transform: uppercase;
}
.form-card input, .form-card textarea, .form-card select {
  width: 100%; background: var(--white); border: 1px solid var(--ivory-300);
  border-radius: 6px; padding: 13px 14px;
  font-family: var(--font-body); font-size: 15px; color: var(--fg1);
  transition: border-color 150ms, box-shadow 150ms;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
  outline: none; border-color: var(--sun-500);
  box-shadow: 0 0 0 3px rgba(228,106,39,0.15);
}
.form-card textarea { resize: vertical; min-height: 96px; }
.form-card .honeypot { position: absolute; left: -5000px; opacity: 0; }
.form-footnote { font-size: 12px; color: var(--fg3); margin-top: 14px; text-align: center; line-height: 1.5; }
.form-error { background: var(--danger-100); color: var(--danger-600); padding: 12px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; border: 1px solid rgba(180,35,24,0.2); }

.form-success {
  background: var(--ivory-50); border: 1px solid var(--ivory-300);
  border-radius: 14px; padding: 48px 36px;
  box-shadow: var(--shadow-lg);
  color: var(--fg1);
  text-align: center;
}
.form-success .tick {
  width: 64px; height: 64px; border-radius: 50%; background: var(--sun-500);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 32px; margin-bottom: 24px;
  animation: popIn 500ms cubic-bezier(.2,.8,.2,1);
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.form-success h4 { font-family: var(--font-display); font-weight: 900; font-size: 32px; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--navy-900); }
.form-success .ticket { font-family: var(--font-mono); font-size: 11px; color: var(--fg3); margin-top: 24px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950); color: var(--navy-400);
  padding: 72px 0 32px; font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--navy-700);
}
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-400); margin: 0 0 20px;
}
.footer-col a { display: block; color: var(--navy-300); text-decoration: none; padding: 6px 0; font-size: 14px; }
.footer-col a:hover { color: var(--sun-500); }
.footer-logo { margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.footer-logo .footer-mark { height: 72px; width: auto; }
.footer-wordmark { display: inline-flex; flex-direction: column; line-height: 1; gap: 4px; }
.fw-top, .fw-bot {
  font-family: var(--font-display); font-weight: 900;
  font-size: 15px; letter-spacing: 0.14em; color: var(--ivory-50);
}
.fw-rule { height: 1.5px; background: var(--sun-500); width: 100%; }
.footer-tag { color: var(--navy-300); font-size: 14px; max-width: 30ch; line-height: 1.5; }
.footer-bottom {
  padding-top: 28px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-400);
}

/* ---------- Utilities ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1); }
.reveal.reveal-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner, .cta-grid, .case-head, .case-body { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card, .svc-card.wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: 0; border-bottom: 1px solid var(--navy-700); }
  .crm-wall { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container, .container-wide, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .hero-inner { padding-left: 20px; padding-right: 20px; }
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .ba-grid, .case-body, .case-head, .case-kpis { grid-template-columns: 1fr; }
  .crm-wall { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card, .svc-card.wide { grid-column: span 1; padding: 32px 24px; min-height: 0; }
  .cta-extras { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
}
