@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Raw palette */
  --forest: #10251B;
  --green-dark: #183526;
  --chocolate: #2B1B16;
  --espresso: #17120F;
  --cream: #F5F0E8;
  --beige: #EDE4D6;

  --sage: #7FAF8C;
  --gold: #C7A66A;
  --terracotta: #C96F4A;
  --terracotta-hover: #D68563;

  /* Default (forest) chapter context — components fall back to this
     outside an explicit chapter wrapper */
  --sec-bg: var(--forest);
  --sec-heading: #F7F3E8;
  --sec-body: #D8D0C5;
  --sec-dim: #9C9186;
  --sec-card-bg: rgba(255, 255, 255, 0.04);
  --sec-card-border: rgba(255, 255, 255, 0.10);
  --sec-card-border-bright: rgba(255, 255, 255, 0.22);
  --sec-accent: var(--sage);
  --sec-accent-2: var(--gold);
  --sec-input-bg: rgba(255, 255, 255, 0.03);

  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.46);
}

/* ---------- Chapter contexts ---------- */
.chapter-forest     { --sec-bg: var(--forest); }
.chapter-green       { --sec-bg: var(--green-dark); }
.chapter-chocolate   { --sec-bg: var(--chocolate); }
.chapter-espresso    { --sec-bg: var(--espresso); }

.chapter-forest, .chapter-green, .chapter-chocolate, .chapter-espresso {
  --sec-heading: #F7F3E8;
  --sec-body: #D8D0C5;
  --sec-dim: #9C9186;
  --sec-card-bg: rgba(255, 255, 255, 0.04);
  --sec-card-border: rgba(255, 255, 255, 0.10);
  --sec-card-border-bright: rgba(255, 255, 255, 0.22);
  --sec-accent: var(--sage);
  --sec-accent-2: var(--gold);
  --sec-input-bg: rgba(255, 255, 255, 0.03);
  color-scheme: dark;
}

.chapter-cream, .chapter-beige {
  --sec-heading: #211814;
  --sec-body: #51453D;
  --sec-dim: #7A6D62;
  --sec-card-bg: #FFF9F0;
  --sec-card-border: rgba(33, 24, 20, 0.10);
  --sec-card-border-bright: rgba(33, 24, 20, 0.22);
  --sec-accent: #285943;
  --sec-accent-2: #8F713D;
  --sec-input-bg: #FFFFFF;
  color-scheme: light;
}
.chapter-cream  { --sec-bg: var(--cream); }
.chapter-beige  { --sec-bg: var(--beige); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--forest);
  color: var(--sec-heading);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--sec-heading);
}

.mono { font-family: 'JetBrains Mono', monospace; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

section {
  padding: 100px 0;
  position: relative;
  background: var(--sec-bg);
  color: var(--sec-body);
  transition: background 0.4s ease;
}

/* Soft atmospheric seam between sections, tinted with the section's own accent */
section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 140px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sec-accent) 7%, transparent), transparent);
  pointer-events: none;
  z-index: 0;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sec-accent-2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow.center { justify-content: center; }
.eyebrow::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--sec-accent-2);
  display: inline-block;
}

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--sec-heading); }
.section-head p { color: var(--sec-body); font-size: 1.08rem; margin-top: 14px; }

/* ---------- Buttons (consistent across every chapter) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: #17120F;
  box-shadow: 0 10px 24px rgba(201, 111, 74, 0.24);
}
.btn-primary:hover { background: var(--terracotta-hover); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 111, 74, 0.3); }
.btn-secondary {
  background: transparent;
  color: var(--sec-heading);
  border: 1.5px solid var(--sec-card-border-bright);
}
.btn-secondary:hover { border-color: var(--sec-accent); color: var(--sec-accent); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--sec-heading);
  border: 1.5px solid color-mix(in srgb, var(--sec-accent) 45%, transparent);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--sec-accent) 14%, transparent); border-color: var(--sec-accent); transform: translateY(-2px); }

/* ---------- Nav (fixed, always dark, independent of chapter) ---------- */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
  background: rgba(16, 37, 27, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  transition: background 0.3s ease, border-color 0.3s ease;
}
nav.scrolled { background: rgba(16, 37, 27, 0.95); border-color: rgba(255,255,255,0.16); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.logo { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.3rem; color: #F7F3E8; display: flex; align-items: center; gap: 8px; }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(199, 166, 106, 0.6); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { text-decoration: none; color: #C8BFB2; font-size: 0.92rem; font-weight: 600; transition: color 0.2s ease; }
.nav-links a:not(.btn):hover { color: #F7F3E8; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger .bar { width: 22px; height: 2px; background: #F7F3E8; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 168px 0 90px; overflow: hidden; position: relative; }
.hero-bg-mockup {
  position: absolute;
  inset: 0;
  background-image: url('hero_mockup.jpg');
  background-size: cover;
  background-position: center 15%;
  opacity: 0.16;
  filter: grayscale(25%) sepia(10%) brightness(0.55) contrast(1.15);
  z-index: 0;
  pointer-events: none;
  animation: hero-kenburns 28s ease-in-out infinite alternate;
  transform-origin: center 30%;
}
@keyframes hero-kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-mockup { animation: none; }
}
.hero::after {
  content: '';
  position: absolute;
  top: -220px; right: -180px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(40, 89, 67, 0.3) 0%, rgba(23, 18, 15, 0.32) 45%, transparent 72%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero-left, .hero-right { min-width: 0; }

.hero-left h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin-bottom: 22px;
}
.hero-left h1 .accent {
  background: linear-gradient(90deg, var(--sage), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 1.15rem; max-width: 540px; margin-bottom: 24px; }
.capability-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--sec-dim);
  margin-bottom: 34px;
  letter-spacing: 0.3px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Woven-lines hero visual */
.flow-card {
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 20px;
  padding: 34px 24px 30px;
  box-shadow: var(--shadow-lg);
}
.flow-card .flow-title { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 1.5px; color: var(--sec-dim); text-transform: uppercase; margin-bottom: 22px; text-align: center; }
.flow-nodes { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 10px; }
.flow-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
}
.flow-node .icon-badge {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--sage) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sage) 32%, transparent);
  flex-shrink: 0;
}
.flow-node span { font-size: 0.68rem; color: var(--sec-body); font-weight: 600; text-align: center; }
.flow-line {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sec-card-border-bright) 0 6px, transparent 6px 12px);
  margin: -34px 0 34px;
}
.flow-line .pulse {
  position: absolute;
  top: -3px; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(199, 166, 106, 0.75);
  animation: flow-travel 4.5s linear infinite;
}
@keyframes flow-travel { 0% { left: 0%; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { left: 96%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .flow-line .pulse { animation: none; opacity: 0; } }

/* ---------- Capability Cards ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cap-card {
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.cap-card:hover { transform: translateY(-4px); border-color: var(--sec-accent); box-shadow: 0 20px 44px color-mix(in srgb, var(--sec-accent) 16%, transparent); }
.cap-card .icon-badge {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--sec-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sec-accent) 32%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.cap-card:hover .icon-badge { transform: translateY(-2px) scale(1.06); }
.cap-card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.cap-card p.tagline { color: var(--sec-body); font-size: 0.98rem; margin-bottom: 16px; }
.cap-card .cap-examples { list-style: none; display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cap-card.expanded .cap-examples { display: flex; }
.cap-card .cap-examples li {
  font-size: 0.78rem;
  background: color-mix(in srgb, var(--sec-heading) 6%, transparent);
  border: 1px solid var(--sec-card-border);
  color: var(--sec-body);
  padding: 5px 11px;
  border-radius: 20px;
}
.cap-toggle { background: none; border: none; cursor: pointer; color: var(--sec-accent); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.cap-toggle .chev { transition: transform 0.25s ease; }
.cap-card.expanded .cap-toggle .chev { transform: rotate(180deg); }

/* ---------- Next Employee (AI Agent spotlight) ---------- */
.employee-panel {
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 28px;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.employee-panel > * { min-width: 0; }
.employee-panel h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 18px; }
.employee-panel p { color: var(--sec-body); font-size: 1.05rem; margin-bottom: 14px; }
.employee-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.employee-list li { display: flex; gap: 10px; color: var(--sec-body); font-size: 0.96rem; }
.employee-list li::before { content: '✓'; color: var(--sec-accent); font-weight: 700; flex-shrink: 0; }
.employee-visual {
  background: color-mix(in srgb, var(--sec-bg) 60%, black 15%);
  border: 1px solid color-mix(in srgb, var(--sec-accent) 32%, transparent);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
}
.employee-visual .pulse-ring {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--sec-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sec-accent) 32%, transparent);
  position: relative;
}
.employee-visual .pulse-ring::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--sec-accent) 32%, transparent);
  animation: ring-pulse 2.4s ease-out infinite;
}
@keyframes ring-pulse { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(1.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .employee-visual .pulse-ring::before { animation: none; opacity: 0; } }
.employee-visual .caption { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--sec-dim); letter-spacing: 1px; }

/* ---------- Imagine If ---------- */
.imagine-list { max-width: 640px; margin: 0 auto 40px; display: flex; flex-direction: column; gap: 4px; }
.imagine-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--sec-card-border);
  font-size: 1.15rem;
  font-family: 'Fraunces', serif;
  opacity: 0; transform: translateX(-14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.imagine-item.active { opacity: 1; transform: translateX(0); }
.imagine-item .check { color: var(--sec-accent); font-size: 1.1rem; flex-shrink: 0; }
.imagine-final { text-align: center; }
.imagine-final p { font-size: 1.3rem; font-family: 'Fraunces', serif; margin-bottom: 26px; }

/* ---------- See It In Action ---------- */
.demo-hero {
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 22px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.demo-hero > * { min-width: 0; }
.demo-hero h3 { font-size: 1.6rem; margin-bottom: 12px; }
.demo-hero p { color: var(--sec-body); margin-bottom: 20px; }
.demo-note { font-size: 0.82rem; color: var(--sec-dim); margin-top: 14px; }

.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.demo-card {
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.demo-card:hover { transform: translateY(-3px); border-color: var(--sec-accent); }
.demo-card .tag-preview {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--sec-accent-2);
  background: color-mix(in srgb, var(--sec-accent-2) 16%, transparent);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.demo-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.demo-card p { color: var(--sec-body); font-size: 0.92rem; }

/* Chat widget — premium AI communication interface (always dark, own mini-theme) */
.chat-widget {
  border: 1px solid rgba(127, 175, 140, 0.35);
  border-radius: 16px;
  background: var(--espresso);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.chat-header {
  background: linear-gradient(120deg, rgba(40, 89, 67, 0.55), rgba(23, 18, 15, 0.4));
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #7FAF8C; box-shadow: 0 0 8px #7FAF8C; }
.chat-waveform { display: flex; align-items: center; gap: 2px; margin-left: auto; height: 16px; }
.chat-waveform span { width: 2.5px; background: #7FAF8C; border-radius: 2px; animation: wave 1.1s ease-in-out infinite; }
.chat-waveform span:nth-child(1) { height: 40%; animation-delay: 0s; }
.chat-waveform span:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.chat-waveform span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.chat-waveform span:nth-child(4) { height: 90%; animation-delay: 0.45s; }
.chat-waveform span:nth-child(5) { height: 50%; animation-delay: 0.6s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .chat-waveform span { animation: none; height: 60% !important; } }

.chat-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--chocolate); }
.chat-msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; }
.chat-msg.bot { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); align-self: flex-start; border-bottom-left-radius: 2px; color: #F7F3E8; }
.chat-msg.user { background: linear-gradient(120deg, #285943, #7FAF8C); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; font-weight: 600; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 16px; background: var(--chocolate); }
.chat-quick-replies button {
  font-size: 0.8rem; padding: 8px 13px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  cursor: pointer; color: #F7F3E8;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chat-quick-replies button:hover { border-color: #7FAF8C; color: #7FAF8C; }

/* ---------- Process Pipeline ---------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.process-step {
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 16px;
  padding: 24px 20px;
  transition: border-color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
}
.process-step:hover { transform: translateY(-3px); }
.process-step.active { border-color: var(--sec-accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sec-accent) 40%, transparent), 0 16px 34px color-mix(in srgb, var(--sec-accent) 14%, transparent); }
.process-step .step-num { font-family: 'JetBrains Mono', monospace; color: var(--sec-accent-2); font-size: 0.78rem; letter-spacing: 1.5px; margin-bottom: 10px; }
.process-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process-step p { color: var(--sec-body); font-size: 0.9rem; }

/* ---------- Industries ---------- */
.industry-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.industry-chip {
  padding: 10px 18px; border-radius: 24px;
  border: 1.5px solid var(--sec-card-border);
  background: var(--sec-card-bg);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  color: var(--sec-body);
  transition: all 0.2s ease;
}
.industry-chip.active, .industry-chip:hover { border-color: var(--sec-accent); color: var(--sec-heading); background: color-mix(in srgb, var(--sec-accent) 14%, transparent); }
.industry-detail {
  max-width: 720px; margin: 0 auto;
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 16px; padding: 28px 32px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.industry-detail .industry-name { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--sec-accent); margin-bottom: 8px; }
.industry-detail p { color: var(--sec-body); font-size: 1.02rem; }

/* ---------- Work / Case Studies ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 26px; }
.work-card {
  display: block;
  text-decoration: none;
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.work-card:hover { border-color: var(--sec-accent); box-shadow: 0 16px 34px color-mix(in srgb, var(--sec-accent) 14%, transparent); }
.work-card h4 { font-size: 1.15rem; margin-bottom: 14px; font-family: 'Fraunces', serif; }
.work-flow { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.wf-row { font-size: 0.88rem; color: var(--sec-body); }
.wf-row b { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; display: block; color: var(--sec-accent); margin-bottom: 2px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.work-tags span { font-size: 0.74rem; background: color-mix(in srgb, var(--sec-heading) 6%, transparent); border: 1px solid var(--sec-card-border); color: var(--sec-body); padding: 4px 10px; border-radius: 20px; }

.client-strip { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 40px; }
.client-badge { background: var(--sec-card-bg); border: 1px solid var(--sec-card-border); border-radius: 12px; padding: 16px 22px; text-align: center; }
.client-badge .cname { font-weight: 700; color: var(--sec-heading); }
.client-badge .cperson { font-size: 0.82rem; color: var(--sec-dim); }

/* ---------- Why Us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item .why-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--sec-accent-2); margin-top: 8px; flex-shrink: 0; }
.why-item h4 { font-size: 1.02rem; margin-bottom: 4px; }
.why-item p { color: var(--sec-body); font-size: 0.92rem; }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: 240px 1fr; gap: 46px; align-items: center; max-width: 900px; margin: 0 auto; }
.founder-grid > * { min-width: 0; }
.founder-photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--sec-card-border); box-shadow: var(--shadow-md); }
.founder-title { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 1.5px; color: var(--sec-accent); margin-top: 4px; margin-bottom: 18px; text-transform: uppercase; }
.founder-quote { font-family: 'Fraunces', serif; font-size: 1.35rem; margin-bottom: 16px; }
.founder-text p { color: var(--sec-body); margin-bottom: 14px; }

/* ---------- Audit / Lead magnet ---------- */
.audit-panel {
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 22px; padding: 46px;
  box-shadow: var(--shadow-md);
  max-width: 720px; margin: 0 auto; text-align: center;
}
.audit-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.audit-form input {
  flex: 1; min-width: 220px; padding: 14px 16px; border-radius: 10px;
  border: 1.5px solid var(--sec-card-border-bright);
  background: var(--sec-input-bg);
  color: var(--sec-heading);
  font-size: 0.96rem; font-family: 'Manrope', sans-serif;
}
.audit-form input::placeholder { color: var(--sec-dim); }
.audit-form input:focus { outline: none; border-color: var(--sec-accent); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--sec-card-border); padding: 22px 0; cursor: pointer; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { color: var(--sec-accent); transition: transform 0.25s ease; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item p { color: var(--sec-body); margin-top: 12px; font-size: 0.96rem; }

/* ---------- Book a Call ---------- */
.book-call-panel {
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 24px;
  padding: 40px;
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}
.book-call-panel h3 { font-size: 1.4rem; margin-bottom: 10px; }
.book-call-panel p { color: var(--sec-body); margin-bottom: 22px; }
.book-call-embed { border-radius: 14px; overflow: hidden; border: 1px solid var(--sec-card-border); background: #fff; }
.book-call-embed iframe { display: block; width: 100%; height: 620px; border: 0; }
.or-divider { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto 34px; color: var(--sec-dim); font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--sec-card-border); }

/* ---------- Contact Form ---------- */
.contact-panel {
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 24px; padding: 46px;
  box-shadow: var(--shadow-lg);
  max-width: 760px; margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid > * { min-width: 0; }
.form-grid .full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--sec-body); display: block; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid var(--sec-card-border-bright);
  font-family: 'Manrope', sans-serif; font-size: 0.96rem;
  background: var(--sec-input-bg);
  color: var(--sec-heading);
}
.field select option { background: var(--sec-card-bg); color: var(--sec-heading); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sec-accent); }
.field textarea { min-height: 90px; resize: vertical; }
.submit-row { margin-top: 24px; text-align: center; }
.submit-row .btn { width: 100%; justify-content: center; padding: 16px; font-size: 1.02rem; }
.form-note { font-size: 0.82rem; color: var(--sec-dim); text-align: center; margin-top: 12px; }
.form-note a { color: var(--sec-accent); }
.field .optional { font-weight: 400; color: var(--sec-dim); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer (always espresso) ---------- */
footer { padding: 60px 0 40px; border-top: 1px solid rgba(255,255,255,0.09); background: var(--espresso); color: #C8BFB2; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 30px; }
.footer-grid .logo { color: #F7F3E8; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: #C8BFB2; font-size: 0.9rem; font-weight: 600; }
.footer-links a:hover { color: #7FAF8C; }
.footer-bottom { color: #8C8377; font-size: 0.84rem; text-align: center; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 0 0 1px rgba(245,240,232,0.08);
  z-index: 999;
  transition: transform 0.25s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* Sticky mobile CTA */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: var(--espresso); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px; box-shadow: 0 -6px 20px rgba(0,0,0,0.3);
}
.sticky-cta .btn { width: 100%; justify-content: center; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px) scale(0.98); transition: opacity 0.7s cubic-bezier(0.2,0.8,0.2,1), transform 0.7s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Flow Diagram (example workflow sequences on service pages) ---------- */
.flow-diagram { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 620px; margin: 0 auto; }
.flow-diagram .node { background: var(--sec-card-bg); border: 1px solid var(--sec-card-border); border-radius: 10px; padding: 14px 24px; text-align: center; font-size: 0.95rem; color: var(--sec-body); width: 100%; }
.flow-diagram .node.emph { background: var(--terracotta); color: #17120F; font-weight: 700; border-color: var(--terracotta); }
.flow-diagram .arrow { color: var(--sec-accent-2); font-size: 1.1rem; line-height: 1; padding: 2px 0; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.blog-card {
  display: block; text-decoration: none;
  background: var(--sec-card-bg); border: 1px solid var(--sec-card-border);
  border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.blog-card:hover { border-color: var(--sec-accent); transform: translateY(-3px); }
.blog-card .blog-date { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--sec-dim); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.blog-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.blog-card p { color: var(--sec-body); font-size: 0.95rem; }
.blog-card .read-more { margin-top: 16px; display: inline-block; color: var(--sec-accent); font-weight: 700; font-size: 0.9rem; }

.article-hero { max-width: 760px; margin: 0 auto; text-align: center; }
.article-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--sec-dim); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.article-body { max-width: 700px; margin: 0 auto; }
.article-body h2 { font-size: 1.55rem; margin: 44px 0 16px; }
.article-body h3 { font-size: 1.22rem; margin: 30px 0 12px; }
.article-body p { margin-bottom: 18px; font-size: 1.05rem; color: var(--sec-body); }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; font-size: 1.02rem; color: var(--sec-body); }
.article-body a { color: var(--sec-accent); font-weight: 600; }
.article-cta { max-width: 700px; margin: 50px auto 0; padding: 32px; border-radius: 18px; background: var(--sec-card-bg); border: 1px solid var(--sec-card-border); text-align: center; }

/* ---------- Island (nested chapter container, e.g. cream panel inside a dark section) ---------- */
.island { border-radius: 28px; padding: 56px 40px; }
@media (max-width: 720px) { .island { padding: 40px 20px; border-radius: 20px; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .demo-hero, .founder-grid, .employee-panel { grid-template-columns: 1fr; }
  .founder-photo { max-width: 220px; margin: 0 auto; }
  .employee-panel { padding: 40px 28px; }
}

@media (max-width: 720px) {
  section { padding: 70px 0; }
  .hamburger { display: flex; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; background: var(--forest); flex-direction: column; padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.09); display: none; }
  .nav-links.active { display: flex; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  body { padding-bottom: 74px; }
  .whatsapp-fab { bottom: 92px; }
}

/* ---------- International Trust & Delivery Badges ---------- */
.hero-badges-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  color: #D8D0C5;
  font-family: 'JetBrains Mono', monospace;
}
.hero-badge-item svg { flex-shrink: 0; color: #7FAF8C; }

/* ---------- International Delivery Standards Grid ---------- */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.delivery-card {
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.delivery-card:hover {
  transform: translateY(-4px);
  border-color: var(--sec-accent);
}
.delivery-card .d-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(127, 175, 140, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #7FAF8C;
}
.delivery-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-family: 'Fraunces', serif;
}
.delivery-card p {
  font-size: 0.92rem;
  color: var(--sec-body);
  line-height: 1.55;
}

/* ---------- Transparent USD Pricing Section ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 40px;
}
.pricing-card {
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 22px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--sec-accent);
}
.pricing-card.featured {
  border: 2px solid #7FAF8C;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sec-accent) 6%, var(--sec-card-bg)), var(--sec-card-bg));
  box-shadow: var(--shadow-md);
}
.pricing-card .badge-popular {
  position: absolute;
  top: -13px;
  right: 28px;
  background: #7FAF8C;
  color: #10251B;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.pricing-tier-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sec-accent);
  margin-bottom: 8px;
}
.pricing-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  font-family: 'Fraunces', serif;
}
.pricing-card .tier-desc {
  font-size: 0.9rem;
  color: var(--sec-body);
  min-height: 48px;
  margin-bottom: 20px;
}
.pricing-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sec-card-border);
}
.pricing-val .curr {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sec-heading);
}
.pricing-val .amount {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Fraunces', serif;
  color: var(--sec-heading);
  line-height: 1;
}
.pricing-val .period {
  font-size: 0.82rem;
  color: var(--sec-dim);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--sec-body);
  line-height: 1.45;
}
.pricing-features li svg {
  color: #7FAF8C;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Audio Voice Demonstration Player ---------- */
.voice-demos-wrap {
  margin-top: 40px;
  background: var(--sec-card-bg);
  border: 1px solid var(--sec-card-border);
  border-radius: 22px;
  padding: 34px;
}
.voice-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 22px;
}
.voice-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sec-card-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease;
}
.voice-card:hover {
  border-color: var(--sec-accent);
}
.voice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.voice-head h4 {
  font-size: 1.02rem;
  margin: 0 0 4px 0;
  font-family: 'Fraunces', serif;
}
.voice-head .v-niche {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--sec-accent-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.voice-player {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--sec-card-border);
}
.voice-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #7FAF8C;
  border: none;
  color: #10251B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.voice-play-btn:hover {
  transform: scale(1.08);
  background: #94C4A2;
}
.voice-wave-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  flex-grow: 1;
}
.voice-wave-bars span {
  width: 3px;
  height: 6px;
  background: rgba(127, 175, 140, 0.6);
  border-radius: 2px;
  transition: height 0.2s ease;
}
.voice-playing .voice-wave-bars span {
  animation: waveBar 0.8s ease-in-out infinite alternate;
}
.voice-playing .voice-wave-bars span:nth-child(2) { animation-delay: 0.1s; }
.voice-playing .voice-wave-bars span:nth-child(3) { animation-delay: 0.2s; }
.voice-playing .voice-wave-bars span:nth-child(4) { animation-delay: 0.3s; }
.voice-playing .voice-wave-bars span:nth-child(5) { animation-delay: 0.15s; }
.voice-playing .voice-wave-bars span:nth-child(6) { animation-delay: 0.25s; }
.voice-playing .voice-wave-bars span:nth-child(7) { animation-delay: 0.05s; }
.voice-playing .voice-wave-bars span:nth-child(8) { animation-delay: 0.35s; }

@keyframes waveBar {
  0% { height: 4px; }
  100% { height: 20px; }
}
.voice-duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--sec-dim);
}

/* Timezone Badges */
.timezone-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.tz-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--sec-card-border);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--sec-dim);
}
.tz-badge strong {
  color: var(--sec-heading);
}

/* ---------- Interactive Live Workflow Simulator ---------- */
.workflow-simulator-wrap {
  margin-top: 48px;
  background: #0B1912;
  border: 1px solid rgba(127, 175, 140, 0.25);
  border-radius: 26px;
  padding: 38px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 90px;
}
.workflow-simulator-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(127, 175, 140, 0.08) 1px, transparent 1px) 0 0/24px 24px;
  pointer-events: none;
}
.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}
.sim-title h3 {
  font-size: 1.45rem;
  font-family: 'Fraunces', serif;
  color: #F7F3E8;
  margin-bottom: 4px;
}
.sim-title p {
  color: #B9AFA0;
  font-size: 0.9rem;
}
.sim-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(127, 175, 140, 0.12);
  border: 1px solid rgba(127, 175, 140, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #7FAF8C;
}
.sim-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7FAF8C;
  box-shadow: 0 0 10px #7FAF8C;
  animation: pulseGreen 1.8s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Preset Scenario Tabs */
.sim-scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  position: relative;
  z-index: 2;
}
.sim-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #D8D0C5;
  padding: 9px 18px;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.sim-tab:hover {
  background: rgba(127, 175, 140, 0.12);
  border-color: #7FAF8C;
  color: #F7F3E8;
}
.sim-tab.active {
  background: #7FAF8C;
  color: #10251B;
  border-color: #7FAF8C;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(127, 175, 140, 0.3);
}

/* Visual Nodes Pipeline */
.sim-canvas {
  background: rgba(16, 37, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 20px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  overflow-x: auto;
}
.sim-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 680px;
  gap: 12px;
  position: relative;
}
.sim-node {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 14px;
  position: relative;
  transition: all 0.35s ease;
  min-width: 140px;
}
.sim-node .node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sim-node .node-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #B9AFA0;
}
.sim-node .node-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.sim-node h4 {
  font-size: 0.96rem;
  color: #F7F3E8;
  margin: 0 0 4px 0;
  font-weight: 700;
}
.sim-node .node-action {
  font-size: 0.78rem;
  color: #8C8377;
  line-height: 1.35;
}
.sim-connector {
  color: rgba(127, 175, 140, 0.4);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.sim-connector.active-connector {
  color: #7FAF8C;
  text-shadow: 0 0 12px #7FAF8C;
  transform: scale(1.25);
}

/* Node Active & Completed States */
.sim-node.active-node {
  border-color: #7FAF8C;
  background: rgba(127, 175, 140, 0.2);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 30px rgba(127, 175, 140, 0.55), inset 0 0 15px rgba(127, 175, 140, 0.15);
  animation: activeNodeGlow 0.9s infinite alternate;
}
@keyframes activeNodeGlow {
  0% { box-shadow: 0 0 15px rgba(127, 175, 140, 0.35); }
  100% { box-shadow: 0 0 32px rgba(127, 175, 140, 0.7); }
}
.sim-node.active-node .node-status {
  background: #7FAF8C;
  box-shadow: 0 0 12px #7FAF8C;
  animation: pulseGreen 0.7s infinite;
}
.sim-node.active-node + .sim-connector {
  color: #7FAF8C;
  text-shadow: 0 0 12px #7FAF8C;
  transform: scale(1.25);
}
.sim-node.completed-node {
  border-color: rgba(127, 175, 140, 0.65);
  background: rgba(127, 175, 140, 0.08);
  box-shadow: 0 0 12px rgba(127, 175, 140, 0.18);
}
.sim-node.completed-node .node-status {
  background: #7FAF8C;
  box-shadow: 0 0 8px #7FAF8C;
}

/* Live Terminal Console */
.sim-terminal-wrap {
  background: #080C0A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}
.terminal-bar {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-dots span:nth-child(1) { background: #FF5F56; }
.terminal-dots span:nth-child(2) { background: #FFBD2E; }
.terminal-dots span:nth-child(3) { background: #27C93F; }
.terminal-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #8C8377;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.terminal-body {
  padding: 18px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  color: #D8D0C5;
  line-height: 1.65;
  min-height: 160px;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  scrollbar-width: thin;
}
.terminal-body .log-ts { color: #8A7E73; margin-right: 8px; }
.terminal-body .log-tag { color: #C7A66A; font-weight: 700; margin-right: 8px; }
.terminal-body .log-ok { color: #7FAF8C; font-weight: 700; }
.terminal-body .log-highlight { color: #E08A62; }
.terminal-body .log-json { color: #9FB8A6; font-size: 0.78rem; display: block; margin-top: 4px; padding-left: 14px; border-left: 2px solid rgba(127,175,140,0.3); }

/* Controls Row */
.sim-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}
.sim-controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-sim-run {
  background: #7FAF8C;
  color: #10251B;
  font-weight: 800;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-sim-run:hover {
  transform: translateY(-2px);
  background: #94C4A2;
  box-shadow: 0 8px 24px rgba(127, 175, 140, 0.4);
}
.btn-sim-ghost {
  background: transparent;
  color: #D8D0C5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: all 0.2s ease;
}
.btn-sim-ghost:hover {
  border-color: #7FAF8C;
  color: #F7F3E8;
}
.sim-clone-cta {
  font-size: 0.88rem;
  color: #B9AFA0;
}
.sim-clone-cta a {
  color: #7FAF8C;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}
