*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:        rgba(247,245,242,0.45);
  --bg-card:   rgba(255,255,255,0.72);
  --bg-muted:  rgba(240,236,230,0.55);
  --surface-glass: var(--bg-card);
  --surface-glass-soft: var(--bg-card);
  --surface-glass-border: rgba(212,202,192,0.9);
  --surface-glass-shadow: 0 18px 40px rgba(26,22,18,.08);
  --surface-glass-blur: blur(18px) saturate(1.02);
  --border:    #E5DDD4;
  --border-md: #D4CAC0;
  --accent:    #C17A3A;
  --accent-h:  #D4893F;
  --accent-bg: #F5EAD9;
  --fg:        #1A1612;
  --fg2:       #6B5E4E;
  --fg3:       #9C8E7E;
  --fg4:       #C4B9A8;
  --success:   #2A7D4F;
  --info:      #3A6BC8;
  --font:      'Golos Text', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --ease:      cubic-bezier(0.16,1,0.3,1);
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 60px;
  background: rgba(247,245,242,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--fg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-mark svg { width: 17px; height: 17px; }
.nav-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--fg2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.nav-phone svg { color: var(--accent); flex-shrink: 0; transition: color .15s ease; }
.nav-phone:hover { background: #F5EBD9; color: var(--accent); border-color: rgba(193,122,58,0.25); }
.nav-phone:hover svg { color: var(--accent); }
@media (max-width: 860px) {
  .nav-phone span { display: none; }
  .nav-phone { padding: 7px 9px; }
}
.lang-toggle { display: flex; background: var(--bg-muted); border: 1px solid var(--border-md); border-radius: 6px; overflow: hidden; }
.lang-btn { padding: 5px 11px; font-size: 12px; font-weight: 600; font-family: var(--font); letter-spacing: .05em; background: none; border: none; color: var(--fg3); cursor: pointer; transition: all .15s; }
.lang-btn.active { background: var(--fg); color: #fff; }
.btn-cta { padding: 8px 18px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: background .15s; }
.btn-cta:hover { background: var(--accent-h); }

/* ── HERO ─────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh; padding: 100px 48px 60px;
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  grid-template-rows: auto auto auto;
  column-gap: 40px; row-gap: 32px;
  align-items: start;
  max-width: 1280px; margin: 0 auto;
}
.hero-headline {
  grid-column: 1 / -1; grid-row: 1;
  display: flex; flex-direction: column; gap: 0;
  position: relative; z-index: 2;
}
.hero-title { font-size: 52px; font-weight: 600; font-family: var(--font); line-height: 1.05; letter-spacing: -.03em; color: var(--fg); margin-bottom: 12px; text-wrap: balance; }
.hero-sub { font-size: 15px; font-weight: 600; color: var(--fg2); line-height: 1.65; max-width: 480px; }

/* Left column */
.hero-left { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 0; position: relative; z-index: 2; align-self: start;
  background: var(--surface-glass); border: 1px solid var(--surface-glass-border); border-radius: 14px; padding: 8px 8px 12px; }
.hero-products { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.hero-prod-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  transition: background .15s;
  border: 0; background: transparent; width: 100%; text-align: left; font-family: var(--font);
}
.hero-prod-item:hover { background: rgba(240,236,230,0.7); }
.hero-prod-item.active { background: rgba(240,236,230,0.7); box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.hero-prod-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-prod-icon svg { width: 16px; height: 16px; }
.hero-prod-icon img {
  width: 27px;
  height: 29px;
  object-fit: contain;
  display: block;
}
.hero-prod-icon.amber { background: #FEF0DC; color: var(--accent); }
.hero-prod-icon.blue  { background: #E8EEFF; color: #3A6BC8; }
.hero-prod-icon.green { background: #E6F5EE; color: var(--success); }
.hero-prod-icon.purple{ background: #EDE8FF; color: #6B4FBF; }
.hero-prod-name { font-size: 14px; font-weight: 600; color: var(--fg); }
.hero-prod-sub  { font-size: 11px; color: var(--fg3); font-family: var(--mono); }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 22px; background: var(--fg); color: #fff;
  border: none; border-radius: 9px; font-size: 15px; font-weight: 600;
  font-family: var(--font); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s, transform .1s; width: 100%;
}
.btn-primary:hover { background: #2e2822; }
.btn-primary:active { transform: scale(.97); }
.btn-ghost {
  padding: 11px 20px; background: var(--bg-card); color: var(--fg);
  border: 1px solid var(--border-md); border-radius: 9px; font-size: 14px; font-weight: 600;
  font-family: var(--font); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; transition: border-color .15s;
}
.btn-ghost:hover { border-color: var(--fg3); }

/* Center column — agent image + canvas */
.hero-center {
  grid-column: 2; grid-row: 2;
  position: relative; display: flex; align-items: flex-start; justify-content: center;
  min-height: 560px;
}
#hero-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-agent-img {
  position: relative; z-index: 2;
  width: min(100%, 640px); height: 100%; min-height: 560px; border-radius: 22px;
  overflow: visible;
  background: transparent !important;
}
/* Амбер свечение по контуру робота (drop-shadow обводит непрозрачные пиксели PNG)
   Появляется только во время голосового звонка. */
.hero-agent-img img {
  transition: filter 0.5s ease, opacity 0.5s ease;
}
body.voice-call-active .hero-agent-img img {
  filter:
    drop-shadow(0 0 6px  rgba(232,170,98,0.65))
    drop-shadow(0 0 16px rgba(212,137,63,0.50))
    drop-shadow(0 0 32px rgba(193,122,58,0.30));
  animation: heroAgentBreath 4.5s ease-in-out infinite;
  will-change: opacity;
}
/* Speaking — свечение ярче, пульсация чаще */
body.voice-call-active .hero-agent-img.is-speaking img {
  filter:
    drop-shadow(0 0 8px  rgba(255,200,130,0.85))
    drop-shadow(0 0 22px rgba(232,170,98,0.65))
    drop-shadow(0 0 48px rgba(193,122,58,0.40));
  animation: heroAgentBreath 1.2s ease-in-out infinite;
}
@keyframes heroAgentBreath {
  0%, 100% { opacity: 0.92; }
  50%      { opacity: 1; }
}
.hero-agent-btn {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.hero-agent-img img { width: 100%; height: 100%; object-fit: contain; object-position: center 45%; display: block; }
.hero-agent-hit {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.hero-agent-btn:hover .hero-agent-hit {
  box-shadow: 0 0 0 1px rgba(193,122,58,.18), 0 18px 50px rgba(26,22,18,.08);
}
.hero-agent-btn:active .hero-agent-hit { transform: scale(.985); }
.hero-agent-label {
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-glass-soft);
  border: 1px solid rgba(232,170,98,0.55);
  color: var(--fg2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  animation: heroAgentLabelPulse 2.4s ease-in-out infinite;
  will-change: color, border-color, box-shadow;
}
@keyframes heroAgentLabelPulse {
  0%, 100% {
    color: var(--fg2);
    border-color: rgba(232,170,98,0.35);
    box-shadow: 0 0 0 rgba(232,170,98,0);
  }
  50% {
    color: rgb(193,122,58);
    border-color: rgba(232,170,98,0.95);
    box-shadow: 0 0 14px rgba(232,170,98,0.55);
  }
}
body:has(#hero-agent-chat.open) .hero-agent-label {
  animation: none;
}
.hero-agent-label-name { display: none; }
.hero-agent-label-hint { display: inline; }
.hero-agent-chat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(360px, calc(100vw - 24px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.94);
  transform-origin: bottom right;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  z-index: 1200;
}
.hero-agent-chat.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.hero-agent-chat.flash .hero-agent-chat-card {
  animation: chatFlash 1.35s ease 2;
}
.hero-agent-chat.collapsed .hero-agent-chat-body {
  display: none;
}
.hero-agent-chat.collapsed .hero-agent-chat-card {
  width: min(380px, calc(100vw - 20px));
}
@keyframes chatFlash {
  0%, 100% { box-shadow: 0 18px 40px rgba(26,22,18,.10), 0 0 0 1px rgba(212,202,192,.9); }
  50% { box-shadow: 0 18px 40px rgba(26,22,18,.14), 0 0 0 2px rgba(193,122,58,.45); }
}
.hero-agent-chat-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(26,22,18,.10);
  overflow: hidden;
  backdrop-filter: var(--surface-glass-blur);
  position: relative;
}
.hero-agent-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.hero-agent-chat.collapsed .hero-agent-chat-head { border-bottom: 0; }
.hero-agent-chat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.hero-agent-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(193,122,58,0.18)) drop-shadow(0 0 8px rgba(212,137,63,0.12));
}
.hero-agent-chat-avatar svg { width: 100%; height: 100%; display: block; }
.hero-agent-chat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.hero-agent-chat-sub {
  font-size: 11px;
  color: var(--fg3);
  margin-top: 2px;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-agent-chat-sub::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2A7D4F;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(42,125,79,0.55);
  animation: chatStatusPulse 2.2s ease-in-out infinite;
}
@keyframes chatStatusPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(42,125,79,0.55); }
  50%      { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(42,125,79,0); }
}
.hero-agent-chat-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.hero-agent-chat-action {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-muted);
  color: var(--fg2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-agent-chat-action svg { width: 14px; height: 14px; }
.hero-agent-chat-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 420px;
  overflow: hidden;
}
.hero-agent-chat-messages {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  min-height: 0;
}
.hero-agent-chat-msg {
  max-width: 92%;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  color: var(--fg);
}
.hero-agent-chat-msg.user {
  align-self: flex-end;
  background: rgba(193,122,58,.12);
  border-color: rgba(193,122,58,.22);
}
.hero-agent-chat-msg.typing::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: .55;
  vertical-align: -2px;
  animation: chatCaret .8s steps(1) infinite;
}
.hero-agent-chat-msg.waiting {
  min-width: 54px;
}
.hero-agent-chat-msg.waiting::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .22;
  box-shadow: 12px 0 0 rgba(30, 24, 18, .22), 24px 0 0 rgba(30, 24, 18, .22);
  animation: chatDots 1.1s infinite ease-in-out;
}
.hero-agent-chat-msg strong {
  font-weight: 700;
}
.hero-agent-chat-msg p + p,
.hero-agent-chat-msg ul + p,
.hero-agent-chat-msg p + ul,
.hero-agent-chat-msg ul + ul {
  margin-top: 8px;
}
.hero-agent-chat-msg ul {
  margin: 0;
  padding-left: 18px;
}
.hero-agent-chat-msg li + li {
  margin-top: 5px;
}
.hero-agent-chat-note {
  font-size: 11px;
  color: var(--fg3);
}
.hero-agent-chat-composer {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(212,202,192,.8);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
}
@keyframes chatCaret {
  0%, 49% { opacity: .55; }
  50%, 100% { opacity: .08; }
}
@keyframes chatDots {
  0% { box-shadow: 12px 0 0 rgba(30, 24, 18, .14), 24px 0 0 rgba(30, 24, 18, .14); opacity: .35; }
  25% { box-shadow: 12px 0 0 rgba(30, 24, 18, .30), 24px 0 0 rgba(30, 24, 18, .14); opacity: .65; }
  50% { box-shadow: 12px 0 0 rgba(30, 24, 18, .14), 24px 0 0 rgba(30, 24, 18, .30); opacity: .85; }
  75% { box-shadow: 12px 0 0 rgba(30, 24, 18, .30), 24px 0 0 rgba(30, 24, 18, .14); opacity: .65; }
  100% { box-shadow: 12px 0 0 rgba(30, 24, 18, .14), 24px 0 0 rgba(30, 24, 18, .14); opacity: .35; }
}
.hero-agent-chat-form {
  display: grid;
  gap: 10px;
}
.hero-agent-chat-input {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid var(--surface-glass-border);
  background: rgba(255,255,255,.76);
  color: var(--fg);
  padding: 12px 14px;
  font: inherit;
  line-height: 1.5;
  outline: none;
}
.hero-agent-chat-input:focus {
  border-color: rgba(58,107,200,.26);
  box-shadow: 0 0 0 3px rgba(58,107,200,.08);
}
.hero-agent-chat-send {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #1D1812;
  color: #FFF;
  padding: 11px 15px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.hero-agent-chat-send:disabled {
  opacity: .58;
  cursor: wait;
}
.robot-flight-clone {
  position: fixed;
  z-index: 1240;
  pointer-events: none;
  will-change: transform, opacity, filter, border-radius;
}
.robot-flight-clone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hero-agent-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.hero-agent-placeholder svg { width: 80px; height: 80px; opacity: 0.5; }
.hero-agent-placeholder span { font-size: 11px; font-family: var(--mono); opacity: 0.4; }

/* Right column — agent profile */
.hero-right { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; gap: 0; position: relative; background: var(--bg); border-radius: 16px; padding: 4px; }
.agent-profile {
  background: var(--surface-glass); border: 1px solid var(--surface-glass-border); border-radius: 14px;
  overflow: hidden;
}
.ap-section { padding: 14px 16px; }
.ap-section + .ap-section { border-top: 1px solid var(--border); }
.ap-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--fg3); margin-bottom: 10px;
}
.ap-ability-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 8px; }
.ap-ability-row:last-child { margin-bottom: 0; }
.ap-ability-icon {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.ap-ability-icon svg { width: 12px; height: 12px; }
.ap-ability-icon.amber  { background: #FEF0DC; color: var(--accent); }
.ap-ability-icon.blue   { background: #E8EEFF; color: #3A6BC8; }
.ap-ability-icon.green  { background: #E6F5EE; color: var(--success); }
.ap-ability-icon.purple { background: #EDE8FF; color: #6B4FBF; }
.ap-ability-icon.grey   { background: var(--bg-muted); color: var(--fg3); }
.ap-meta-icon.purple { background: #EDE8FF; color: #6B4FBF; }
.ap-ability-text { font-size: 12px; color: var(--fg2); line-height: 1.5; }
.ap-meta-row { display: flex; align-items: center; gap: 10px; }
.ap-meta-icon { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ap-meta-icon svg { width: 13px; height: 13px; }
.ap-meta-icon.green  { background: #E6F5EE; color: var(--success); }
.ap-meta-icon.amber  { background: #FEF0DC; color: var(--accent); }
.ap-meta-label { font-size: 13px; font-weight: 600; color: var(--fg); }
.ap-meta-sub   { font-size: 11px; color: var(--fg3); font-family: var(--mono); margin-top: 1px; }

/* Stats + mini pipeline below center+right */
.hero-bottom {
  grid-column: 1 / -1; grid-row: 3; display: flex; flex-direction: column; gap: 14px;
  align-items: center;
  background: var(--surface-glass); border: 1px solid var(--surface-glass-border);
  border-radius: 16px; padding: 20px 24px;
  margin-top: -170px;
  position: relative; z-index: 2;
}
.hero-stats-row { display: flex; gap: 48px; justify-content: center; }
.h-stat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.h-stat-label { font-size: 12px; color: var(--fg3); text-align: center; }
.h-stat-body { display: flex; align-items: center; gap: 10px; }
.h-stat-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.h-stat-icon.amber  { background: #FEF0DC; color: var(--accent); }
.h-stat-icon.blue   { background: #E8EEFF; color: #3A6BC8; }
.h-stat-icon.green  { background: #E6F5EE; color: var(--success); }
.h-stat-icon svg { width: 16px; height: 16px; }
.h-stat-num   { font-size: 36px; font-weight: 600; letter-spacing: -.03em; color: var(--fg); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-pipeline { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.hp-node {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 14px; background: var(--bg-muted); border: 1px solid var(--border);
  border-radius: 9px; min-width: 90px;
}
.hp-node-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.hp-node-icon svg { width: 14px; height: 14px; }
.hp-node-icon.amber  { background: #FEF0DC; color: var(--accent); }
.hp-node-icon.blue   { background: #E8EEFF; color: #3A6BC8; }
.hp-node-icon.grey   { background: #EDEDE8; color: var(--fg3); }
.hp-node-icon.green  { background: #E6F5EE; color: var(--success); }
.hp-node-label { font-size: 11px; font-family: var(--mono); color: var(--fg2); text-align: center; }
.hp-arrow { color: var(--fg4); font-size: 16px; flex-shrink: 0; }

/* ── SECTION COMMON ───────────────────────────── */
.section-wrap { position: relative; z-index: 1; padding: 96px 48px; max-width: 1200px; margin: 0 auto; }
.section-divider { position: relative; z-index: 2; width: 100%; height: 1px; background: var(--border); max-width: 100%; margin: 0; }
.section-alt { background: transparent; position: relative; z-index: 1; }

/* Let fixed canvas show through — use translucent backgrounds */
#products, #agents, #about, #blog, #contact { position: relative; z-index: 2; background: transparent; }
.section-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-title { font-size: clamp(28px,4vw,42px); font-weight: 600; font-family: var(--font); letter-spacing: -.03em; line-height: 1.1; color: var(--fg); max-width: 640px; text-wrap: balance; }
.section-sub { margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--fg2); max-width: 500px; line-height: 1.65; }
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.hero-left,
.agent-profile,
.hero-bottom,
.how-card,
.product-card,
.agent-card,
.about-text,
.about-stats-card,
.blog-featured,
.blog-card-sm,
.modal-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  backdrop-filter: var(--surface-glass-blur);
  box-shadow: var(--surface-glass-shadow);
}

/* ── HOW IT WORKS ─────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 52px; }
@media(max-width:768px){.how-grid{grid-template-columns:1fr;}}
.how-card {
  border-radius: 18px;
  padding: 32px; position: relative; overflow: hidden;
}
.how-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(79,126,255,.05), transparent 60%);
  pointer-events: none;
}
.how-num { font-size: 48px; font-weight: 900; letter-spacing: -.04em; color: var(--border); margin-bottom: 16px; line-height: 1; }
.how-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.how-icon.amber  { background: #FEF0DC; color: var(--accent); }
.how-icon.blue   { background: #E8EEFF; color: #3A6BC8; }
.how-icon.green  { background: #E6F5EE; color: var(--success); }
.how-icon svg { width: 22px; height: 22px; }
.how-title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--fg); margin-bottom: 8px; }
.how-desc { font-size: 14px; color: var(--fg2); line-height: 1.65; }

/* ── PRODUCTS ─────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 52px; }
@media(max-width:768px){.products-grid{grid-template-columns:1fr;}}
.product-card {
  border-radius: 20px;
  padding: 32px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: 0 8px 32px rgba(26,22,18,.07); transform: translateY(-2px); border-color: var(--border-md); }
.product-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.product-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.product-icon svg { width: 22px; height: 22px; }
.product-icon img {
  width: 38px;
  height: 41px;
  object-fit: contain;
  display: block;
}
.product-icon.amber  { background: #FEF0DC; color: var(--accent); }
.product-icon.blue   { background: #E8EEFF; color: #3A6BC8; }
.product-icon.green  { background: #E6F5EE; color: var(--success); }
.product-icon.purple { background: #EDE8FF; color: #6B4FBF; }
.product-title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--fg); }
.product-sub   { font-size: 11px; font-family: var(--mono); color: var(--fg3); margin-top: 2px; }
.product-desc  { font-size: 14px; color: var(--fg2); line-height: 1.65; margin-bottom: 20px; }
/* Inline mini flow */
.mini-flow { display: flex; align-items: center; gap: 5px; margin-bottom: 20px; flex-wrap: wrap; }
.mf-node { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; font-family: var(--mono); border: 1px solid; white-space: nowrap; }
.mf-t { background: #FEF9EC; border-color: rgba(79,126,255,.3); color: #7A4A1A; }
.mf-a { background: #EDF2FF; border-color: rgba(58,107,200,.25); color: #2A5099; }
.mf-d { background: #F0FBF4; border-color: rgba(42,125,79,.25); color: var(--success); }
.mf-n { background: var(--bg-muted); border-color: var(--border-md); color: var(--fg2); }
.mf-arrow { color: var(--fg4); font-size: 13px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 10px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: 6px; font-size: 11px; font-weight: 500; color: var(--fg3); font-family: var(--mono); }

/* ── AGENTS ───────────────────────────────────── */
.agents-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 52px; }
@media(max-width:900px){.agents-grid{grid-template-columns:1fr;}}
.agent-card { border-radius: 18px; overflow: hidden; }
.agent-card-hdr { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.agent-card-ico { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.agent-card-ico svg { width: 17px; height: 17px; }
.agent-card-ico.amber  { background: #FEF0DC; color: var(--accent); }
.agent-card-ico.blue   { background: #E8EEFF; color: #3A6BC8; }
.agent-card-ico.green  { background: #E6F5EE; color: var(--success); }
.agent-card-ico.purple { background: #EDE8FF; color: #6B4FBF; }
.agent-name { font-size: 14px; font-weight: 700; color: var(--fg); }
.agent-type { font-size: 11px; color: var(--fg3); font-family: var(--mono); }
.agent-body { padding: 22px; }
/* SVG diagram area */
.agent-diagram-svg { width: 100%; height: 130px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* flow steps */
.flow-steps { display: flex; flex-direction: column; gap: 0; }
.fs-row { display: flex; align-items: flex-start; gap: 12px; }
.fs-row:not(:last-child) .fs-left::after { content: ''; display: block; width: 1px; flex: 1; background: var(--border); margin: 3px auto 0; }
.fs-left { display: flex; flex-direction: column; align-items: center; width: 28px; flex-shrink: 0; }
.fs-dot { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fs-dot svg { width: 12px; height: 12px; }
.fs-dot.t { background: #FEF0DC; border-color: rgba(79,126,255,.4); color: var(--accent); }
.fs-dot.a { background: #EDF2FF; border-color: rgba(58,107,200,.3); color: #3A6BC8; }
.fs-dot.d { background: #F0FBF4; border-color: rgba(42,125,79,.3); color: var(--success); }
.fs-dot.n { background: var(--bg-muted); border-color: var(--border-md); color: var(--fg3); }
.fs-dot.ok{ background: #E6F5EE; border-color: rgba(42,125,79,.4); color: var(--success); }
.fs-content { padding: 4px 0 16px; }
.fs-label { font-size: 13px; font-weight: 600; color: var(--fg); }
.fs-detail { font-size: 11px; color: var(--fg3); font-family: var(--mono); margin-top: 1px; }

/* ── ABOUT ─────────────────────────────────────── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; margin-top: 52px; }
@media(max-width:768px){.about-layout{grid-template-columns:1fr;}}
.about-visual { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 100%; }
.about-illustration {
  width: 100%;
  display: block;
  filter: drop-shadow(0 22px 34px rgba(26,22,18,.10));
}
.about-text {
  border-radius: 20px;
  padding: 28px 30px;
}
.about-highlight { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--fg); line-height: 1.4; margin-bottom: 20px; text-wrap: balance; }
.about-text p { font-size: 15px; color: var(--fg2); line-height: 1.75; margin-bottom: 14px; }
.about-quote {
  margin: 24px 0; padding: 20px 24px;
  background: rgba(255,255,255,.58); border: 1px solid var(--surface-glass-border);
  border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0;
  backdrop-filter: var(--surface-glass-blur);
  font-size: 15px; font-style: italic; color: var(--fg2); line-height: 1.65;
}
.about-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.about-pill { padding: 7px 13px; background: rgba(255,255,255,.58); border: 1px solid var(--surface-glass-border); border-radius: 8px; backdrop-filter: var(--surface-glass-blur); font-size: 13px; color: var(--fg2); display: flex; align-items: center; gap: 6px; }
.about-pill svg { width: 13px; height: 13px; color: var(--accent); }
/* Stats visual */
.about-stats-card { border-radius: 20px; overflow: hidden; }
.about-stats-header { padding: 20px 24px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--fg); }
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; }
.asg-cell { padding: 20px 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.asg-cell:nth-child(2n){ border-right: none; }
.asg-cell:nth-last-child(-n+2){ border-bottom: none; }
.asg-num { font-size: 28px; font-weight: 900; letter-spacing: -.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.asg-num.accent { color: var(--accent); }
.asg-lbl { font-size: 12px; color: var(--fg3); margin-top: 2px; }

/* ── HOW TO START (3 steps) ───────────────────── */
.steps-row { display: flex; gap: 0; margin-top: 52px; position: relative; }
.steps-row::before { content: ''; position: absolute; top: 28px; left: 60px; right: 60px; height: 1px; background: var(--border); z-index: 0; }
.step-item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: var(--fg); margin-bottom: 16px; }
.step-num.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-title { font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--fg2); line-height: 1.6; }

/* ── BLOG (horizontal carousel with peek) ───────────────── */
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.blog-head .blog-all-link { padding-bottom: 8px; white-space: nowrap; }

.blog-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 24px 4px 28px;
  margin: 16px -4px 0;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: thin;
  scrollbar-color: var(--border-md) transparent;
  -webkit-overflow-scrolling: touch;
}
.blog-carousel::-webkit-scrollbar { height: 6px; }
.blog-carousel::-webkit-scrollbar-track { background: transparent; }
.blog-carousel::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 3px; }
.blog-carousel::-webkit-scrollbar-thumb:hover { background: var(--fg3); }

.blog-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
  box-shadow: 0 2px 10px rgba(26,22,18,.04);
}
.blog-card:hover {
  box-shadow: 0 14px 36px rgba(26,22,18,.10);
  transform: translateY(-3px);
  border-color: var(--border-md);
}

.blog-card-cover {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background-color: #FEF6EA;
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(193,122,58,.10) 12px 24px);
  display: flex; align-items: center; justify-content: center;
}
.blog-card-cover.blue {
  background-color: #EEF3FF;
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(58,107,200,.10) 12px 24px);
}
.blog-card-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: absolute; inset: 0; z-index: 1;
}
.blog-card-cover-label {
  position: relative;
  z-index: 2;
  padding: 8px 16px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg2);
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
/* When real cover image is loaded, hide the placeholder label */
.blog-card-cover.has-image .blog-card-cover-label { display: none; }

.blog-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
  letter-spacing: -.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--fg2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  font-size: 11.5px;
  color: var(--fg3);
  font-family: var(--mono);
  letter-spacing: .02em;
  margin-top: auto;
  padding-top: 6px;
}

.blog-all-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg2); text-decoration: none; transition: color .15s; }
.blog-all-link:hover { color: var(--accent); }
.blog-all-link svg { width: 14px; height: 14px; }

/* Responsive carousel */
@media(max-width:768px) {
  .blog-card { flex: 0 0 82vw; max-width: 320px; }
  .blog-carousel { gap: 14px; padding: 20px 4px 24px; }
  .blog-card-title { font-size: 16px; }
}

/* ── FAQ ─────────────────────────────────────── */
#faq { position: relative; z-index: 2; background: transparent; }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
.faq-item {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  backdrop-filter: var(--surface-glass-blur);
  box-shadow: var(--surface-glass-shadow);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: var(--border-md); box-shadow: 0 8px 32px rgba(26,22,18,.07); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 24px; background: none; border: none;
  font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--fg);
  text-align: left; cursor: pointer; transition: color .15s;
}
.faq-q:hover { color: var(--accent); }
.faq-q-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg-muted); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg3); transition: background .2s, color .2s, transform .3s var(--ease);
}
.faq-item.open .faq-q-icon { background: var(--accent-bg); color: var(--accent); transform: rotate(45deg); }
.faq-q-icon svg { width: 14px; height: 14px; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .38s var(--ease), padding .28s var(--ease);
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 22px; }
.faq-a-inner { font-size: 14px; color: var(--fg2); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 14px; }

/* ── CONTACT ─────────────────────────────────── */
.contact-card {
  background: var(--fg); border-radius: 24px; padding: 56px;
  position: relative; overflow: hidden; text-align: center; max-width: 680px; margin: 52px auto 0;
}
.contact-card::before {
  content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(79,126,255,.12); pointer-events: none;
}
.contact-card::after {
  content: ''; position: absolute; bottom: -60px; left: -60px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(79,126,255,.07); pointer-events: none;
}
.contact-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.contact-title { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: 12px; }
.contact-sub { font-size: 15px; color: rgba(255,255,255,.55); margin-bottom: 32px; line-height: 1.6; }
.contact-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.contact-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; text-decoration: none; color: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 500; transition: background .15s;
}
.contact-link:hover { background: rgba(255,255,255,.16); }
.contact-link svg { width: 15px; height: 15px; color: var(--accent); }
.btn-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
  font-family: var(--font); cursor: pointer; text-decoration: none;
  transition: background .15s; position: relative; z-index: 1;
}
.btn-contact:hover { background: var(--accent-h); }

/* ── FOOTER ─────────────────────────────────── */
footer {
  position: relative; z-index: 2; border-top: 1px solid var(--surface-glass-border);
  padding: 28px 48px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--fg); display: flex; align-items: center; justify-content: center; }
.footer-mark svg { width: 12px; height: 12px; }
.footer-name { font-size: 14px; font-weight: 700; color: var(--fg2); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--fg3); text-decoration: none; font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: var(--fg2); }
.footer-copy { font-size: 12px; color: var(--fg3); }

/* ── DEMO MODAL ────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.18), transparent 28%),
    rgba(26,22,18,0.42);
  backdrop-filter: blur(16px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(212,202,192,.92);
  border-radius: 24px; padding: 34px 32px 30px;
  width: 100%; max-width: 420px; position: relative;
  backdrop-filter: blur(20px) saturate(1.04);
  box-shadow: 0 24px 56px rgba(26,22,18,.16);
  animation: modalIn .25s var(--ease);
}
@keyframes modalIn { from { opacity:0; transform:translateY(18px) scale(.97); } to { opacity:1; transform:none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 11px;
  background: rgba(247,245,242,.84);
  border: 1px solid rgba(212,202,192,.72); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--fg3);
  transition: background .15s, border-color .15s, color .15s;
  z-index: 2;
}
.modal-close:hover { background: rgba(255,255,255,.92); border-color: rgba(212,202,192,.95); color: var(--fg2); }
.modal-close svg { width: 14px; height: 14px; }
.modal-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 10px;
}
.modal-sub {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.modal-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(247,245,242,.78);
  border: 1px solid rgba(212,202,192,.72);
  margin-bottom: 22px;
}
.modal-agent-badge-dot { width: 8px; height: 8px; border-radius: 50%; }
.modal-agent-badge-text { font-size: 13px; font-weight: 600; color: var(--fg); }
.modal-field { margin-bottom: 16px; }
.modal-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 8px;
  padding-left: 16px;
}
.modal-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(212,202,192,.78);
  border-radius: 18px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--fg);
  background: rgba(255,255,255,.94);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.modal-field input:focus {
  border-color: rgba(193,122,58,.34);
  box-shadow: 0 0 0 3px rgba(193,122,58,.06);
  background: rgba(255,255,255,.98);
}
.modal-actions { margin-top: 6px; }
.modal-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(180deg, #2A241E 0%, #1A1612 100%);
  color: #fff;
  border: none; border-radius: 18px; font-size: 15px; font-weight: 700;
  font-family: var(--font); cursor: pointer;
  box-shadow: 0 14px 28px rgba(26,22,18,.14);
  transition: transform .1s, box-shadow .15s, filter .15s;
}
.modal-submit:hover { filter: brightness(1.04); box-shadow: 0 18px 32px rgba(26,22,18,.16); }
.modal-submit:active { transform: scale(.98); }
.modal-success {
  display: none;
  text-align: center;
  padding: 10px 6px 6px;
}
.modal-success-icon {
  width: 60px; height: 60px; border-radius: 18px; background: rgba(230,245,238,.92);
  border: 1px solid rgba(42,125,79,.12);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  color: var(--success);
}
.modal-success-icon svg { width: 24px; height: 24px; }
.modal-success-title { font-size: 22px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.modal-success-sub { font-size: 14px; color: var(--fg2); line-height: 1.7; }
.modal-error {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: #9E2F2F;
  line-height: 1.5;
  border-radius: 14px;
  background: rgba(158,47,47,.08);
  border: 1px solid rgba(158,47,47,.16);
}

@media(prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ───────────────────────── Voice mode (ElevenLabs ConvAI integration) ───────────────────────── */

/* Handover button — переход из текстового чата в голосовой */
.voice-handover {
  display: none;
  width: 100%;
  padding: 11px 16px;
  margin: 8px 0 10px;
  border: 1px dashed var(--accent);
  background: #F5EBD9;
  color: var(--accent);
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.hero-agent-chat.show-voice-handover .voice-handover { display: flex; }
.voice-handover:hover {
  background: var(--accent);
  color: #fff;
  border-style: solid;
  transform: translateY(-1px);
}
.voice-handover svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  animation: voiceMicPulse 2.4s ease-in-out infinite;
}
@keyframes voiceMicPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

/* Voice overlay — полный takeover чата */
.voice-overlay {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  background: linear-gradient(180deg, #FDF7EE 0%, #FFFFFF 50%, #FAF6F0 100%);
  z-index: 4;
  border-radius: inherit;
  overflow: hidden;
}
.hero-agent-chat.voice-mode .voice-overlay { display: flex; }
.hero-agent-chat.voice-mode .hero-agent-chat-body { visibility: hidden; }

.voice-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 12px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.voice-status {
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  margin-top: 4px;
  margin-bottom: 4px;
  min-height: 26px;
}
.voice-hint {
  font-size: 13px;
  color: var(--fg2);
  margin-bottom: 14px;
  min-height: 18px;
}

/* Orb — живая metaball-плазма */
.voice-orb {
  width: 160px;
  height: 160px;
  position: relative;
  margin: 2px 0 12px;
  pointer-events: none;
}
.voice-orb-halo {
  position: absolute;
  inset: -36px;
  background: radial-gradient(circle at center,
    rgba(212,137,63,0.5) 0%,
    rgba(193,122,58,0.22) 28%,
    rgba(193,122,58,0.08) 55%,
    transparent 78%);
  filter: blur(10px);
  animation: voiceHaloPulse 3.4s ease-in-out infinite;
}
.voice-orb-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: url(#voiceGooFilter);
}
.voice-orb-shine {
  position: absolute;
  top: 22%;
  left: 26%;
  width: 30%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 35%, transparent 65%);
  filter: blur(8px);
  pointer-events: none;
  animation: voiceShinePulse 3.4s ease-in-out infinite;
}

.voice-blob { transform-box: fill-box; transform-origin: center; }
.voice-blob-1 { animation: voiceBlob1 7s ease-in-out infinite; }
.voice-blob-2 { animation: voiceBlob2 9s ease-in-out infinite; }
.voice-blob-3 { animation: voiceBlob3 6s ease-in-out infinite; }
.voice-blob-4 { animation: voiceBlob4 8s ease-in-out infinite; }
.voice-blob-5 { animation: voiceBlob5 5s ease-in-out infinite; }
.voice-blob-6 { animation: voiceBlob6 6.5s ease-in-out infinite; }
.voice-blob-7 { animation: voiceBlob7 7.5s ease-in-out infinite; }
.voice-blob-8 { animation: voiceBlob8 4.5s ease-in-out infinite; }
.voice-blob-9 { animation: voiceBlob9 5.5s ease-in-out infinite; }

@keyframes voiceBlob1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(8px,-6px) scale(1.08)} 66%{transform:translate(-5px,10px) scale(.92)} }
@keyframes voiceBlob2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-10px,8px) scale(.9)} 66%{transform:translate(6px,-4px) scale(1.1)} }
@keyframes voiceBlob3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(7px,12px) scale(1.05)} }
@keyframes voiceBlob4 { 0%,100%{transform:translate(0,0) scale(1)} 40%{transform:translate(-9px,-7px) scale(1.12)} 80%{transform:translate(4px,-3px) scale(.94)} }
@keyframes voiceBlob5 { 0%,100%{transform:translate(0,0) scale(.95)} 50%{transform:translate(0,-8px) scale(1.08)} }
@keyframes voiceBlob6 { 0%,100%{transform:translate(0,0) scale(1)} 30%{transform:translate(11px,5px) scale(1.15)} 70%{transform:translate(-7px,-9px) scale(.85)} }
@keyframes voiceBlob7 { 0%,100%{transform:translate(0,0) scale(.9)} 45%{transform:translate(-12px,4px) scale(1.1)} }
@keyframes voiceBlob8 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(6px,-11px) scale(1.2)} }
@keyframes voiceBlob9 { 0%,100%{transform:translate(0,0) scale(1.05)} 50%{transform:translate(-8px,7px) scale(.88)} }

@keyframes voiceHaloPulse {
  0%,100% { transform: scale(1); opacity: 0.75; }
  50%     { transform: scale(1.1); opacity: 1; }
}
@keyframes voiceShinePulse {
  0%,100% { opacity: 0.85; transform: translate(0,0); }
  50%     { opacity: 1;    transform: translate(2px,-2px); }
}

/* CONNECTING — моргание 1с */
.voice-stage[data-mode="connecting"] .voice-orb { animation: voiceOrbBlink 1s ease-in-out infinite; }
@keyframes voiceOrbBlink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* LISTENING — мягкие волны */
.voice-stage[data-mode="listening"] .voice-orb-halo { animation: voiceHaloPulse 2.2s ease-in-out infinite; }
.voice-stage[data-mode="listening"] .voice-ripples { opacity: 1; }

/* SPEAKING — ускоренный морфинг + яркий halo */
.voice-stage[data-mode="speaking"] .voice-blob-1 { animation-duration: 2.5s; }
.voice-stage[data-mode="speaking"] .voice-blob-2 { animation-duration: 2.8s; }
.voice-stage[data-mode="speaking"] .voice-blob-3 { animation-duration: 2.2s; }
.voice-stage[data-mode="speaking"] .voice-blob-4 { animation-duration: 2.6s; }
.voice-stage[data-mode="speaking"] .voice-blob-5 { animation-duration: 1.8s; }
.voice-stage[data-mode="speaking"] .voice-blob-6 { animation-duration: 2.4s; }
.voice-stage[data-mode="speaking"] .voice-blob-7 { animation-duration: 2.7s; }
.voice-stage[data-mode="speaking"] .voice-blob-8 { animation-duration: 1.6s; }
.voice-stage[data-mode="speaking"] .voice-blob-9 { animation-duration: 2s; }
.voice-stage[data-mode="speaking"] .voice-orb-halo {
  inset: -56px;
  background: radial-gradient(circle at center,
    rgba(232,170,98,0.7) 0%,
    rgba(212,137,63,0.4) 25%,
    rgba(193,122,58,0.15) 50%,
    transparent 78%);
  animation: voiceHaloPulse 0.7s ease-in-out infinite;
}
.voice-stage[data-mode="speaking"] .voice-orb-shine { animation: voiceShinePulse 0.7s ease-in-out infinite; }

/* Мягкие радиальные волны */
.voice-ripples {
  position: absolute;
  inset: -18px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.voice-ripple-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 35%, rgba(212,137,63,0.28) 48%, rgba(212,137,63,0.14) 54%, transparent 62%);
  animation: voiceRippleWave 3s ease-out infinite;
}
.voice-ripple-wave:nth-child(2) { animation-delay: 1.5s; }
@keyframes voiceRippleWave {
  0%   { opacity: 0.7; transform: scale(0.7); }
  100% { opacity: 0;   transform: scale(1.6); }
}

/* Транскрипт — внизу stage. Лейбл фиксирован, текст скроллится отдельно */
.voice-transcript {
  width: 100%;
  max-width: 360px;
  height: 130px;
  padding: 10px 14px 12px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg2);
  text-align: left;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.voice-transcript-label {
  font-size: 9px;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  flex-shrink: 0;
}
.voice-transcript-text {
  color: var(--fg);
  font-size: 12.5px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
  padding-right: 2px;
}
.voice-transcript-text::-webkit-scrollbar { width: 4px; }
.voice-transcript-text::-webkit-scrollbar-track { background: transparent; }
.voice-transcript-text::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }
.voice-transcript.empty .voice-transcript-text { color: var(--fg3); font-style: italic; }

/* Voice controls footer */
.voice-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}
.voice-btn {
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  font-family: inherit;
  border-radius: 50%;
  width: 52px;
  height: 52px;
}
.voice-btn svg { width: 22px; height: 22px; stroke-width: 2; }
.voice-btn-mute { background: #F3EFEA; color: var(--fg); }
.voice-btn-mute:hover { background: #EAE4DC; }
.voice-btn-mute.muted { background: #FFE9E9; color: #C13A3A; }
.voice-btn-mute .icon-off { display: none; }
.voice-btn-mute.muted .icon-on { display: none; }
.voice-btn-mute.muted .icon-off { display: block; }
.voice-btn-end {
  background: #D33A3A;
  color: #fff;
  width: 60px;
  height: 60px;
}
.voice-btn-end svg { width: 26px; height: 26px; }
.voice-btn-end:hover { background: #B82E2E; transform: scale(1.05); }
.voice-btn-back {
  background: transparent;
  color: var(--fg2);
  font-size: 13px;
  width: auto;
  height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  gap: 6px;
  display: inline-flex;
  align-items: center;
}
.voice-btn-back:hover { background: rgba(0,0,0,0.04); color: var(--fg); }
.voice-btn-back svg { width: 16px; height: 16px; }

/* Robot states */
.hero-agent-img.is-listening { animation: robotListening 2.2s ease-in-out infinite; }
.hero-agent-img.is-speaking  { animation: robotSpeaking 0.7s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(212,137,63,0.45)); }
@keyframes robotListening {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.03); }
}
@keyframes robotSpeaking {
  0%,100% { transform: scale(1.02); }
  50%     { transform: scale(1.06); }
}
