:root {
  --bg: #ffffff;
  --bg-subtle: #f6f6f4;
  --bg-muted: #efefec;
  --border: #e4e4e0;
  --border-strong: #d0d0cb;
  --text: #111111;
  --text-secondary: #4a4a46;
  --text-muted: #6f6f6a;
  --accent: #111111;
  --accent-hover: #2a2a28;
  --link: #1a4fd6;
  --success: #0d7a56;
  --success-bg: #e8f5ef;
  --warning-bg: #f5f0e8;
  --warning: #8a5a12;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 8px 32px rgba(17, 17, 17, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

.narrow {
  width: min(760px, calc(100% - 3rem));
  margin-inline: auto;
}

.center {
  text-align: center;
}

/* Announcement */
.announcement {
  background: var(--text);
  color: #f5f5f3;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

.announcement a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--text);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px 6px 6px 7px;
  border: 2px solid #fff;
  border-radius: 2px;
}

.nav {
  display: none;
  gap: 2rem;
  margin-left: auto;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

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

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--bg-subtle);
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.7rem 0.75rem;
}

.btn-text:hover {
  color: var(--text);
}

.btn-block {
  width: 100%;
}

/* Hero — motion layer in motion.css */

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 700;
}

.lead {
  margin: 0 0 2rem;
  max-width: 52ch;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-demo-hint {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.link-btn {
  border: none;
  padding: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Platform shell */
.hero-visual {
  min-width: 0;
}

.platform-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.platform-toolbar {
  padding: 0.65rem 1rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.platform-url {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.platform-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 320px;
}

.platform-nav {
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--border);
  background: var(--bg-subtle);
}

.nav-item {
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.25rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.nav-item.active {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.platform-main {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.inbox-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
}

.inbox-row.highlight {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.channel-tag {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.channel-tag.web { background: #e8eef8; color: #1a4fd6; }
.channel-tag.discord { background: #eceaf8; color: #4f46b5; }
.channel-tag.wa { background: #e8f5ef; color: var(--success); }

.inbox-q {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-status {
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.inbox-status.resolved { color: var(--success); }
.inbox-status.routed { color: var(--warning); }

.answer-panel {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.answer-label {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.answer-panel p:last-child {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Trust band */
.trust-band {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

.trust-label {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.logo-track span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Stats */
.stats-band {
  padding: 3rem 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-value {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 18ch;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 52ch;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head.center .section-sub {
  margin-inline: auto;
}

.split-section {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.split-copy p:last-child {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Flow diagram */
.flow-diagram {
  display: grid;
  gap: 0.75rem;
}

.flow-node {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.flow-node.source,
.flow-node.core {
  background: var(--bg-subtle);
}

.flow-title {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.flow-arrow {
  width: 2px;
  height: 20px;
  margin: 0 auto;
  background: var(--border-strong);
}

.flow-outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.flow-node.out {
  text-align: center;
  font-weight: 500;
  font-size: 0.8125rem;
}

/* Solutions */
.solutions-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.solution-group {
  margin-bottom: 2.5rem;
}

.solution-group:last-child {
  margin-bottom: 0;
}

.solution-category {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.solution-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.solution-card {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.solution-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.solution-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.solution-card p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--link);
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Process */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.process-steps li:last-child {
  border-bottom: none;
}

.step-index {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}

.process-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.process-steps p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Proof */
.proof-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.proof-card {
  margin: 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}

.proof-card p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.proof-card footer {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Integrations */
.integrations-section {
  border-top: 1px solid var(--border);
}

.integration-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.integration-grid span {
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Pricing */
.pricing-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.price-card.featured {
  border-color: var(--text);
  box-shadow: var(--shadow-md);
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 1.5rem;
  margin: 0;
  padding: 0.25rem 0.65rem;
  background: var(--text);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.price-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.price-line {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.price-amount {
  font-weight: 700;
  color: var(--text);
}

.price-mrr {
  margin: 0.5rem 0 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-mrr span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* Pilot */
.pilot-section {
  border-top: 1px solid var(--border);
}

.pilot-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.pilot-copy h2 {
  margin: 0 0 0.75rem;
}

.pilot-copy > p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.pilot-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilot-points li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.pilot-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.pilot-form {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
}

.pilot-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pilot-form input,
.pilot-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
}

.pilot-form input:focus,
.pilot-form select:focus {
  outline: 2px solid rgba(26, 79, 214, 0.25);
  border-color: var(--link);
}

.form-note {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-note a {
  color: var(--link);
  font-weight: 500;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  padding-right: 2rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--text);
  color: #c8c8c4;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  max-width: 28ch;
}

.site-footer .logo {
  color: #fff;
}

.site-footer .logo-mark {
  background: #fff;
}

.site-footer .logo-mark::after {
  border-color: var(--text);
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.footer-col {
  display: grid;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: #c8c8c4;
}

.footer-col a:hover {
  color: #fff;
}

.copyright {
  margin: 1rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: #8a8a86;
  grid-column: 1 / -1;
}

/* Mobile nav open */
body.nav-open .nav,
body.nav-open .header-cta {
  display: flex;
}

body.nav-open .nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-left: 0;
}

body.nav-open .header-cta {
  position: absolute;
  top: calc(100% + 180px);
  left: 1.5rem;
  right: 1.5rem;
  flex-direction: column;
}

body.nav-open .header-cta .btn {
  width: 100%;
}

/* Responsive */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .solution-group:last-child .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .pilot-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .split-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }

  .header-cta {
    display: flex;
    margin-left: 0;
  }

  .menu-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 4rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .solution-group .solution-grid:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}