:root {
  color-scheme: light;
  --ink: #151718;
  --muted: #5e6465;
  --paper: #f6f2ea;
  --panel: #fffefa;
  --line: #ded7cb;
  --charcoal: #181b1c;
  --teal: #116b62;
  --blue: #265d8f;
  --copper: #b85f32;
  --gold: #dba945;
  --green: #dce9df;
  --shadow: 0 24px 70px rgba(21, 23, 24, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  align-items: center;
  background: rgba(246, 242, 234, 0.92);
  border-bottom: 1px solid rgba(222, 215, 203, 0.82);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand, .nav-links, .hero-actions, .hero-metrics, .proof-band, .site-footer {
  align-items: center;
  display: flex;
}

.brand { gap: 10px; font-weight: 700; min-width: max-content; }
.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 7px;
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-links { color: var(--muted); gap: clamp(12px, 2vw, 24px); font-size: 0.92rem; }
.nav-links a:hover, .brand:hover { color: var(--teal); }
.header-cta, .menu-button, .agent-launch {
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 16px;
}
.menu-button { display: none; }

.agent-launch {
  background: var(--ink);
  color: white;
}

.agent-widget {
  background: transparent;
  border: 0;
  box-shadow: none;
  height: 0;
  min-height: 0;
  overflow: visible;
  padding: 0;
  position: static;
  width: 0;
}

.agent-widget elevenlabs-convai {
  display: block;
}

.hero { min-height: 92vh; overflow: hidden; position: relative; }
.hero-image, .hero-shade { height: 100%; inset: 0; position: absolute; width: 100%; }
.hero-image { object-fit: cover; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 15, 16, 0.94) 0%, rgba(12, 15, 16, 0.78) 38%, rgba(12, 15, 16, 0.2) 76%),
    linear-gradient(0deg, rgba(12, 15, 16, 0.75) 0%, rgba(12, 15, 16, 0) 34%);
}
.hero-content {
  color: white;
  max-width: 820px;
  padding: clamp(126px, 18vh, 188px) clamp(20px, 5vw, 72px) 72px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.hero .eyebrow { color: #f0b96e; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.7rem); line-height: 0.95; letter-spacing: 0; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: 0; margin-bottom: 0; }
h3 { font-size: 1.18rem; line-height: 1.2; margin-bottom: 10px; }
p { line-height: 1.6; }
.hero-copy { color: rgba(255, 255, 255, 0.84); font-size: clamp(1.05rem, 2vw, 1.26rem); max-width: 680px; }

.button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}
.button-primary { background: var(--gold); color: #1c160d; }
.button-secondary { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.34); color: white; }
.hero-actions { flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-metrics {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  gap: clamp(18px, 4vw, 48px);
  margin: 48px 0 0;
  padding-top: 24px;
}
.hero-metrics dt { font-size: 1.9rem; font-weight: 900; }
.hero-metrics dd { color: rgba(255, 255, 255, 0.68); margin: 3px 0 0; }

.proof-band {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.75);
  flex-wrap: wrap;
  gap: 16px 34px;
  justify-content: center;
  min-height: 76px;
  padding: 18px 20px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.section { padding: clamp(70px, 10vw, 128px) clamp(20px, 5vw, 72px); }
.section-heading {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin-bottom: 42px;
}
.section-heading .eyebrow { margin-top: 8px; }

.value-grid, .pricing-grid, .card-grid, .demo-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.value-grid article, .price-card, .timeline article, .link-card, .demo-card, .workflow-card, .stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}
.value-grid p, .link-card p, .timeline p, .price-card p, .demo-card p, .workflow-card p, .calculator-copy p, .stat-card p, .page-copy p {
  color: var(--muted);
}
.mini-icon { color: var(--teal); display: inline-block; font-size: 0.78rem; font-weight: 900; margin-bottom: 46px; }

.split-section, .calculator-section, .demo-preview, .final-cta, .page-hero, .detail-section {
  display: grid;
  gap: clamp(28px, 5vw, 80px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.split-section, .demo-preview { background: #e9e3d7; }

.timeline { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline.compact { grid-template-columns: 1fr; }
.timeline span {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  color: #1a140b;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 28px;
  width: 34px;
}

.process-section { background: var(--ink); color: white; }
.process-section .section-heading h2 { color: white; }
.use-case-strip, .demo-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.use-case-strip a, .demo-list a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-weight: 850;
  padding: 18px;
}
.demo-list a { background: var(--panel); border-color: var(--line); color: var(--ink); }

.link-card span, .demo-card span { color: var(--teal); display: block; font-weight: 900; margin-bottom: 12px; }
.link-card:hover, .demo-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); transition: 160ms ease; }

.calculator-section { align-items: center; }
.calculator {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
}
.calculator label, .lead-form label { color: var(--ink); display: grid; font-weight: 850; gap: 10px; }
input, textarea, select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 12px 14px;
  width: 100%;
}
input[type="range"] { accent-color: var(--teal); padding: 0; }
output { color: var(--teal); font-weight: 900; }
.result-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.result-grid div {
  background: var(--green);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
}
.result-grid span {
  color: var(--muted);
  font-size: clamp(0.82rem, 1.1vw, 0.96rem);
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.result-grid strong {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pricing-section { background: #fdfbf7; }
.price-card.featured { border-color: var(--teal); box-shadow: var(--shadow); }
.plan { color: var(--copper); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.price-card h3 { font-size: 2.5rem; margin-bottom: 10px; }
.price-card h3 span { color: var(--muted); font-size: 1rem; }
.price-card ul, .check-list { list-style: none; margin: 22px 0 0; padding: 0; }
.price-card li, .check-list li { border-top: 1px solid var(--line); color: var(--muted); padding: 13px 0; }
.price-card li::before, .check-list li::before { color: var(--teal); content: "✓"; font-weight: 900; margin-right: 9px; }

.final-cta { background: var(--charcoal); color: white; padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 72px); }
.lead-form {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
}
.lead-form label { color: white; }
.lead-form input, .lead-form textarea, .lead-form select { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: white; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(255, 255, 255, 0.5); }

.site-footer {
  background: #11100f;
  color: rgba(255, 255, 255, 0.68);
  gap: 18px;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
}
.site-footer span:first-child { color: white; font-weight: 900; }

.page-main { padding-top: 68px; }
.page-hero {
  background: var(--charcoal);
  color: white;
  padding: clamp(78px, 10vw, 132px) clamp(20px, 5vw, 72px);
}
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); max-width: 900px; }
.page-copy { align-self: end; max-width: 680px; }
.page-hero .page-copy p { color: rgba(255, 255, 255, 0.72); }
.breadcrumb { color: rgba(255, 255, 255, 0.62); font-weight: 800; margin-bottom: 22px; }
.detail-section { align-items: start; }
.workflow-card + .workflow-card { margin-top: 14px; }
.conversation {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 24px;
}
.bubble { border-radius: 8px; max-width: 88%; padding: 14px 16px; }
.bubble.customer { background: #eef1f4; justify-self: start; }
.bubble.ai { background: var(--green); justify-self: end; }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card strong { display: block; font-size: 2.2rem; margin-bottom: 6px; }

@media (max-width: 1060px) {
  .nav-links { display: none; }
  .menu-button { display: inline-flex; }
  .nav-links[data-open="true"] {
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 0;
    left: 0;
    padding: 10px 20px 20px;
    position: absolute;
    right: 0;
    top: 67px;
  }
  .nav-links[data-open="true"] a { border-top: 1px solid var(--line); padding: 14px 0; }
}

@media (max-width: 900px) {
  .agent-widget {
    display: block;
  }

  .hero { min-height: 860px; }
  .hero-shade { background: linear-gradient(180deg, rgba(12, 15, 16, 0.88) 0%, rgba(12, 15, 16, 0.64) 58%, rgba(12, 15, 16, 0.88) 100%); }
  .section-heading, .split-section, .calculator-section, .demo-preview, .final-cta, .page-hero, .detail-section,
  .value-grid, .pricing-grid, .card-grid, .card-grid.four, .demo-grid, .timeline, .use-case-strip, .demo-list, .result-grid, .stat-grid {
    grid-template-columns: 1fr;
  }
  .mini-icon { margin-bottom: 24px; }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .calculator-section {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .result-grid div {
    align-items: center;
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 560px) {
  .site-header { gap: 10px; }
  .brand span:last-child { display: none; }
  .header-cta { padding-inline: 12px; }
  .hero-content { padding-inline: 18px; }
  .hero-actions .button { width: 100%; }
  .hero-metrics, .site-footer { align-items: flex-start; flex-direction: column; }
  .proof-band { justify-content: flex-start; }
  .button { width: 100%; }
}
