/* CommerBot landing — tokens from design-tokens.md */

:root {
  --bg: #000000;
  --bg-deep: #0d0618;
  --surface: #180930;
  --surface-2: #1b0a3a;
  --border: #3c1b83;
  --border-ui: rgba(60, 27, 131, 0.4);
  --primary: #863efe;
  --primary-hover: #9d61fe;
  --primary-soft: #b68dfb;
  --lavender: #ceb2fd;
  --text: #ffffff;
  --text-muted: #b9b3c9;
  --text-subtle: #7e7796;
  --success: #3ddc97;
  --hero-gradient: radial-gradient(60% 50% at 50% 0%, #3c1b83 0%, #180930 45%, #000 100%);
  --cta-gradient: linear-gradient(135deg, #863efe, #9d61fe);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  --shadow-featured: 0 0 0 1px #863efe, 0 20px 60px -10px rgba(134, 62, 254, 0.45);
  --radius-btn: 999px;
  --radius-input: 12px;
  --radius-card: 20px;
  --radius-lg: 24px;
  --container: 1200px;
  --nav-h: 76px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 28px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-deep);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.display {
  font-size: 64px;
  line-height: 72px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2,
.h2 {
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3,
.h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 28px;
  margin-top: 16px;
}

.small {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-subtle);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px rgba(134, 62, 254, 0.7);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-on-gradient {
  background: var(--text);
  color: #3c1b83;
}

.btn-on-gradient:hover {
  background: #f4edff;
  transform: translateY(-1px);
}

.link-arrow {
  color: var(--primary-soft);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow .arrow {
  transition: transform 0.2s;
}

.link-arrow:hover .arrow {
  transform: translateX(2px);
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.25s, backdrop-filter 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(13, 6, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-ui);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-panel {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 24px;
  min-width: 0;
}

.nav-links {
  margin-inline: auto;
}


.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
  background: var(--hero-gradient);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero .lead {
  font-size: 19px;
  line-height: 30px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 20px;
  color: var(--text-subtle);
  font-size: 14px;
}

.mockup-wrap {
  position: relative;
  min-height: 460px;
}

.mockup-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(134, 62, 254, 0.35);
  filter: blur(120px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* App mockup (HTML/CSS, not a screenshot) */
.mockup {
  position: relative;
  z-index: 1;
  background: rgba(24, 9, 48, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-ui);
  background: rgba(0, 0, 0, 0.25);
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: block;
}
.mockup-dots i:nth-child(1) { background: #ff5f57; }
.mockup-dots i:nth-child(2) { background: #febc2e; }
.mockup-dots i:nth-child(3) { background: #28c840; }

.mockup-title {
  font-size: 12px;
  color: var(--text-subtle);
  margin-left: 8px;
}

.mockup-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 380px;
}

.mockup-side {
  border-right: 1px solid var(--border-ui);
  padding: 16px 12px;
  background: rgba(0, 0, 0, 0.2);
}

.mockup-side .item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-muted);
}

.mockup-side .item.active {
  background: rgba(134, 62, 254, 0.18);
  color: var(--text);
}

.mockup-side .item svg {
  width: 16px;
  height: 16px;
  color: var(--lavender);
  flex-shrink: 0;
}

.mockup-main { padding: 16px; }

.mockup-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.kpi {
  background: var(--surface-2);
  border: 1px solid var(--border-ui);
  border-radius: 12px;
  padding: 12px;
}

.kpi span {
  display: block;
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.mockup-chat {
  background: var(--surface);
  border: 1px solid var(--border-ui);
  border-radius: 12px;
  padding: 12px;
}

.bubble {
  max-width: 90%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 8px;
}

.bubble.user {
  background: rgba(134, 62, 254, 0.2);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  background: var(--surface-2);
  border-bottom-left-radius: 4px;
  color: var(--text-muted);
}

.bubble .meta {
  display: block;
  font-size: 10px;
  color: var(--lavender);
  margin-bottom: 2px;
  font-weight: 600;
}

/* Benefits */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: rgba(134, 62, 254, 0.6);
}

.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(134, 62, 254, 0.15);
  color: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-tile svg {
  width: 20px;
  height: 20px;
}

.card p {
  margin-top: 10px;
  color: var(--text-muted);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: rgba(24, 9, 48, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-card);
  padding: 32px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(134, 62, 254, 0.18);
  color: var(--lavender);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step p {
  margin-top: 10px;
  color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  box-shadow: var(--shadow-featured);
  background: var(--surface-2);
  transform: translateY(-8px);
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(134, 62, 254, 0.2);
  color: var(--lavender);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.price-amount {
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}

.price-amount span {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}

.price-period {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.price-equiv {
  color: var(--lavender);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 28px;
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 22px;
}

.price-list svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.price-card .btn { width: 100%; }

.price-footnote {
  text-align: center;
  margin-top: 28px;
  color: var(--text-subtle);
  font-size: 14px;
  line-height: 22px;
}


.table-hint {
  display: none;
  text-align: center;
  color: var(--text-subtle);
  font-size: 14px;
  margin: -24px 0 16px;
}
/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare th,
.compare td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-ui);
  font-size: 15px;
}

.compare th {
  font-weight: 600;
  background: var(--surface-2);
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
}

.compare tr:last-child td { border-bottom: 0; }

.compare .col-feat {
  background: rgba(134, 62, 254, 0.08);
}

.compare .check { color: var(--success); font-weight: 700; }

/* Trust 2x2 */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item button svg {
  width: 20px;
  height: 20px;
  color: var(--lavender);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.is-open button svg { transform: rotate(45deg); }

.faq-body {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-muted);
}

.faq-item.is-open .faq-body { display: block; }

/* Final CTA */
.cta-band {
  padding: 0 0 120px;
}

.cta-box {
  background: var(--cta-gradient);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box h2,
.cta-box p { color: var(--text); }

.cta-box p {
  max-width: 560px;
  margin: 16px auto 32px;
  opacity: 0.92;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-ui);
  padding: 48px 0 32px;
  background: var(--bg);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

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

.footer-copy {
  color: var(--text-subtle);
  font-size: 13px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .display { font-size: 52px; line-height: 60px; }
  h2, .h2 { font-size: 36px; line-height: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .mockup-wrap { min-height: auto; max-width: 640px; margin-inline: auto; }
  .price-card.featured { transform: none; }
}

@media (max-width: 800px) {
  .nav-links,
  .nav-actions { display: none; }

  .nav-toggle { display: flex; }

  body.menu-open .nav-links,
  body.menu-open .nav-actions {
    display: flex;
  }

  body.menu-open .nav-links,
  body.menu-open .nav-actions {
    position: static;
  }

  .nav.is-open .nav-panel {
    display: flex;
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 20px;
    padding: 20px 24px 28px;
    background: rgba(13, 6, 24, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-ui);
  }

  .nav-panel .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-panel .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-panel .nav-actions .btn { width: 100%; }

  .table-hint { display: block; }

  .cards-3,
  .steps,
  .pricing-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 72px 0; }
  .cta-band { padding-bottom: 72px; }
  .container { width: min(100% - 32px, var(--container)); }
  .cta-box { padding: 48px 24px; }
  .hero { padding: 40px 0 24px; }
  .display { font-size: 40px; line-height: 48px; }
  h2, .h2 { font-size: 32px; line-height: 40px; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-side { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .btn,
  .link-arrow .arrow,
  .faq-item button svg {
    transition: none;
  }
  .reveal { opacity: 1; transform: none; }
}
