:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #667085;
  --soft: #eef2f6;
  --line: #d9e2ea;
  --paper: #ffffff;
  --paper-2: #f8fafc;
  --black-green: #071412;
  --deep-green: #0f3d2e;
  --green: #16a061;
  --blue: #2563eb;
  --amber: #b65f00;
  --red: #b42318;
  --shadow: 0 28px 80px rgba(16, 24, 40, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    #f4f7f6;
  background-size: 42px 42px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(217, 226, 234, 0.84);
  background: rgba(255, 255, 255, 0.88);
  padding: 14px clamp(18px, 4vw, 56px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--black-green);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(7, 20, 18, 0.2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  line-height: 1.3;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.quick-prompts button,
.tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black-green);
  color: #ffffff;
  padding: 0 18px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(7, 20, 18, 0.18);
}

.button:hover,
.quick-prompts button:hover,
.tab:hover {
  transform: translateY(-1px);
}

.button-ghost {
  border-color: rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: none;
}

.button-ghost:hover {
  border-color: rgba(7, 20, 18, 0.32);
  background: #ffffff;
}

main {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch;
  padding: clamp(36px, 7vw, 82px) 0 clamp(24px, 5vw, 48px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.signal-row span,
.console-status span,
.channel-pill,
.priority {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.signal-row span {
  border: 1px solid rgba(15, 61, 46, 0.22);
  background: rgba(255, 255, 255, 0.74);
  color: var(--deep-green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-subcopy {
  max-width: 700px;
  margin-bottom: 22px;
  color: #344054;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.55;
}

.disclosure {
  max-width: 710px;
  margin: 0;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  padding: 13px 15px;
  color: #344054;
  font-size: 0.93rem;
  line-height: 1.45;
}

.call-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    var(--black-green);
  color: #ffffff;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}

.call-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
  pointer-events: none;
}

.call-card > * {
  position: relative;
}

.call-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #55f0a6;
  box-shadow: 0 0 0 8px rgba(85, 240, 166, 0.12);
}

.signal-display {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 210px;
  margin: 30px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
}

.signal-display span {
  display: block;
  min-height: 44px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #55f0a6, rgba(85, 240, 166, 0.24));
  box-shadow: 0 16px 34px rgba(85, 240, 166, 0.1);
}

.signal-display span:nth-child(1),
.signal-display span:nth-child(7) {
  height: 62px;
}

.signal-display span:nth-child(2),
.signal-display span:nth-child(6) {
  height: 112px;
}

.signal-display span:nth-child(3),
.signal-display span:nth-child(5) {
  height: 152px;
}

.signal-display span:nth-child(4) {
  height: 184px;
  background: linear-gradient(180deg, #ffffff, rgba(85, 240, 166, 0.32));
}

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

.call-transcript p {
  margin-bottom: 0;
  border-radius: 14px;
  padding: 13px 14px;
  line-height: 1.42;
}

.caller-line {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
}

.agent-line {
  background: #ffffff;
  color: #17202a;
}

.call-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.call-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  padding: 12px;
}

.call-metrics dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.75rem;
  font-weight: 800;
}

.call-metrics dd {
  margin: 3px 0 0;
  font-weight: 900;
}

.demo-console {
  margin-bottom: 36px;
  border: 1px solid rgba(217, 226, 234, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 3vw, 30px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.console-status {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.console-status span {
  background: #eff6ff;
  color: #174a7c;
}

.console-status strong {
  font-size: 0.95rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px clamp(16px, 3vw, 30px);
}

.tab {
  background: transparent;
  border-color: transparent;
  color: #475467;
  padding: 0 14px;
  font-weight: 850;
}

.tab.is-active {
  background: var(--black-green);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(7, 20, 18, 0.15);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  gap: 18px;
  padding: clamp(16px, 3vw, 30px);
}

.conversation-tool,
.lead-tool,
.single-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  overflow: hidden;
}

.conversation-tool,
.lead-tool {
  display: flex;
  min-height: 620px;
  flex-direction: column;
}

.single-panel {
  min-height: 420px;
  margin: clamp(16px, 3vw, 30px);
  padding: clamp(20px, 3vw, 30px);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.panel-header.flat {
  padding: 0 0 18px;
}

.panel-header p,
.voice-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.channel-pill {
  background: #ecfdf3;
  color: var(--deep-green);
}

.messages {
  display: flex;
  flex: 1;
  min-height: 350px;
  max-height: 450px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
}

.message {
  width: min(88%, 620px);
  border-radius: 16px;
  padding: 13px 15px;
  line-height: 1.48;
  white-space: pre-line;
}

.message p {
  margin-bottom: 0;
}

.message.agent {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.message.user {
  align-self: flex-end;
  background: var(--deep-green);
  color: #ffffff;
}

.message.system {
  align-self: center;
  width: 100%;
  border: 1px dashed #b7c7d8;
  background: #f4f7fb;
  color: var(--muted);
  text-align: center;
}

.quick-prompts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 14px 18px 0;
}

.quick-prompts button {
  min-width: 0;
  border-color: #c7d7ce;
  background: #f0fbf6;
  color: #0b4a2f;
  padding: 0 10px;
  font-size: 0.9rem;
  font-weight: 850;
}

.quick-prompts button:hover {
  border-color: var(--green);
  background: #e1f5eb;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 18px 18px;
}

.composer input {
  min-height: 50px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
}

.composer input:focus {
  outline: 4px solid rgba(37, 99, 235, 0.14);
  border-color: var(--blue);
}

.priority {
  min-height: 34px;
}

.priority-info {
  background: #eff4ff;
  color: #174a7c;
}

.priority-routine {
  background: #f2f4f7;
  color: #344054;
}

.priority-urgent {
  background: #fff4e5;
  color: var(--amber);
}

.priority-emergency {
  background: #fff1f0;
  color: var(--red);
}

.routing-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 18px 0;
}

.routing-strip div {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  padding: 14px;
}

.routing-strip span,
.lead-fields dt,
.owner-alert span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.routing-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.lead-fields {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
}

.lead-fields div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 10px;
}

.lead-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.owner-alert {
  margin: auto 18px 18px;
  border: 1px solid #d6dde6;
  border-radius: 16px;
  background: #f8fafc;
  padding: 15px;
}

.owner-alert p {
  margin: 7px 0 0;
  color: #475467;
  line-height: 1.45;
}

.owner-alert.is-hot {
  border-color: #f3b8b1;
  background: #fff7f5;
}

.packet-preview {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.packet-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.packet-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.packet-card header span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.packet-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.packet-card div {
  border-bottom: 1px solid #edf1f5;
  padding: 14px 16px;
}

.packet-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.packet-card dd {
  margin: 5px 0 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.voice-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  padding: 18px 18px 18px 34px;
  line-height: 1.55;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 20px 0 30px;
  color: var(--muted);
  font-size: 0.88rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 980px) {
  .hero,
  .workspace-grid,
  .voice-panel {
    grid-template-columns: 1fr;
  }

  .call-card {
    min-height: 520px;
  }

  .conversation-tool,
  .lead-tool {
    min-height: auto;
  }

  .messages {
    max-height: 460px;
  }

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

@media (max-width: 640px) {
  body {
    background-size: 30px 30px;
  }

  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .button {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
  }

  main,
  .footer {
    width: min(100vw - 22px, 1220px);
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero {
    padding-top: 28px;
  }

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

  .call-metrics,
  .routing-strip,
  .packet-card dl {
    grid-template-columns: 1fr;
  }

  .console-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-status {
    justify-items: start;
  }

  .quick-prompts {
    grid-template-columns: 1fr;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .composer .button {
    width: 100%;
  }

  .lead-fields div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
