:root {
  --navy: #073d75;
  --blue: #0b59a8;
  --blue-2: #1674c7;
  --cyan: #37b9d1;
  --mint: #8cd9cf;
  --ink: #14324f;
  --muted: #66819a;
  --line: #dce9f2;
  --panel: rgba(255,255,255,.88);
  --soft: #f2f8fb;
  --danger: #c84848;
  --success: #1e9b76;
  --shadow: 0 22px 70px rgba(19, 77, 123, .13);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #f7fbfd; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.demo-page { overflow-x: hidden; background: radial-gradient(circle at 86% 10%, rgba(109,207,220,.18), transparent 32%), linear-gradient(145deg,#fbfeff 0%,#eef8fb 100%); }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.ambient-one { width: 420px; height: 420px; right: -170px; top: 28%; background: rgba(85,190,214,.12); }
.ambient-two { width: 330px; height: 330px; left: -190px; bottom: -80px; background: rgba(32,113,183,.08); }

.site-header { height: 98px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.demo-mark { min-width: 54px; height: 34px; padding: 0 11px; border-radius: 11px; display: inline-grid; place-items: center; color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .11em; background: linear-gradient(145deg,var(--blue),var(--cyan)); box-shadow: 0 9px 22px rgba(11,89,168,.18); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.01em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.dashboard-link { display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border: 1px solid rgba(10,77,139,.16); border-radius: 12px; background: rgba(255,255,255,.64); color: var(--navy); font-size: 13px; font-weight: 700; transition: .2s ease; }
.dashboard-link:hover { transform: translateY(-1px); border-color: rgba(10,77,139,.35); background: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.logout-link { padding: 11px 13px; border: 0; border-radius: 12px; color: #70879a; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.logout-link:hover { color: var(--navy); background: rgba(255,255,255,.68); }

.demo-layout { min-height: calc(100vh - 178px); padding: 42px 0 54px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .82fr); gap: clamp(52px, 8vw, 108px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(55,185,209,.12); }
.intro-panel h1 { margin: 21px 0 21px; max-width: 680px; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; letter-spacing: -.052em; color: #123b63; }
.intro-panel h1 em { color: var(--blue-2); font-style: normal; font-weight: 600; }
.lead { max-width: 620px; margin: 0; color: #58758e; font-size: 17px; line-height: 1.7; }
.notice-card { max-width: 620px; margin-top: 28px; padding: 15px 18px; display: flex; gap: 13px; align-items: flex-start; border: 1px solid rgba(22,116,199,.12); border-radius: 15px; background: rgba(255,255,255,.62); }
.notice-card p { margin: 0; color: #607c94; font-size: 12px; line-height: 1.55; }
.notice-icon { flex: 0 0 21px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #dff1f6; color: var(--blue); font-size: 12px; font-weight: 800; }
.question-block { margin-top: 34px; }
.question-title { margin: 0 0 12px; color: #7b91a4; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.question-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 620px; }
.question-card { min-height: 62px; padding: 12px 14px; display: flex; align-items: center; gap: 11px; text-align: left; color: #345a79; background: rgba(255,255,255,.72); border: 1px solid rgba(17,81,137,.11); border-radius: 14px; cursor: pointer; font-size: 12px; line-height: 1.35; transition: .2s ease; }
.question-card:hover { border-color: rgba(22,116,199,.28); background: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30,88,134,.08); }
.question-icon { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: #edf7fa; font-weight: 800; }

.assistant-card { position: relative; overflow: hidden; min-height: 590px; padding: 28px 30px 25px; border: 1px solid rgba(255,255,255,.9); border-radius: 34px; background: linear-gradient(165deg,rgba(255,255,255,.93),rgba(244,251,253,.84)); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.assistant-card::before { content: ""; position: absolute; width: 290px; height: 290px; top: 105px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle,rgba(52,184,211,.2),rgba(52,184,211,0) 68%); }
.assistant-topline { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.connection-state { display: inline-flex; gap: 8px; align-items: center; color: #71889b; font-size: 11px; font-weight: 700; }
.connection-state i { width: 7px; height: 7px; border-radius: 50%; background: #b2c1cb; }
.connection-state.ready i { background: var(--success); box-shadow: 0 0 0 4px rgba(30,155,118,.1); }
.connection-state.error i { background: var(--danger); }
.duration { min-width: 54px; padding: 7px 10px; border-radius: 10px; background: #eff6f9; text-align: center; color: #54738b; font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.voice-stage { position: relative; height: 260px; display: grid; place-items: center; }
.water-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.water-rings span { position: absolute; border: 1px solid rgba(45,171,203,.14); border-radius: 50%; }
.water-rings span:nth-child(1) { width: 218px; height: 218px; }
.water-rings span:nth-child(2) { width: 174px; height: 174px; }
.water-rings span:nth-child(3) { width: 132px; height: 132px; background: rgba(225,246,249,.46); }
.voice-button { position: relative; z-index: 2; width: 102px; height: 102px; display: grid; place-items: center; border: 9px solid rgba(255,255,255,.9); border-radius: 50%; background: linear-gradient(145deg,#1b78bc,#2eb4cb); box-shadow: 0 17px 40px rgba(18,115,171,.25), inset 0 -6px 14px rgba(0,64,112,.17); cursor: pointer; transition: .25s ease; }
.voice-button:disabled { cursor: not-allowed; filter: grayscale(.2); opacity: .72; }
.voice-button:not(:disabled):hover { transform: scale(1.04); box-shadow: 0 21px 48px rgba(18,115,171,.34); }
.mic-symbol { position: relative; width: 23px; height: 32px; border: 3px solid #fff; border-radius: 13px; }
.mic-symbol::before { content: ""; position: absolute; width: 33px; height: 24px; left: 50%; bottom: -11px; transform: translateX(-50%); border: 3px solid #fff; border-top: 0; border-radius: 0 0 18px 18px; }
.mic-symbol::after { content: ""; position: absolute; width: 3px; height: 9px; left: 50%; bottom: -18px; transform: translateX(-50%); background: #fff; border-radius: 3px; box-shadow: -7px 8px 0 -1px #fff, 7px 8px 0 -1px #fff; }
.assistant-copy { position: relative; z-index: 2; text-align: center; }
.status-kicker { margin: 0 0 9px; color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.assistant-copy h2 { margin: 0; color: #174a72; font-size: 21px; letter-spacing: -.02em; }
.assistant-copy > p:last-child { max-width: 340px; margin: 12px auto 0; color: #73899b; font-size: 12px; line-height: 1.55; }
.level-bars { position: relative; z-index: 2; height: 30px; margin: 20px auto 12px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.level-bars i { width: 3px; height: 5px; border-radius: 3px; background: #a9dbe4; }
.level-bars i:nth-child(2),.level-bars i:nth-child(8){height:9px}.level-bars i:nth-child(3),.level-bars i:nth-child(7){height:14px}.level-bars i:nth-child(4),.level-bars i:nth-child(6){height:20px}.level-bars i:nth-child(5){height:27px}
.level-bars.active i { animation: level .85s ease-in-out infinite alternate; }
.level-bars.active i:nth-child(2n) { animation-delay: -.4s; }
@keyframes level { to { height: 5px; opacity: .45; } }
.transcript-toggle { display: block; margin: 0 auto; padding: 8px 12px; color: #66849b; background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.transcript-toggle:disabled { opacity: .45; cursor: not-allowed; }
.transcript-panel { position: absolute; z-index: 5; inset: auto 18px 18px; max-height: 220px; padding: 15px; overflow: auto; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.97); box-shadow: 0 15px 50px rgba(25,74,111,.16); }
.transcript-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; }
.transcript-head button { border: 0; background: none; color: var(--blue); cursor: pointer; font-size: 11px; }
#transcriptContent { color: #58748b; font-size: 12px; line-height: 1.55; }
.site-footer { min-height: 80px; padding: 20px 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8da0af; font-size: 10px; }

.dashboard-page { background: #f2f7fa; }
.dashboard-header { height: 82px; padding: 0 max(26px,calc((100vw - 1320px)/2)); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #e5eef3; }
.dashboard-actions { display: flex; gap: 8px; }
.ghost-button,.refresh-button { padding: 10px 14px; border: 1px solid #d9e6ee; border-radius: 11px; color: var(--navy); background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.dashboard-shell { width: min(1320px,calc(100% - 52px)); margin: 0 auto; padding: 42px 0 70px; }
.login-card { width: min(570px,100%); margin: 8vh auto 0; padding: 38px; border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
.login-card h1 { margin: 15px 0 10px; color: var(--navy); font-size: 31px; letter-spacing: -.03em; }
.login-card > p { margin: 0 0 27px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-card label { display: block; margin-bottom: 8px; color: #506d84; font-size: 11px; font-weight: 800; }
.password-row { display: flex; gap: 9px; }
.password-row input { min-width: 0; flex: 1; padding: 12px 13px; border: 1px solid #d7e4ec; border-radius: 11px; outline: none; }
.password-row input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(22,116,199,.1); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 17px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(145deg,var(--blue),var(--blue-2)); cursor: pointer; font-size: 12px; font-weight: 800; }
.form-error { min-height: 18px; margin: 10px 0 0 !important; color: var(--danger) !important; font-size: 11px !important; }
.dashboard-title-row { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.dashboard-title-row h1 { margin: 13px 0 7px; color: var(--navy); font-size: 34px; letter-spacing: -.04em; }
.dashboard-title-row p { margin: 0; color: var(--muted); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 15px; }
.metric-card,.dashboard-panel { border: 1px solid #e0eaf0; background: #fff; border-radius: 18px; box-shadow: 0 8px 28px rgba(29,80,118,.045); }
.metric-card { padding: 21px 22px; }
.metric-card span,.metric-card small { display: block; color: #7990a1; font-size: 10px; }
.metric-card span { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.metric-card strong { display: block; margin: 12px 0 7px; color: #174d78; font-size: 30px; letter-spacing: -.04em; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 15px; margin-bottom: 15px; }
.dashboard-panel { padding: 23px; }
.panel-heading { min-height: 44px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-heading span { color: #8aa0b0; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.panel-heading h2 { margin: 6px 0 0; color: #244e6e; font-size: 17px; }
.topic-list { margin-top: 19px; display: grid; gap: 12px; }
.topic-row { display: grid; grid-template-columns: 100px 1fr 28px; gap: 10px; align-items: center; color: #557289; font-size: 11px; }
.topic-row b { text-align: right; color: #365d7a; font-size: 11px; }
.topic-track { height: 7px; border-radius: 9px; overflow: hidden; background: #edf3f6; }
.topic-track i { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg,var(--blue-2),var(--cyan)); }
.webhook-state { margin-top: 21px; padding: 16px; display: flex; gap: 12px; background: #f4f9fb; border-radius: 14px; }
.webhook-state > i { flex: 0 0 9px; width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; background: #a4b4bf; }
.webhook-state > i.ok { background: var(--success); box-shadow: 0 0 0 5px rgba(30,155,118,.09); }
.webhook-state strong { color: #365d78; font-size: 12px; }
.webhook-state p { margin: 5px 0 0; color: #7a8f9f; font-size: 10px; line-height: 1.45; }
.tool-list { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.tool-chip,.dialog-tools span { padding: 6px 9px; border-radius: 9px; color: #3f6f8d; background: #edf6f8; font-size: 9px; font-weight: 700; }
.calls-panel { padding-bottom: 10px; }
.last-update { text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; }
.table-wrap { margin: 15px -10px 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th,td { padding: 13px 12px; text-align: left; border-top: 1px solid #edf2f5; font-size: 11px; }
th { color: #879ba9; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
td { color: #536f84; }
.status-pill { padding: 5px 8px; display: inline-block; border-radius: 8px; color: #387965; background: #eaf7f2; font-size: 9px; font-weight: 800; }
.status-pill.failed { color: #a84d4d; background: #fbeeee; }
.detail-button { border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 10px; font-weight: 800; }
.empty-state { padding: 48px 20px 55px; text-align: center; }
.empty-state strong { color: #58758b; font-size: 14px; }
.empty-state p { margin: 7px 0 0; color: #96a6b1; font-size: 11px; }
.call-dialog { width: min(820px,calc(100% - 32px)); max-height: 88vh; padding: 0; border: 0; border-radius: 24px; color: var(--ink); box-shadow: 0 30px 100px rgba(14,53,83,.28); }
.call-dialog::backdrop { background: rgba(8,35,57,.55); backdrop-filter: blur(4px); }
.dialog-head { padding: 22px 24px; display: flex; justify-content: space-between; border-bottom: 1px solid #e8eff3; }
.dialog-head span { color: #91a2ae; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dialog-head h2 { margin: 5px 0 0; color: var(--navy); font-size: 19px; }
.dialog-head button { border: 0; background: none; color: #7991a3; cursor: pointer; font-size: 28px; }
.dialog-meta { padding: 15px 24px; display: flex; flex-wrap: wrap; gap: 8px; background: #f6f9fb; }
.dialog-meta span { font-size: 10px; color: #5f7a8e; }
.call-dialog section { padding: 18px 24px; border-top: 1px solid #eef3f6; }
.call-dialog h3 { margin: 0 0 10px; color: #54728a; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.call-dialog p { color: #526e83; font-size: 12px; line-height: 1.65; }
.dialog-transcript { max-height: 270px; overflow: auto; display: grid; gap: 9px; }
.transcript-line { padding: 9px 11px; border-radius: 11px; background: #f4f8fa; color: #567286; font-size: 11px; line-height: 1.55; }
.transcript-line.agent { background: #eaf5f8; }
.transcript-line b { margin-right: 5px; color: #275e82; }
.dialog-tools { display: flex; flex-wrap: wrap; gap: 7px; }

.error-page { display: grid; place-items: center; background: #f3f9fb; }
.error-page main { width: min(440px,calc(100% - 40px)); padding: 45px; text-align: center; background: #fff; border-radius: 24px; box-shadow: var(--shadow); }
.error-page .demo-mark { margin: 0 auto; }
.error-page h1 { color: var(--navy); }
.error-page p { color: var(--muted); margin-bottom: 24px; }

.login-page { min-height: 100vh; padding: 30px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 85% 12%,rgba(84,194,213,.2),transparent 33%),linear-gradient(145deg,#fbfeff,#edf7fa); }
.login-ambient { position: fixed; border-radius: 50%; pointer-events: none; }
.login-ambient-one { width: 390px; height: 390px; right: -170px; bottom: -140px; background: rgba(39,144,195,.1); }
.login-ambient-two { width: 260px; height: 260px; left: -110px; top: -100px; background: rgba(81,198,210,.09); }
.demo-login-card { position: relative; z-index: 2; width: min(470px,100%); padding: 39px; border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.login-brand { margin-bottom: 31px; display: flex; align-items: center; gap: 12px; }
.login-brand strong,.login-brand small { display: block; }
.login-brand strong { color: var(--navy); font-size: 16px; }
.login-brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.demo-login-card h1 { margin: 16px 0 9px; color: var(--navy); font-size: 30px; letter-spacing: -.035em; }
.demo-login-card > p { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.demo-login-card form { display: grid; }
.demo-login-card label { margin: 0 0 7px; color: #526f85; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.demo-login-card input { width: 100%; margin-bottom: 15px; padding: 12px 13px; border: 1px solid #d6e4eb; border-radius: 11px; outline: none; color: var(--ink); background: #fbfdfe; }
.demo-login-card input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(22,116,199,.1); background: #fff; }
.demo-login-card .primary-button { margin-top: 3px; min-height: 43px; }
.demo-login-card .primary-button:disabled { opacity: .65; cursor: wait; }
.login-note { margin-top: 22px; padding: 12px; display: flex; gap: 10px; border-radius: 12px; background: #f2f8fa; }
.login-note > span { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: #dff1f5; font-size: 10px; font-weight: 800; }
.login-note p { margin: 0; color: #748a9a; font-size: 10px; line-height: 1.5; }

@media (max-width: 960px) {
  .demo-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .intro-panel { text-align: center; }
  .lead,.notice-card,.question-grid { margin-left: auto; margin-right: auto; }
  .eyebrow { justify-content: center; }
  .assistant-card { width: min(520px,100%); margin: 0 auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 28px,1180px); }
  .site-header { height: 78px; }
  .demo-mark { min-width: 49px; height: 31px; }
  .dashboard-link span:first-child { display: none; }
  .demo-layout { gap: 35px; padding-bottom: 30px; }
  .intro-panel h1 { font-size: 39px; }
  .lead { font-size: 15px; }
  .question-grid { grid-template-columns: 1fr; }
  .assistant-card { min-height: 550px; padding: 23px 19px; border-radius: 26px; }
  .site-footer { text-align: center; display: block; }
  .dashboard-header { padding: 0 16px; }
  .dashboard-shell { width: min(100% - 24px,1320px); padding-top: 25px; }
  .dashboard-title-row { align-items: flex-start; }
  .dashboard-title-row h1 { font-size: 28px; }
  .metric-grid { grid-template-columns: 1fr; }
  .login-card { padding: 25px; }
  .password-row { display: grid; }
}
