/* ============================================================
   WebPro — AI Growth Operations Agency
   Premium dark, Linear/Stripe-inspired
   ============================================================ */

:root {
  /* palette */
  --bg: #07080a;
  --bg-dim: #0a0c10;
  --surface: #101216;
  --surface-2: #171a20;
  --surface-3: #1e222a;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);

  --text: #f5f7fa;
  --text-2: #b4bcc8;
  --text-3: #8a91a0;
  --text-4: #5a6170;

  --accent: #4f8cff;
  --accent-2: #7c5cff;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --accent-line: rgba(79, 140, 255, 0.32);

  --success: #26d07c;
  --warning: #ffb020;
  --danger: #ff5d5d;

  /* type */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* rhythm */
  --max: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
}

/* light mode */
[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-dim: #eef1f6;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #f1f4f9;
  --border: rgba(10, 14, 20, 0.08);
  --border-2: rgba(10, 14, 20, 0.14);
  --border-strong: rgba(10, 14, 20, 0.22);
  --text: #0b0d12;
  --text-2: #4a525e;
  --text-3: #767e8b;
  --text-4: #a3aab6;
  --accent-soft: rgba(79, 140, 255, 0.1);
  --accent-line: rgba(79, 140, 255, 0.3);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: default; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-soft); color: var(--text); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 9vw, 128px) 0; position: relative; scroll-margin-top: 80px; }
.section + .section { border-top: 1px solid var(--border); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: clamp(34px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
h4 { font-size: 15px; line-height: 1.3; font-weight: 500; }
p { margin: 0; color: var(--text-2); text-wrap: pretty; }

.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--text-2); max-width: 62ch; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-3); }
.dim { color: var(--text-4); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 24px -8px rgba(79,140,255,0.55);
}
.btn-primary:hover { background: #6ba1ff; box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 8px 28px -8px rgba(79,140,255,0.7); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text-2);
  padding: 9px 14px;
  font-weight: 400;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-2); color: var(--text); }

.btn-link {
  padding: 0;
  background: transparent;
  color: var(--text);
  border: 0;
  font-size: 13px;
  font-weight: 500;
}
.btn-link:hover { color: var(--accent); }

/* Romulo chat CTA dot */
.rom-cta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(38,208,124,0.18);
  display: inline-block;
  flex: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.hdr-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background:
    conic-gradient(from 220deg at 50% 50%, #4f8cff 0deg, #7c5cff 130deg, #4f8cff 260deg, #4f8cff 360deg);
  position: relative;
  box-shadow: 0 0 0 1px var(--border-2) inset;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  background: var(--bg);
  border-radius: 3px;
}
.brand-mark::before {
  content: ""; position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border-radius: 2px;
  z-index: 2;
}
.brand b { font-weight: 600; }
.brand-tld { color: var(--text-3); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.hdr-cta { display: flex; align-items: center; gap: 8px; }

/* mobile nav */
.hdr-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--surface-2);
  align-items: center; justify-content: center;
  padding: 0;
  color: var(--text);
}
.hdr-toggle span {
  display: block; width: 16px; height: 1.5px; background: currentColor;
  position: relative;
}
.hdr-toggle span::before, .hdr-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor;
}
.hdr-toggle span::before { top: -5px; }
.hdr-toggle span::after  { top:  5px; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: 32px var(--pad);
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav .btn { margin-top: 24px; justify-content: center; }

@media (max-width: 1080px) {
  .hdr-cta .btn-ghost { display: none; }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .hdr-toggle { display: inline-flex; }
  .hdr-cta .btn-primary { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto 10%;
  height: 520px;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-soft) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  opacity: .7;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 .accent {
  background: linear-gradient(180deg, var(--text) 60%, var(--text-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-2);
  max-width: 56ch;
}
.hero-ctas { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-trust .dot { width: 5px; height: 5px; background: var(--success); border-radius: 50%; }

/* eyebrow tag with version chip */
.eyebrow-wrap { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.eyebrow-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-2);
  background: var(--surface-2);
}

/* ============================================================
   COMMAND CENTER (hero visual)
   ============================================================ */
.cc {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-dim) 100%);
  border: 1px solid var(--border-2);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.cc-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.cc-dots { display: flex; gap: 6px; }
.cc-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-2); }
.cc-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.cc-title b { color: var(--text); font-weight: 500; }
.cc-pill {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cc-pill::before {
  content: ""; width: 6px; height: 6px; background: var(--success);
  border-radius: 50%; box-shadow: 0 0 0 3px rgba(38,208,124,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.cc-body {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr;
  min-height: 360px;
}
@media (max-width: 1320px) {
  .cc-body { grid-template-columns: 1fr 1fr; }
  .cc-col:nth-child(3) { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--border); }
  .cc-events { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .cc-events .cc-h { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .cc-events { grid-template-columns: 1fr; }
}
.cc-col {
  padding: 16px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.cc-col:last-child { border-right: 0; }
.cc-h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* lead inputs list */
.cc-leads { display: flex; flex-direction: column; gap: 6px; }
.cc-lead {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  min-width: 0;
}
.cc-lead > span:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.cc-lead .src { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-left: auto; flex: none; white-space: nowrap; }
.cc-lead .ico {
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--surface-3);
  display: grid; place-items: center;
  color: var(--text-2);
  font-size: 9px;
  font-family: var(--font-mono);
}

/* crm sync */
.cc-crm-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.cc-crm-row .stat {
  margin-left: auto;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(38,208,124,0.15);
}
.cc-crm-row .stat.warn { background: var(--warning); box-shadow: 0 0 0 3px rgba(255,176,32,0.15); }

/* agent panel */
.agent-card {
  border-radius: var(--r-md);
  border: 1px solid var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 80%);
  padding: 14px;
}
.agent-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  text-wrap: balance;
  line-height: 1.25;
}
.agent-title .glyph { flex: none; }
.agent-title .glyph {
  width: 16px; height: 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  position: relative;
}
.agent-title .glyph::after {
  content: ""; position: absolute; inset: 3px;
  background: var(--accent);
  border-radius: 1px;
}
.agent-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-top: 2px; letter-spacing: 0.04em; }

.agent-fields { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; font-family: var(--font-mono); font-size: 11px; min-width: 0; }
.agent-field { display: flex; align-items: baseline; gap: 8px; color: var(--text-2); min-width: 0; }
.agent-field span:first-child { color: var(--text-3); min-width: 48px; flex: none; }
.agent-field span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-field .cursor { display: inline-block; width: 6px; height: 11px; background: var(--accent); animation: blink 1s steps(2) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }

.cc-mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-mini {
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.cc-mini .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.cc-mini .v { margin-top: 4px; font-size: 13px; color: var(--text); display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.cc-mini .v small { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); white-space: nowrap; flex: none; }
.cc-mini.warn .v { color: var(--warning); }
.cc-mini.ok .v { color: var(--success); }

/* event stream */
.cc-events {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  height: 100%;
}
.cc-event {
  display: grid;
  grid-template-columns: 52px 10px 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(6px);
  animation: ev-in .4s ease-out forwards;
  min-width: 0;
}
.cc-event > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes ev-in { to { opacity: 1; transform: none; } }
.cc-event .t { color: var(--text-3); letter-spacing: 0.04em; }
.cc-event .b { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.cc-event[data-kind="lead"] .b { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cc-event[data-kind="qualify"] .b { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(124,92,255,0.16); }
.cc-event[data-kind="crm"] .b { background: var(--success); }
.cc-event[data-kind="warn"] .b { background: var(--warning); }
.cc-event.fresh { background: var(--surface-2); }

.cc-foot {
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.cc-foot .sep { width: 1px; height: 12px; background: var(--border); }
.cc-foot .tag { padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; }

@media (max-width: 720px) {
  .cc-body { grid-template-columns: 1fr; min-height: 0; }
  .cc-col { border-right: 0; border-bottom: 1px solid var(--border); }
  .cc-col:last-child { border-bottom: 0; }
}

/* ============================================================
   LOGO STRIP
   ============================================================ */
.logo-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.logo-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-strip-list { row-gap: 8px; }
@media (max-width: 720px) {
  .logo-strip-list { gap: 16px; }
}
.logo-strip-inner .label { color: var(--text-4); }
.logo-strip-list { display: flex; gap: 28px; flex-wrap: wrap; }
.logo-strip-list span { color: var(--text-2); }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.sec-head h2 { margin-top: 6px; }
.sec-head p { font-size: 17px; line-height: 1.55; }

.sec-head.center { margin-inline: auto; text-align: center; align-items: center; }

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card {
  background: var(--surface);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background .2s ease;
  min-height: 200px;
}
.card:hover { background: var(--surface-2); }
.card .num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}
.card h3 { font-size: 18px; }
.card p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.card ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
}
.card ul li { display: flex; align-items: baseline; gap: 8px; padding-left: 0; }
.card ul li::before {
  content: "";
  flex: none;
  width: 10px; height: 1px;
  background: var(--text-4);
  transform: translateY(-4px);
}
.card .cta {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.card .cta .arr { transition: transform .2s ease; }
.card:hover .cta .arr { transform: translateX(3px); }
.card:hover .cta { color: var(--accent); }

/* 3-col cards w/ tall feel */
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .cards.cols-3 { grid-template-columns: 1fr; } .cards.cols-2 { grid-template-columns: 1fr; } }

/* featured / highlighted card */
.card.featured { background: var(--surface-2); position: relative; }
.card.featured::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.card.featured .badge {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px;
  border: 1px solid var(--accent-line); color: var(--accent);
  background: var(--accent-soft); border-radius: 999px;
}

/* pain cards */
.pain .card { min-height: 180px; }
.pain .card .ico-block {
  width: 36px; height: 36px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

/* ============================================================
   GROWTH OS DIAGRAM
   ============================================================ */
.growth-os {
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(24px, 4vw, 48px);
  min-height: 480px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 60% at 50% 50%, var(--accent-soft) 0%, transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-dim) 100%);
  position: relative;
}
.growth-os-svg { width: 100%; height: auto; }
.growth-os-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  border: 1px solid var(--accent-line);
  padding: 12px 18px;
  border-radius: 12px;
  font-family: var(--font-mono);
  text-align: center;
  box-shadow: 0 8px 28px -10px rgba(79,140,255,0.4);
}
.growth-os-center b { display: block; font-size: 13px; color: var(--text); letter-spacing: 0.02em; }
.growth-os-center small { font-size: 10.5px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }

.os-node {
  position: absolute;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
  cursor: default;
}
.os-node:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.os-node:hover .dot { box-shadow: 0 0 0 3px var(--accent-soft); }
.os-node .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transition: box-shadow .2s ease; }

@media (max-width: 880px) {
  .growth-os { padding: 28px; min-height: 0; }
  .os-node { position: static; transform: none; }
  .growth-os-svg, .growth-os-center { display: none; }
  .os-nodes-mobile { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
}
@media (min-width: 881px) { .os-nodes-mobile { display: none; } }
@media (max-width: 1100px) and (min-width: 881px) {
  .os-node { font-size: 10.5px; padding: 6px 10px; }
}

/* ============================================================
   AGENTS
   ============================================================ */
.agents .card {
  padding: 24px;
  gap: 10px;
}
.agents .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-2);
  background: var(--surface-2);
}
.chip.ok { color: var(--success); border-color: rgba(38,208,124,0.3); background: rgba(38,208,124,0.06); }
.chip.acc { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

.agent-head { display: flex; align-items: center; gap: 10px; }
.agent-head .icon {
  width: 32px; height: 32px; flex: none;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--surface-2);
  position: relative;
}
/* per-agent glyphs */
.agent-head .icon[data-glyph="qualify"]::before { content: ""; position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--text-2); border-radius: 50%; }
.agent-head .icon[data-glyph="qualify"]::after  { content: ""; position: absolute; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.agent-head .icon[data-glyph="followup"]::before { content: ""; position: absolute; width: 14px; height: 2px; background: var(--text-2); border-radius: 1px; top: 11px; }
.agent-head .icon[data-glyph="followup"]::after  { content: ""; position: absolute; width: 6px; height: 6px; border-right: 1.5px solid var(--accent); border-top: 1.5px solid var(--accent); transform: rotate(45deg); right: 8px; top: 12px; }
.agent-head .icon[data-glyph="adwaste"]::before { content: ""; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--text-2); transform: rotate(45deg); }
.agent-head .icon[data-glyph="adwaste"]::after  { content: "!"; font-family: var(--font-mono); font-size: 11px; color: var(--warning); font-weight: 700; }
.agent-head .icon[data-glyph="repurpose"]::before { content: ""; position: absolute; width: 6px; height: 10px; border: 1.5px solid var(--text-2); left: 8px; top: 10px; }
.agent-head .icon[data-glyph="repurpose"]::after  { content: ""; position: absolute; width: 6px; height: 10px; border: 1.5px solid var(--accent); right: 8px; top: 12px; }
.agent-head .icon[data-glyph="reporting"]::before {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; top: 14px;
  background:
    linear-gradient(to top, var(--text-2) 0 30%, transparent 30%) 0 0 / 3px 100% no-repeat,
    linear-gradient(to top, var(--text-2) 0 60%, transparent 60%) 5px 0 / 3px 100% no-repeat,
    linear-gradient(to top, var(--accent) 0 90%, transparent 90%) 10px 0 / 3px 100% no-repeat,
    linear-gradient(to top, var(--text-2) 0 45%, transparent 45%) 15px 0 / 3px 100% no-repeat;
}
.agent-head .icon[data-glyph="knowledge"]::before { content: ""; position: absolute; width: 12px; height: 9px; border: 1.5px solid var(--text-2); border-radius: 2px; top: 9px; }
.agent-head .icon[data-glyph="knowledge"]::after  { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--accent); bottom: 11px; }
/* default fallback */
.agent-head .icon:not([data-glyph])::before, .agent-head .icon:not([data-glyph])::after { content: ""; position: absolute; background: var(--text-2); }
.agent-head .icon:not([data-glyph])::before { width: 12px; height: 2px; }
.agent-head .icon:not([data-glyph])::after { width: 2px; height: 12px; }

.agent-head h3 { font-size: 15px; line-height: 1.2; }
.agent-head .id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-4);
  margin-top: 2px;
  letter-spacing: 0.06em;
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.timeline {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.tl-step {
  padding: clamp(20px, 3vw, 28px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.tl-step:last-child { border-right: 0; }
.tl-step .w {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.tl-step h3 {
  font-size: 22px;
  display: flex; align-items: baseline; gap: 8px;
}
.tl-step h3 .n { font-family: var(--font-mono); color: var(--accent); font-size: 14px; }
.tl-step ul {
  margin: 8px 0 0; padding: 0; list-style: none;
  font-size: 13px; color: var(--text-2);
  display: flex; flex-direction: column; gap: 6px;
}
.tl-step ul li { padding-left: 12px; position: relative; }
.tl-step ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; background: var(--text-3); border-radius: 50%;
}
.tl-bar {
  position: absolute; top: 0; right: 0; left: 0; height: 2px;
  background: var(--border);
}
.tl-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
}
.tl-step[data-active] .tl-bar::after { animation: barfill 1.2s ease-out forwards; }
.tl-step:nth-child(1) .tl-bar::after { background: var(--accent); }
.tl-step:nth-child(2) .tl-bar::after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

@media (max-width: 880px) { .timeline { grid-template-columns: 1fr; } .tl-step { border-right: 0; border-bottom: 1px solid var(--border); } .tl-step:last-child { border-bottom: 0; }}

/* ============================================================
   LOOP DIAGRAM (paid media -> CRM -> revenue)
   ============================================================ */
.loop {
  margin-top: clamp(32px, 5vw, 48px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-dim) 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.loop-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
}
.loop-node {
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.loop-node + .loop-node { margin-left: -1px; }
.loop-row-arrow {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding: 0 14px;
}
@media (max-width: 980px) {
  .loop-nodes { grid-template-columns: 1fr 1fr; }
  .loop-row-arrow { display: none; }
}
@media (max-width: 560px) {
  .loop-nodes { grid-template-columns: 1fr; }
}
.loop-node .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.loop-node h4 { font-size: 14px; }
.loop-node .v { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.loop-arrow {
  flex: none;
  align-self: center;
  width: 24px; height: 1px;
  background: var(--border-strong);
  position: relative;
}
.loop-arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 5px; height: 5px;
  border-right: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong);
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 880px) { .loop-nodes { flex-direction: column; } .loop-arrow { width: 1px; height: 24px; align-self: center; } .loop-arrow::after { right: 50%; top: auto; bottom: 0; transform: translateX(50%) rotate(135deg); } }

.loop-foot {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-2);
}
.loop-foot li { list-style: none; padding-left: 16px; position: relative; }
.loop-foot li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* ============================================================
   SOCIAL ENGINE
   ============================================================ */
.engine {
  margin-top: clamp(32px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.engine .col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.engine ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.engine ul li {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-2);
  display: flex; align-items: center; gap: 10px;
}
.engine ul li .id {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-4); margin-left: auto;
}
.engine-center {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.engine-center .pip {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: radial-gradient(circle at 50% 40%, var(--accent-soft) 0%, transparent 70%);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
}
.engine-center .pip::before, .engine-center .pip::after {
  content: ""; position: absolute; left: -120px; right: -120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.engine-center .pip::before { top: 35%; }
.engine-center .pip::after { bottom: 35%; }

@media (max-width: 880px) {
  .engine { grid-template-columns: 1fr; }
  .engine-center .pip::before, .engine-center .pip::after { display: none; }
}

/* ============================================================
   COMPARE (differentiation)
   ============================================================ */
.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.compare-col {
  padding: clamp(20px, 3vw, 28px);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.compare-col:last-child { border-right: 0; }
.compare-col h3 {
  font-size: 16px;
  display: flex; align-items: baseline; gap: 8px;
  color: var(--text-3);
}
.compare-col.us { background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 80%); }
.compare-col.us h3 { color: var(--text); }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.compare-col ul li {
  font-size: 13.5px; color: var(--text-2);
  padding: 8px 0 8px 22px; position: relative;
  border-top: 1px solid var(--border);
}
.compare-col ul li:first-child { border-top: 0; }
.compare-col ul li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 12px; height: 1px;
  background: var(--text-4);
}
.compare-col.us ul li::before { background: var(--accent); }

@media (max-width: 880px) {
  .compare { grid-template-columns: 1fr; }
  .compare-col { border-right: 0; border-bottom: 1px solid var(--border); }
  .compare-col:last-child { border-bottom: 0; }
}

/* ============================================================
   STACK
   ============================================================ */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stack-row { background: var(--surface); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.stack-row .l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stack-row .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-row .chips .chip { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; }

/* ============================================================
   MEASURE — 3 large cards
   ============================================================ */
.measure {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.measure-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
}
.measure-card .l {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
}
.measure-card h3 { font-size: 17px; }
.measure-card .desc { font-size: 13px; color: var(--text-2); }

/* mini bar chart */
.mc-chart {
  margin-top: auto;
  display: flex; align-items: flex-end; gap: 6px;
  height: 64px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-2);
}
.mc-chart .bar {
  flex: 1;
  background: var(--surface-3);
  border-radius: 2px;
  position: relative;
}
.mc-chart .bar.t { background: var(--accent); }
.mc-chart-foot {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-3); letter-spacing: 0.06em;
  margin-top: 6px;
}

@media (max-width: 980px) { .measure { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side .lead { margin-top: 18px; }
.contact-side .micro {
  margin-top: 22px; font-size: 12.5px; color: var(--text-3);
  font-family: var(--font-mono);
}
.contact-bullets {
  margin-top: 28px; list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.contact-bullets li { padding-left: 18px; position: relative; }
.contact-bullets li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 10px; height: 1.5px; background: var(--accent);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.cf-field input, .cf-field textarea, .cf-field select {
  background: var(--bg);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font: 14px/1.4 var(--font-sans);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
  font-family: inherit;
}
.cf-field textarea { min-height: 96px; resize: vertical; }
.cf-field input:focus, .cf-field textarea:focus, .cf-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--text-4); }
.cf-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.cf-actions .micro { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-left: auto; }
.cf-success {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(38,208,124,0.08);
  border: 1px solid rgba(38,208,124,0.3);
  color: var(--success);
  font-size: 13.5px;
  display: none;
}
.cf-success.show { display: block; }

/* ============================================================
   FOCUS RING
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }
.final-cta {
  padding: clamp(64px, 8vw, 112px) clamp(32px, 6vw, 88px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-dim) 100%);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: -40% 20% auto 20%;
  height: 400px;
  background: radial-gradient(50% 50% at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.final-cta h2 { max-width: 22ch; }
.final-cta p { max-width: 56ch; margin-top: 14px; font-size: 17px; }
.final-cta-row { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.final-cta .micro { margin-top: 22px; font-size: 12.5px; color: var(--text-3); font-family: var(--font-mono); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: var(--bg-dim);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(32px, 5vw, 56px);
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
.foot-grid .col h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-grid .col a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--text-2); }
.foot-grid .col a:hover { color: var(--text); }
.foot-grid .brand-col p { font-size: 13px; color: var(--text-3); margin-top: 12px; max-width: 32ch; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-4);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   SUBTLE REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cc-pill::before, .agent-field .cursor { animation: none; }
}
