:root {
  --bg: #f0f2f6;
  --card: #ffffff;
  --card-soft: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cfd6e3;
  --text: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --purple: #7c3aed;
  --purple-2: #6d28d9;
  --purple-soft: #ede9fe;
  --hero-bg-from: #0b0f1a;
  --hero-bg-to: #1a1035;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --cyan: #06b6d4;
  --emerald: #10b981;
  --green: #22c55e;
  --green-soft: #ecfdf5;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --red: #ef4444;
  --red-soft: #fef2f2;
  --blue: #3b82f6;
  --blue-soft: #eff6ff;
  --dark: #0b0f1a;
  --dark-card: rgba(255, 255, 255, 0.06);
  --dark-line: rgba(255, 255, 255, 0.1);
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 22px 70px rgba(15, 23, 42, 0.18);
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 14px;
  --radius-lg: 20px;
  --sidebar: 220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f8fc 0%, var(--bg) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  background: #f8fafc;
  outline: none;
}

textarea {
  min-height: 92px;
  padding-top: 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(124, 58, 237, 0.62);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
  background: #fff;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  height: 100vh;
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.sidebar-user,
.topbar-profile,
.person-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__mark,
.avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #3b82f6);
  font-weight: 800;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.25);
}

.brand strong,
.brand span,
.sidebar-user strong,
.sidebar-user span {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 18px;
}

.brand span,
.sidebar-user span,
.topbar-profile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.nav-section {
  margin: 12px 0 6px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 32px;
  margin-bottom: 2px;
  padding: 0 9px;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  min-width: 0;
}

.nav-item span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--purple);
  background: rgba(124, 58, 237, 0.08);
  transform: translateX(2px);
}

.nav-item.is-active {
  color: var(--purple);
  background: var(--purple-soft);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.1);
}

.nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: var(--purple);
  background: rgba(124, 58, 237, 0.08);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.sidebar-user {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.sidebar-user > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.icon-action {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--purple);
  background: var(--purple-soft);
  font-weight: 800;
}

.workspace {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  min-width: 0;
  height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 0;
  font-size: 21px;
  line-height: 25px;
  font-weight: 800;
}

.topbar__eyebrow {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar-goal {
  width: min(360px, 38vw);
  min-width: 220px;
}

.topbar-goal span,
.kpi-card span,
.card-label,
.muted-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.topbar-goal strong {
  display: block;
  margin: 3px 0 6px;
  font-size: 12px;
}

.progress,
.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebf2;
}

.progress i,
.bar-track i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), #a78bfa);
  animation: barIn .62s var(--ease) both;
}

.page-stage {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px;
  scrollbar-gutter: stable;
}

.page {
  display: none;
  max-width: 1260px;
  margin: 0 auto;
  animation: pageIn 0.26s ease both;
}

.page.is-visible {
  display: block;
}

.page--centered {
  display: none;
  min-height: calc(100vh - 48px);
  place-items: center;
}

.page--centered.is-visible {
  display: grid;
}

.grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

.page > .card:not(:last-child),
.page > .table-card:not(:last-child),
.page > .grid:not(:last-child),
.page > .scenario-grid:not(:last-child),
.page > .role-grid:not(:last-child) {
  margin-bottom: 16px;
}

.card,
.metric-card,
.table-card,
.hero-panel,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card,
.form-card {
  padding: 18px;
  min-width: 0;
}

.card:hover,
.metric-card:hover,
.choice-card:hover,
.role-card:hover,
.phone:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.card,
.metric-card,
.button,
.nav-item,
.table-card tr,
.choice-card,
.role-card,
.phone {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.metric-card {
  min-height: 112px;
  padding: 16px;
}

.metric-card strong {
  display: block;
  margin: 10px 0 6px;
  color: var(--text);
  font-size: 28px;
  line-height: 30px;
  font-weight: 800;
}

.metric-card em,
.delta {
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.delta--warn { color: var(--amber); }
.delta--bad { color: var(--red); }

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2,
.section-head h3,
.card h3,
.table-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 23px;
  font-weight: 800;
}

.section-head p,
.card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-ticks {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.button--primary {
  color: #fff;
  background: var(--purple);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.24);
}

.button--primary:hover {
  background: var(--purple-2);
  transform: translateY(-1px);
}

.button--secondary {
  color: var(--body);
  border: 1px solid var(--line);
  background: #fff;
}

.button--secondary:hover {
  color: var(--purple);
  border-color: rgba(124, 58, 237, 0.32);
  background: #faf7ff;
  transform: translateY(-1px);
}

.button--ghost {
  color: var(--purple);
  background: transparent;
}

.button--ghost:hover {
  background: var(--purple-soft);
}

.button--danger {
  color: var(--red);
  background: var(--red-soft);
}

.button--danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.12);
}

.button:active {
  transform: translateY(0) scale(0.99);
}

.button--xl {
  min-height: 58px;
  min-width: 58px;
  padding: 0 22px;
  font-size: 18px;
}

.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.badge--purple { color: var(--purple); background: var(--purple-soft); }
.badge--green { color: #15803d; background: var(--green-soft); }
.badge--amber { color: #b45309; background: var(--amber-soft); }
.badge--red { color: #b91c1c; background: var(--red-soft); }
.badge--blue { color: #1d4ed8; background: var(--blue-soft); }

.login-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: min(1040px, 100%);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.login-hero {
  position: relative;
  min-height: 640px;
  padding: 42px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 16% 18%, rgba(124, 58, 237, 0.32), transparent 24%),
    radial-gradient(circle at 92% 72%, rgba(34, 211, 238, 0.18), transparent 22%),
    linear-gradient(155deg, #070b16, #12172a 64%, #080b14);
}

.login-hero::before,
.call-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.6px);
  background-size: 13px 13px;
  mask-image: linear-gradient(138deg, transparent 8%, #000 46%, transparent 88%);
  opacity: .32;
  pointer-events: none;
}

.login-hero > *,
.call-page > * {
  position: relative;
  z-index: 1;
}

.login-hero h1 {
  margin: 126px 0 16px;
  max-width: 450px;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 800;
}

.login-hero h1 span,
.dark-accent {
  color: #a78bfa;
}

.login-hero p {
  max-width: 390px;
  color: rgba(255,255,255,.64);
  font-size: 14px;
  line-height: 22px;
}

.wave-deco {
  position: absolute;
  left: -50px;
  right: -50px;
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 84px;
  transform: skewY(-8deg);
}

.wave-deco i {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, #22d3ee, var(--purple));
  box-shadow: 0 0 14px rgba(124, 58, 237, .58);
  opacity: .75;
}

.login-form {
  padding: 54px 48px;
}

.login-form h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.login-form > p {
  margin: 0 0 28px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: var(--body);
  font-size: 12px;
  font-weight: 800;
}

.demo-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0 22px;
}

.demo-buttons .button {
  min-height: 42px;
  padding: 0 8px;
  font-size: 11px;
}

.page--landing {
  max-width: 1180px;
}

.landing-shell {
  display: grid;
  gap: 18px;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  gap: 24px;
  min-height: 520px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(124, 58, 237, 0.34), transparent 26%),
    radial-gradient(circle at 78% 72%, rgba(59, 130, 246, 0.18), transparent 24%),
    linear-gradient(145deg, #070b16, #0f172a 58%, #070b16);
  box-shadow: var(--shadow-lg);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.6px);
  background-size: 14px 14px;
  mask-image: linear-gradient(130deg, transparent 8%, #000 48%, transparent 92%);
  opacity: .25;
  pointer-events: none;
}

.landing-hero > * {
  position: relative;
  z-index: 1;
}

.brand--light span {
  color: rgba(255, 255, 255, 0.58);
}

.landing-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 44px 0 16px;
}

.landing-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  font-weight: 800;
}

.landing-copy p {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 25px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button--landing {
  min-height: 44px;
  padding: 0 20px;
}

.landing-hero .button--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.landing-hero .button--secondary:hover,
.landing-hero .button--ghost:hover {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.42);
  background: rgba(124, 58, 237, 0.22);
}

.landing-hero .button--ghost {
  color: #d8ccff;
}

.landing-preview {
  position: relative;
  align-self: center;
  padding: 18px;
  border: 1px solid var(--dark-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.preview-glow {
  position: absolute;
  inset: 12% -12% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.42), transparent 64%);
  filter: blur(8px);
  pointer-events: none;
}

.preview-top,
.preview-person,
.preview-metrics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-top {
  color: rgba(255,255,255,.66);
  font-size: 12px;
  font-weight: 800;
}

.preview-person {
  justify-content: flex-start;
  margin: 18px 0 4px;
}

.preview-score-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.preview-score-row > div {
  padding: 10px;
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}

.preview-score-row span,
.preview-score-row strong {
  display: block;
}

.preview-score-row span {
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-score-row strong {
  margin-top: 4px;
  color: #fff;
  font-size: 17px;
}

.preview-person strong {
  display: block;
  font-size: 15px;
}

.preview-person p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.56);
  font-size: 12px;
  line-height: 18px;
}

.landing-wave {
  width: 100%;
  height: 120px;
  margin: 10px 0;
}

.preview-metrics {
  display: grid;
  gap: 10px;
}

.preview-metrics > div {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}

.preview-metrics span,
.preview-metrics b {
  color: rgba(255,255,255,.72);
  font-size: 11px;
}

.preview-metrics b {
  color: #fff;
}

.preview-metrics .bar-track {
  grid-column: 1 / 3;
  margin-top: 7px;
  background: rgba(255,255,255,.1);
}

.preview-next-lesson {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(167,139,250,.24);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(255,255,255,.06));
}

.preview-next-lesson span,
.preview-next-lesson strong {
  display: block;
}

.preview-next-lesson span {
  color: rgba(255,255,255,.52);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-next-lesson strong {
  margin-top: 4px;
  color: #fff;
  font-size: 13px;
  line-height: 18px;
}

.preview-next-lesson p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  line-height: 16px;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.value-strip > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}

.value-strip strong,
.value-strip span {
  display: block;
}

.value-strip strong {
  color: var(--text);
  font-size: 13px;
}

.value-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.landing-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.landing-section__head {
  margin-bottom: 16px;
}

.landing-section__head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 30px;
}

.steps-grid,
.audience-grid,
.demo-role-grid {
  display: grid;
  gap: 12px;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card,
.audience-card,
.role-login-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.step-card,
.audience-card {
  padding: 16px;
}

.step-card:hover,
.audience-card:hover,
.role-login-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.26);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.step-card b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--purple);
  background: var(--purple-soft);
  font-size: 12px;
}

.step-card h3,
.audience-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 20px;
}

.step-card p,
.audience-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.audience-card ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.audience-card li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
}

.audience-card li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  align-items: start;
}

.audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-card .badge {
  margin-top: 14px;
}

.login-form--compact {
  padding: 20px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbf9ff);
  box-shadow: var(--shadow);
}

.login-form--compact h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.login-form--compact > p {
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 18px;
}

.demo-role-grid {
  margin-bottom: 16px;
}

.role-login-card {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  text-align: left;
}

.role-login-card:first-child {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.24);
}

.role-login-card strong {
  font-size: 13px;
}

.role-login-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.role-login-card:first-child span {
  color: rgba(255,255,255,.7);
}

.v3-premium-landing {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
  color: #f9fafb;
  background:
    radial-gradient(circle at 18% 12%, rgba(99,102,241,.28), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(6,182,212,.16), transparent 24%),
    radial-gradient(circle at 72% 52%, rgba(124,58,237,.18), transparent 28%),
    linear-gradient(145deg, var(--hero-bg-from), var(--hero-bg-to) 54%, #030712);
  box-shadow: 0 30px 90px rgba(3,7,18,.28);
}

.v3-premium-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 10%, #000, transparent 76%);
  pointer-events: none;
}

.v3-premium-landing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.12), transparent 42%);
  pointer-events: none;
}

.v3-premium-landing > * {
  position: relative;
  z-index: 1;
}

.landing-navigation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px 0;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.landing-logo strong,
.landing-logo span,
.landing-logo em {
  display: block;
}

.landing-logo strong {
  font-size: 14px;
}

.landing-logo span,
.landing-logo em {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.landing-logo em {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
}

.links-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.links-hub a,
.landing-text-link {
  color: rgba(255,255,255,.68);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.links-hub a:hover,
.landing-text-link:hover {
  color: #fff;
}

.btn-fast-demo,
.btn-secondary-glass {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.06);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.btn-fast-demo:hover,
.btn-secondary-glass:hover {
  border-color: rgba(99,102,241,.45);
  background: rgba(99,102,241,.16);
  transform: translateY(-1px);
}

.landing-hero-zone {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(420px, 7fr);
  gap: 34px;
  align-items: center;
  padding: 58px 44px 44px;
}

.hero-left-column {
  min-width: 0;
  animation: landingRise .72s var(--ease) both;
}

.system-badge,
.landing-kicker,
.terminal-kicker {
  color: #a5b4fc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-main-title {
  max-width: 720px;
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .98;
}

.hero-sub-description {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(229,231,235,.74);
  font-size: 16px;
  line-height: 27px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary-glow {
  min-height: 44px;
  padding: 0 20px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5 56%, #06b6d4);
  box-shadow: 0 16px 34px rgba(99,102,241,.32), 0 0 0 1px rgba(255,255,255,.08) inset;
}

.btn-primary-glow:hover {
  box-shadow: 0 0 34px rgba(99,102,241,.5), 0 18px 36px rgba(6,182,212,.16);
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin-top: 28px;
}

.hero-stat-strip div {
  padding: 13px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(14px);
}

.hero-stat-strip strong,
.hero-stat-strip span {
  display: block;
}

.hero-stat-strip strong {
  color: #fff;
  font-size: 18px;
}

.hero-stat-strip span {
  margin-top: 3px;
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-weight: 800;
}

.hero-right-column-preview {
  position: relative;
  min-height: 520px;
  perspective: 1000px;
  animation: landingRise .72s var(--ease) .08s both;
}

.preview-orbit {
  position: absolute;
  inset: 42px 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(99,102,241,.34), transparent 58%),
    radial-gradient(circle at 70% 30%, rgba(6,182,212,.22), transparent 36%);
  filter: blur(12px);
}

.preview-layer {
  position: absolute;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: rgba(17,24,39,.68);
  box-shadow: 0 28px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}

.hero-right-column-preview:hover .layer-client-card { transform: translate3d(-6px, -4px, 18px); }
.hero-right-column-preview:hover .layer-waveform-holder { transform: translate3d(8px, -8px, 38px); }
.hero-right-column-preview:hover .layer-score-badge { transform: translate3d(-10px, 8px, 60px); }
.hero-right-column-preview:hover .layer-lesson-card { transform: translate3d(10px, 8px, 80px); }

.layer-client-card {
  left: 0;
  top: 40px;
  width: 72%;
  padding: 18px;
}

.preview-card-head,
.preview-client-row,
.preview-emotions > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-card-head span {
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-client-row {
  justify-content: flex-start;
  margin: 16px 0;
}

.preview-client-row strong,
.preview-client-row p {
  display: block;
  margin: 0;
}

.preview-client-row p {
  margin-top: 5px;
  color: rgba(255,255,255,.54);
  font-size: 12px;
}

.preview-emotions {
  display: grid;
  gap: 10px;
}

.preview-emotions > div {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
}

.preview-emotions span,
.preview-emotions b {
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 800;
}

.preview-emotions .bar-track {
  grid-column: 1 / 3;
  margin-top: 8px;
  background: rgba(255,255,255,.1);
}

.layer-waveform-holder {
  right: 0;
  top: 158px;
  width: 78%;
  padding: 20px;
}

.recording-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16,185,129,.16);
  font-size: 11px;
  font-weight: 900;
}

.premium-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 160px;
  margin-top: 8px;
}

.premium-waveform i {
  width: 5px;
  min-height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), #8b5cf6);
  box-shadow: 0 0 18px rgba(6,182,212,.42);
  animation: wavePulse 1.7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.045s);
}

.layer-score-badge {
  left: 38px;
  bottom: 58px;
  width: 210px;
  padding: 16px;
}

.layer-score-badge span,
.layer-lesson-card span {
  color: rgba(255,255,255,.5);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.layer-score-badge strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 34px;
  line-height: 36px;
}

.layer-score-badge p,
.layer-lesson-card p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  line-height: 16px;
}

.layer-lesson-card {
  right: 18px;
  bottom: 22px;
  width: 270px;
  padding: 16px;
  border-color: rgba(6,182,212,.24);
}

.layer-lesson-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 14px;
  line-height: 19px;
}

.bento-grid-values-strip,
.interactive-timeline-flow,
.roles-segmentation-layout,
.sandbox-terminal-container {
  margin: 0 34px 22px;
}

.bento-grid-values-strip {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr 1.2fr;
  gap: 14px;
}

.bento-value-card,
.timeline-step,
.role-interface-card,
.sandbox-terminal-container {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.055);
  box-shadow: 0 18px 46px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
}

.bento-value-card {
  padding: 20px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.bento-value-card:hover,
.timeline-step:hover,
.role-interface-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,.28);
  background: rgba(255,255,255,.075);
}

.landing-icon-box {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid rgba(99,102,241,.24);
  border-radius: 14px;
  color: #c4b5fd;
  background: rgba(99,102,241,.16);
  font-weight: 900;
}

.bento-value-card h3,
.timeline-step h3,
.role-interface-card h3,
.terminal-role-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 22px;
}

.bento-value-card p,
.timeline-step p,
.role-interface-card p,
.terminal-role-panel p {
  margin: 9px 0 0;
  color: rgba(229,231,235,.62);
  font-size: 12px;
  line-height: 19px;
}

.interactive-timeline-flow,
.roles-segmentation-layout {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 26px;
  background: rgba(3,7,18,.18);
}

.v3-premium-landing .landing-section__head h2 {
  color: #fff;
  letter-spacing: -0.02em;
}

.v3-premium-landing .landing-section__head {
  margin-bottom: 18px;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 23px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.54), transparent);
}

.timeline-step {
  position: relative;
  padding: 18px;
}

.timeline-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 0 8px rgba(99,102,241,.12);
}

.role-interface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.role-interface-card {
  padding: 20px;
}

.role-interface-card > span {
  color: #a5b4fc;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-interface-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.role-interface-card li {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
}

.role-interface-card li::before {
  content: "•";
  margin-right: 8px;
  color: var(--cyan);
}

.sandbox-terminal-container {
  padding: 0;
  overflow: hidden;
}

.terminal-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.window-title {
  flex: 1;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.terminal-tabs-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px 0;
}

.tab-trigger {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.045);
  font-size: 12px;
  font-weight: 900;
}

.tab-trigger.active {
  color: #fff;
  border-color: rgba(99,102,241,.42);
  background: rgba(99,102,241,.22);
  box-shadow: 0 0 0 4px rgba(99,102,241,.1);
}

.terminal-dynamic-body {
  padding: 18px;
}

.terminal-role-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.terminal-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.terminal-modules span {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.045);
  font-size: 11px;
  font-weight: 800;
}

.terminal-email-row {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 0 18px 18px;
}

.terminal-email-row > span {
  align-self: center;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal-email-row .field {
  margin-bottom: 0;
}

.terminal-email-row label {
  color: rgba(255,255,255,.62);
}

.terminal-email-row input {
  color: #fff;
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
}

.terminal-note {
  margin: 0;
  padding: 12px 18px 16px;
  color: rgba(255,255,255,.46);
  font-size: 11px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 34px 26px;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  font-weight: 800;
}

@keyframes landingRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-panel {
  padding: 22px;
  background:
    radial-gradient(circle at 88% 28%, rgba(124, 58, 237, .14), transparent 22%),
    #fff;
}

.manager-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.score-ring,
.mini-score-ring {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 58%, transparent 59%),
    conic-gradient(var(--purple) 0 var(--score), #e8ebf2 var(--score) 100%);
}

.score-ring {
  width: 138px;
  height: 138px;
  animation: scoreIn .7s var(--ease) both;
}

.score-ring--hero {
  width: 168px;
  height: 168px;
  margin: 18px auto;
}

.score-ring strong {
  display: block;
  color: var(--purple);
  font-size: 34px;
  line-height: 34px;
  text-align: center;
}

.score-ring span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mini-score-ring {
  width: 76px;
  height: 76px;
}

.mini-score-ring strong {
  color: var(--purple);
  font-size: 18px;
}

.chart-card svg,
.sparkline,
.line-chart {
  width: 100%;
  display: block;
}

.sparkline {
  height: 64px;
}

.skill-list,
.check-list,
.feedback-list,
.history-list {
  display: grid;
  gap: 10px;
}

.skill-row,
.compare-row {
  display: grid;
  grid-template-columns: minmax(88px, 120px) minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
}

.scenario-grid,
.objection-grid,
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.choice-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.choice-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 10px;
  color: var(--purple);
  background: var(--purple-soft);
  font-size: 11px;
  font-weight: 800;
}

.choice-card:hover,
.role-card:hover {
  border-color: rgba(124, 58, 237, .24);
}

.choice-card.is-selected {
  border-color: rgba(124, 58, 237, .42);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .08), var(--shadow);
  transform: translateY(-1px);
}

.choice-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
}

.choice-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.summary-panel {
  border: 1px solid rgba(124, 58, 237, .22);
  background: linear-gradient(180deg, #fff, #faf7ff);
}

.next-step-card,
.training-goal,
.prep-goal {
  background:
    radial-gradient(circle at 92% 12%, rgba(124, 58, 237, .12), transparent 24%),
    linear-gradient(180deg, #fff, #fbf9ff);
}

.lesson-progress {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.goal-list,
.persona-facts {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.goal-list span,
.persona-facts span {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--body);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.difficulty-stack {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}

.difficulty-chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--body);
  background: #fff;
  font-weight: 800;
}

.difficulty-chip.is-selected {
  color: #fff;
  border-color: transparent;
  background: var(--purple);
  box-shadow: 0 12px 24px rgba(124, 58, 237, .18);
}

.persona-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.persona-card--rich {
  grid-template-columns: 96px 1fr;
}

.persona-photo {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-size: 30px;
  font-weight: 800;
}

.call-page {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 16px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 55% 40%, rgba(124, 58, 237, .22), transparent 30%),
    radial-gradient(circle at 92% 74%, rgba(34, 211, 238, .12), transparent 20%),
    linear-gradient(155deg, #060913, #0b0f1a 60%, #080c16);
}

.call-page.is-visible {
  display: flex;
  flex-direction: column;
}

.call-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 0 4px;
}

.call-top__center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.call-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 800;
}

.call-live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34,197,94,.14);
}

.call-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 340px;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.dark-card {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--dark-card);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.call-profile,
.call-transcript {
  padding: 18px;
  min-height: 0;
  overflow: hidden;
}

.call-profile {
  display: flex;
  flex-direction: column;
}

.call-profile .persona-photo {
  margin: 0 auto 14px;
}

.call-profile h3,
.call-profile p {
  text-align: center;
}

.call-profile p,
.call-transcript p,
.call-center p,
.dark-muted {
  color: rgba(255,255,255,.62);
}

.emotion-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.call-objective {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  background: rgba(124,58,237,.16);
}

.call-objective span,
.call-objective strong {
  display: block;
}

.call-objective span {
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.call-objective strong {
  margin-top: 5px;
  font-size: 12px;
  line-height: 17px;
}

.call-notes {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  max-height: 112px;
  overflow: auto;
  padding-right: 2px;
}

.call-notes p {
  margin: 0;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  text-align: left;
}

.emotion-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 700;
}

.emotion-row .bar-track {
  grid-column: 1 / 3;
  background: rgba(255,255,255,.1);
}

.call-center {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  text-align: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.call-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
}

.call-state-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.call-state {
  padding: 7px 10px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.05);
  font-size: 11px;
  font-weight: 800;
}

.call-state.is-active {
  color: #fff;
  background: rgba(124,58,237,.35);
  box-shadow: 0 0 0 4px rgba(124,58,237,.12);
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: min(620px, 94%);
  height: clamp(96px, 22vh, 176px);
  margin: 0 auto 10px;
}

.waveform i {
  width: 6px;
  min-height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22d3ee, var(--purple));
  box-shadow: 0 0 18px rgba(124, 58, 237, .6);
  animation: wavePulse 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.05s);
}

.mic-button {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 26px auto 10px;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 0 0 14px rgba(124,58,237,.18), 0 0 44px rgba(124,58,237,.62);
  font-size: 28px;
  animation: micGlow 2s ease-in-out infinite;
}

.call-center h2 {
  margin: 2px 0 5px;
  font-size: 22px;
  line-height: 26px;
}

.call-center p {
  margin: 0;
}

.call-bottom-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: min(460px, 100%);
  margin: 8px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--dark-line);
  border-radius: 22px;
  background: rgba(255,255,255,.06);
}

.call-bottom-panel .mic-button {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  margin: 0;
  font-size: 24px;
}

.call-bottom-panel strong,
.call-bottom-panel span {
  display: block;
  text-align: left;
}

.call-bottom-panel span {
  margin-top: 4px;
  color: rgba(255,255,255,.56);
  font-size: 12px;
}

.message-list {
  display: grid;
  gap: 12px;
  max-height: calc(100% - 44px);
  overflow: auto;
  padding-right: 4px;
}

.message {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
}

.message.is-user {
  background: rgba(124,58,237,.24);
}

.message strong,
.message time {
  display: block;
  font-size: 11px;
}

.message time {
  margin-top: 6px;
  color: rgba(255,255,255,.4);
}

.analysis-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
}

.analysis-score {
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(124,58,237,.12), transparent 34%),
    #fff;
}

.analysis-mini-grid {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.analysis-mini-grid span {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--body);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.radar {
  width: 100%;
  height: 230px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feedback-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--body);
  font-size: 13px;
  line-height: 18px;
}

.feedback-card {
  border-left: 4px solid var(--purple);
}

.feedback-card--good {
  border-left-color: var(--green);
}

.feedback-card--warn {
  border-left-color: var(--amber);
}

.recommended-lesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(124,58,237,.24);
  background: linear-gradient(135deg, #fff, #faf7ff);
}

.table-card {
  overflow: hidden;
  max-width: 100%;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  padding: 12px 14px;
  color: var(--muted);
  background: #fafbfe;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 12px 14px;
  border-top: 1px solid #eef1f6;
  color: var(--body);
  font-weight: 600;
  white-space: nowrap;
}

tr:hover td {
  background: #faf7ff;
}

tr[data-target] {
  cursor: pointer;
}

.score-text {
  color: var(--purple);
  font-weight: 800;
}

.transcript-line {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.transcript-card {
  display: grid;
  gap: 10px;
}

.transcript-line p {
  margin: 0;
  min-width: 0;
  color: var(--body);
  font-size: 13px;
  line-height: 19px;
  white-space: normal;
}

.transcript-line b,
.transcript-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.transcript-line--good {
  border-left: 4px solid var(--green);
}

.transcript-line--warn {
  border-left: 4px solid var(--amber);
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.heatmap i {
  height: 34px;
  border-radius: 8px;
  background: #e8ebf2;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.heatmap i:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(124,58,237,.16);
}

.heatmap i[data-level="1"] { background: #ddd6fe; }
.heatmap i[data-level="2"] { background: #a78bfa; }
.heatmap i[data-level="3"] { background: #7c3aed; }
.heatmap i[data-level="4"] { background: #22c55e; }

.dark-section {
  color: #fff;
  border: 1px solid var(--dark-line);
  background:
    radial-gradient(circle at 78% 18%, rgba(124,58,237,.18), transparent 26%),
    linear-gradient(155deg, #080c16, #111827);
}

.dark-section .metric-card,
.dark-section .card,
.dark-section .table-card {
  color: #fff;
  border-color: var(--dark-line);
  background: var(--dark-card);
  box-shadow: none;
}

.dark-section h2,
.dark-section h3,
.dark-section .metric-card strong {
  color: #fff;
}

.dark-section p,
.dark-section td,
.dark-section .card-label {
  color: rgba(255,255,255,.62);
}

.dark-section .bar-track,
.dark-section .progress {
  background: rgba(255,255,255,.1);
}

.dark-section .score-text {
  color: #a78bfa;
}

.dark-section th {
  color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.04);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.role-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(124,58,237,.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, #faf7ff);
  box-shadow: var(--shadow);
}

.profile-hero h3 {
  margin: 2px 0 4px;
}

.profile-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  font-size: 16px;
}

.scenario-admin-card {
  min-height: 180px;
}

.live-preview {
  color: #fff;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 25%, rgba(124,58,237,.28), transparent 26%),
    #0b0f1a;
}

.mobile-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 16px;
}

.phone {
  position: relative;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border: 9px solid #11131b;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(15,23,42,.22);
}

.phone--dark {
  color: #fff;
  background:
    radial-gradient(circle at 50% 60%, rgba(124,58,237,.24), transparent 28%),
    #0b0f1a;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 78px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #11131b;
  z-index: 3;
}

.phone-content {
  height: 100%;
  padding: 28px 13px 14px;
  overflow: hidden;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 9px;
  font-weight: 800;
}

.phone h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.phone p,
.phone li {
  color: var(--muted);
  font-size: 10px;
  line-height: 15px;
}

.phone--dark p,
.phone--dark li {
  color: rgba(255,255,255,.62);
}

.phone-card {
  padding: 9px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #f8fafc;
}

.phone--dark .phone-card {
  background: rgba(255,255,255,.07);
}

.phone .button {
  width: 100%;
  min-height: 32px;
  margin-top: 8px;
  font-size: 10px;
}

.phone .mini-score-ring {
  margin: 8px auto;
}

.phone-bars {
  display: grid;
  gap: 5px;
  margin: 8px 0;
}

.phone-bars span {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebf2;
}

.phone-bars span::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
}

.app-shell.is-login,
.app-shell.is-call {
  grid-template-columns: 1fr;
}

.app-shell.is-login .sidebar,
.app-shell.is-login .topbar,
.app-shell.is-call .sidebar,
.app-shell.is-call .topbar {
  display: none;
}

.app-shell.is-login .workspace,
.app-shell.is-call .workspace {
  grid-template-rows: 1fr;
}

.app-shell.is-login .page-stage,
.app-shell.is-call .page-stage {
  padding: 24px;
}

.app-shell.is-call .page-stage {
  padding: 0;
  overflow: auto;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wavePulse {
  0%, 100% {
    transform: scaleY(.45);
    opacity: .55;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes micGlow {
  0%, 100% {
    box-shadow: 0 0 0 12px rgba(124,58,237,.16), 0 0 38px rgba(124,58,237,.55);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(124,58,237,.08), 0 0 58px rgba(124,58,237,.72);
  }
}

@keyframes barIn {
  from {
    width: 0;
  }
}

@keyframes scoreIn {
  from {
    opacity: .4;
    transform: scale(.96);
  }
}

@media (max-height: 780px) and (min-width: 861px) {
  .workspace {
    grid-template-rows: 56px minmax(0, 1fr);
  }

  .topbar {
    padding: 0 18px;
  }

  .page-stage {
    padding: 16px 18px;
  }

  .metric-card {
    min-height: 96px;
    padding: 14px;
  }

  .metric-card strong {
    margin: 7px 0 4px;
    font-size: 24px;
    line-height: 26px;
  }

  .card,
  .form-card,
  .hero-panel {
    padding: 15px;
  }

  .call-page {
    padding: 12px;
  }

  .call-top {
    min-height: 42px;
  }

  .call-grid {
    gap: 12px;
  }

  .waveform {
    height: 96px;
  }

  .call-state-row {
    margin-bottom: 6px;
  }

  .call-state {
    padding: 5px 8px;
  }

  .call-center h2 {
    font-size: 18px;
    line-height: 22px;
  }

  .call-bottom-panel {
    padding: 9px 12px;
  }

  .call-bottom-panel .mic-button {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 1366px) and (min-width: 861px) {
  :root {
    --sidebar: 204px;
  }

  .topbar-goal {
    width: min(300px, 30vw);
    min-width: 190px;
  }

  .page {
    max-width: 1160px;
  }

  .call-grid {
    grid-template-columns: 236px minmax(0, 1fr) 300px;
  }

  .mobile-showcase {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }

  .value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero-zone {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
    gap: 22px;
    padding: 42px 32px 34px;
  }

  .hero-main-title {
    font-size: clamp(40px, 4.8vw, 62px);
  }

  .hero-right-column-preview {
    min-height: 490px;
  }

  .layer-waveform-holder {
    top: 152px;
  }

  .premium-waveform {
    height: 135px;
  }

  .bento-grid-values-strip,
  .interactive-timeline-flow,
  .roles-segmentation-layout,
  .sandbox-terminal-container {
    margin-left: 24px;
    margin-right: 24px;
  }
}

@media (max-width: 1120px) and (min-width: 861px) {
  :root {
    --sidebar: 76px;
  }

  .brand > div:last-child,
  .nav-section,
  .nav-item span:last-child,
  .sidebar-user > div:nth-child(2) {
    display: none;
  }

  .sidebar {
    align-items: center;
    padding: 14px 10px;
  }

  .nav-item {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .nav-icon {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .sidebar-user {
    width: 52px;
    padding: 8px;
  }

  .topbar-profile span {
    display: none;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-4 {
    grid-column: span 2;
  }
}

@media (max-width: 1180px) {
  .grid-4,
  .grid-5,
  .mobile-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero,
  .landing-split {
    grid-template-columns: 1fr;
  }

  .landing-preview {
    width: min(520px, 100%);
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero-zone,
  .bento-grid-values-strip,
  .timeline-track,
  .role-interface-grid,
  .terminal-role-panel,
  .terminal-email-row {
    grid-template-columns: 1fr;
  }

  .hero-right-column-preview {
    min-height: 520px;
  }

  .timeline-track::before {
    display: none;
  }

  .call-grid,
  .analysis-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .call-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .call-grid {
    min-height: auto;
  }

  .call-profile,
  .call-transcript {
    overflow: visible;
  }

  .message-list {
    max-height: 320px;
  }
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    max-height: 42vh;
    overflow: auto;
  }

  .workspace {
    height: auto;
    min-height: 100vh;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    padding: 16px;
  }

  .topbar-profile {
    display: none;
  }

  .topbar-goal {
    width: 100%;
  }

  .page-stage {
    padding: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .scenario-grid,
  .objection-grid,
  .role-grid,
  .form-grid,
  .feedback-grid,
  .login-layout,
  .landing-hero,
  .landing-split,
  .steps-grid,
  .audience-grid,
  .value-strip,
  .manager-hero,
  .mobile-showcase {
    grid-template-columns: 1fr;
  }

  .v3-premium-landing {
    border-radius: 22px;
  }

  .landing-navigation-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 18px 0;
  }

  .links-hub {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .btn-fast-demo {
    width: 100%;
  }

  .landing-hero-zone {
    padding: 34px 18px 24px;
  }

  .hero-main-title {
    font-size: 40px;
  }

  .hero-cta-group .button,
  .hero-cta-group .landing-text-link {
    width: 100%;
  }

  .landing-text-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-stat-strip {
    grid-template-columns: 1fr;
  }

  .hero-right-column-preview {
    min-height: auto;
  }

  .layer-client-card,
  .layer-waveform-holder,
  .layer-score-badge,
  .layer-lesson-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin-bottom: 12px;
  }

  .premium-waveform {
    height: 110px;
  }

  .bento-grid-values-strip,
  .interactive-timeline-flow,
  .roles-segmentation-layout,
  .sandbox-terminal-container {
    margin-left: 14px;
    margin-right: 14px;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px 22px;
  }

  .landing-hero {
    min-height: auto;
    padding: 24px;
    border-radius: 22px;
  }

  .landing-copy h1 {
    font-size: 36px;
  }

  .landing-copy p {
    font-size: 14px;
    line-height: 22px;
  }

  .landing-actions {
    width: 100%;
  }

  .button--landing {
    width: 100%;
  }

  .call-top {
    align-items: stretch;
    flex-direction: column;
  }

  .call-top .button {
    width: 100%;
  }

  .call-bottom-panel {
    width: 100%;
    align-items: center;
  }

  .transcript-line {
    grid-template-columns: 58px 1fr;
  }

  .transcript-line p,
  .transcript-line .badge {
    grid-column: 1 / -1;
  }

  table {
    min-width: 680px;
  }

  .span-2,
  .span-3,
  .span-4 {
    grid-column: span 1;
  }
}

/* Internal product polish pass */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.app-shell {
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 14%, rgba(124, 58, 237, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.sidebar {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  gap: 10px;
  padding: 14px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.9)),
    radial-gradient(circle at 0 0, rgba(124,58,237,.12), transparent 32%);
  box-shadow: inset -1px 0 0 rgba(148, 163, 184, 0.16);
}

.brand {
  flex: 0 0 auto;
  min-height: 44px;
}

.sidebar-nav {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(124, 58, 237, 0.34) transparent;
  scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar,
.page-stage::-webkit-scrollbar,
.message-list::-webkit-scrollbar,
.call-notes::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.page-stage::-webkit-scrollbar-thumb,
.message-list::-webkit-scrollbar-thumb,
.call-notes::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.26);
}

.nav-section {
  margin: 11px 0 5px;
  letter-spacing: 0.09em;
}

.nav-item {
  position: relative;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.nav-item.is-active {
  color: var(--purple);
  border-color: rgba(124, 58, 237, 0.18);
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.95), rgba(239, 246, 255, 0.86));
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.1);
}

.nav-item.is-active::before {
  background: linear-gradient(180deg, var(--purple), var(--cyan));
}

.nav-icon {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(59,130,246,.08));
}

.sidebar-user {
  flex: 0 0 auto;
  min-height: 52px;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.workspace {
  min-width: 0;
  overflow: hidden;
  height: 100dvh;
}

.topbar {
  min-width: 0;
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-goal {
  flex: 0 1 340px;
}

.page-stage {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(124,58,237,.07), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0));
}

.page {
  width: 100%;
  max-width: min(1260px, 100%);
}

.card,
.metric-card,
.table-card,
.hero-panel,
.form-card,
.choice-card,
.role-card,
.profile-hero {
  border-color: rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.card,
.form-card,
.choice-card,
.hero-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
}

.card:hover,
.metric-card:hover,
.choice-card:hover,
.role-card:hover,
.table-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11);
}

.section-head {
  align-items: center;
}

.section-head h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.button--primary {
  background: linear-gradient(135deg, #7c3aed, #5b5ff0 62%, #06b6d4);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.28);
}

.button--primary:hover {
  background: linear-gradient(135deg, #6d28d9, #4f46e5 62%, #0891b2);
  box-shadow: 0 18px 34px rgba(124, 58, 237, 0.34);
}

.button--secondary {
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(12px);
}

.metric-card {
  min-width: 0;
  background:
    radial-gradient(circle at 92% 14%, rgba(124, 58, 237, .1), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.9));
}

.metric-card--rich {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-mini-stack {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.metric-mini-stack b,
.metric-mini-stack small {
  color: var(--body);
  font-size: 11px;
  line-height: 15px;
}

.metric-mini-stack small {
  color: var(--muted);
  font-weight: 700;
}

.compact-insight-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 160px;
}

.compact-insight-card .button {
  justify-self: start;
}

.premium-chart-card {
  background:
    radial-gradient(circle at 86% 12%, rgba(6, 182, 212, .08), transparent 26%),
    linear-gradient(180deg, #fff, #fbfaff);
}

.choice-card {
  overflow: hidden;
}

.choice-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.choice-card.is-selected::after {
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.choice-meta,
.scenario-admin-metrics,
.filter-meta,
.role-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.choice-meta span,
.choice-meta b,
.scenario-admin-metrics span,
.filter-meta span,
.role-permissions span,
.compact-note {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--body);
  background: #f3f6fb;
  font-size: 11px;
  font-weight: 800;
}

.scenario-admin-metrics span,
.filter-meta span,
.role-permissions span {
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.scenario-admin-metrics b,
.filter-meta b {
  margin-left: 4px;
  color: var(--purple);
}

.objection-strength {
  margin: 8px 0 12px;
}

.training-goal--premium,
.prep-goal--premium,
.billing-card,
.ai-recommendation-card,
.objection-focus-card {
  border-color: rgba(124, 58, 237, .2);
  background:
    radial-gradient(circle at 92% 10%, rgba(124,58,237,.12), transparent 28%),
    linear-gradient(180deg, #fff, #fbf9ff);
}

.dossier-card {
  min-height: 220px;
}

.persona-facts--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prep-score-mini {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 14px;
  background: rgba(124,58,237,.06);
}

.prep-score-mini strong {
  color: var(--purple);
  font-size: 24px;
  line-height: 24px;
}

.prep-score-mini span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.check-list--rich p,
.do-dont-grid span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  background: #f8fafc;
  color: var(--body);
  font-size: 12px;
  font-weight: 750;
  line-height: 17px;
}

.check-list--rich span {
  color: var(--green);
  font-weight: 900;
}

.do-dont-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.risk-card {
  border-color: rgba(239, 68, 68, 0.14);
  background: linear-gradient(180deg, #fff, #fff8f8);
}

.filter-card--premium {
  display: grid;
  gap: 14px;
}

.filter-card--premium .form-grid {
  margin-bottom: 0;
}

.table-card {
  border-radius: 18px;
  background: rgba(255,255,255,.94);
}

.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

table {
  min-width: 760px;
}

td,
th {
  max-width: 260px;
}

tr:hover td {
  background: rgba(124, 58, 237, 0.045);
}

.analysis-layout {
  align-items: start;
}

.analysis-score--premium {
  position: sticky;
  top: 0;
}

.analysis-mini-grid span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #f8fafc;
}

.radar-card .radar {
  filter: drop-shadow(0 16px 24px rgba(124,58,237,.11));
}

.feedback-item {
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.feedback-item:last-child {
  border-bottom: 0;
}

.feedback-item b {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f8fafc;
  font-size: 11px;
}

.compare-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(6, 182, 212, .08), transparent 24%),
    #fff;
}

.transcript-line {
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.dark-section {
  min-height: calc(100dvh - 112px);
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(124,58,237,.22), transparent 28%),
    radial-gradient(circle at 10% 88%, rgba(6,182,212,.10), transparent 24%),
    linear-gradient(155deg, #070b16, #111827 58%, #0b1020);
  box-shadow: 0 24px 70px rgba(3, 7, 18, 0.22);
}

.dark-section .section-head {
  margin-bottom: 18px;
}

.dark-section .metric-card,
.dark-section .card,
.dark-section .table-card {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 46px rgba(0,0,0,.18);
}

.dark-section .metric-card:hover,
.dark-section .card:hover {
  border-color: rgba(167, 139, 250, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 22px 50px rgba(0,0,0,.24);
}

.executive-grid {
  margin-top: 16px;
}

.heatmap {
  grid-template-columns: repeat(7, minmax(24px, 1fr));
}

.heatmap i {
  height: clamp(26px, 4.3vh, 38px);
}

.heatmap-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(255,255,255,.46);
  font-size: 10px;
  font-weight: 800;
}

.top-managers-card .person-row {
  justify-content: space-between;
  margin: 9px 0;
  padding: 7px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}

.leader-risk-row {
  margin-top: 16px;
}

.profile-hero--premium {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.ai-recommendation-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.ai-recommendation-card .button {
  justify-self: start;
}

.knowledge-summary,
.role-grid--premium {
  margin: 16px 0;
}

.objection-focus-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.scenario-admin-card {
  min-height: 210px;
}

.role-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(124, 58, 237, .08), transparent 30%),
    #fff;
}

.live-preview {
  overflow: hidden;
}

.live-preview .waveform {
  width: 100%;
  margin: 10px 0;
}

.app-shell.is-call,
.app-shell.is-call .workspace {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.app-shell.is-call .page-stage {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #060913;
}

.call-page {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  margin: 0;
  padding: clamp(10px, 1.4vw, 18px);
  overflow: hidden;
}

.call-grid {
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(280px, 340px);
  min-width: 0;
  overflow: hidden;
}

.call-profile,
.call-transcript,
.call-center,
.call-stage {
  min-width: 0;
  min-height: 0;
}

.call-profile,
.call-transcript {
  overflow: hidden;
  border-radius: 20px;
}

.call-profile {
  padding: clamp(14px, 1.5vw, 18px);
}

.call-transcript {
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.5vw, 18px);
}

.call-transcript .card-title-row {
  flex: 0 0 auto;
}

.message-list {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
}

.message {
  animation: transcriptIn .22s ease both;
  animation-delay: var(--delay, 0ms);
}

.waveform--hero {
  width: min(680px, 94%);
  height: clamp(112px, 24vh, 190px);
}

.call-center p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 20px;
}

.call-bottom-panel {
  max-width: min(560px, 100%);
}

.call-input-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: min(680px, 100%);
  max-width: min(680px, 100%);
  text-align: left;
}

.call-input-wrap {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.call-input-wrap input {
  min-height: 42px;
  border-color: rgba(255,255,255,.14);
  color: #fff;
  background: rgba(255,255,255,.08);
}

.call-input-wrap input::placeholder {
  color: rgba(255,255,255,.38);
}

.call-input-wrap input:focus {
  border-color: rgba(124,58,237,.82);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 4px rgba(124,58,237,.18);
}

.call-input-wrap input:disabled,
.call-send-button:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.call-send-button {
  align-self: end;
  min-height: 42px;
  white-space: nowrap;
}

.call-thinking,
.call-error {
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
}

.call-thinking {
  color: #fff;
  background: rgba(124,58,237,.2);
  border: 1px solid rgba(124,58,237,.28);
}

.call-error {
  margin-top: 12px;
  color: #fecaca;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.28);
}

@keyframes transcriptIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 780px) and (min-width: 861px) {
  .sidebar {
    gap: 7px;
    padding: 10px;
  }

  .brand {
    min-height: 38px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .nav-section {
    margin: 8px 0 4px;
    font-size: 9px;
  }

  .nav-item {
    min-height: 30px;
    font-size: 11px;
  }

  .nav-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .sidebar-user {
    min-height: 44px;
    padding: 7px;
  }

  .sidebar-user .avatar {
    width: 28px;
    height: 28px;
  }

  .section-head {
    margin-bottom: 12px;
  }

  .grid {
    gap: 12px;
  }

  .card,
  .form-card,
  .choice-card,
  .hero-panel {
    padding: 14px;
  }

  .scenario-admin-card {
    min-height: 170px;
  }
}

@media (max-width: 1366px) and (min-width: 861px) {
  :root {
    --sidebar: 216px;
  }

  .topbar {
    padding: 0 18px;
  }

  .topbar-goal {
    flex-basis: 280px;
    min-width: 180px;
  }

  .page-stage {
    padding: 16px 18px;
  }

  .call-grid {
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr) minmax(260px, 300px);
    gap: 12px;
  }

  .call-profile .persona-photo {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    font-size: 24px;
  }
}

@media (max-width: 1180px) and (min-width: 861px) {
  .grid-3,
  .scenario-grid,
  .objection-grid,
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 > .span-2,
  .span-3 {
    grid-column: span 2;
  }

  .analysis-score--premium {
    position: static;
  }
}

@media (max-width: 1120px) and (min-width: 861px) {
  :root {
    --sidebar: 76px;
  }

  .sidebar {
    overflow: hidden;
  }

  .nav-item::before {
    left: -4px;
  }

  .call-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
    overflow: auto;
  }

  .call-profile {
    grid-column: 1;
  }

  .call-center {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .call-transcript {
    grid-column: 1;
    min-height: 260px;
  }
}

@media (max-width: 860px) {
  body {
    overflow-x: hidden;
  }

  .app-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    height: auto;
    max-height: none;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  }

  .sidebar-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
  }

  .nav-section,
  .sidebar-user {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 0 10px;
  }

  .nav-item span:last-child {
    display: inline;
    max-width: 92px;
  }

  .nav-item::before {
    display: none;
  }

  .workspace {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .topbar {
    position: sticky;
    top: 57px;
    z-index: 18;
    padding: 12px 14px;
    background: rgba(255,255,255,.92);
  }

  .topbar h1 {
    white-space: normal;
  }

  .page-stage {
    overflow: visible;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head .button,
  .section-head .button-row {
    width: 100%;
  }

  .section-head .button-row .button {
    flex: 1 1 100%;
  }

  .persona-facts--grid,
  .profile-hero--premium,
  .objection-focus-card {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 96px;
  }

  .table-card {
    margin-left: -2px;
    margin-right: -2px;
  }

  .call-page {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: auto;
    padding: 12px;
  }

  .app-shell.is-call,
  .app-shell.is-call .workspace,
  .app-shell.is-call .page-stage {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .call-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .call-center {
    order: -1;
    min-height: 420px;
  }

  .call-profile {
    order: 0;
  }

  .call-transcript {
    order: 1;
  }

  .call-profile,
  .call-transcript {
    overflow: visible;
  }

  .message-list {
    max-height: 420px;
  }

  .waveform--hero {
    height: 126px;
  }

  table {
    min-width: 720px;
  }
}

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