/* =============================================
   AIploy — Dark Brutalist Landing Page
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --bg-2: #111111;
  --bg-3: #191919;
  --fg: #F0F0F0;
  --fg-2: #999999;
  --accent: #F59E0B;
  --accent-2: #D97706;
  --border: #2a2a2a;
  --border-bright: #444444;
  --success: #22C55E;
  --danger: #EF4444;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 0px;
  --gap: 2rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-mark {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 6px;
  letter-spacing: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-2);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  position: relative;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.04) 0%, transparent 60%),
    linear-gradient(rgba(8,8,8,0) 50%, transparent 100%);
}

/* Dot grid overlay */
.hero::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  margin-bottom: 1.5rem;
}

.label-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.0;
}

.headline-accent {
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-2);
  max-width: 440px;
  margin-bottom: 2rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border-bright);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-2);
}

.pill-icon {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* Hero Right - Cards */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Call card */
.call-card {
  border: 1px solid var(--border);
  padding: 1.2rem;
  background: var(--bg-2);
  position: relative;
}

.call-card--1 {
  border-left: 3px solid var(--accent);
}

.call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.call-from {
  color: var(--fg);
  font-weight: 500;
}

.call-time {
  color: var(--fg-2);
}

.call-transcript {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.transcript-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0;
  line-height: 1.5;
}

.transcript-line--ai {
  background: rgba(245, 158, 11, 0.08);
  color: var(--fg-2);
  border-left: 2px solid rgba(245, 158, 11, 0.3);
}

.call-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.call-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 8px;
  letter-spacing: 0.1em;
}

.call-status--connected {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.call-duration {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
}

/* Agent stats card */
.agent-stats-card {
  border: 1px solid var(--border);
  padding: 1.2rem;
  background: var(--bg-2);
}

.stats-row {
  margin-bottom: 0.8rem;
}

.stats-row--sm {
  display: flex;
  gap: 2rem;
  margin-bottom: 0;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-2);
  letter-spacing: 0.1em;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-unit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
  display: block;
  margin-top: 0.2rem;
}

.stat-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-mini-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.stat-mini-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Dashboard mini */
.dashboard-mini {
  border: 1px solid var(--border);
  padding: 1.2rem;
  background: var(--bg-2);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.dash-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-2);
  letter-spacing: 0.1em;
}

.dash-live {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
}

.dash-workers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.worker-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.worker-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 4px var(--success);
}

.worker-name {
  color: var(--fg);
  font-weight: 500;
}

.worker-state {
  color: var(--fg-2);
  font-size: 0.65rem;
}

/* --- Section Header --- */
.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

/* --- Employees Section --- */
.employees {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.employee-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: background 0.2s;
}

.employee-card:last-child {
  border-right: none;
}

.employee-card:hover {
  background: var(--bg-2);
}

.employee-card--featured {
  background: rgba(245, 158, 11, 0.03);
  border-left: 2px solid var(--accent);
}

.emp-card-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.emp-icon svg {
  display: block;
}

.emp-role {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.role-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  opacity: 0.6;
}

.role-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-2);
  letter-spacing: 0.1em;
}

.emp-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.emp-desc {
  font-size: 0.88rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.emp-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.emp-features li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-2);
  padding-left: 1.2rem;
  position: relative;
}

.emp-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.emp-stat {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.emp-stat-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.emp-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-2);
  display: block;
  margin-top: 0.25rem;
}

/* --- Manifesto --- */
.manifesto {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.manifesto-body {
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 620px;
}

/* Cost grid */
.cost-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
}

.cost-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
}

.cost-card:last-child {
  border-right: none;
}

.cost-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  display: block;
  margin-bottom: 1rem;
}

.cost-stat {
  margin-bottom: 2rem;
}

.cost-val {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.cost-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-2);
  margin-left: 0.4rem;
}

.cost-pros {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cost-pros li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding-left: 1.5rem;
  position: relative;
}

.cost-pro {
  color: var(--success);
}

.cost-pro::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
}

.cost-con {
  color: var(--danger);
}

.cost-con::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--danger);
}

/* --- Closing --- */
.closing {
  padding: 8rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.closing-inner {
  max-width: 700px;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.closing-sub {
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.closing-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.4rem 0.9rem;
  letter-spacing: 0.05em;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-2);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
  opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-right {
    display: none;
  }

  .employee-grid {
    grid-template-columns: 1fr;
  }

  .employee-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cost-grid {
    grid-template-columns: 1fr;
  }

  .cost-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 1rem 3rem;
  }

  .employees, .manifesto, .closing {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-inner {
    padding: 0.8rem 1rem;
  }
}

/* --- Demo Section --- */
.demo-section {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.demo-inner {
  max-width: 760px;
  margin: 0 auto;
}

.demo-header {
  margin-bottom: 2.5rem;
}

.demo-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-2);
  margin-top: 1rem;
}

.demo-widget {
  border: 1px solid var(--border-bright);
  background: var(--bg-2);
}

/* Controls bar */
.demo-controls {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.demo-control-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.demo-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.demo-control-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-2);
  letter-spacing: 0.1em;
}

.demo-biz-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.demo-biz-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-2);
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.demo-biz-btn:hover {
  border-color: var(--border-bright);
  color: var(--fg);
}

.demo-biz-btn--active {
  border-color: var(--accent);
  color: var(--accent);
}

/* Chat area */
.demo-chat {
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-msg {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 88%;
}

.demo-msg--user {
  align-self: flex-end;
  align-items: flex-end;
}

.demo-msg--ai {
  align-self: flex-start;
}

.demo-msg-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg-2);
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.demo-msg-bubble {
  padding: 0.65rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
}

.demo-msg--ai .demo-msg-bubble {
  background: rgba(245, 158, 11, 0.07);
  border-left: 2px solid rgba(245, 158, 11, 0.4);
  color: var(--fg);
}

.demo-msg--user .demo-msg-bubble {
  background: var(--bg-3);
  border-right: 2px solid var(--border-bright);
  color: var(--fg);
}

/* Typing indicator */
.demo-typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 1rem;
}

.demo-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: demo-blink 1.2s infinite;
}

.demo-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes demo-blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 0.9; }
}

/* Starter prompts */
.demo-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.25rem 1rem;
}

.demo-starter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-2);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.demo-starter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Input row */
.demo-input-row {
  display: flex;
  border-top: 1px solid var(--border);
}

.demo-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg);
}

.demo-input::placeholder {
  color: var(--fg-2);
  opacity: 0.5;
}

.demo-send-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0 1.5rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s;
}

.demo-send-btn:hover {
  background: var(--accent-2);
}

.demo-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Upsell card */
.demo-upsell {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  background: rgba(245, 158, 11, 0.04);
}

.demo-upsell-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.demo-upsell-text {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.demo-upsell-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #000;
  background: var(--accent);
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}

.demo-upsell-cta:hover {
  background: var(--accent-2);
}

/* Controls row (biz selector + voice toggle) */
.demo-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Voice toggle */
.demo-voice-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.demo-voice-icon {
  font-size: 1rem;
}

.demo-voice-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-2);
  letter-spacing: 0.1em;
}

.demo-voice-pills {
  display: flex;
  border: 1px solid var(--border);
}

.demo-mode-btn {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  background: transparent;
  border: none;
  color: var(--fg-2);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.15s, color 0.15s;
}

.demo-mode-btn:hover {
  color: var(--fg);
}

.demo-mode-btn--active {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

/* Replay button */
.demo-replay-row {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
}

.demo-replay-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: border-color 0.15s, background 0.15s;
}

.demo-replay-btn:hover {
  background: rgba(245, 158, 11, 0.07);
  border-color: var(--accent);
}

/* Demo responsive */
@media (max-width: 600px) {
  .demo-section {
    padding: 4rem 1rem;
  }

  .demo-biz-selector {
    gap: 0.3rem;
  }

  .demo-biz-btn {
    font-size: 0.67rem;
    padding: 0.25rem 0.5rem;
  }

  .demo-chat {
    max-height: 280px;
  }

  .demo-msg {
    max-width: 96%;
  }

  .demo-controls-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Voice Call UI ──────────────────────────────────────────────────────── */

.demo-voice-ui {
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.demo-voice-transcript {
  width: 100%;
  max-height: 120px;
  overflow-y: auto;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #c8d0e0;
}

.demo-voice-transcript-msg {
  margin-bottom: 6px;
}

.demo-voice-transcript-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #f0a500;
  text-transform: uppercase;
  margin-right: 4px;
}

.demo-voice-mic-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.demo-voice-mic-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0a500, #e05a00);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(240,165,0,0.3);
}

.demo-voice-mic-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(240,165,0,0.45);
}

.demo-voice-mic-btn--listening {
  animation: demo-voice-pulse 1.2s ease-in-out infinite;
}

@keyframes demo-voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,165,0,0.5); }
  50% { box-shadow: 0 0 0 14px rgba(240,165,0,0); }
}

.demo-voice-mic-icon {
  font-size: 24px;
  line-height: 1;
}

.demo-voice-mic-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}

.demo-voice-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8899b0;
}

.demo-voice-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0a500;
  animation: demo-voice-blink 0.8s ease-in-out infinite;
}

@keyframes demo-voice-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.demo-voice-actions {
  display: flex;
  justify-content: center;
}

.demo-voice-hangup-btn {
  background: rgba(220, 60, 60, 0.15);
  border: 1.5px solid rgba(220,60,60,0.5);
  color: #e05555;
  border-radius: 24px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s;
}

.demo-voice-hangup-btn:hover {
  background: rgba(220, 60, 60, 0.25);
}

/* Replay row spacing in voice UI */
#demo-voice-ui .demo-replay-row {
  padding: 0;
}

#demo-voice-ui .demo-replay-btn {
  background: rgba(240,165,0,0.12);
  border: 1.5px solid rgba(240,165,0,0.4);
  color: #f0a500;
}