:root {
  color-scheme: light;
  --page: #e9f1f6;
  --shell: #d7e7ef;
  --panel: #c9e0e9;
  --panel-strong: #b4d7e2;
  --panel-selected: #acd3df;
  --ink: #102d43;
  --muted: #45687f;
  --soft: #728da0;
  --line: #9fd0db;
  --line-strong: #69b6c6;
  --accent: #2bbfc6;
  --accent-strong: #2448c6;
  --white: #f9fcfe;
  --shadow: 0 24px 70px rgba(18, 48, 71, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(16, 45, 67, 0.035) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(315deg, rgba(43, 191, 198, 0.028) 25%, transparent 25%) 17px 17px / 34px 34px,
    radial-gradient(circle at 18% 10%, rgba(172, 211, 223, 0.65), transparent 36%),
    linear-gradient(180deg, rgba(238, 245, 249, 0.96), rgba(215, 231, 239, 0.96)),
    var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(233, 241, 246, 0.92);
  border-bottom: 1px solid rgba(159, 208, 219, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.84fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  padding: 64px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  max-width: 800px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

p {
  line-height: 1.62;
}

.hero-lockup {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: 24px;
}

.hero-lockup img {
  width: clamp(86px, 11vw, 136px);
  height: clamp(86px, 11vw, 136px);
  flex: 0 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 24px rgba(18, 48, 71, 0.13));
}

.hero-subtitle,
.lede,
.hero-proof,
.section-heading p,
.split-section > div > p,
.contact-card p {
  color: var(--muted);
}

.hero-subtitle {
  margin: 10px 0 0;
  max-width: 560px;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}

.lede {
  max-width: 740px;
  font-size: 20px;
}

.hero-proof {
  max-width: 700px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent-strong);
  border-radius: 0 8px 8px 0;
  background: rgba(201, 224, 233, 0.72);
  font-weight: 700;
}

.actions,
.panel-actions,
.notebook-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions {
  margin-top: 30px;
}

.button,
button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(18, 48, 71, 0.06);
}

.button:hover,
button:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.button.primary {
  border-color: var(--line-strong);
  background: var(--panel-selected);
  color: var(--ink);
}

.interface-panel,
.notebook-panel,
.contact-card {
  border: 1px solid rgba(105, 182, 198, 0.78);
  border-radius: 8px;
  background: var(--shell);
  box-shadow: var(--shadow);
}

.interface-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--panel-selected);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.chat-row,
.workflow-steps article,
.capability-card,
.notebook-grid article,
.security-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.chat-row {
  padding: 16px;
}

.chat-row p:last-child {
  margin-bottom: 0;
}

.chat-row.user {
  margin-left: 34px;
  background: #c5dde7;
}

.chat-row.assistant {
  margin-right: 34px;
  border-color: var(--line-strong);
  background: var(--panel-selected);
  box-shadow: inset 4px 0 0 var(--accent-strong);
}

.chat-row.assistant strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.panel-actions span,
.notebook-tags span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.panel-actions span:last-child {
  border-color: rgba(57, 205, 209, 0.82);
  color: #087f85;
}

.section {
  padding: 62px 0 74px;
  border-top: 1px solid rgba(181, 220, 229, 0.9);
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 18px;
}

.capability-grid,
.security-grid,
.notebook-grid {
  display: grid;
  gap: 14px;
}

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

.capability-card,
.notebook-grid article,
.security-grid div,
.workflow-steps article {
  padding: 20px;
}

.capability-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(220, 235, 243, 0.72));
}

.card-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.capability-card p,
.notebook-grid p,
.security-grid p,
.workflow-steps p,
.notebook-panel p,
.deployment-section p {
  color: var(--muted);
}

.split-section,
.notebook-layout,
.deployment-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: start;
}

.workflow-steps {
  display: grid;
  gap: 12px;
}

.workflow-steps article {
  background: rgba(255, 255, 255, 0.62);
}

.workflow-steps strong {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--panel-selected);
  color: var(--ink);
  box-shadow: inset 4px 0 0 var(--accent-strong);
}

.notebook-panel {
  padding: 22px;
}

.notebook-panel h3 {
  margin-top: 22px;
  font-size: 28px;
}

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

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

.deployment-section {
  align-items: center;
  padding: 42px;
  border: 1px solid rgba(123, 191, 206, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(199, 228, 237, 0.86), rgba(255, 255, 255, 0.86));
  box-shadow: var(--shadow);
}

.deployment-section p {
  margin-bottom: 0;
  font-size: 18px;
}

.contact-section {
  padding-bottom: 94px;
}

.contact-card {
  padding: 24px;
}

.contact-card p {
  font-size: 18px;
}

textarea,
input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 178px;
  padding: 14px;
  resize: vertical;
  line-height: 1.45;
}

textarea:focus,
input:focus,
select:focus,
button:focus,
.button:focus {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.status-grid,
.map,
.agent-console,
.admin-console,
.user-form,
.queue,
.phone-log,
.user-directory,
.dialog-body,
.route-grid {
  display: grid;
  gap: 12px;
}

.status-card,
.agent-result,
.queue-item,
.user-card,
.phone-log-panel,
.call-dialog,
.dialog-line,
.event-line,
.workflow-node,
.route-grid article,
.map > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.dialog-backdrop[hidden],
.phone-log-panel[hidden],
.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 45, 67, 0.34);
  backdrop-filter: blur(10px);
}

.contact-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(105, 182, 198, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 45, 67, 0.035) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(315deg, rgba(43, 191, 198, 0.03) 25%, transparent 25%) 14px 14px / 28px 28px,
    var(--shell);
  box-shadow: 0 28px 80px rgba(16, 45, 67, 0.26);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 8px;
  font-size: 28px;
  line-height: 1;
}

.contact-modal h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 5vw, 42px);
}

.contact-form,
.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form {
  gap: 16px;
}

.contact-form span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

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

@media (max-width: 980px) {
  .hero,
  .split-section,
  .notebook-layout,
  .deployment-section,
  .contact-section,
  .capability-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .chat-row.user,
  .chat-row.assistant {
    margin-left: 0;
    margin-right: 0;
  }

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