@font-face {
  font-family: "Manrope PG";
  src: url("/fonts/manrope-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

.call-demo-section {
  --demo-accent: var(--pg-accent);
  --demo-text: var(--pg-text);
  --demo-muted: var(--pg-muted);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  border-bottom: 1px solid var(--pg-border);
  background: #030304;
}

.call-demo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(207, 254, 37, .065), transparent 39%),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.call-demo-intro {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 46px;
}

.call-demo-intro h2 {
  max-width: 780px;
  margin: 8px 0 0;
  font-size: clamp(42px, 6vw, 84px);
  line-height: .96;
  letter-spacing: -.06em;
}

.call-demo-copy {
  max-width: 460px;
  margin: 0;
  color: var(--demo-muted);
  font-size: 16px;
  line-height: 1.72;
}

.call-demo-copy strong {
  display: block;
  margin-top: 18px;
  color: var(--demo-text);
  font: 700 10px/1.4 var(--pg-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.call-demo-frame {
  --reveal: 68%;
  position: relative;
  z-index: 2;
  padding: 13px;
  border: 1px solid rgba(207, 254, 37, .2);
  border-radius: 26px;
  background: rgba(4, 4, 5, .94);
  box-shadow: 0 52px 120px rgba(0, 0, 0, .62);
}

.call-demo-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  border-radius: 17px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.call-demo-shader {
  position: absolute;
  inset: -22px;
  z-index: -1;
  overflow: hidden;
  border-radius: 38px;
  opacity: .72;
  pointer-events: none;
}

.call-demo-shader canvas {
  width: 100% !important;
  height: 100% !important;
}

.meeting-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 17px;
  background: #0b0b0d;
  color: #f4f4f1;
  font-family: "Manrope PG", Manrope, Arial, sans-serif;
  isolation: isolate;
}

.meeting-topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 8;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(10, 10, 12, .92);
  backdrop-filter: blur(18px);
}

.meeting-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.meeting-secure svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #7cde86;
  stroke-width: 1.8;
}

.meeting-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.meeting-title span { color: rgba(255, 255, 255, .36); }

.meeting-view {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  color: rgba(255, 255, 255, .64);
  font-size: 10px;
}

.meeting-stage {
  position: absolute;
  inset: 48px 0 64px;
  padding: 6px;
  background: #08080a;
}

.meeting-tile {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: #151519;
}

.meeting-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

.interviewer-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.18) contrast(1.04) brightness(.78);
}

.interviewer-tile { width: 100%; height: 100%; }

.interviewer-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, #111114 0, rgba(17, 17, 20, .88) 8%, transparent 34%);
}

.candidate-tile {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 23%;
  height: 31%;
  border: 2px solid #0c0c0e;
  background:
    radial-gradient(circle at 50% 40%, rgba(207, 254, 37, .12), transparent 24%),
    linear-gradient(145deg, #17191a, #0d0e10 72%);
}

.candidate-avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(207, 254, 37, .22);
  border-radius: 50%;
  background: #20251b;
  color: var(--demo-accent);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.03em;
  box-shadow: 0 0 40px rgba(207, 254, 37, .08);
}

.participant-label {
  position: absolute;
  z-index: 2;
  bottom: 11px;
  left: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .68);
  font-size: 10px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.participant-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #62da78;
  box-shadow: 0 0 0 3px rgba(98, 218, 120, .12);
}

.meeting-controls {
  position: absolute;
  inset: auto 0 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #0d0d0f;
}

.meeting-duration {
  position: absolute;
  left: 18px;
  color: rgba(255, 255, 255, .38);
  font: 600 9px var(--pg-mono);
  letter-spacing: .04em;
}

.meeting-buttons { display: flex; gap: 9px; }

.meeting-control {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .8);
}

.meeting-control svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meeting-control.share {
  border-color: var(--demo-accent);
  background: var(--demo-accent);
  color: #0b0d05;
}

.meeting-control.end {
  margin-left: 18px;
  border-color: #e74c5c;
  background: #e74c5c;
  color: #fff;
}

.meeting-encryption {
  position: absolute;
  right: 18px;
  color: rgba(255, 255, 255, .38);
  font-size: 9px;
}

.pg-demo-overlay {
  position: absolute;
  z-index: 6;
  top: 12%;
  left: 16%;
  width: 66%;
  height: 73%;
  clip-path: inset(0 calc(100% - var(--overlay-reveal, 79%)) 0 0);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .62));
}

.pg-demo-toolbar {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  height: 32px;
  margin: 0 auto 6px;
  padding: 4px 6px;
  gap: 4px;
  border-radius: 999px;
  background: rgba(9, 9, 11, .98);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.pg-logo {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--demo-accent);
  color: #010104;
}

.pg-logo svg { width: 14px; height: 14px; fill: currentColor; }

.pg-drag {
  display: grid;
  grid-template-columns: repeat(2, 2px);
  gap: 2px;
  width: 16px;
  justify-content: center;
}

.pg-drag i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
}

.pg-tool {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 6px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .55);
}

.pg-tool svg,
.pg-listen svg,
.pg-send svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pg-tool svg { width: 11px; height: 11px; }
.pg-modes { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.pg-mode { padding: 4px 6px; border-radius: 999px; color: rgba(255, 255, 255, .42); }
.pg-mode.active { background: rgba(255, 255, 255, .12); color: #fff; }

.pg-listen {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--demo-accent);
  color: #080a02;
}

.pg-listen svg { width: 11px; height: 11px; }
.call-demo-frame[data-demo-state="listening"] .pg-listen { background: #ff6676; color: #140204; }

.pg-demo-panel {
  display: flex;
  flex-direction: column;
  height: calc(100% - 38px);
  padding: 15px 17px;
  border-radius: 14px;
  background: rgba(7, 7, 9, .975);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055);
}

.pg-demo-content { position: relative; min-height: 0; flex: 1; overflow: hidden; }

.pg-state {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}

.call-demo-frame[data-demo-state="listening"] .pg-state-listening,
.call-demo-frame[data-demo-state="context"] .pg-state-context,
.call-demo-frame[data-demo-state="answer"] .pg-state-answer { opacity: 1; transform: none; }

.pg-placeholder { max-width: 36ch; color: rgba(244, 244, 241, .46); font-size: 10px; line-height: 1.55; }

.pg-question {
  display: inline-block;
  margin-bottom: 9px;
  padding: 6px 8px;
  border: 1px solid rgba(207, 254, 37, .25);
  border-radius: 8px 8px 2px;
  background: rgba(207, 254, 37, .09);
  color: #efffc5;
  font-size: 9px;
  line-height: 1.4;
}

.pg-context-scan {
  margin: 5px 0 10px;
  padding: 8px 9px;
  border: 1px solid rgba(207, 254, 37, .24);
  border-radius: 7px;
  background: rgba(207, 254, 37, .065);
  color: #e7ff9c;
  font: 8px/1.45 var(--pg-mono);
}

.pg-context-scan strong { color: var(--demo-accent); }
.pg-answer { max-width: 55ch; color: #f4f4f1; font-size: 10px; line-height: 1.55; }
.pg-answer strong { color: var(--demo-accent); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.pg-answer p { margin: 0 0 7px; }

.pg-live {
  margin-top: auto;
  padding: 8px 9px;
  border: 1px solid rgba(255, 102, 118, .28);
  border-radius: 8px;
  background: rgba(255, 102, 118, .07);
}

.pg-live-head { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; font-size: 8px; font-weight: 750; }
.pg-live-head i { width: 5px; height: 5px; border-radius: 50%; background: #ff6676; box-shadow: 0 0 0 3px rgba(255, 102, 118, .1); }
.pg-live-head span { margin-left: auto; color: rgba(244, 244, 241, .4); font-weight: 500; }
.pg-live-text { font-size: 9px; line-height: 1.45; }

.pg-composer { margin-top: 9px; padding: 8px 9px; border-radius: 8px; background: rgba(255, 255, 255, .055); }
.pg-input { color: rgba(244, 244, 241, .43); font-size: 9px; }
.pg-composer-row { display: flex; align-items: center; margin-top: 7px; }
.pg-model { padding: 4px 6px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; color: rgba(255, 255, 255, .58); font: 7px var(--pg-mono); }
.pg-model strong { color: #fff; }
.pg-send { display: grid; place-items: center; width: 22px; height: 22px; margin-left: auto; border-radius: 50%; background: var(--demo-accent); color: #010104; }
.pg-send svg { width: 11px; height: 11px; }

.view-badge {
  position: absolute;
  z-index: 9;
  top: 61px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(8, 8, 10, .78);
  backdrop-filter: blur(12px);
  font: 700 8px var(--pg-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.view-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.view-badge.private { left: 16px; color: var(--demo-accent); }
.view-badge.shared { right: 16px; color: rgba(255, 255, 255, .65); }

.pov-divider {
  position: absolute;
  z-index: 10;
  top: 48px;
  bottom: 64px;
  left: var(--reveal);
  width: 1px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 0 20px rgba(255, 255, 255, .35);
  pointer-events: none;
}

.pov-divider::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #f3f3ef;
  color: #09090b;
  font: 800 13px var(--pg-mono);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

.pov-range {
  position: absolute;
  z-index: 12;
  inset: 48px 0 64px;
  width: 100%;
  height: calc(100% - 112px);
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
  touch-action: pan-y;
}

.demo-sequence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }

.demo-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #09090b;
  color: rgba(255, 255, 255, .42);
  cursor: pointer;
  text-align: left;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.demo-step:hover,
.demo-step[aria-pressed="true"] { border-color: rgba(207, 254, 37, .2); background: #10110c; color: #fff; }
.demo-step strong { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--demo-accent); font: 700 8px var(--pg-mono); }
.demo-step span { display: block; font-size: 10px; font-weight: 750; }
.demo-step small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .35); font-size: 8px; font-weight: 500; }
.demo-step[aria-pressed="true"]::after { content: ""; position: absolute; inset: auto 14px 0; height: 2px; background: var(--demo-accent); box-shadow: 0 0 12px rgba(207, 254, 37, .4); }

@media (min-width: 1081px) and (max-height: 900px) {
  .call-demo-section { padding-block: 82px; }
  .call-demo-intro { gap: 56px; margin-bottom: 34px; }
  .call-demo-intro h2 { font-size: clamp(48px, 5vw, 68px); }
  .call-demo-frame { width: min(1080px, 100%); margin-inline: auto; }
}

@media (max-width: 1080px) {
  .call-demo-intro { grid-template-columns: 1fr; gap: 24px; }
  .pg-demo-overlay { left: 10%; width: 80%; }
}

@media (max-width: 560px) {
  .call-demo-section { padding: 78px 0; }
  .call-demo-intro h2 { font-size: clamp(42px, 13vw, 60px); }
  .call-demo-frame { padding: 6px; border-radius: 16px; }
  .call-demo-shader { inset: -10px; border-radius: 22px; }
  .meeting-window { aspect-ratio: 4 / 5; border-radius: 11px; }
  .meeting-topbar { height: 42px; padding: 0 10px; }
  .meeting-title { display: none; }
  .meeting-view { padding: 5px 7px; }
  .meeting-stage { inset: 42px 0 54px; display: block; }
  .candidate-tile { top: 12px; right: 12px; bottom: auto; width: 92px; height: 112px; }
  .candidate-avatar { width: 44px; height: 44px; font-size: 13px; }
  .participant-label { bottom: 7px; left: 7px; padding: 4px 6px; font-size: 7px; }
  .interviewer-tile { width: 100%; height: 100%; }
  .interviewer-feed { object-position: center 42%; }
  .meeting-controls { height: 54px; }
  .meeting-duration,
  .meeting-encryption { display: none; }
  .meeting-buttons { gap: 6px; }
  .meeting-control { width: 31px; height: 31px; }
  .meeting-control.end { margin-left: 6px; }
  .pg-demo-overlay { top: 24%; left: 7%; width: 86%; height: 57%; }
  .pg-demo-toolbar { height: 28px; margin-bottom: 4px; }
  .pg-tool span,
  .pg-modes { display: none; }
  .pg-demo-panel { height: calc(100% - 32px); padding: 11px 12px; }
  .pg-answer { font-size: 8.5px; }
  .pg-answer p:last-child { display: none; }
  .pg-live-text { font-size: 8px; }
  .pg-composer { margin-top: 6px; }
  .view-badge { top: 50px; padding: 5px 7px; font-size: 6px; }
  .view-badge.private { left: 9px; }
  .view-badge.shared { right: 9px; }
  .pov-divider { top: 42px; bottom: 54px; }
  .pov-divider::after { width: 34px; height: 34px; font-size: 10px; }
  .pov-range { inset: 42px 0 54px; height: calc(100% - 96px); }
  .demo-sequence { grid-template-columns: 1fr; }
  .demo-step { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .call-demo-shader { display: none; }
  .pg-state { transition: none; }
}
