:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: rgba(15, 22, 34, 0.82);
  --panel-strong: #101824;
  --line: rgba(255, 255, 255, 0.09);
  --muted: #8f9bad;
  --text: #f6f8fb;
  --cyan: #54e1d2;
  --blue: #5a7cff;
  --green: #75e7a6;
  --danger: #ff7a8c;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 48% -10%, rgba(65, 101, 214, 0.16), transparent 34%),
    linear-gradient(180deg, #090e17 0%, var(--bg) 42%, #090d15 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.page-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}

.page-glow-one { top: 180px; right: -180px; background: var(--cyan); }
.page-glow-two { top: 650px; left: -220px; background: var(--blue); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(84, 225, 210, 0.45);
  border-radius: 11px;
  background: rgba(84, 225, 210, 0.08);
}

.brand-mark span { width: 3px; border-radius: 4px; background: var(--cyan); }
.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 11px; }

.demo-pill, .local-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: #bac4d2;
  background: rgba(255,255,255,0.025);
  font-size: 12px;
  font-weight: 650;
}

.demo-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  gap: 90px;
  align-items: center;
  min-height: 670px;
  padding: 75px 0;
}

.eyebrow, .card-kicker {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  margin: 20px 0 22px;
  font-size: clamp(50px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-subtitle { margin: 0 0 16px; color: #dce5ef; font-size: 21px; font-weight: 620; }

.hero-description {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #64ead9, #43bfc3);
  box-shadow: 0 14px 38px rgba(84, 225, 210, 0.18);
  color: #061114;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(84, 225, 210, 0.28); }
.primary-button:disabled { cursor: not-allowed; opacity: 0.48; }
.button-icon { font-size: 24px; line-height: 0; transform: rotate(-20deg); }

.status-inline { display: flex; align-items: center; gap: 9px; color: #aeb9c7; font-size: 13px; }
.demo-ended { margin-top: 10px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #788496; }
.status-dot[data-mode="busy"] { background: #f6c76b; box-shadow: 0 0 12px #f6c76b; animation: blink 1.3s infinite; }
.status-dot[data-mode="success"] { background: var(--green); box-shadow: 0 0 12px var(--green); }
.status-dot[data-mode="error"] { background: var(--danger); }

.privacy-note { margin: 18px 0 0; color: #667286; font-size: 12px; }

.call-card {
  position: relative;
  overflow: hidden;
  min-height: 490px;
  padding: 27px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(22, 33, 49, 0.92), rgba(11, 17, 27, 0.96));
  box-shadow: var(--shadow);
}

.call-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(84, 225, 210, 0.1), transparent 34%);
  content: "";
  pointer-events: none;
}

.call-card-top, .agent-profile, .outcome-main, .panel-heading { display: flex; align-items: center; }
.call-card-top, .outcome-main, .panel-heading { justify-content: space-between; }
.agent-profile { gap: 12px; }
.agent-profile strong, .agent-profile span { display: block; }
.agent-profile strong { font-size: 13px; letter-spacing: 0.1em; }
.agent-profile span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(84,225,210,.28); border-radius: 13px; background: linear-gradient(145deg, rgba(84,225,210,.24), rgba(90,124,255,.13)); color: #bffaf2; font-weight: 800; }
.live-badge { display: flex; align-items: center; gap: 7px; color: #8591a2; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.call-card:not([data-state="idle"]) .live-badge { color: var(--green); }

.call-visual { display: grid; place-items: center; height: 205px; }
.orb { position: relative; display: grid; place-items: center; width: 88px; height: 88px; }
.orb-core { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #bafff6 0%, #59decf 21%, #3971c9 56%, #15243e 100%); box-shadow: 0 0 48px rgba(84,225,210,.32), inset -11px -15px 24px rgba(0,0,0,.3); }
.orb-ring { position: absolute; inset: 0; border: 1px solid rgba(84,225,210,.2); border-radius: 50%; }
.orb-ring-two { inset: -22px; opacity: .5; }
.call-card[data-state="speaking"] .orb-core, .call-card[data-state="listening"] .orb-core { animation: orbPulse 1.4s ease-in-out infinite; }
.call-card[data-state="speaking"] .orb-ring { animation: ringPulse 1.6s ease-out infinite; }

.call-state { position: relative; text-align: center; color: #d5dde7; font-size: 13px; font-weight: 650; }
.timer { position: relative; margin-top: 8px; color: #737f91; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.waveform { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; height: 48px; margin: 10px 0 18px; }
.waveform i { width: 3px; height: 6px; border-radius: 3px; background: rgba(84,225,210,.45); }
.call-card[data-state="speaking"] .waveform i, .call-card[data-state="listening"] .waveform i { animation: wave 900ms ease-in-out infinite alternate; }
.waveform i:nth-child(2n) { animation-delay: -300ms !important; }
.waveform i:nth-child(3n) { animation-delay: -600ms !important; }

.end-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,122,140,.25);
  border-radius: 14px;
  background: rgba(255,122,140,.07);
  color: #ff9baa;
  font-weight: 750;
  cursor: pointer;
}
.end-button span { font-size: 21px; }
.end-button:disabled { border-color: var(--line); background: rgba(255,255,255,.025); color: #5d6878; cursor: not-allowed; }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.trust-row > div { display: flex; gap: 16px; padding: 28px 24px; }
.trust-row > div + div { border-left: 1px solid var(--line); }
.trust-row span { color: var(--cyan); font-size: 10px; font-weight: 800; }
.trust-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.trust-row strong { display: block; margin-bottom: 3px; color: #dce3ec; font-size: 13px; }

.results-section { padding: 110px 0 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
h2 { margin: 12px 0 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.completion-badge { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: #818c9c; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.results-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 18px 60px rgba(0,0,0,.16); backdrop-filter: blur(18px); }
.outcome-card { min-height: 520px; padding: 28px; }
.outcome-main { margin: 33px 0; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
label { display: block; margin-bottom: 8px; color: #768295; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.outcome-main strong { font-size: 27px; letter-spacing: -.03em; }
.booking-status { border: 1px solid rgba(117,231,166,.25); border-radius: 999px; padding: 8px 11px; background: rgba(117,231,166,.08); color: var(--green); font-size: 10px; font-weight: 850; }
.booking-status[data-status="follow-up needed"] { border-color: rgba(246,199,107,.28); background: rgba(246,199,107,.08); color: #f6c76b; }
.booking-status[data-status="qualified"] { border-color: rgba(90,124,255,.32); background: rgba(90,124,255,.1); color: #aebdff; }
.booking-status[data-status="not qualified"] { border-color: rgba(255,122,140,.25); background: rgba(255,122,140,.07); color: #ff9baa; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.detail-wide { grid-column: 1 / -1; }
.detail-grid p { margin: 0; color: #d8e0ea; font-size: 13px; line-height: 1.5; }

.missing-card {
  margin-top: 28px;
  padding: 17px;
  border: 1px solid rgba(246,199,107,.17);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(246,199,107,.07), rgba(246,199,107,.025));
}
.missing-card[hidden] { display: none; }
.missing-heading { display: flex; align-items: center; gap: 11px; }
.missing-heading > span { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border: 1px solid rgba(246,199,107,.28); border-radius: 9px; color: #f6c76b; font-size: 12px; font-weight: 850; }
.missing-heading label { margin-bottom: 3px; color: #f6c76b; }
.missing-heading p { margin: 0; color: #8d826f; font-size: 10px; }
.missing-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.missing-tags span { border: 1px solid rgba(246,199,107,.16); border-radius: 999px; padding: 6px 9px; background: rgba(0,0,0,.12); color: #d8c9aa; font-size: 10px; font-weight: 650; }

.transcript-card, .data-panel { padding: 28px; }
.panel-heading h3 { margin: 7px 0 0; font-size: 18px; }
.panel-heading > span { color: #748095; font-size: 11px; }
.transcript { height: 320px; margin-top: 25px; overflow-y: auto; padding-right: 8px; scrollbar-color: #2a394a transparent; }
.transcript-line { display: grid; grid-template-columns: 42px 1fr; gap: 13px; margin-bottom: 18px; }
.transcript-line strong { color: var(--cyan); font-size: 9px; letter-spacing: .08em; }
.transcript-line.user strong { color: #829cff; }
.transcript-line p, .transcript-plain { margin: 0; color: #c5cfdb; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.empty-copy { color: #697588; font-size: 13px; line-height: 1.6; }

.flow-card { margin-top: 20px; padding: 28px; }
.flow-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.flow-heading h3 { margin: 7px 0 0; font-size: 18px; }
.flow-heading > span { color: #718095; font-size: 11px; }
.call-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 12px; margin-top: 30px; }
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 105px; color: #667386; text-align: center; transition: color .25s ease; }
.flow-step i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: #111925; color: #667386; font-size: 10px; font-style: normal; font-weight: 850; transition: all .25s ease; }
.flow-step span { font-size: 10px; font-weight: 700; line-height: 1.35; }
.flow-step[data-state="completed"] { color: #c9d7e4; }
.flow-step[data-state="completed"] i { border-color: rgba(84,225,210,.35); background: rgba(84,225,210,.1); box-shadow: 0 0 24px rgba(84,225,210,.09); color: var(--cyan); }
.flow-step[data-state="completed"] i::before { content: "✓"; }
.flow-step[data-state="completed"] i { font-size: 0; }
.flow-step[data-state="completed"] i::before { font-size: 13px; }
.flow-connector { height: 1px; background: linear-gradient(90deg, rgba(84,225,210,.26), rgba(255,255,255,.08)); }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 18px 0 100px; }
.data-panel { min-height: 300px; }
.text-button { border: 0; background: transparent; color: var(--cyan); font-size: 11px; font-weight: 750; cursor: pointer; }
.local-pill { padding: 6px 9px; font-size: 9px; }
.list { margin-top: 23px; }
.list-item { display: grid; grid-template-columns: 39px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.list-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(84,225,210,.08); color: var(--cyan); font-size: 12px; font-weight: 800; }
.list-copy strong, .list-copy span { display: block; }
.list-copy strong { color: #dce4ed; font-size: 13px; }
.list-copy span { margin-top: 4px; color: #738095; font-size: 10px; }
.mini-badge { max-width: 106px; color: var(--green); font-size: 8px; font-weight: 850; line-height: 1.3; text-align: right; }
.mini-badge[data-status="follow-up needed"] { color: #f6c76b; }
.mini-badge[data-status="qualified"] { color: #aebdff; }
.mini-badge[data-status="not qualified"] { color: #ff9baa; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: min(420px, calc(100% - 48px)); transform: translateY(20px); border: 1px solid rgba(255,122,140,.28); border-radius: 14px; padding: 14px 17px; background: #17111a; box-shadow: var(--shadow); color: #ffd3da; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { transform: translateY(0); opacity: 1; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: #5e697a; font-size: 11px; }

@keyframes blink { 50% { opacity: .35; } }
@keyframes orbPulse { 50% { transform: scale(1.08); filter: saturate(1.25); } }
@keyframes ringPulse { to { transform: scale(1.22); opacity: 0; } }
@keyframes wave { from { height: 5px; } to { height: 28px; } }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 62px; }
  .call-card { width: min(100%, 520px); }
  .results-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .call-flow { grid-template-columns: 1fr; gap: 0; align-items: stretch; }
  .flow-step { flex-direction: row; min-width: 0; padding: 8px 0; text-align: left; }
  .flow-connector { width: 1px; height: 18px; margin-left: 17px; background: linear-gradient(180deg, rgba(84,225,210,.26), rgba(255,255,255,.08)); }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1180px); }
  .topbar { height: 72px; }
  .demo-pill { display: none; }
  .hero { min-height: auto; padding: 52px 0; }
  h1 { font-size: 46px; }
  .hero-subtitle { font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .primary-button { width: 100%; justify-content: center; }
  .call-card { min-height: 470px; padding: 21px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-wide { grid-column: auto; }
  .outcome-main { align-items: flex-start; flex-direction: column; gap: 16px; }
  .flow-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer { flex-direction: column; }
}

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