:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --surface-3: #ebeae6;
  --fg: #1c1917;
  --fg-soft: #44403c;
  --muted: #78716c;
  --muted-soft: #a8a29e;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --accent: #534ab7;
  --accent-soft: #eeedfe;
  --accent-strong: #3c3489;
  --accent-border: #dcd9f8;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --font-display: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-pill: 999px;
  --shadow: 0 24px 80px rgba(28, 25, 23, 0.12);
}

html[data-theme="dark"] {
  --bg: #0c0a09;
  --surface: #1c1917;
  --surface-2: #292524;
  --surface-3: #38322f;
  --fg: #f5f5f4;
  --fg-soft: #e7e5e4;
  --muted: #a8a29e;
  --muted-soft: #78716c;
  --border: #292524;
  --border-strong: #44403c;
  --accent: #a89cfa;
  --accent-soft: #241f47;
  --accent-strong: #c7bffd;
  --accent-border: #312a75;
  --success: #4ade80;
  --success-soft: #0b2512;
  --warn: #fbbf24;
  --warn-soft: #271c0a;
  --danger: #f87171;
  --danger-soft: #2a0f0f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #0c0a09;
    --surface: #1c1917;
    --surface-2: #292524;
    --surface-3: #38322f;
    --fg: #f5f5f4;
    --fg-soft: #e7e5e4;
    --muted: #a8a29e;
    --muted-soft: #78716c;
    --border: #292524;
    --border-strong: #44403c;
    --accent: #a89cfa;
    --accent-soft: #241f47;
    --accent-strong: #c7bffd;
    --accent-border: #312a75;
    --success: #4ade80;
    --success-soft: #0b2512;
    --warn: #fbbf24;
    --warn-soft: #271c0a;
    --danger: #f87171;
    --danger-soft: #2a0f0f;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.sr-only,
.skip-link:not(:focus) {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link:focus {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  left: 16px;
  padding: 10px 12px;
  position: fixed;
  top: 16px;
  z-index: 1000;
}

.container {
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 24px;
  width: 100%;
}

.site-header {
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
}

.brand img {
  height: 42px;
  object-fit: contain;
  width: auto;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.desktop-nav a {
  border-radius: var(--r-md);
  color: var(--fg-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  background: var(--surface-2);
  color: var(--fg);
  outline: none;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.select-wrap select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--fg);
  height: 34px;
  padding: 0 8px;
}

.icon-button,
.menu-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--fg);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-width: 34px;
}

.icon-button:hover,
.menu-button:hover {
  background: var(--surface-2);
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.menu-button span:not(.sr-only) {
  background: var(--fg);
  border-radius: var(--r-pill);
  height: 2px;
  width: 16px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  gap: 6px;
  height: 36px;
  justify-content: center;
  padding: 0 14px;
  transition: background 0.14s, border-color 0.14s, transform 0.05s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

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

html[data-theme="dark"] .btn-primary {
  color: #16131f;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .btn-primary {
    color: #16131f;
  }
}

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

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--fg);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-ghost {
  color: var(--fg-soft);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--fg);
}

.btn-lg {
  font-size: 14px;
  height: 44px;
  padding: 0 18px;
}

.btn-full {
  width: 100%;
}

.hero {
  overflow: hidden;
  padding: 78px 0 52px;
  position: relative;
}

.hero::before {
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    linear-gradient(180deg, var(--surface-2), transparent 48%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  position: relative;
}

.kicker {
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-top: 16px;
  max-width: 850px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: 0;
  line-height: 1.05;
}

h3 {
  font-size: 16px;
  line-height: 1.25;
}

.hero-lead {
  color: var(--fg-soft);
  font-size: clamp(17px, 2vw, 21px);
  margin-top: 22px;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.microcopy {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

.product-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  min-height: 520px;
  overflow: hidden;
}

.mock-top {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
}

.mock-top strong {
  font-size: 13px;
  margin-left: 6px;
}

.dot {
  background: var(--border-strong);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.mock-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.chat-card,
.dashboard-card,
.steps article,
.feature-card,
.area-card,
.pricing-card,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.chat-card {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--fg);
  padding: 14px;
}

.chat-card span,
.dashboard-card small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.process-line {
  display: grid;
  gap: 8px;
}

.process-line span {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--fg-soft);
  display: flex;
  font-size: 13px;
  min-height: 42px;
  padding: 0 12px;
}

.dashboard-card {
  padding: 16px;
}

.dashboard-card ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.dashboard-card li {
  align-items: center;
  display: flex;
  gap: 9px;
}

.dashboard-card li span:first-child {
  background: var(--success);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.proof-strip {
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

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

.proof-grid div {
  padding: 20px 0;
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.section {
  padding: 88px 0;
}

.muted-section {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 34px;
  max-width: 820px;
}

.section-head .kicker {
  margin-bottom: 12px;
}

.section-head.narrow {
  max-width: 760px;
}

.section-text {
  color: var(--fg-soft);
  font-size: 17px;
  margin-top: 16px;
}

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

.steps article,
.feature-card,
.area-card,
.pricing-card {
  padding: 18px;
}

.steps article > span {
  align-items: center;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  color: var(--accent-strong);
  display: inline-flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  margin-bottom: 16px;
  width: 32px;
}

.steps p,
.feature-card p,
.area-card p,
.pricing-card p,
.faq-answer {
  color: var(--fg-soft);
  font-size: 14px;
  margin-top: 8px;
}

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

.feature-icon {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: inline-flex;
  font-size: 20px;
  height: 38px;
  justify-content: center;
  margin-bottom: 14px;
  width: 38px;
}

.split {
  align-items: start;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
}

.use-case-list {
  display: grid;
  gap: 10px;
}

.use-case {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  gap: 12px;
  padding: 13px 14px;
}

.use-case span {
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  color: var(--accent-strong);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  height: 24px;
  line-height: 24px;
  text-align: center;
  width: 24px;
}

.area-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.area-card {
  min-height: 156px;
}

.area-card strong {
  display: block;
  font-size: 14px;
}

.trust-box {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.74fr);
  padding: 34px;
}

.trust-box p {
  color: var(--fg-soft);
  font-size: 16px;
  margin-top: 14px;
}

.trust-box ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-box li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 12px;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.plan-badge {
  align-self: flex-start;
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 12px;
  padding: 3px 8px;
  text-transform: uppercase;
}

.price {
  align-items: baseline;
  display: flex;
  gap: 4px;
  margin: 18px 0 14px;
}

.price strong {
  font-size: 34px;
  line-height: 1;
}

.plan-features {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.plan-features li {
  color: var(--fg-soft);
  font-size: 13px;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-question {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--fg);
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  padding: 16px;
  text-align: left;
  width: 100%;
}

.faq-question span:last-child {
  color: var(--muted);
  font-size: 20px;
}

.faq-answer {
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 0 16px 16px;
}

.final-cta {
  padding: 88px 0;
}

.final-inner {
  background: #18142f;
  border-radius: var(--r-xl);
  color: #fff;
  padding: 44px;
  text-align: center;
}

.final-inner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  margin: 14px auto 26px;
  max-width: 680px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}

.footer-grid {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.footer img {
  height: 38px;
  margin-bottom: 10px;
  width: auto;
}

.footer p {
  color: var(--muted);
  max-width: 380px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--fg-soft);
  font-size: 13px;
}

.drawer-backdrop {
  background: rgba(0, 0, 0, 0.42);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.18s;
  z-index: 80;
}

.mobile-drawer {
  background: var(--surface);
  border-left: 1px solid var(--border);
  bottom: 0;
  box-shadow: var(--shadow);
  max-width: 360px;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 0.18s;
  width: min(92vw, 360px);
  z-index: 90;
}

body.drawer-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .mobile-drawer {
  transform: translateX(0);
}

.drawer-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.drawer-head img {
  height: 38px;
  width: auto;
}

.drawer-nav {
  display: grid;
  gap: 6px;
  margin-top: 28px;
}

.drawer-nav a {
  border-radius: var(--r-md);
  color: var(--fg-soft);
  padding: 12px;
}

.drawer-nav a:hover {
  background: var(--surface-2);
  color: var(--fg);
}

.drawer-controls {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.control-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.segmented {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
}

.segmented button {
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--fg-soft);
  min-height: 34px;
}

.segmented button.active {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  color: var(--fg);
  font-weight: 700;
}

.drawer-ctas {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: 54px;
  }

  .hero-grid,
  .split,
  .trust-box {
    grid-template-columns: 1fr;
  }

  .product-mock {
    min-height: auto;
  }

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

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

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

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    min-height: 64px;
  }

  .hero {
    padding: 42px 0 36px;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .proof-grid,
  .feature-grid,
  .pricing-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid div {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }

  .proof-grid div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 64px 0;
  }

  .trust-box,
  .final-inner {
    padding: 24px;
  }

  .footer-grid {
    display: grid;
  }
}
