/* ── Fonts ─────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/assets/fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/assets/fonts/PlusJakartaSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --brand:      #4A154B;
  --brand-deep: #0f0613;
  --brand-mid:  #2a0d2b;
  --blue:       #2196F3;
  --green:      #4CAF50;
  --orange:     #FF9800;
  --red:        #F44336;
  --text:       #18181b;
  --muted:      #71717a;
  --border:     #e4e4e7;
  --surface:    #ffffff;
  --bg-alt:     #fafaf9;
  --radius:     12px;
  --font:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

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

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Wordmark (matches dashboard sidebar) ──────────────────────────────────── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wm-primary {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.wm-secondary {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: none;
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.btn-primary {
  background: #fff;
  color: var(--brand);
}
.btn-primary:hover {
  background: #f0e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-hero-primary {
  background: #fff;
  color: var(--brand);
  padding: 13px 28px;
  font-size: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.btn-hero-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 13px 28px;
  font-size: 15px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-hero-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.btn-install {
  background: var(--brand);
  color: #fff;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
  margin-top: 32px;
  display: inline-flex;
  box-shadow: 0 4px 20px rgba(74, 21, 75, 0.35);
  transition: all 0.18s ease;
}
.btn-install:hover {
  background: var(--brand-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 21, 75, 0.45);
}

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Hamburger toggle ─────────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-cta {
  display: none;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--brand-deep);
  background-image:
    radial-gradient(ellipse 55% 60% at 75% 50%, rgba(74, 21, 75, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 35% 45% at 15% 80%, rgba(33, 150, 243, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 20% 30% at 90% 10%, rgba(255, 152, 0, 0.06) 0%, transparent 60%);
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 80px 24px;
  overflow: hidden;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Hero visual ───────────────────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* Browser mockup */
.browser-mock {
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  overflow: hidden;
  background: #1c1c2e;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.4);
}

.browser-chrome {
  height: 38px;
  background: #252538;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.browser-addr {
  flex: 1;
  height: 20px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
}

.browser-body {
  height: 200px;
  background: #f4f4f5;
  position: relative;
  padding: 14px;
  overflow: hidden;
}

.mock-nav-bar {
  height: 28px;
  background: var(--brand-deep);
  border-radius: 5px;
  margin-bottom: 12px;
}

.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mock-line {
  height: 8px;
  background: #d4d4d8;
  border-radius: 4px;
}
.mock-line.w-90 { width: 90%; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-80 { width: 80%; }
.mock-line.w-55 { width: 55%; }
.mock-line.w-75 { width: 75%; }

/* Widget in the mock */
.mock-widget-area {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.mock-chat-window {
  width: 160px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  overflow: hidden;
}

.mock-chat-header {
  background: var(--brand);
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.mock-chat-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mock-bubble {
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 90%;
}
.mock-bubble.visitor {
  background: #f4f4f5;
  color: #3f3f46;
  align-self: flex-start;
}
.mock-bubble.agent {
  background: var(--brand);
  color: #fff;
  align-self: flex-end;
}

.mock-launcher {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(74, 21, 75, 0.5);
}
.mock-launcher svg { width: 18px; height: 18px; fill: #fff; }

/* Slack mockup */
.slack-mock {
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1d21;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.5);
}

.slack-titlebar {
  height: 36px;
  background: #111214;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}

.slack-channel-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.slack-hash {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 800;
}

.slack-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slack-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.slack-avatar {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.slack-avatar.visitor { background: var(--blue); }
.slack-avatar.agent   { background: var(--green); }

.slack-msg-body {
  flex: 1;
}

.slack-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.slack-msg-name {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}

.slack-msg-time {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
}

.slack-msg-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.slack-thread-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
}

.slack-thread-reply {
  margin-left: 38px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

/* ── Section base ──────────────────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  text-align: center;
}

.section-sub {
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin-bottom: 60px;
}

/* ── How it works ──────────────────────────────────────────────────────────── */
.how-it-works {
  background: var(--surface);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.step h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.step-arrow {
  font-size: 24px;
  color: var(--border);
  padding-top: 14px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Code block in steps */
.step .code-block {
  background: #18181b;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
}

.step .code-block code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  color: #a1a1aa;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}

.code-hl {
  color: var(--orange);
  font-weight: 700;
}

/* ── Features ──────────────────────────────────────────────────────────────── */
.features {
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card:nth-child(1) .feature-icon { background: rgba(33, 150, 243, 0.1);  color: var(--blue); }
.feature-card:nth-child(2) .feature-icon { background: rgba(76, 175, 80, 0.1);   color: var(--green); }
.feature-card:nth-child(3) .feature-icon { background: rgba(255, 152, 0, 0.1);   color: var(--orange); }
.feature-card:nth-child(4) .feature-icon { background: rgba(243, 68, 54, 0.1);   color: var(--red); }
.feature-card:nth-child(5) .feature-icon { background: rgba(74, 21, 75, 0.1);    color: var(--brand); }
.feature-card:nth-child(6) .feature-icon { background: rgba(33, 150, 243, 0.1);  color: var(--blue); }

.feature-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Demo callout ──────────────────────────────────────────────────────────── */
.demo-callout {
  background: var(--brand-deep);
  background-image:
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(74, 21, 75, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 10% 30%, rgba(33, 150, 243, 0.06) 0%, transparent 60%);
  padding: 80px 0;
}

.demo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.demo-text h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 480px;
}

.demo-text p {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 28px;
}

.demo-arrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.01em;
}

.demo-arrow svg {
  color: var(--orange);
  opacity: 0.7;
}

.demo-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge:not(.badge-outline) {
  background: var(--green);
  color: #fff;
}

.badge-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

/* Blinking dot for "Live" */
.badge:not(.badge-outline)::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  margin-right: 8px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Install CTA ───────────────────────────────────────────────────────────── */
.install-cta {
  background: var(--surface);
  text-align: center;
}

.install-code {
  max-width: 700px;
  margin: 0 auto;
  background: #18181b;
  border-radius: 10px;
  padding: 20px 24px;
  text-align: left;
  overflow-x: auto;
}

.install-code pre {
  margin: 0;
}

.install-code code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  color: #a1a1aa;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--brand-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  flex: 1;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

.footer-disclaimer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-disclaimer p {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
  max-width: 820px;
  margin: 0;
}
.footer-disclaimer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    align-items: stretch;
  }

  .browser-mock,
  .slack-mock {
    max-width: 100%;
  }

  .steps {
    flex-direction: column;
    gap: 32px;
  }

  .step-arrow {
    display: none;
  }

  .step {
    padding: 0;
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--brand-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    padding: 12px 24px 16px;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li { list-style: none; }

  .nav-links a {
    display: block;
    padding: 10px 0;
  }

  .nav-mobile-cta {
    display: list-item;
  }

  .nav-ctas {
    display: none;
  }

  .nav-inner {
    position: relative;
  }

  .demo-inner {
    flex-direction: column;
    text-align: center;
  }

  .demo-badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .demo-arrow {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-tagline {
    text-align: center;
  }
  .no-mobile {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 48px 24px;
  }

  .section {
    padding: 72px 0;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn-hero-primary,
  .btn-hero-ghost {
    width: 100%;
    justify-content: center;
  }
  .no-mobile {
    display: none;
  }
}
