:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #66758a;
  --line: #dbe5ec;
  --paper: #ffffff;
  --soft: #eef5f2;
  --soft-2: #f7faf9;
  --brand: #0c7c72;
  --brand-dark: #075f5a;
  --accent: #c94f2d;
  --navy: #12243a;
  --yellow: #f5c542;
  --shadow: 0 24px 70px rgba(18, 36, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 226, 234, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 38px;
  color: #fff;
  background: var(--navy);
  border-radius: 12px 12px 12px 4px;
  font-size: 0.86rem;
  font-weight: 900;
}

.brand-mark::after {
  position: absolute;
  right: 7px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--brand);
  border-radius: 0 0 8px 0;
  transform: rotate(45deg);
}

.brand-wordmark {
  font-size: 1.08rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a {
  text-decoration: none;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 16px;
  color: #fff !important;
  background: var(--brand);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 7vw 5vw 5vw;
  background:
    linear-gradient(135deg, rgba(238, 245, 242, 0.96), rgba(255, 255, 255, 0.78)),
    linear-gradient(90deg, rgba(12, 124, 114, 0.1), rgba(201, 79, 45, 0.07));
}

.hero > *,
.visual-grid > *,
.feature-columns > *,
.admin-mock > *,
.pricing-panel > *,
.contact-grid > * {
  min-width: 0;
}

.hero-content {
  max-width: 780px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6.2vw, 5.9rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.22;
}

.hero-copy {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  color: #fff;
  background: var(--brand);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-dark);
}

.button-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  list-style: none;
}

.trust-list li,
.chip-cloud span,
.chat-tags span {
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(216, 226, 234, 0.92);
  border-radius: 999px;
}

.product-visual {
  min-width: 0;
  overflow: hidden;
  min-height: 520px;
  background: var(--navy);
  border: 1px solid rgba(18, 36, 58, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  gap: 8px;
  height: 44px;
  align-items: center;
  padding: 0 18px;
  background: #0d1a2a;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7891a7;
}

.browser-bar span:first-child {
  background: var(--accent);
}

.browser-bar span:nth-child(2) {
  background: var(--yellow);
}

.visual-grid {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 20px;
  min-height: 476px;
  padding: 24px;
}

.chat-panel,
.dashboard-panel,
.overview-grid article,
.step-card,
.benefit-grid article,
.pricing-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-panel,
.dashboard-panel {
  padding: 20px;
  background: #f7faf9;
}

.panel-title {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.message-bot {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.message-user {
  margin-left: auto;
  color: #fff;
  background: var(--brand);
}

.chat-tags,
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-tags span,
.chip-cloud span {
  font-size: 0.82rem;
}

.metric-row,
.lead-card,
.stock-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  margin-bottom: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-row span,
.lead-card p,
.stock-strip span,
.section-heading p,
.overview-grid p,
.step-card p,
.benefit-grid p,
.pricing-panel p,
.cta-band p,
.site-footer p {
  color: var(--muted);
}

.metric-row strong {
  color: var(--brand-dark);
  font-size: 1rem;
}

.lead-card {
  justify-content: flex-start;
}

.lead-card p {
  margin: 2px 0 0;
  font-size: 0.9rem;
}

.status-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 999px;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-list span {
  padding: 11px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
}

.stock-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 26px;
}

.stock-bars i {
  display: block;
  width: 8px;
  background: var(--brand);
  border-radius: 4px;
}

.stock-bars i:first-child {
  height: 16px;
}

.stock-bars i:nth-child(2) {
  height: 26px;
}

.stock-bars i:last-child {
  height: 20px;
  background: var(--accent);
}

.section {
  padding: 96px 5vw;
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  max-width: 960px;
  margin-bottom: 38px;
}

.overview-grid,
.step-grid,
.benefit-grid {
  display: grid;
  gap: 18px;
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-grid article,
.step-card,
.benefit-grid article {
  padding: 24px;
}

.step-grid,
.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 900;
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-grid p,
.overview-grid p,
.step-card p {
  margin-bottom: 0;
}

.feature-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  max-width: 1120px;
}

.feature-columns ul,
.pricing-panel ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-columns li,
.pricing-panel li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.feature-columns li::before,
.pricing-panel li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--brand);
  border-radius: 999px;
}

.admin-section {
  background: #fff;
}

.admin-mock {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  max-width: 1120px;
  overflow: hidden;
  color: #dbe6ef;
  background: #0d1a2a;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: var(--navy);
}

.admin-sidebar strong {
  margin-bottom: 8px;
  color: #fff;
}

.admin-sidebar span {
  padding: 10px 12px;
  color: #bdd0df;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.admin-main {
  padding: 24px;
  background: #f7faf9;
  color: var(--ink);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.stage-pill {
  padding: 7px 11px;
  color: var(--brand-dark);
  background: #dff2ed;
  border-radius: 999px;
  font-weight: 800;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-detail-grid div,
.transcript-box {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-detail-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.transcript-box {
  margin-top: 14px;
}

.transcript-box p:last-child {
  margin-bottom: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 64px 5vw;
  color: #fff;
  background: var(--navy);
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p,
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.cta-band .button-primary {
  flex: 0 0 auto;
  background: var(--accent);
}

.pricing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 32px;
  max-width: 1040px;
  padding: 32px;
}

.contact-section {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1040px;
}

.contact-grid a,
.contact-grid span {
  min-height: 72px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.site-footer {
  display: grid;
  gap: 18px;
  padding: 42px 5vw;
  color: #dbe6ef;
  background: #0d1a2a;
}

.site-footer p {
  max-width: 920px;
  margin-bottom: 0;
  color: #aebdcc;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #fff;
}

.footer-links a {
  text-decoration: none;
}

.legal {
  font-size: 0.9rem;
}

.copyright {
  font-size: 0.86rem;
}

.demo-widget {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 12px;
  max-width: min(420px, calc(100vw - 28px));
}

.demo-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 16px 10px 10px;
  color: #fff;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 850;
}

.demo-launcher-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--brand);
  border-radius: 999px;
}

.demo-panel {
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 96px));
  max-height: min(720px, calc(100dvh - 96px));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: #fff;
  background: var(--navy);
}

.demo-header strong,
.demo-header span {
  display: block;
}

.demo-header span {
  color: #c7d6e3;
  font-size: 0.84rem;
}

.demo-header-actions {
  display: flex;
  gap: 8px;
  align-items: start;
}

.demo-header-actions button {
  min-height: 34px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.demo-messages {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 120px;
  max-height: 210px;
  overflow-y: auto;
  padding: 14px;
  background: var(--soft-2);
}

.demo-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.demo-msg.bot {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.demo-msg.user {
  justify-self: end;
  color: #fff;
  background: var(--brand);
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
}

.quick-prompts button {
  padding: 8px 10px;
  color: var(--brand-dark);
  background: #e4f4f0;
  border: 1px solid #c9e6df;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
}

.demo-lead-preview {
  flex: 0 1 auto;
  margin: 12px 14px;
  padding: 12px;
  overflow: auto;
  background: #fffaf1;
  border: 1px solid #f0dcc0;
  border-radius: 8px;
}

.demo-lead-preview strong {
  display: block;
  margin-bottom: 8px;
}

.demo-lead-preview dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.demo-lead-preview div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.demo-lead-preview dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.demo-lead-preview dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
  font-size: 0.82rem;
}

.demo-inputbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 14px 14px;
}

.demo-inputbar input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.demo-inputbar button {
  padding: 10px 13px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero,
  .pricing-panel,
  .feature-columns,
  .admin-mock {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .product-visual {
    min-height: auto;
  }

  .visual-grid,
  .overview-grid,
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 5vw;
    right: 5vw;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .hero {
    padding: 54px 5vw;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 4.2rem);
  }

  .section {
    padding: 68px 5vw;
  }

  .overview-grid,
  .step-grid,
  .benefit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    display: grid;
  }

  .demo-widget {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    max-width: none;
  }

  .demo-launcher {
    justify-self: end;
  }

  .demo-panel {
    width: 100%;
    max-height: min(640px, calc(100vh - 86px));
    max-height: min(640px, calc(100dvh - 86px));
  }

  .demo-messages {
    max-height: 165px;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .visual-grid {
    padding: 14px;
  }

  .chat-panel,
  .dashboard-panel,
  .admin-main,
  .admin-sidebar {
    padding: 14px;
  }

  .demo-launcher {
    max-width: calc(100vw - 20px);
  }

  .demo-lead-preview div {
    display: grid;
    gap: 2px;
  }

  .demo-lead-preview dd {
    text-align: left;
  }
}
