/* ============================================================
   global.css — Shared stylesheet for AI Product Pages
   ai-chatbot.html · ai-coding-agent.html · ai-vision.html
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --white:        #ffffff;
  --grey-1:       #f5f7f8;
  --grey-2:       #eaecef;
  --grey-3:       #d4d7dc;
  --grey-4:       #b8bcc4;
  --dark:         #0f1115;
  --dark-2:       #181b21;
  --dark-3:       #2a2f38;
  --dark-4:       #3a4150;

  --green-mid:    #2ea36a;
  --green-dark:   #228a58;
  --green-dim:    rgba(46,163,106,.10);
  --green-border: rgba(46,163,106,.28);
  --green-light:  #9fd3b5;
  --green-soft:   #e6f4ec;

  --txt-dark:     #15181d;
  --txt-mid:      #4a5160;
  --txt-muted:    #7a8190;

  --on-dark-high:   #ffffff;
  --on-dark-mid:    #c8ccd4;
  --on-dark-low:    #8a909c;
  --on-dark-border: #2a2f38;

  --radius-sm:    10px;
  --radius-md:    18px;
  --radius-lg:    26px;
  --shadow-sm:    0 4px 14px rgba(0,0,0,.07);
  --shadow-md:    0 10px 32px rgba(0,0,0,.12);
  --shadow-glow:  0 8px 28px rgba(46,163,106,.25);
  --transition:   all .35s cubic-bezier(.25,.46,.45,.94);

  --blue:         #4d9fff;
  --blue-soft:    #eaf2ff;
  --purple:       #a78bfa;
  --orange:       #ff9a3c;
  --red:          #ff6464;

  --section-v:    88px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth;  overflow-x: hidden;  }

body {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  background: var(--grey-1);
  color: var(--txt-muted);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  color: var(--txt-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h5 { font-size: 1rem; font-weight: 700; }

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* ══════════════════════════════════════════════════════════════
   SECTION BACKGROUNDS
══════════════════════════════════════════════════════════════ */
.bg-light-1  { background: var(--grey-1); }
.bg-light-2  { background: var(--white); }
.bg-light-3  { background: linear-gradient(180deg, var(--white) 0%, var(--green-soft) 100%); }
.bg-light-4  { background: var(--green-soft); }
.bg-dark-1   { background: var(--dark); }
.bg-dark-2   { background: var(--dark-2); }
.bg-dark-3   { background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%); }

.bg-dark-1 h1, .bg-dark-1 h2, .bg-dark-1 h3, .bg-dark-1 h4, .bg-dark-1 h5, .bg-dark-1 h6,
.bg-dark-2 h1, .bg-dark-2 h2, .bg-dark-2 h3, .bg-dark-2 h4, .bg-dark-2 h5, .bg-dark-2 h6,
.bg-dark-3 h1, .bg-dark-3 h2, .bg-dark-3 h3, .bg-dark-3 h4, .bg-dark-3 h5, .bg-dark-3 h6 {
  color: var(--on-dark-high);
}
.bg-dark-1, .bg-dark-2, .bg-dark-3 { color: var(--on-dark-mid); }
.bg-dark-1 p, .bg-dark-2 p, .bg-dark-3 p { color: var(--on-dark-mid); }

/* ── SECTION PADDING ──────────────────────────────────────── */
.section-pad { padding: var(--section-v) 0; }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(160deg, var(--grey-1) 0%, var(--white) 60%, var(--green-soft) 100%);
  padding: 100px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--green-dim) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero heading accent colours */
.h1-accent-blue  { color: var(--blue); }
.h1-accent-green { color: var(--green-mid); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px; height: 7px;
  background: var(--green-mid);
  border-radius: 50%;
  animation: pulse-anim 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-anim {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: .3; transform: scale(1.35); }
}

.hero-lead {
  color: var(--txt-mid);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 32px;
}

.feat-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.feat-icon {
  width: 42px; height: 42px; min-width: 42px;
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.feat-icon i { color: var(--green-mid); font-size: 1rem; }
.feat-title { font-weight: 700; font-size: 14px; color: var(--txt-dark); margin-bottom: 2px; display: block; }
.feat-desc  { font-size: 13px; color: var(--txt-muted); margin: 0; }

/* ══════════════════════════════════════════════════════════════
   TRUST STRIPS
══════════════════════════════════════════════════════════════ */
.trust-strip {
  background: var(--dark);
  padding: 18px 0;
  border-top: 1px solid var(--dark-3);
  border-bottom: 1px solid var(--dark-3);
}
.trust-strip-light {
  background: var(--green-soft);
  padding: 18px 0;
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-dark-mid);
}
.trust-item i { color: var(--green-light); }
.trust-strip-light .trust-item   { color: var(--txt-mid); }
.trust-strip-light .trust-item i { color: var(--green-dark); }

/* ══════════════════════════════════════════════════════════════
   SECTION LABELS / EYEBROWS
══════════════════════════════════════════════════════════════ */
.sec-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.sec-eyebrow-light { color: var(--green-light); }

.section-intro {
  color: var(--txt-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 14px;
  line-height: 1.85;
}
.section-intro-dark { color: var(--on-dark-mid); }

/* ══════════════════════════════════════════════════════════════
   UTILITY COLOUR CLASSES
══════════════════════════════════════════════════════════════ */
.text-blue         { color: var(--blue)         !important; }
.text-green        { color: var(--green-mid)    !important; }
.text-green-light  { color: var(--green-light)  !important; }
.text-red          { color: var(--red)          !important; }
.text-orange       { color: var(--orange)       !important; }
.text-purple       { color: var(--purple)       !important; }
.text-on-dark-high { color: var(--on-dark-high) !important; }
.text-on-dark-mid  { color: var(--on-dark-mid)  !important; }
.text-on-dark-low  { color: var(--on-dark-low)  !important; }
.text-accent       { color: var(--green-mid)    !important; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn-primary-g {
  background: var(--green-mid);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary-g:hover {
  background: var(--green-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline-light {
  background: transparent;
  color: var(--txt-dark);
  border: 1.5px solid var(--grey-3);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-outline-light:hover {
  border-color: var(--green-mid);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,.30);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-outline-dark:hover {
  border-color: var(--green-light);
  color: var(--green-light);
  background: rgba(159,211,181,.06);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   STEP CARDS — LIGHT
══════════════════════════════════════════════════════════════ */
.step-card {
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-top: 3px solid var(--green-mid);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  height: 100%;
  min-height: 390px;
  transition: var(--transition);

  display: flex;
  flex-direction: column;
  position: relative;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--grey-3);
  border-top-color: var(--green-dark);
}
.step-card h5 {
  color: var(--txt-dark);
  margin: 0;
  line-height: 1.25;
  font-size: 16px;
  font-weight: 700;
}

.step-card p {
  color: var(--txt-muted);
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 18px;
}

/* STEP CARDS — DARK */
.step-card-dark {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--dark-3);
  border-top: 2px solid var(--green-mid);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  height: 100%;
  transition: var(--transition);
}
.step-card-dark:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--green-mid);
  transform: translateY(-4px);
}
.step-card-dark h5 { color: var(--on-dark-high); margin: 14px 0 8px; }
.step-card-dark p  { color: var(--on-dark-mid); font-size: 13.5px; }

.step-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--green-dark);
  text-transform: uppercase;
  margin-bottom: 50px;
  margin-top: 8px;
}

.step-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.step-card .step-num {
  display: block;
  margin-bottom: 0 !important;
}

.step-card .step-title-row {
  margin-top: 24px !important;
}

.step-card .d-flex.align-items-center.gap-3.mb-3 {
  margin-top: 24px !important;
  margin-bottom: 16px !important;
}
.step-title-row .cap-icon {
  margin-bottom: 0 !important;
  flex-shrink: 0;
}

.step-title {
  margin: 0;
}
.step-card-dark .step-num { color: var(--green-light); }

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--grey-4);
  padding-top: 40px;
}
.bg-dark-1 .step-arrow,
.bg-dark-2 .step-arrow,
.bg-dark-3 .step-arrow { color: var(--dark-4); }
/* ─── CUSTOM CURSOR ────────────────────────────────────── */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--green-dark);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform .15s ease, background .2s ease;
}
.custom-cursor.hovered {
  transform: translate(-50%, -50%) scale(2);
  background: rgba(46, 163, 106, .15);
}

/* ══════════════════════════════════════════════════════════════
   CHECKLISTS
══════════════════════════════════════════════════════════════ */
.g-checklist { list-style: none; padding: 0; margin: 0; }
.g-checklist li { font-size: 13px; color: var(--txt-muted); padding: 5px 0 5px 20px; position: relative; }
.g-checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--green-mid); font-weight: 700; }

.g-checklist-dark { list-style: none; padding: 0; margin: 0; }
.g-checklist-dark li { font-size: 13px; color: var(--on-dark-mid); padding: 5px 0 5px 20px; position: relative; }
.g-checklist-dark li::before { content: '✓'; position: absolute; left: 0; color: var(--green-light); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════════════════════ */
.g-progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--txt-muted); margin-bottom: 6px; }
.g-progress-label-dark { color: var(--on-dark-mid); }
.g-progress-bar { height: 6px; border-radius: 10px; background: var(--grey-2); overflow: hidden; }
.g-progress-bar-dark { background: var(--dark-3); }
.g-progress-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--green-mid), var(--green-light)); animation: fillbar 2.2s ease forwards; }
@keyframes fillbar { from { width: 0; } }

/* ══════════════════════════════════════════════════════════════
   ICON BOXES
══════════════════════════════════════════════════════════════ */
.cap-icon {
  width: 48px; height: 48px;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cap-icon i { color: var(--green-dark); font-size: 1.2rem; }

.cap-icon-dark {
  width: 48px; height: 48px;
  background: rgba(159,211,181,.10);
  border: 1px solid rgba(159,211,181,.20);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cap-icon-dark i { color: var(--green-light); font-size: 1.2rem; }

/* Smaller icon variant for env rows */
.env-icon-sm { width: 30px !important; height: 30px !important; border-radius: 6px !important; flex-shrink: 0; }
.env-icon-sm i { font-size: .8rem !important; }

/* Tinted icon variants */
.cap-icon-blue   { background: rgba(77,159,255,.10); border-color: rgba(77,159,255,.25); }
.cap-icon-blue i { color: var(--blue); }
.cap-icon-red    { background: rgba(255,100,100,.10); border-color: rgba(255,100,100,.25); }
.cap-icon-red i  { color: var(--red); }
.cap-icon-purple { background: rgba(167,139,250,.10); border-color: rgba(167,139,250,.25); }
.cap-icon-purple i { color: var(--purple); }
.cap-icon-orange { background: rgba(255,154,60,.10); border-color: rgba(255,154,60,.25); }
.cap-icon-orange i { color: var(--orange); }

/* ══════════════════════════════════════════════════════════════
   CAPABILITY CARDS — LIGHT
══════════════════════════════════════════════════════════════ */
.cap-card {
  background: var(--white);
  border: 1.5px solid var(--grey-2);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  height: 100%;
  transition: var(--transition);
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-mid); }
.cap-card h5 {
  color: var(--txt-dark);
  margin: 0;
  line-height: 1.25;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.cap-card p  { color: var(--txt-muted); font-size: 13.5px; margin: 0; }

/* CAPABILITY CARDS — DARK */
.cap-card-dark {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  height: 100%;
  transition: var(--transition);
}
.cap-card-dark:hover { background: rgba(255,255,255,.07); border-color: var(--green-mid); transform: translateY(-3px); }
.cap-card-dark h5 { color: var(--on-dark-high); margin: 14px 0 8px; }
.cap-card-dark p  { color: var(--on-dark-mid); font-size: 13.5px; margin: 0; }

/* ══════════════════════════════════════════════════════════════
   DEPLOY CARDS — LIGHT
══════════════════════════════════════════════════════════════ */
.deploy-card {
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  height: 100%;
  text-align: center;
  transition: var(--transition);
}
.deploy-card:hover { border-color: var(--green-mid); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.deploy-card h5 { color: var(--txt-dark); }
.deploy-card p  { color: var(--txt-muted); font-size: 13.5px; }
.deploy-icon { font-size: 2.2rem; color: var(--green-mid); display: block; margin-bottom: 16px; }

/* DEPLOY CARDS — DARK */
.deploy-card-dark {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  height: 100%;
  text-align: center;
  transition: var(--transition);
}
.deploy-card-dark:hover { border-color: var(--green-mid); background: rgba(255,255,255,.07); transform: translateY(-4px); }
.deploy-card-dark h5 { color: var(--on-dark-high); }
.deploy-card-dark p  { color: var(--on-dark-mid); font-size: 13.5px; }
.deploy-card-dark .deploy-icon { color: var(--green-light); }

/* ══════════════════════════════════════════════════════════════
   SOURCE PILLS
══════════════════════════════════════════════════════════════ */
.source-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  transition: var(--transition);
}
.source-pill:hover { border-color: var(--green-mid); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.source-pill-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--green-dim); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.source-pill-icon i { color: var(--green-dark); }
.source-pill span { font-weight: 600; font-size: 14px; color: var(--txt-dark); }

.source-pill-dark { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.source-pill-dark:hover { border-color: var(--green-mid); }
.source-pill-dark span { color: var(--on-dark-high); }
.source-pill-dark .source-pill-icon { background: rgba(255,255,255,.08); }
.source-pill-dark .source-pill-icon i { color: var(--green-light); }

/* ══════════════════════════════════════════════════════════════
   CHAT MOCKUP
══════════════════════════════════════════════════════════════ */
.chat-mockup { background: var(--white); border: 1px solid var(--grey-3); border-radius: var(--radius-md); overflow: hidden; max-width: 360px; margin: 0 auto; box-shadow: var(--shadow-md); }
.chat-header { background: var(--dark); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(159,211,181,.15); border: 1px solid var(--green-mid); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-avatar i { font-size: .9rem; color: var(--green-light); }
.chat-agent-name { font-weight: 700; font-size: 13px; color: #ffffff; }
.chat-online { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--green-light); }
.chat-online::before { content: ''; width: 6px; height: 6px; background: var(--green-mid); border-radius: 50%; }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--grey-1); }
.chat-bubble { max-width: 82%; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.55; }
.chat-bubble.user { background: var(--green-mid); color: #ffffff; align-self: flex-end; border-bottom-right-radius: 3px; }
.chat-bubble.bot  { background: var(--white); border: 1px solid var(--grey-3); color: var(--txt-mid); align-self: flex-start; border-bottom-left-radius: 3px; }
.doc-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: var(--green-dark); }
.chat-input-bar { margin: 0 18px 18px; background: var(--white); border: 1px solid var(--grey-3); border-radius: var(--radius-sm); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; }
.chat-input-bar span { font-size: 12px; color: var(--txt-muted); }
.chat-input-bar i    { color: var(--green-mid); }

/* ══════════════════════════════════════════════════════════════
   WORKFLOW / PIPELINE DIAGRAM CARDS
══════════════════════════════════════════════════════════════ */
.wf-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-md);
  padding: 16px;
  height: 100%;
}
.wf-card h6  { color: var(--on-dark-high); font-size: 13px; margin-bottom: 6px; font-family: 'DM Serif Display', serif; }
.wf-card p   { color: var(--on-dark-mid);  font-size: 12px; margin: 0; }

/* Active (highlighted) card variant */
.wf-card-active-blue { border-color: rgba(77,159,255,.35); }

/* Workflow label */
.wf-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; display: block; }

/* Flow arrow between pipeline steps */
.wf-flow-arrow { font-size: 18px; color: var(--blue); flex-shrink: 0; }

/* Footer text at bottom of wf-card */
.wf-card-footer-text { font-size: 12px; color: var(--on-dark-mid); line-height: 1.6; margin: 0; }

/* ── Alert box inside wf-card ──────────────────────────── */
.wf-alert-box { border-radius: 8px; padding: 10px 12px; }
.wf-alert-box-red { background: rgba(255,100,100,.08); border: 1px solid rgba(255,100,100,.25); }

.wf-alert-icon-red { color: var(--red); font-size: 13px; flex-shrink: 0; }
.wf-alert-title    { font-size: 12px; font-weight: 700; color: var(--on-dark-high); }
.wf-alert-time     { font-size: 10px; color: var(--on-dark-low); margin-left: auto; }
.wf-alert-label-red{ font-size: 12px; font-weight: 700; color: var(--red); }
.wf-alert-meta     { font-size: 11px; color: var(--on-dark-low); }

/* ── Notification rows inside wf-card ─────────────────── */
.wf-notify-row  { font-size: 11px; color: var(--on-dark-mid); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.wf-notify-row:last-child { margin-bottom: 0; }
.wf-notify-icon { color: var(--green-light); font-size: 10px; flex-shrink: 0; }

/* ── Mobile alert box inside wf-card ──────────────────── */
.wf-mobile-alert-box   { background: rgba(255,100,100,.08); border: 1px solid rgba(255,100,100,.20); border-radius: 10px; padding: 12px; }
.wf-mobile-alert-date  { font-size: 10px; color: var(--on-dark-low); margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; }
.wf-mobile-alert-title { font-size: 12px; font-weight: 700; color: var(--on-dark-high); }
.wf-mobile-alert-meta  { font-size: 11px; color: var(--on-dark-mid); }

/* ── Pipeline dot items (capability list in wf-card) ──── */
.pipe-dot { display: flex; align-items: center; gap: 8px; border-radius: 6px; padding: 6px 8px; margin-bottom: 4px; font-size: 11px; color: var(--on-dark-mid); }
.pipe-dot-blue  { background: rgba(77,159,255,.06);  border: 1px solid rgba(77,159,255,.14); }
.pipe-dot-green { background: rgba(46,163,106,.06);  border: 1px solid rgba(46,163,106,.14); }

.pipe-dot-indicator { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.pipe-dot-indicator-blue  { background: var(--blue); }
.pipe-dot-indicator-green { background: var(--green-mid); }

/* ══════════════════════════════════════════════════════════════
   VISION PIPELINE — ENV ROWS & STAT BOXES
══════════════════════════════════════════════════════════════ */
.env-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 6px;
}
.env-row:last-child { margin-bottom: 0; }
.env-label { font-size: 11px; font-weight: 600; color: var(--on-dark-mid); }

/* Stat boxes (Live Dashboard) */
.stat-box { text-align: center; border-radius: 6px; padding: 8px; }
.stat-box-blue   { background: rgba(77,159,255,.08); border: 1px solid rgba(77,159,255,.15); }
.stat-box-red    { background: rgba(255,100,100,.08); border: 1px solid rgba(255,100,100,.20); }
.stat-box-green  { background: rgba(46,163,106,.08); border: 1px solid rgba(46,163,106,.20); }

.stat-val       { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; line-height: 1; display: block; color: var(--on-dark-high); }
.stat-val-red   { color: var(--red); }
.stat-val-green { color: var(--green-light); }
.stat-lbl       { font-size: 10px; color: var(--on-dark-low); display: block; margin-top: 3px; }

/* Alert rows (Recent Alerts) */
.alert-row { display: flex; justify-content: space-between; align-items: center; border-radius: 6px; padding: 8px 10px; margin-bottom: 4px; font-size: 12px; }
.alert-row:last-child { margin-bottom: 0; }
.alert-row-red    { background: rgba(255,100,100,.06); border: 1px solid rgba(255,100,100,.15); }
.alert-row-orange { background: rgba(255,165,0,.06);   border: 1px solid rgba(255,165,0,.15);  }
.alert-row-green  { background: rgba(46,163,106,.06);  border: 1px solid rgba(46,163,106,.15); }

.alert-text { font-size: 12px; color: var(--on-dark-high); }
.alert-time { font-size: 10px; color: var(--on-dark-low); font-family: 'JetBrains Mono', monospace; }

.alert-dot-red    { color: var(--red);    font-size: 7px; flex-shrink: 0; }
.alert-dot-orange { color: #ffa500;       font-size: 7px; flex-shrink: 0; }
.alert-dot-green  { color: var(--green-mid); font-size: 7px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   PIPELINE LAYOUT (sequential 4-step row, no wrapping)
══════════════════════════════════════════════════════════════ */
.pipeline-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.pipeline-scroll::-webkit-scrollbar { height: 4px; }
.pipeline-scroll::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 4px; }

/* Inner flex row — never wraps */
.pipeline-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  min-width: 860px;
}

/* Each step occupies equal width */
.pipeline-step { flex: 1 1 0; min-width: 0; }

/* Arrow between steps */
.pipeline-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  color: var(--blue);
  font-size: 18px;
  align-self: center;
}

/* Dashboard + Mobile side-by-side row */
.dashboard-row { display: flex; gap: 12px; margin-top: 12px; }
.dashboard-row .dash-main { flex: 1 1 0; min-width: 0; }
.dashboard-row .dash-side { flex: 0 0 220px; }

/* ══════════════════════════════════════════════════════════════
   MODEL TABLES (coding agent)
══════════════════════════════════════════════════════════════ */
.wf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }

.code-block { background: var(--dark); border: 1px solid var(--dark-3); border-radius: 8px; padding: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #c9d1d9; line-height: 1.7; }
.kw  { color: #ff7b72; }
.fn  { color: #d2a8ff; }
.num { color: #f0883e; }

.model-table { border: 1px solid var(--dark-3); border-radius: var(--radius-sm); overflow: hidden; }
.model-table-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--dark-3); background: rgba(255,255,255,.04); }
.model-table-head .tbl-title { font-weight: 700; font-size: 12px; color: var(--on-dark-high); }
.model-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 12px; }
.model-row:last-child { border-bottom: none; }
.model-row .model-name { color: var(--on-dark-mid); font-weight: 500; }
.model-row .model-tpm  { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--on-dark-low); }
.tpm-bar { border-radius: 999px; overflow: hidden; width: 50px; height: 3px; background: var(--dark-3); flex-shrink: 0; }
.tpm-fill      { height: 100%; border-radius: 999px; background: var(--green-mid); }
.tpm-fill-blue { background: var(--blue); }

/* Toggles */
.toggle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.toggle-row span { font-size: 13px; color: var(--on-dark-mid); }
.toggle-row:last-child { margin-bottom: 0; }
.toggle-on  { display: flex; align-items: center; padding: 3px; border-radius: 999px; width: 36px; height: 20px; background: var(--green-mid); justify-content: flex-end; }
.toggle-off { display: flex; align-items: center; padding: 3px; border-radius: 999px; width: 36px; height: 20px; background: var(--dark-3); justify-content: flex-start; }
.toggle-thumb { width: 14px; height: 14px; background: #ffffff; border-radius: 50%; flex-shrink: 0; }

/* Bottom banner */
.bottom-banner { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--dark-3); border-radius: var(--radius-md); padding: 16px 22px; }
.bottom-banner .bb-main { font-weight: 700; font-size: 13px; color: black; display: block; }
.bottom-banner .bb-sub  { font-size: 12px; color: var(--on-dark-low); display: block; }

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark) 100%);
  padding: var(--section-v) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,163,106,.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 { color: var(--on-dark-high); position: relative; z-index: 1; }
.cta-section p  { color: var(--on-dark-mid);  line-height: 1.85; position: relative; z-index: 1; }
.cta-section .d-flex { position: relative; z-index: 1; }

/* CTA eyebrow, accent, body text */
.eyebrow-cta { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--green-light); margin-bottom: 12px; }
.cta-accent  { color: var(--green-light); }
.cta-text    { color: var(--on-dark-mid); max-width: 500px; font-size: 14px; line-height: 1.85; }

/* ══════════════════════════════════════════════════════════════
   SECTION-SPECIFIC THEME WRAPPERS
══════════════════════════════════════════════════════════════ */
.section-process { background: var(--white); position: relative; }
.section-process::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--green-mid), transparent); }

.section-knowledge    { background: var(--green-soft); }
.section-knowledge .source-pill { background: var(--white); }

.section-capabilities { background: var(--grey-1); }
.section-deployment   { background: linear-gradient(180deg, var(--white) 0%, var(--green-soft) 100%); }

.section-process-dark    { background: var(--dark-2); }
.section-knowledge-dark  { background: var(--dark); }
.section-capabilities-dark { background: var(--dark-2); }
.section-deployment-dark { background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%); }

.section-process-dark, .section-knowledge-dark,
.section-capabilities-dark, .section-deployment-dark { color: var(--on-dark-mid); }
.section-process-dark h2, .section-knowledge-dark h2,
.section-capabilities-dark h2, .section-deployment-dark h2,
.section-process-dark h5, .section-knowledge-dark h5,
.section-capabilities-dark h5, .section-deployment-dark h5 { color: var(--on-dark-high); }
.section-process-dark p, .section-knowledge-dark p,
.section-capabilities-dark p, .section-deployment-dark p { color: var(--on-dark-mid); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
 
@media (max-width: 767px) {
  :root { --section-v: 52px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
  h5 { font-size: .95rem; }
  .page-hero { padding: 60px 0 44px; }
  .hero-lead { font-size: .93rem; }
  .feat-row { gap: 10px; margin-bottom: 16px; }
  .feat-icon { width: 36px; height: 36px; min-width: 36px; }
  .trust-item { font-size: 12px; }
  .step-card, .step-card-dark { padding: 22px 18px; }
  .cap-card, .cap-card-dark, .deploy-card, .deploy-card-dark { padding: 22px 18px; }
  .btn-primary-g, .btn-outline-light, .btn-outline-dark { width: 100%; justify-content: center; }
  .chat-mockup { max-width: 100%; }
  .chat-bubble { max-width: 90%; }
  .source-pill { padding: 12px 14px; }
  .source-pill span { font-size: 13px; }
  .wf-card { padding: 14px; }
  .code-block { font-size: 10px; }
  .stat-val { font-size: 15px; }
  .cta-section { padding: 52px 0; }
  .bottom-banner { padding: 14px 16px; gap: 10px; }
  .model-row .model-name { font-size: 11px; }
  .model-row .model-tpm  { font-size: 10px; }
  .tpm-bar { width: 36px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  .page-hero { padding: 52px 0 36px; }
  .hero-badge { font-size: 10px; padding: 5px 12px; }
  .feat-icon { width: 32px; height: 32px; min-width: 32px; }
  .feat-title { font-size: 13px; }
  .feat-desc  { font-size: 12px; }
  .deploy-card, .deploy-card-dark { padding: 24px 16px; }
  .deploy-icon { font-size: 1.8rem; }
  .cap-card, .cap-card-dark { padding: 18px 14px; }
  .wf-card { padding: 12px; }
  .source-pill { padding: 10px 12px; gap: 10px; }
  .source-pill-icon { width: 30px; height: 30px; font-size: .9rem; }
  .source-pill span { font-size: 12px; }
  .bottom-banner .bb-main { font-size: 12px; }
  .bottom-banner .bb-sub  { font-size: 11px; }
}


 /* ── Pipeline sequence fix ──────────────────────────── */

    /* Scrollable wrapper so all 4 steps stay in one row on all screens */
    .pipeline-scroll {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 8px;
    }
    .pipeline-scroll::-webkit-scrollbar { height: 4px; }
    .pipeline-scroll::-webkit-scrollbar-thumb { background: var(--grey-3, #ccc); border-radius: 4px; }

    /* Inner flex row — never wraps */
    .pipeline-row {
      display: flex;
      flex-wrap: nowrap;
      align-items: stretch;
      gap: 0;
      min-width: 860px;       /* ensures all 4 show before scrolling */
    }

    /* Each step occupies equal width */
    .pipeline-step {
      flex: 1 1 0;
      min-width: 0;
    }

    /* Arrow between steps — shrinks to its content */
    .pipeline-arrow {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 10px;
      color: #4d9fff;
      font-size: 18px;
      align-self: center;
    }

    /* Dashboard + Mobile row stays side by side */
    .dashboard-row {
      display: flex;
      gap: 12px;
      margin-top: 12px;
    }
    .dashboard-row .dash-main { flex: 1 1 0; min-width: 0; }
    .dashboard-row .dash-side { flex: 0 0 220px; }

    @media (max-width: 767px) {
      .pipeline-row { min-width: 720px; }
      .dashboard-row { flex-direction: column; }
      .dashboard-row .dash-side { flex: none; }
    }
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }
  .container,
  .container-xl,
  .container-fluid {
    overflow-x: hidden;
  }
}

