/* TellMesh landing — marketing page */

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060a12;
  --bg2: #0b1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #edf2ff;
  --muted: #94a3b8;
  --accent: #8b5cf6;
  --accent-dim: rgba(139, 92, 246, 0.15);
  --warn: #fbbf24;
  --bad: #fb7185;
  --ok: #34d399;
  --info: #60a5fa;
  --violet: #a78bfa;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --body-background:
    radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.18), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(139, 92, 246, 0.12), transparent 28%),
    radial-gradient(circle at 70% 85%, rgba(167, 139, 250, 0.1), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  --nav-bg: rgba(6, 10, 18, 0.82);
  --hero-lead: #c7d2fe;
  --primary-top: #a78bfa;
  --primary-text: #0f071f;
  --brand-glow: rgba(139, 92, 246, 0.35);
  --card-gradient: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  --panel-bg: #0a0f1a;
  --panel-muted-bg: #0d1219;
  --panel-chat-bg: #111827;
  --panel-chat-user-bg: #1e1b4b;
  --panel-chat-bot-bg: #1a2234;
  --overlay-bg: rgba(6, 10, 18, 0.62);
  --code-bg: #050810;
  --code-text: #93c5fd;
  --line-soft: rgba(255, 255, 255, 0.06);
  --tag-bg: rgba(96, 165, 250, 0.12);
  --tag-border: rgba(96, 165, 250, 0.25);
  --ok-soft: rgba(52, 211, 153, 0.1);
  --warn-soft: rgba(251, 191, 36, 0.1);
  --bad-soft: rgba(251, 113, 133, 0.12);
  --control-active-shadow: 0 8px 22px rgba(139, 92, 246, 0.28);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg2: #eef5ff;
  --surface: rgba(15, 23, 42, 0.045);
  --surface-2: rgba(15, 23, 42, 0.075);
  --border: rgba(15, 23, 42, 0.13);
  --text: #101827;
  --muted: #526174;
  --accent: #0f9f78;
  --accent-dim: rgba(15, 159, 120, 0.13);
  --warn: #b7791f;
  --bad: #d1435b;
  --ok: #11865b;
  --info: #2563eb;
  --violet: #7c3aed;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --body-background:
    radial-gradient(circle at 14% 0%, rgba(37, 99, 235, 0.11), transparent 31%),
    radial-gradient(circle at 86% 7%, rgba(15, 159, 120, 0.11), transparent 29%),
    radial-gradient(circle at 70% 88%, rgba(124, 58, 237, 0.07), transparent 31%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  --nav-bg: rgba(248, 250, 252, 0.86);
  --hero-lead: #334155;
  --primary-top: #34d6aa;
  --primary-text: #052016;
  --brand-glow: rgba(15, 159, 120, 0.24);
  --card-gradient: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52));
  --panel-bg: #ffffff;
  --panel-muted-bg: #f1f5f9;
  --panel-chat-bg: #f8fafc;
  --panel-chat-user-bg: #dff7ef;
  --panel-chat-bot-bg: #eaf1ff;
  --overlay-bg: rgba(248, 250, 252, 0.74);
  --code-bg: #0f172a;
  --code-text: #bfdbfe;
  --line-soft: rgba(15, 23, 42, 0.09);
  --tag-bg: rgba(37, 99, 235, 0.1);
  --tag-border: rgba(37, 99, 235, 0.22);
  --ok-soft: rgba(17, 134, 91, 0.1);
  --warn-soft: rgba(183, 121, 31, 0.12);
  --bad-soft: rgba(209, 67, 91, 0.1);
  --control-active-shadow: 0 8px 22px rgba(15, 159, 120, 0.18);
}

html[data-theme="warm"] {
  color-scheme: light;
  --bg: #fff7ed;
  --bg2: #f2f7f2;
  --surface: rgba(73, 48, 32, 0.06);
  --surface-2: rgba(73, 48, 32, 0.1);
  --border: rgba(73, 48, 32, 0.16);
  --text: #24170f;
  --muted: #6a594b;
  --accent: #c46a32;
  --accent-dim: rgba(196, 106, 50, 0.14);
  --warn: #b7791f;
  --bad: #c2415a;
  --ok: #15835f;
  --info: #1976a3;
  --violet: #7e4fc8;
  --shadow: 0 24px 70px rgba(73, 48, 32, 0.18);
  --body-background:
    radial-gradient(circle at 12% 0%, rgba(196, 106, 50, 0.16), transparent 31%),
    radial-gradient(circle at 87% 6%, rgba(25, 118, 163, 0.12), transparent 28%),
    radial-gradient(circle at 72% 86%, rgba(21, 131, 95, 0.1), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  --nav-bg: rgba(255, 247, 237, 0.88);
  --hero-lead: #574436;
  --primary-top: #f1a16f;
  --primary-text: #24170f;
  --brand-glow: rgba(196, 106, 50, 0.22);
  --card-gradient: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.4));
  --panel-bg: #fffaf4;
  --panel-muted-bg: #f5ede3;
  --panel-chat-bg: #fffaf4;
  --panel-chat-user-bg: #f8dfcf;
  --panel-chat-bot-bg: #e9f2ef;
  --overlay-bg: rgba(255, 247, 237, 0.76);
  --code-bg: #23170f;
  --code-text: #fed7aa;
  --line-soft: rgba(73, 48, 32, 0.1);
  --tag-bg: rgba(25, 118, 163, 0.1);
  --tag-border: rgba(25, 118, 163, 0.22);
  --ok-soft: rgba(21, 131, 95, 0.1);
  --warn-soft: rgba(183, 121, 31, 0.12);
  --bad-soft: rgba(194, 65, 90, 0.1);
  --control-active-shadow: 0 8px 22px rgba(196, 106, 50, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--body-background);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: conic-gradient(from 210deg, var(--info), var(--accent), var(--warn), var(--violet), var(--info));
  box-shadow: 0 0 28px var(--brand-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.site-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.segmented-control button {
  min-width: 2.1rem;
  height: 1.8rem;
  border: 0;
  border-radius: 8px;
  padding: 0 0.45rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.theme-control button {
  min-width: 3rem;
}

.segmented-control button:hover {
  color: var(--text);
  background: var(--surface-2);
}

.segmented-control button.is-active {
  background: var(--accent);
  color: var(--primary-text);
  box-shadow: var(--control-active-shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--primary-top), var(--accent));
  color: var(--primary-text);
  box-shadow: 0 8px 28px rgba(95, 211, 179, 0.35);
}

.btn-primary:hover { box-shadow: 0 12px 36px rgba(95, 211, 179, 0.45); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* —— Hero —— */
.hero {
  padding: 3.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(95, 211, 179, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--hero-lead);
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1rem;
  animation: float 6s ease-in-out infinite;
}

.hero-product-shot {
  padding: 0;
  overflow: hidden;
  min-height: 360px;
}

.product-shot-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: livePulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.product-shot-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
  padding: 1rem;
}

.shot-chat {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.shot-line {
  width: fit-content;
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.82rem;
  animation: msgAppear 0.42s ease forwards;
}

.shot-line.user {
  align-self: flex-end;
  background: rgba(95, 211, 179, 0.16);
  border-color: rgba(95, 211, 179, 0.35);
}

.shot-line.ok {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.42);
}

.shot-agents {
  display: grid;
  gap: 0.55rem;
}

.shot-agent {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
}

.shot-agent span {
  color: var(--muted);
}

.shot-agent strong {
  color: var(--accent);
  font-family: var(--mono);
}

.shot-agent.ok {
  border-color: rgba(52, 211, 153, 0.28);
}

.product-shot-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  margin: 0 1rem 1rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--overlay-bg);
}

.product-shot-flow span {
  font-size: 0.72rem;
  color: #c7d2fe;
  font-weight: 800;
}

.product-shot-flow i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--info));
  transform-origin: left;
  animation: flowLine 2.8s ease-in-out infinite;
}

@keyframes flowLine {
  0%, 100% { transform: scaleX(0.35); opacity: 0.55; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mini-alert {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.3);
  margin-bottom: 0.75rem;
  font-size: 0.84rem;
}

.mini-alert .dot { background: var(--bad); }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.dot.ok { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); box-shadow: 0 0 12px var(--bad); }

/* —— Sections —— */
section {
  padding: 3.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Pain cards —— */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  transition: border-color 0.2s, transform 0.2s;
}

.pain-card:hover {
  border-color: rgba(251, 113, 133, 0.4);
  transform: translateY(-2px);
}

.pain-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.pain-card .time {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--bad);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* —— Product tour / slides —— */
.tour {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-block: 1px solid var(--border);
}

.tour-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.tour-steps {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.tour-step-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: left;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tour-step-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.tour-step-btn.is-active {
  background: var(--accent-dim);
  border-color: rgba(95, 211, 179, 0.4);
  color: var(--text);
}

.tour-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.tour-step-btn.is-active .tour-step-num {
  background: var(--accent);
  color: var(--primary-text);
  border-color: transparent;
}

.tour-step-label {
  font-size: 0.82rem;
  line-height: 1.35;
}

.tour-stage-wrap {
  min-width: 0;
}

.tour-live-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tour-live-strip div {
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.tour-live-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tour-live-strip strong {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tour-progress {
  flex: 1;
  min-width: 120px;
  height: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.tour-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--info));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.tour-count {
  min-width: 42px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: center;
}

.tour-stage {
  position: relative;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 420px;
}

.tour-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

#tour-slide-host {
  min-height: 340px;
}

.chrome-dots {
  display: flex;
  gap: 5px;
}

.chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.chrome-dots span:nth-child(1) { background: #fb7185; }
.chrome-dots span:nth-child(2) { background: #fbbf24; }
.chrome-dots span:nth-child(3) { background: #34d399; }

.tour-url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.tour-slide {
  display: none;
  padding: 1.25rem;
  animation: slideIn 0.45s ease;
}

.tour-slide.is-active {
  display: block;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.tour-caption {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.tour-caption h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.tour-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Mock UI inside slides */
.mock-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.mock-sidebar {
  background: var(--panel-muted-bg);
  border-right: 1px solid var(--border);
  padding: 0.75rem;
  font-size: 0.75rem;
}

.mock-sidebar h4 {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.mock-process {
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.35rem;
  border: 1px solid transparent;
  cursor: default;
}

.mock-process.is-highlight {
  background: var(--accent-dim);
  border-color: rgba(95, 211, 179, 0.35);
}

.mock-process .name { font-weight: 700; font-size: 0.78rem; }
.mock-process .status { font-size: 0.68rem; margin-top: 0.15rem; }
.mock-process .status.ok { color: var(--ok); }
.mock-process .status.bad { color: var(--bad); }
.mock-process .status.warn { color: var(--warn); }

.mock-chat {
  display: flex;
  flex-direction: column;
  background: var(--panel-chat-bg);
  min-height: 320px;
}

.mock-messages {
  flex: 1;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
}

.mock-msg {
  max-width: 92%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: msgAppear 0.4s ease forwards;
}

.mock-msg.user {
  align-self: flex-end;
  background: var(--panel-chat-user-bg);
  border: 1px solid rgba(95, 211, 179, 0.25);
}

.mock-msg.bot {
  align-self: stretch;
  background: var(--panel-chat-bot-bg);
  border: 1px solid var(--border);
}

@keyframes msgAppear {
  to { opacity: 1; transform: translateY(0); }
}

.mock-msg .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.mock-msg ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.mock-msg code {
  font-family: var(--mono);
  font-size: 0.78em;
  color: var(--code-text);
  background: rgba(0,0,0,0.3);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.mock-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem;
  border-top: 1px solid var(--border);
  background: var(--panel-muted-bg);
}

.mock-input span {
  flex: 1;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}

.typing-cursor::after {
  content: "|";
  animation: blink 0.9s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 0.5rem;
}

.flow-diagram-wide {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.demo-command {
  border: 1px solid rgba(95, 211, 179, 0.28);
  border-radius: 14px;
  background: rgba(95, 211, 179, 0.08);
  margin-bottom: 1rem;
  overflow: hidden;
}

.demo-command-bar {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(95, 211, 179, 0.22);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
}

.demo-command p {
  margin: 0;
  padding: 1rem;
  color: #dbeafe;
  font-size: 1rem;
  line-height: 1.55;
}

.demo-note {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.86rem;
}

.agent-run-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.agent-run-card {
  opacity: 0;
  transform: translateY(10px);
  animation: msgAppear 0.45s ease forwards;
  border: 1px solid rgba(52, 211, 153, 0.26);
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.06);
  padding: 0.85rem;
}

.agent-run-top {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}

.agent-run-top strong {
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-run-port {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: center;
  gap: 0.35rem;
  margin: 0.85rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.agent-run-port code {
  color: #bfdbfe;
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
}

.agent-run-port i {
  color: var(--accent);
  font-style: normal;
}

.agent-run-status {
  color: #a7f3d0;
  font-size: 0.75rem;
}

.repair-loop,
.repair-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.repair-timeline.compact {
  margin-top: 0.75rem;
}

.repair-event {
  min-height: 104px;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  opacity: 0;
  transform: translateY(10px);
  animation: msgAppear 0.45s ease forwards;
  position: relative;
  overflow: hidden;
}

.repair-event::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--info);
}

.repair-event strong {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

.repair-event span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.repair-event.is-bad::before { background: var(--bad); }
.repair-event.is-warn::before { background: var(--warn); }
.repair-event.is-info::before { background: var(--info); }
.repair-event.is-done::before { background: var(--ok); }

.repair-result {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.repair-result div {
  text-align: center;
}

.repair-result span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.repair-result strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
}

.repair-result i {
  display: block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--info));
  border-radius: 999px;
  animation: flowLine 1.8s ease-in-out infinite;
}

.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }

.demo-code {
  margin: 0;
  font-size: 0.75rem;
  background: var(--code-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.85rem;
  overflow-x: auto;
  color: var(--code-text);
  font-family: var(--mono);
}

.proof-lead {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.flow-node {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 0;
  transform: scale(0.92);
  animation: nodePop 0.4s ease forwards;
}

.flow-node.bad { border-color: rgba(251,113,133,0.5); color: #fecdd3; }
.flow-node.ok { border-color: rgba(52,211,153,0.5); color: #a7f3d0; }
.flow-node.info { border-color: rgba(96,165,250,0.5); color: #bfdbfe; }

.flow-arrow {
  color: var(--muted);
  font-size: 1.1rem;
  opacity: 0;
  animation: msgAppear 0.3s ease forwards;
}

@keyframes nodePop {
  to { opacity: 1; transform: scale(1); }
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

.proof-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8rem;
  opacity: 0;
  animation: msgAppear 0.35s ease forwards;
}

.proof-item .ok-badge {
  color: var(--ok);
  font-weight: 800;
  font-size: 0.72rem;
}

.scenario-lab {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(95, 211, 179, 0.04)),
    rgba(255, 255, 255, 0.035);
}

.scenario-lab-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.scenario-kicker {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scenario-lab h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.scenario-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.scenario-tab {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.scenario-tab:hover {
  color: var(--text);
  border-color: rgba(96, 165, 250, 0.36);
}

.scenario-tab.is-active {
  color: #061510;
  background: var(--accent);
  border-color: transparent;
}

.scenario-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: 0.85rem;
  align-items: stretch;
}

.scenario-terminal {
  min-height: 238px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #050810;
  color: #c7d2fe;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.55;
  overflow: hidden;
}

.terminal-line {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.35rem;
  min-width: 0;
  margin-bottom: 0.42rem;
  opacity: 0;
  transform: translateY(6px);
  animation: msgAppear 0.28s ease forwards;
}

.terminal-line span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.terminal-caret {
  color: var(--muted);
}

.terminal-line.is-ok { color: #a7f3d0; }
.terminal-line.is-warn { color: #fde68a; }
.terminal-line.is-bad { color: #fecdd3; }
.terminal-line.is-info { color: #bfdbfe; }

.scenario-result {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid rgba(95, 211, 179, 0.18);
  border-radius: 14px;
  background: rgba(6, 10, 18, 0.7);
}

.scenario-result-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.scenario-result-head strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
}

.scenario-result-head p {
  margin: 0.32rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.scenario-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.scenario-metric {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.scenario-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scenario-metric strong {
  display: block;
  margin-top: 0.18rem;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.system-map {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.028);
}

.system-map-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.system-map-head strong {
  font-size: 0.95rem;
}

.system-map-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.system-map-node {
  min-width: 0;
  min-height: 132px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.system-map-node::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--info), var(--accent));
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.system-map-node span {
  display: inline-flex;
  width: 26px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.system-map-node strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
}

.system-map-node p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.system-map-node code {
  font-family: var(--mono);
  color: #bfdbfe;
}

.system-map-node.is-active {
  border-color: rgba(95, 211, 179, 0.48);
  background: rgba(95, 211, 179, 0.08);
  transform: translateY(-2px);
}

.system-map-node.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* —— Features —— */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

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

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 211, 179, 0.35);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* —— Audience —— */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.audience-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: linear-gradient(180deg, var(--surface), transparent);
}

.audience-card h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.audience-card p { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* —— Integrations —— */
.integration-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.integration-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.15rem 3.25rem;
  background: linear-gradient(180deg, var(--surface), transparent);
  position: relative;
}

.integration-step-num {
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(95, 211, 179, 0.35);
}

.integration-step h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.integration-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.integration-step code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: #93c5fd;
}

.integration-hub {
  position: relative;
  border: 1px solid rgba(95, 211, 179, 0.25);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.75rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(95, 211, 179, 0.08), transparent 55%),
    var(--surface);
  text-align: center;
}

.integration-hub-center {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(95, 211, 179, 0.45);
  background: rgba(6, 10, 18, 0.85);
  box-shadow: 0 0 24px rgba(95, 211, 179, 0.12);
}

.integration-hub-center strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.integration-hub-center span {
  color: var(--muted);
  font-size: 0.78rem;
}

.integration-spokes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.integration-spoke {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.integration-simple {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.integration-simple-copy {
  border: 1px solid rgba(95, 211, 179, 0.26);
  border-radius: var(--radius);
  padding: 1.2rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(95, 211, 179, 0.11), transparent 42%),
    var(--surface);
}

.integration-simple-copy h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.1rem;
  line-height: 1.32;
}

.integration-simple-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.integration-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.integration-pipeline-step {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.integration-pipeline-step::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--info));
  opacity: 0.55;
}

.integration-pipeline-step span {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #061510;
  background: var(--accent);
}

.integration-pipeline-step strong {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

.integration-pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.integration-pipeline-step code {
  font-family: var(--mono);
  color: #93c5fd;
}

.connector-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.connector-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.connector-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 211, 179, 0.36);
  background:
    linear-gradient(180deg, rgba(95, 211, 179, 0.085), rgba(255, 255, 255, 0.025));
}

.connector-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.connector-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.connector-card h3 {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.connector-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.connector-card .integration-snippet {
  min-height: 116px;
}

.integration-faststart {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 1rem;
  align-items: stretch;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.15rem;
  margin-bottom: 1.5rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.1), transparent 42%),
    var(--surface);
}

.integration-faststart h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.04rem;
}

.integration-faststart p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.integration-faststart .integration-snippet {
  margin-top: 0;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.integration-card-link {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.integration-card-link a {
  color: var(--accent, #6ea8fe);
}

.integration-card-body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.integration-build-hint {
  display: none;
}

.integration-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: linear-gradient(180deg, var(--surface), transparent);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.integration-card-head h3 {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
}

.integration-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--info);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.integration-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.integration-card li + li {
  margin-top: 0.35rem;
}

.integration-card code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--code-text);
}

.integration-snippet {
  margin: 0;
  margin-top: auto;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--code-text);
  white-space: pre-wrap;
}

.integration-example h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.integration-example p {
  margin: 0 0 0.75rem;
}

.integration-example-cta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.integration-example-cta span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* —— Office use cases —— */
.office-persona {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.office-persona-copy {
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: var(--radius);
  padding: 1.35rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(167, 139, 250, 0.12), transparent 45%),
    var(--surface);
}

.office-persona-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.35rem;
}

.office-persona-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.office-persona-copy p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.office-persona-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.office-persona-stats li {
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.office-persona-stats strong {
  color: var(--text);
}

.office-day {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(180deg, var(--surface), transparent);
  display: grid;
  gap: 0.65rem;
}

.office-day-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.office-day-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.office-day-item time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

.office-day-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  font-style: italic;
}

.office-use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.office-use-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: linear-gradient(180deg, var(--surface), transparent);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.office-use-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.office-use-card--clickable:hover,
.office-use-card--clickable:focus-within {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.office-use-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.office-use-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 0.15rem;
}

.office-use-head h3 {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
}

.office-chat-quote {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(95, 211, 179, 0.08);
  color: var(--text);
  font-size: 0.86rem;
  font-style: italic;
}

.office-flow {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.office-flow li + li {
  margin-top: 0.35rem;
}

.office-flow code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--code-text);
}

.office-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.office-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
}

.office-badge.auto {
  color: var(--ok);
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
}

.office-badge.human {
  color: var(--warn);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.28);
}

.office-badge.uri {
  color: var(--info);
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.25);
  font-family: var(--mono);
  text-transform: none;
  font-size: 0.72rem;
}

.office-combined h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.office-combined p {
  margin: 0 0 0.75rem;
}

.office-honest {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
}

.office-honest h3 {
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.office-honest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.office-honest-grid article {
  font-size: 0.84rem;
  color: var(--muted);
}

.office-honest-grid strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
}

.office-honest-grid ul {
  margin: 0;
  padding-left: 1.1rem;
}

.office-honest-grid li + li {
  margin-top: 0.3rem;
}

/* —— Examples gallery (przyklady.html) —— */
.hero-compact {
  padding: calc(var(--header-h) + 2rem) 0 2rem;
}

.hero-compact h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  max-width: 820px;
}

.examples-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.examples-status-item {
  font-size: 0.84rem;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.examples-status-item.ok {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--ok);
}

.examples-status-item.muted {
  color: var(--muted);
}

.examples-quickstart h3 {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  color: var(--text);
}

.office-chains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.office-chain-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: linear-gradient(180deg, var(--surface), transparent);
}

.office-chain-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.examples-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.examples-filter-btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}

.examples-filter-btn.is-active,
.examples-filter-btn:hover {
  color: var(--text);
  border-color: rgba(95, 211, 179, 0.45);
  background: var(--accent-dim);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.example-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: linear-gradient(180deg, var(--surface), transparent);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.example-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.example-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.example-pass {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ok);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.example-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.example-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.example-office {
  margin: 0;
  font-size: 0.78rem;
  color: var(--warn);
}

.example-uris {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.example-uris code {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

.example-cmd {
  font-size: 0.68rem;
}

.example-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.example-path {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.example-copy {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

/* —— Examples docs (docs/examples.html) —— */
.docs-body {
  padding-bottom: 3rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-top: calc(var(--header-h) + 1.5rem);
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(6, 10, 18, 0.92);
}

.docs-sidebar-inner {
  padding: 1rem;
}

.docs-sidebar-toggle {
  display: none;
}

.docs-search-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.docs-search {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #050810;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
}

.docs-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.docs-toc a {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.35;
}

.docs-toc a:hover,
.docs-toc a.is-active {
  color: var(--text);
  background: var(--accent-dim);
}

.docs-built {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.docs-main {
  min-width: 0;
}

.docs-hero {
  margin-bottom: 2rem;
}

.docs-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin: 0.5rem 0;
}

.docs-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.docs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.docs-section-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.docs-anchor {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  opacity: 0.6;
}

.docs-anchor:hover {
  opacity: 1;
  color: var(--accent);
}

.docs-md {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.docs-md h1,
.docs-md h2,
.docs-md h3,
.docs-md h4 {
  color: var(--text);
  margin: 1.25rem 0 0.65rem;
  line-height: 1.3;
}

.docs-md h1 { font-size: 1.35rem; }
.docs-md h2 { font-size: 1.12rem; }
.docs-md h3 { font-size: 1rem; }

.docs-md p,
.docs-md ul,
.docs-md ol {
  margin: 0.65rem 0;
}

.docs-md ul,
.docs-md ol {
  padding-left: 1.25rem;
}

.docs-md li + li {
  margin-top: 0.25rem;
}

.docs-md a {
  color: var(--accent);
}

.docs-md code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
}

.docs-md pre {
  background: #050810;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #93c5fd;
}

.docs-md pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.docs-md table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin: 0.85rem 0;
}

.docs-md th,
.docs-md td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  text-align: left;
}

.docs-md th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.docs-files {
  margin-top: 1.25rem;
}

.docs-files-title {
  font-size: 0.88rem;
  color: var(--text);
  margin: 0 0 0.65rem;
}

.docs-file {
  margin-bottom: 0.65rem;
}

.docs-file details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.docs-file summary {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  list-style: none;
}

.docs-file summary::-webkit-details-marker {
  display: none;
}

.docs-file summary code {
  color: var(--info);
}

.docs-code {
  margin: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  max-height: 420px;
  overflow: auto;
}

/* —— Pricing —— */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(95, 211, 179, 0.45);
  box-shadow: 0 0 0 1px rgba(95, 211, 179, 0.2), var(--shadow);
}

.price-card h3 { margin: 0 0 0.25rem; }
.price-card .price {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0.5rem 0;
  color: var(--accent);
}

.price-card .price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.price-card ul {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
  flex: 1;
}

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

/* —— Tech + FAQ —— */
.tech-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.tech-block pre {
  background: #050810;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #93c5fd;
}

.faq-list {
  display: grid;
  gap: 0.5rem;
  max-width: 720px;
  margin: 0 auto;
}

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

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 0.2s;
}

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

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a-inner {
  padding: 0 1.15rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-item.is-open .faq-a {
  max-height: 200px;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }

  .tour-layout {
    grid-template-columns: 1fr;
  }

  .tour-steps {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .tour-step-btn {
    min-width: 140px;
    flex-direction: column;
    align-items: flex-start;
  }

  .mock-layout {
    grid-template-columns: 1fr;
  }

  .product-shot-grid,
  .agent-run-grid,
  .repair-loop,
  .repair-timeline,
  .scenario-grid,
  .system-map-grid,
  .tour-live-strip,
  .integration-simple,
  .integration-faststart {
    grid-template-columns: 1fr 1fr;
  }

  .integration-pipeline,
  .connector-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mock-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .nav-hide-mobile {
    display: none;
  }

  .site-nav {
    height: auto;
    min-height: var(--header-h);
    padding: 0.55rem 0;
  }

  .site-nav .container {
    align-items: flex-start;
  }

  .site-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .office-persona {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 90;
    max-height: none;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .docs-sidebar.is-open {
    transform: translateX(0);
  }

  .docs-sidebar-toggle {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .hero-cta .btn {
    width: 100%;
  }

  .product-shot-grid,
  .agent-run-grid,
  .repair-loop,
  .repair-timeline,
  .scenario-grid,
  .tour-live-strip,
  .repair-result,
  .integration-simple,
  .integration-pipeline,
  .connector-board,
  .integration-faststart {
    grid-template-columns: 1fr;
  }

  .scenario-lab {
    padding: 0.85rem;
  }

  .scenario-lab-head {
    flex-direction: column;
  }

  .scenario-lab-head .btn {
    width: 100%;
  }

  .scenario-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .system-map-head {
    display: block;
  }

  .system-map-grid {
    grid-template-columns: 1fr;
  }

  .system-map-node {
    min-height: auto;
  }

  .scenario-metrics {
    grid-template-columns: 1fr;
  }

  .product-shot-flow {
    grid-template-columns: 1fr;
  }

  .product-shot-flow i,
  .repair-result i {
    width: 100%;
  }

  .tour-controls .btn {
    flex: 1 1 130px;
  }

  .site-controls {
    justify-content: stretch;
  }

  .segmented-control {
    flex: 1;
  }

  .segmented-control button {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}
