@import url("../tokens.css?v=20261006-round-6");
/* ===== Interactive demo sections ===== */
.demo-section { background: var(--cream-deep); }
.demo-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--pine);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.demo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.demo-head .ic {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--terra); color: var(--cream); border-radius: 50%; font-size: 17px;
}
.demo-head h3 { font-family: var(--display); font-size: 22px; color: var(--cream); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.demo-sub { font-size: 14px; color: var(--demo-color-32); margin: 0 0 18px; }
.demo-audio-tip {
  display: flex; align-items: center; gap: 8px;
  background: var(--demo-color-15); border: 1px solid var(--demo-color-16);
  border-radius: 10px; padding: 9px 13px; margin-bottom: 18px; font-size: 12.5px; color: var(--saffron);
}
.demo-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.demo-picker button {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 17px 6px; background: var(--demo-color-20);
  border: 1px solid var(--demo-color-25); border-radius: 13px; cursor: pointer;
  transition: transform .15s, background .15s; color: var(--cream); font-size: 15px; font-weight: 600; font-family: inherit;
}
.demo-picker button:hover { transform: translateY(-3px); background: var(--demo-color-23); }
.demo-picker .emo { font-size: 25px; }
.demo-screen { display: none; background: var(--pine-ink); border: 1px solid var(--demo-color-24); border-radius: 14px; overflow: hidden; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: var(--demo-color-0); border-bottom: 1px solid var(--demo-color-21); }
.demo-bar .left { display: flex; align-items: center; gap: 10px; }
.demo-bar .av { display: grid; place-items: center; width: 32px; height: 32px; background: var(--teal); color: var(--cream); border-radius: 50%; font-size: 15px; }
.demo-bar .nm { font-size: 14px; color: var(--cream); font-weight: 600; }
.demo-bar .st { font-size: 11px; color: var(--demo-color-3); display: flex; align-items: center; gap: 5px; }
.demo-bar .st .d { width: 7px; height: 7px; background: var(--demo-color-3); border-radius: 50%; display: inline-block; animation: dblink 1.2s infinite; }
.demo-bar .tm { font-family: var(--mono); font-size: 13px; color: var(--demo-color-30); }
.demo-body { padding: 17px; min-height: 300px; display: flex; flex-direction: column; gap: 11px; }
.demo-row { display: flex; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.demo-row.show { opacity: 1; transform: none; }
.demo-row.ai { justify-content: flex-start; }
.demo-row.cust { justify-content: flex-end; }
.demo-bub { max-width: 80%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.46; }
.demo-row.ai .demo-bub { background: var(--teal); color: var(--cream); border-bottom-left-radius: 4px; }
.demo-row.cust .demo-bub { background: var(--cream); color: var(--ink); border-bottom-right-radius: 4px; }
.demo-bub .who { font-size: 10px; display: block; margin-bottom: 3px; }
.demo-row.ai .who { color: var(--demo-color-3); }
.demo-row.cust .who { color: var(--demo-color-2); }
.demo-bub.speaking { box-shadow: 0 0 0 2px var(--saffron); }
.demo-typing { display: flex; justify-content: flex-start; }
.demo-typing .box { background: var(--teal); padding: 12px 15px; border-radius: 14px; border-bottom-left-radius: 4px; }
.demo-typing .dot { display: inline-block; width: 6px; height: 6px; background: var(--demo-color-3); border-radius: 50%; margin: 0 2px; animation: dblink 1s infinite; }
.demo-typing .dot:nth-child(2) { animation-delay: .2s; }
.demo-typing .dot:nth-child(3) { animation-delay: .4s; }
.demo-ticket { display: none; margin: 0 17px 17px; padding: 15px; background: var(--cream); border-radius: 10px; }
.demo-ticket .tt { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.demo-ticket .tt span:first-child { font-size: 13px; color: var(--muted); }
.demo-ticket .tt .badge { font-size: 11px; color: var(--pine); background: var(--demo-color-9); padding: 3px 9px; border-radius: 999px; }
.demo-ticket .lines { font-size: 13px; color: var(--ink); }
.demo-ticket .lines div { padding: 2px 0; }
.demo-reset { display: none; width: 100%; margin-top: 15px; padding: 13px; background: var(--terra); color: var(--cream); border: 0; border-radius: 11px; font-size: 14px; font-family: inherit; cursor: pointer; }
.demo-reset:hover { background: var(--terra-deep); }
.demo-note { font-size: 11px; color: var(--demo-color-28); margin: 13px 0 0; text-align: center; }

.demo-radius-row { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; flex-wrap: wrap; }
.demo-radius-row label { font-size: 13px; color: var(--demo-color-32); }
.demo-radius-row input[type=range] { flex: 1; min-width: 150px; accent-color: var(--saffron); }
.demo-radius-row .out { font-family: var(--mono); font-size: 14px; color: var(--saffron); min-width: 96px; }
.demo-map { position: relative; width: 100%; background: var(--pine-ink); border: 1px solid var(--demo-color-22); border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; max-height: 520px; margin: 0 auto; }
.demo-map svg { width: 100%; height: 100%; display: block; }
.demo-livebar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; padding:12px 14px; border-radius:12px; background:var(--demo-color-17); border:1px solid var(--demo-color-18); }
.demo-livebar .phase { display:flex; align-items:center; gap:9px; color:var(--cream); font-size:13px; font-weight:600; }
.demo-livebar .phase::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--terra); box-shadow:0 0 0 6px var(--demo-color-11); animation:dblink 1.2s infinite; }
.demo-livebar .conversion { font-family:var(--mono); color:var(--saffron); font-size:12px; }
.demo-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin-top: 16px; }
.demo-stat { background: var(--demo-color-20); border-radius: 11px; padding: 13px; text-align: center; }
.demo-stat .n { font-family: var(--display); font-size: 24px; font-weight: 500; }
.demo-stat .l { font-size: 11px; color: var(--demo-color-31); margin-top: 3px; }
.demo-run { width: 100%; margin-top: 16px; padding: 14px; background: var(--terra); color: var(--cream); border: 0; border-radius: 11px; font-size: 15px; font-family: inherit; cursor: pointer; }
.demo-run:hover { background: var(--terra-deep); }
.demo-result { display:none; margin-top:12px; padding:14px 16px; border-radius:12px; background:var(--demo-color-12); border:1px solid var(--demo-color-13); color:var(--cream); font-size:13px; line-height:1.55; text-align:center; }
.demo-result strong { color:var(--saffron); }
.demo-result a { display:inline-block; margin-left:8px; color:var(--cream); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
@keyframes dblink { 0%,100% { opacity: .3 } 50% { opacity: 1 } }

@media (max-width: 680px) {
  .demo-wrap { padding: 20px; }
  .demo-picker { grid-template-columns: 1fr; }
  .demo-stats { grid-template-columns:1fr 1fr; }
  .demo-livebar { align-items:flex-start; flex-direction:column; }
}


#main-en .hero-content, #main-zh .hero-content { animation: none !important; opacity: 1 !important; transform: none !important; }


