/* ═══════════════════════════════════════════════════════════════
   BotNesia — Landing Page
   Original visual identity. No AI slop. Every pixel intentional.

   Design language: dark canvas, purple brand signal, cyan accent,
   green for positive states. Typography: Manrope (display + body),
   DM Mono (labels, metadata, code). 8pt spacing grid.

   Builds on /ui/styles.css design tokens (--bg, --brand, --cyan, etc.)
   ═══════════════════════════════════════════════════════════════ */

/* ── Layout primitives ─────────────────────────────────────────── */
.landing-body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.ln-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ln-wrap-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.ln-section { padding: 96px 0; position: relative; }
.ln-section-quiet { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ── Eyebrow / label ───────────────────────────────────────────── */
.ln-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-2);
  font: 600 11px/1 'Manrope', sans-serif;
  letter-spacing: 0.02em;
}
.ln-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(81, 215, 232, 0.5);
  flex-shrink: 0;
}

/* ── Navigation ────────────────────────────────────────────────── */
.ln-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  background: rgba(9, 11, 16, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.ln-nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(9, 11, 16, 0.92);
}
.ln-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.ln-nav-brand img { width: 30px; height: 30px; display: block; }
.ln-nav-links { display: flex; align-items: center; gap: 32px; }
.ln-nav-links a {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.ln-nav-links a:hover { color: var(--text); }
.ln-nav-actions { display: flex; align-items: center; gap: 10px; }
.ln-nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.ln-nav-toggle svg { width: 18px; height: 18px; }
.ln-nav-mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 49;
  flex-direction: column;
  padding: 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  gap: 4px;
}
.ln-nav-mobile.open { display: flex; }
.ln-nav-mobile a {
  padding: 14px 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.ln-hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.ln-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(139, 124, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.ln-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}
.ln-hero h1 {
  margin: 24px 0 0;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.ln-hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.ln-hero-sub {
  max-width: 480px;
  margin: 24px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
}
.ln-hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.ln-hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ln-hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ln-hero-trust-item strong {
  font: 700 22px/1 'DM Mono', monospace;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ln-hero-trust-item span {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
}

/* ── Hero product visualization (agent constellation) ──────────── */
.ln-hero-viz {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4.2;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(17, 21, 29, 0.9), rgba(9, 11, 16, 0.95));
  overflow: hidden;
}
.ln-hero-viz::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 124, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 124, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.ln-viz-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.ln-viz-header .dot { width: 8px; height: 8px; border-radius: 50%; }
.ln-viz-header .dot.r { background: #ff5f57; }
.ln-viz-header .dot.y { background: #febc2e; }
.ln-viz-header .dot.g { background: #28c840; }
.ln-viz-header span {
  margin-left: 8px;
  color: var(--text-3);
  font: 500 10px 'DM Mono', monospace;
}
.ln-viz-canvas {
  position: relative;
  width: 100%;
  height: calc(100% - 43px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ln-viz-svg { width: 90%; height: 90%; }

/* ── Section heading ───────────────────────────────────────────── */
.ln-heading {
  max-width: 620px;
  margin-bottom: 56px;
}
.ln-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.ln-heading h2 {
  margin: 20px 0 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.ln-heading p {
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

/* ── The Shift (before/after) ──────────────────────────────────── */
.ln-shift {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.ln-shift-col {
  padding: 36px 32px;
}
.ln-shift-col.before {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
}
.ln-shift-col.after {
  background: linear-gradient(160deg, rgba(139, 124, 255, 0.06), rgba(17, 21, 29, 0.4));
}
.ln-shift-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font: 700 10px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.ln-shift-tag.before { background: rgba(255, 107, 122, 0.1); color: var(--red); }
.ln-shift-tag.after { background: rgba(69, 211, 155, 0.1); color: var(--green); }
.ln-shift-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ln-shift-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.ln-shift-list li svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke-width: 2;
}
.ln-shift-col.before .ln-shift-list li svg { color: var(--red); stroke: currentColor; fill: none; }
.ln-shift-col.after .ln-shift-list li svg { color: var(--green); stroke: currentColor; fill: none; }

/* ── AI Workforce grid ─────────────────────────────────────────── */
.ln-workforce {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.ln-agent {
  padding: 28px 24px;
  background: var(--surface);
  transition: background 0.2s var(--ease);
  position: relative;
}
.ln-agent:hover { background: var(--surface-2); }
.ln-agent-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  margin-bottom: 16px;
}
.ln-agent-icon svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 1.6; }
.ln-agent h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.ln-agent p { margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.ln-agent-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(139, 124, 255, 0.08);
  color: var(--brand);
  font: 600 9px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Channels strip ────────────────────────────────────────────── */
.ln-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
}
.ln-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--surface);
  min-width: 160px;
}
.ln-channel svg { width: 22px; height: 22px; flex-shrink: 0; }
.ln-channel span { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* ── Feature highlight (bento) ─────────────────────────────────── */
.ln-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
}
.ln-bento-item {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.ln-bento-item.wide { grid-column: span 2; }
.ln-bento-item.tall { grid-row: span 2; }
.ln-bento-item svg.ln-bento-icon { width: 24px; height: 24px; stroke: var(--cyan); fill: none; stroke-width: 1.6; margin-bottom: 16px; }
.ln-bento-item h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.ln-bento-item p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.6; flex: 1; }
.ln-bento-item .ln-bento-visual {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ── Pricing ───────────────────────────────────────────────────── */
.ln-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
.ln-price {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.ln-price.featured {
  border-color: rgba(139, 124, 255, 0.4);
  background: linear-gradient(170deg, rgba(139, 124, 255, 0.07), var(--surface));
  box-shadow: 0 0 0 1px rgba(139, 124, 255, 0.1), 0 24px 60px rgba(102, 87, 238, 0.1);
}
.ln-price-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(139, 124, 255, 0.12);
  color: var(--brand);
  font: 700 10px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.ln-price-name { font-size: 14px; font-weight: 700; color: var(--text-2); }
.ln-price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 4px;
}
.ln-price-amount strong { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.ln-price-amount span { color: var(--text-3); font-size: 13px; }
.ln-price-desc { color: var(--text-3); font-size: 12px; margin: 0 0 24px; }
.ln-price-features { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 0; }
.ln-price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12.5px;
}
.ln-price-features li:first-child { border-top: 0; }
.ln-price-features svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── CTA ───────────────────────────────────────────────────────── */
.ln-cta {
  text-align: center;
  padding: 80px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 124, 255, 0.1), transparent 50%), var(--bg-soft);
}
.ln-cta h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; font-weight: 800; }
.ln-cta p { margin: 0 0 28px; color: var(--text-2); font-size: 15px; }

/* ── Footer ────────────────────────────────────────────────────── */
.ln-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
}
.ln-footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.ln-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 12px;
}
.ln-footer-brand img { width: 24px; height: 24px; }
.ln-footer-links { display: flex; gap: 24px; }
.ln-footer-links a { color: var(--text-2); font-size: 12px; font-weight: 600; text-decoration: none; transition: color 0.18s; }
.ln-footer-links a:hover { color: var(--text); }

/* ── Buttons override for landing ──────────────────────────────── */
.ln-nav .button { min-height: 36px; font-size: 12px; }
.ln-hero-ctas .button { min-height: 46px; padding: 0 22px; font-size: 14px; }

/* ── Reveal animation ──────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .ln-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ln-hero-viz { max-width: 480px; }
  .ln-shift { grid-template-columns: 1fr; }
  .ln-shift-col.before { border-right: 0; border-bottom: 1px solid var(--line); }
  .ln-workforce { grid-template-columns: repeat(2, 1fr); }
  .ln-bento { grid-template-columns: repeat(2, 1fr); }
  .ln-bento-item.wide { grid-column: span 2; }
  .ln-pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 760px) {
  .ln-nav-links { display: none; }
  .ln-nav-toggle { display: flex; }
  .ln-section { padding: 64px 0; }
  .ln-hero { padding: 48px 0 40px; }
  .ln-hero-trust { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 640px) {
  .ln-workforce { grid-template-columns: 1fr; }
  .ln-bento { grid-template-columns: 1fr; }
  .ln-bento-item.wide { grid-column: span 1; }
  .ln-shift-col { padding: 24px 20px; }
  .ln-channel { min-width: 140px; }
}

/* ── How it works (numbered steps) ─────────────────────────────── */
.ln-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.ln-step {
  padding: 28px 24px;
  background: var(--surface);
  transition: background 0.2s var(--ease);
}
.ln-step:hover { background: var(--surface-2); }
.ln-step-num {
  display: inline-block;
  margin-bottom: 14px;
  font: 700 12px 'DM Mono', monospace;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.ln-step h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.ln-step p { margin: 0; color: var(--text-3); font-size: 12.5px; line-height: 1.55; }

/* ── Workflow flow strip ───────────────────────────────────────── */
.ln-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.ln-flow-step {
  background: var(--surface);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ln-flow-step span {
  font: 700 11px 'DM Mono', monospace;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.ln-flow-step p { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.5; }

/* ── Small note ────────────────────────────────────────────────── */
.ln-note {
  margin-top: 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
}

/* ── Five-plan pricing grid ────────────────────────────────────── */
.ln-pricing-grid.five {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 1200px;
}
.ln-pricing-grid.five .ln-price { padding: 28px 22px; }
.ln-pricing-grid.five .ln-price-amount strong { font-size: 26px; }
.ln-pricing-grid.five .ln-price-features li { font-size: 12px; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.ln-faq {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.ln-faq details { border-top: 1px solid var(--line); }
.ln-faq details:first-child { border-top: 0; }
.ln-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ln-faq summary::-webkit-details-marker { display: none; }
.ln-faq summary::after {
  content: "+";
  font: 700 18px 'DM Mono', monospace;
  color: var(--text-3);
  flex-shrink: 0;
}
.ln-faq details[open] summary::after { content: "–"; }
.ln-faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

/* ── Responsive additions ──────────────────────────────────────── */
@media (max-width: 980px) {
  .ln-steps { grid-template-columns: repeat(2, 1fr); }
  .ln-flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ln-steps { grid-template-columns: 1fr; }
  .ln-flow { grid-template-columns: 1fr; }
}
