/* ═══════════════════════════════════════
   Spuutr Labs — Main Stylesheet
   ═══════════════════════════════════════ */

/* ── CSS Custom Properties ─────────── */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 100px;
  --heading-lh: 1.12;
  --body-lh: 1.65;
  
  /* Light theme */
  --clr-bg: #fafaf9;
  --clr-surface: #ffffff;
  --clr-surface-2: #f5f5f4;
  --clr-text: #1c1917;
  --clr-text-2: #57534e;
  --clr-text-muted: #78716c;
  --clr-border: #e7e5e4;
  --clr-border-2: #d6d3d1;
  --clr-primary: #FF7F30;
  --clr-primary-l: #fff0e6;
  --clr-primary-d: #E06A20;
  --clr-accent: #f59e0b;
  --clr-accent-l: #fef3c7;
  --clr-card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --clr-card-shadow-hover: 0 10px 30px rgba(0,0,0,0.08);
  --clr-hero-gradient: radial-gradient(ellipse at 30% 50%, rgba(255,127,48,0.08) 0%, transparent 60%);
  --chat-user-color: #2563eb;
  --chat-bg: #ffffff;
  --chat-border: 1px solid #e7e5e4;
}

[data-theme="dark"] {
  --clr-bg: #0F0F0F;
  --clr-surface: #1A1A1A;
  --clr-surface-2: #262626;
  --clr-text: #E0E0E0;
  --clr-text-2: #CCCCCC;
  --clr-text-muted: #78716c;
  --clr-border: #333333;
  --clr-border-2: #444444;
  --clr-primary: #FF7F30;
  --clr-primary-l: #1a0f06;
  --clr-primary-d: #FF8940;
  --clr-accent: #fbbf24;
  --clr-accent-l: #451a03;
  --clr-card-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.3);
  --clr-card-shadow-hover: 0 10px 30px rgba(0,0,0,0.4);
  --clr-hero-gradient: radial-gradient(ellipse at 30% 50%, rgba(255,127,48,0.12) 0%, transparent 60%);
  --chat-user-color: #3b82f6;
  --chat-bg: #1a1a1a;
  --chat-border: 1px solid #2a2a2a;
}

/* ── Reset ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: var(--body-lh);
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Typography ──────────────────────── */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: var(--heading-lh);
  margin-bottom: 16px;
  max-width: 640px;
  letter-spacing: -0.02em;
}
.section-title--light { color: #fff; }
.section-desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.6;
}
.section-desc--light { color: rgba(255,255,255,0.8); }
section { padding: 80px 0; }

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn--primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--clr-primary-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,127,48,0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}
.btn--ghost:hover {
  border-color: var(--clr-text-muted);
  background: var(--clr-surface);
}
.btn--outline {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}
.btn--outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ── Navigation ───────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: all 0.3s;
}
.nav--scrolled {
  background: var(--clr-bg);
  box-shadow: 0 1px 0 var(--clr-border);
  backdrop-filter: blur(12px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--clr-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}
.logo__text { font-weight: 700; font-size: 1.1rem; color: var(--clr-text); }
.logo__labs {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-left: -4px;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-2);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--clr-text); }
.nav__cta {
  padding: 8px 20px;
  background: var(--clr-primary) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav__cta:hover { background: var(--clr-primary-d) !important; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--clr-text); border-radius: 2px; transition: 0.3s; }

.logo__img { display: block; height: 144px; width: auto; }

/* ── Login Button ──────────────────────── */
.login-wrap {
  position: relative;
}
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text-2);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.login-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-l);
}
.login-btn--logged-in {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-l);
}

.login-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 200;
}
.login-dropdown--open { display: block; }

.login-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clr-text);
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid var(--clr-border);
}
.login-option:last-of-type {
  border-bottom: none;
}
.login-option:hover {
  background: var(--clr-bg);
}
.login-option svg { flex-shrink: 0; }

.login-dropdown__footer {
  padding: 10px 16px;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  border-top: 1px solid var(--clr-border);
  background: var(--clr-bg);
  text-align: center;
}

/* Logged-in indicator in nav */
.login-btn--user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.login-btn--user:hover {
  border-color: var(--clr-primary);
}
.login-btn__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.login-btn__avatar--fallback {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--clr-primary-l);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
[data-theme="light"] .logo__img--dark { display: none; }
[data-theme="dark"] .logo__img--light { display: none; }
[data-theme="dark"] .logo__img--dark { display: block; }

/* ── Theme Toggle ─────────────────────── */
.theme-toggle {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--clr-text-2);
}
.theme-toggle:hover { background: var(--clr-surface); }
.theme-toggle__icon { width: 18px; height: 18px; }
[data-theme="light"] .theme-toggle__icon--moon { display: none; }
[data-theme="dark"] .theme-toggle__icon--sun { display: none; }

/* ── Hero ─────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__gradient {
  position: absolute; inset: 0;
  background: var(--clr-hero-gradient);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--clr-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-primary);
  background: var(--clr-primary-l);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.hero__term {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.85em;
  opacity: 0.8;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__title--accent { color: var(--clr-primary); }
.hero__sub {
  font-size: 1.1rem;
  color: var(--clr-text-2);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--clr-text-2);
  padding: 6px 14px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  transition: background 0.3s, border-color 0.3s;
}
.hero__tag svg { flex-shrink: 0; color: var(--clr-primary); }

/* Hero chat preview */
.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero__chat-preview {
  width: 100%;
  max-width: 420px;
  background: var(--chat-bg);
  border: var(--chat-border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}
.hero__chat-glow {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,127,48,0.15), transparent);
  pointer-events: none;
}

.chat-msg { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.chat-msg--user { flex-direction: row-reverse; }
.chat-msg__dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--clr-primary);
  flex-shrink: 0;
  margin-top: 4px;
}
.chat-msg--user .chat-msg__dot { background: var(--chat-user-color); }
.chat-msg__content {
  background: var(--clr-surface-2);
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 85%;
  font-size: 0.85rem;
  line-height: 1.5;
}
.chat-msg--user .chat-msg__content { background: var(--chat-user-color); color: #fff; }
.chat-msg__content strong { display: block; font-size: 0.78rem; margin-bottom: 2px; opacity: 0.7; }
.chat-msg--user .chat-msg__content strong { color: rgba(255,255,255,0.8); }
.chat-msg__content p { margin: 0; }

.chat-msg--typing {
  display: flex; gap: 4px; padding: 12px 16px;
  background: var(--clr-surface-2); border-radius: 14px;
  width: fit-content; margin-left: 38px;
}
.chat-msg--typing span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clr-text-muted);
  animation: typing 1.4s infinite;
}
.chat-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--clr-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Metrics ─────────────────────────── */
.metrics { padding: 0 0 80px; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
}
.metric__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--clr-primary), #FF8940);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.metric__label { font-size: 0.85rem; color: var(--clr-text-muted); }

/* ── How it works ─────────────────────── */
.how { background: var(--clr-surface); transition: background 0.3s; }
.how__steps {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
}
.step { flex: 1; }
.step__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--clr-text-muted); line-height: 1.6; }
.step__arrow { color: var(--clr-primary); flex-shrink: 0; opacity: 0.5; }

/* ── Agent Cards ──────────────────────── */
.agents__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.agent-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
  box-shadow: var(--clr-card-shadow);
}
.agent-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--clr-card-shadow-hover);
  transform: translateY(-3px);
}
.agent-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.agent-card__avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.agent-card__avatar svg { width: 100%; height: 100%; }
.agent-card h3 { font-size: 1.05rem; font-weight: 700; }
.agent-card__role { font-size: 0.8rem; color: var(--clr-text-muted); }
.agent-card__desc { font-size: 0.88rem; color: var(--clr-text-2); line-height: 1.6; margin-bottom: 14px; }
.agent-card__skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.agent-card__skills span {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--clr-surface-2);
  color: var(--clr-text-2);
  border: 1px solid var(--clr-border);
}
.agent-card__tools {
  display: flex; gap: 8px;
  font-size: 1.2rem;
}

/* ── Tools Grid ───────────────────────── */
.tools-section { background: var(--clr-surface); transition: background 0.3s; }
.tools__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tool-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}
.tool-card:hover { border-color: var(--clr-primary); }
.tool-card__icon { font-size: 1.8rem; margin-bottom: 12px; }
.tool-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.tool-card p { font-size: 0.85rem; color: var(--clr-text-muted); line-height: 1.5; }

/* ── Pricing ──────────────────────────── */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.price-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--clr-card-shadow);
  transition: all 0.25s;
  position: relative;
}
.price-card--featured {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 1px var(--clr-primary), var(--clr-card-shadow);
  transform: translateY(-8px);
}
.price-card__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.price-card__head { text-align: center; margin-bottom: 24px; }
.price-card__head h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--clr-text-muted); }
.price-card__price {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--clr-text);
}
.price-card__dollar { font-size: 1.5rem; vertical-align: super; }
.price-card__period { font-size: 0.85rem; color: var(--clr-text-muted); margin-top: 6px; }
.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.price-card__features li {
  font-size: 0.9rem;
  color: var(--clr-text-2);
  padding-left: 24px;
  position: relative;
}
.price-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--clr-primary);
  font-weight: 700;
}

.pricing__toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 32px;
}
.pricing__toggle-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--clr-text-2);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.pricing__toggle-btn.active {
  background: var(--clr-surface);
  color: var(--clr-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.pricing__toggle-save {
  font-size: 0.7rem;
  color: var(--clr-primary);
  font-weight: 700;
  margin-left: 4px;
}
.price-card__conversions {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-top: 4px;
}
.price-card__amount { font-size: 3rem; font-weight: 900; line-height: 1; color: var(--clr-text); }

.pricing__extras { max-width: 800px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 16px; }
.pricing__extra-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.pricing__extra-icon { font-size: 1.8rem; flex-shrink: 0; }
.pricing__extra-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.pricing__extra-card p { font-size: 0.88rem; color: var(--clr-text-2); line-height: 1.6; }

/* ── Trust Marks ───────────────────────── */
.trust {
  background: linear-gradient(180deg, var(--clr-surface) 0%, var(--clr-bg) 100%);
  transition: background 0.3s;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust__card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.trust__card:hover { border-color: var(--clr-primary); }
.trust__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.trust__logo svg { color: var(--clr-primary); }
.trust__logo span {
  font-size: 1.05rem;
  font-weight: 700;
}
.trust__card p {
  font-size: 0.88rem;
  color: var(--clr-text-2);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .trust__grid { grid-template-columns: 1fr; }
}

/* ── Guide / Accordion ────────────────── */
.guide { background: var(--clr-surface); transition: background 0.3s; }
.guide__accordion { max-width: 800px; margin: 0 auto; }
.guide__item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--clr-bg);
}
.guide__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  user-select: none;
}
.guide__summary::-webkit-details-marker { display: none; }
.guide__num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--clr-primary-l);
  color: var(--clr-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
}
.guide__title { flex: 1; font-size: 0.95rem; }
.guide__chevron {
  width: 20px; height: 20px;
  position: relative;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.guide__chevron::before {
  content: "›";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--clr-text-muted);
}
details[open] .guide__chevron { transform: rotate(90deg); }
.guide__body { padding: 0 24px 20px 68px; }
.guide__body p { margin-bottom: 12px; line-height: 1.7; color: var(--clr-text-2); }
.guide__body ul { margin-bottom: 12px; }
.guide__body li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--clr-text-2);
}
.guide__body li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--clr-primary);
  font-weight: 700;
}
.guide__table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.85rem; }
.guide__table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.guide__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-2);
}

/* ── Chat Demo ────────────────────────── */
.chat-section { }
.chat-demo {
  display: grid;
  grid-template-columns: 200px 1fr;
  border: var(--chat-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--chat-bg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  max-width: 720px;
  margin: 0 auto;
  transition: background 0.3s, border-color 0.3s;
}
.chat-demo__sidebar {
  background: var(--clr-surface-2);
  padding: 20px 16px;
  border-right: var(--chat-border);
  font-size: 0.85rem;
}
.chat-demo__sidebar strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-muted);
  margin-bottom: 8px;
  margin-top: 16px;
}
.chat-demo__sidebar strong:first-child { margin-top: 0; }
.chat-demo__member {
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 2px;
  color: var(--clr-text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-demo__member.active { background: var(--clr-primary-l); color: var(--clr-primary); }
.chat-demo__online { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.chat-demo__main { display: flex; flex-direction: column; }
.chat-demo__header {
  padding: 14px 20px;
  border-bottom: var(--chat-border);
  font-size: 0.85rem;
  font-weight: 600;
}
.chat-demo__messages {
  padding: 20px;
  min-height: 280px;
}
.chat-demo__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: var(--chat-border);
  color: var(--clr-text-muted);
  font-size: 0.85rem;
}
.chat-demo__send { color: var(--clr-primary); cursor: pointer; }
.chat-msg__time { font-size: 0.7rem; color: var(--clr-text-muted); margin-left: 8px; font-weight: 400; }

/* ── Waitlist ─────────────────────────── */
.waitlist { }
.waitlist__card {
  background: linear-gradient(135deg, #FF7F30 0%, #E06A20 100%);
  border-radius: var(--radius);
  padding: 64px;
  text-align: center;
}
.waitlist__form { max-width: 520px; margin: 0 auto; text-align: left; }
.waitlist__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.waitlist__fields input,
.waitlist__fields select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.waitlist__fields input::placeholder { color: rgba(255,255,255,0.5); }
.waitlist__fields select option { color: #1c1917; }
.waitlist__fields input:focus,
.waitlist__fields select:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.15);
}
.waitlist__card .btn--primary {
  background: #fff;
  color: var(--clr-primary);
}
.waitlist__card .btn--primary:hover {
  background: var(--clr-primary-l);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.waitlist__note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
}

/* ── Contact ──────────────────────────── */
.contact { text-align: center; background: var(--clr-surface); transition: background 0.3s; }
.contact .section-title, .contact .section-desc { margin-left: auto; margin-right: auto; }
.contact__email {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clr-primary);
  padding: 14px 28px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.contact__email:hover { border-color: var(--clr-primary); background: var(--clr-primary-l); }

.contact__form {
  max-width: 520px;
  margin: 32px auto 0;
  text-align: left;
}
.contact__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.contact__fields input,
.contact__fields textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.contact__fields input::placeholder,
.contact__fields textarea::placeholder { color: var(--clr-muted); }
.contact__fields input:focus,
.contact__fields textarea:focus {
  border-color: var(--clr-primary);
  background: var(--clr-surface);
}
.contact__fields textarea { resize: vertical; min-height: 100px; }
.contact__form .btn--primary { margin-bottom: 8px; }
.contact__note {
  font-size: 0.85rem;
  color: var(--clr-muted);
}
.contact__note a { color: var(--clr-primary); }
.contact__note a:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────── */
.footer { padding: 48px 0 24px; border-top: 1px solid var(--clr-border); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 8px; }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a { font-size: 0.88rem; color: var(--clr-text-muted); transition: color 0.2s; }
.footer__nav a:hover { color: var(--clr-text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--clr-border);
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}
.footer__tagline { font-style: italic; }

/* ── Responsive ───────────────────────── */
@media (max-width: 1024px) {
  .tools__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .price-card--featured { transform: none; }
  .how__steps { flex-direction: column; }
  .step__arrow { transform: rotate(90deg); }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 8px 24px;
  }
  .nav__links.open { display: flex; }
  .nav__link { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--clr-border); }
  .nav__cta { margin: 12px 0; text-align: center; }
  .nav__burger { display: flex; }
  .hero { padding: 100px 0 40px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: none; }
  .hero__scroll { display: none; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .agents__grid { grid-template-columns: 1fr; }
  .tools__grid { grid-template-columns: 1fr; }
  .chat-demo { grid-template-columns: 1fr; }
  .chat-demo__sidebar { display: none; }
  .guide__body { padding: 0 20px 20px 20px; }
  .guide__table { font-size: 0.78rem; }
  .guide__table th,
  .guide__table td { padding: 8px 6px; }
  .waitlist__card { padding: 40px 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Vault Section ──────────────────────── */
.vault { background: var(--clr-surface); transition: background 0.3s; }
.vault__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vault__card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.vault__card:hover { border-color: var(--clr-primary); }
.vault__icon { font-size: 2rem; margin-bottom: 12px; }
.vault__card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.vault__card ul { margin: 0; padding: 0; list-style: none; }
.vault__card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--clr-text-2);
  line-height: 1.5;
}
.vault__card li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--clr-primary);
  font-weight: 700;
}
.vault__card p {
  font-size: 0.88rem;
  color: var(--clr-text-2);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .vault__grid { grid-template-columns: 1fr; }
}

/* ── Architecture Section ──────────────── */
.arch { }
.arch__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.arch__card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
  box-shadow: var(--clr-card-shadow);
}
.arch__card:hover { border-color: var(--clr-primary); transform: translateY(-3px); }
.arch__card--primary { border-color: var(--clr-primary); }
.arch__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.arch__title svg { color: var(--clr-primary); }
.arch__title h3 { font-size: 1.1rem; font-weight: 700; }
.arch__card p {
  font-size: 0.88rem;
  color: var(--clr-text-2);
  line-height: 1.65;
  margin-bottom: 16px;
}
.arch__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--clr-primary-l);
  color: var(--clr-primary);
}

@media (max-width: 768px) {
  .arch__grid { grid-template-columns: 1fr; }
}

/* ── Onboarding Timeline ───────────────── */
.onboarding { background: var(--clr-surface); transition: background 0.3s; }
.onboarding__timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.onboarding__phase {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: all 0.2s;
}
.onboarding__phase:hover { border-color: var(--clr-primary); }
.onboarding__phase-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.onboarding__phase-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-primary);
  background: var(--clr-primary-l);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.onboarding__phase-dur {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}
.onboarding__phase h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.onboarding__phase p { font-size: 0.88rem; color: var(--clr-text-2); line-height: 1.65; margin-bottom: 12px; }
.onboarding__phase ul { margin: 0 0 16px 0; padding: 0; list-style: none; }
.onboarding__phase li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
  font-style: italic;
}
.onboarding__phase li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--clr-primary);
  font-weight: 700;
}
.onboarding__what-expect {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--clr-border);
}
.onboarding__what-expect strong {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-right: 4px;
}
.onboarding__tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--clr-surface);
  color: var(--clr-text-2);
  border: 1px solid var(--clr-border);
}
.onboarding__bounds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.onboarding__bounds-col {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 24px;
}
.onboarding__bounds-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.onboarding__bounds-col ul { margin: 0; padding: 0; list-style: none; }
.onboarding__bounds-col li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--clr-text-2);
  line-height: 1.5;
}
.onboarding__bounds-col li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.onboarding__bounds-col:first-child li::before {
  content: "✓";
  color: var(--clr-primary);
}
.onboarding__bounds-col:last-child li::before {
  content: "✗";
  color: var(--clr-text-muted);
}

@media (max-width: 768px) {
  .onboarding__bounds-grid { grid-template-columns: 1fr; }
}

/* ── Guide steps (4-step section) ──────── */
.guide__steps { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
.guide__step { flex: 1; text-align: center; }
.guide__circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--clr-primary-l); color: var(--clr-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.25rem; font-weight: 700;
}
.guide__step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; text-align: center; }
.guide__step p { font-size: 0.85rem; color: var(--clr-text-muted); line-height: 1.5; text-align: center; }
.guide__arrow { color: var(--clr-primary); flex-shrink: 0; opacity: 0.4; }

@media (max-width: 768px) {
  .guide__steps { flex-direction: column; }
  .guide__arrow { transform: rotate(90deg); }
}

/* ═══════════════════════════════════════
   Chat Widget
   ═══════════════════════════════════════ */
.chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,0.4); }
.chat-btn--close { transform: scale(0); pointer-events: none; }

.chat-widget {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-height: 600px;
  height: 65vh;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  z-index: 9998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}
.chat-widget--open { display: flex; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-header {
  padding: 16px 20px;
  background: var(--clr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header h3 { font-size: 1rem; font-weight: 600; cursor: pointer; user-select: none; }
.chat-header button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.8;
  padding: 4px;
}
.chat-header button:hover { opacity: 1; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--clr-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg--bot {
  align-self: flex-start;
  background: var(--clr-bg);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  border-bottom-left-radius: 4px;
}
.chat-msg--bot a { color: var(--clr-primary); text-decoration: underline; }
.chat-msg--bot code { background: var(--clr-surface-2); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; border: 1px solid var(--clr-border); }
.chat-msg--bot ul, .chat-msg--bot ol { margin: 6px 0; padding-left: 20px; }
.chat-msg--bot li { margin-bottom: 4px; font-size: 0.9rem; }
.chat-msg--bot p { margin-bottom: 6px; }
.chat-msg--bot p:last-child { margin-bottom: 0; }
.chat-msg--bot strong { font-weight: 700; }
.chat-msg--typing {
  align-self: flex-start;
  background: var(--clr-bg);
  color: var(--clr-muted);
  border: 1px solid var(--clr-border);
  border-bottom-left-radius: 4px;
  font-style: italic;
}

.chat-input-wrap {
  padding: 12px 16px;
  border-top: 1px solid var(--clr-border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.chat-input-wrap input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 24px;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
}
.chat-input-wrap input:focus { border-color: var(--clr-primary); }
.chat-input-wrap input::placeholder { color: var(--clr-muted); }
.chat-input-wrap button {
  padding: 10px 18px;
  border-radius: 24px;
  border: none;
  background: var(--clr-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
  flex-shrink: 0;
}
.chat-input-wrap button:hover { background: var(--clr-primary-h); }
.chat-input-wrap button:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 480px) {
  .chat-widget {
    right: 8px;
    bottom: 88px;
    width: calc(100vw - 16px);
    max-height: 70vh;
  }
  .chat-btn { bottom: 16px; right: 16px; width: 52px; height: 52px; font-size: 24px; }
}
