/* ==========================================================================
   Qevora Labs — design system
   Dark is the default; light via [data-theme="light"] (set by script, saved).
   Change the brand colour in ONE place: --accent / --accent-ink below.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0d0e0c;
  --bg-soft: #121310;
  --surface: #161714;
  --surface-2: #1d1e1a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f1ea;
  --muted: #a3a195;
  --faint: #8a887d;
  --accent: #ff6b2c;
  --accent-ink: #1a0b03;
  --accent-soft: rgba(255, 107, 44, 0.14);
  --glow: rgba(255, 107, 44, 0.38);
  --mint: #5ee3c8;
  --mint-soft: rgba(94, 227, 200, 0.14);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 72px;
  --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3ea;
  --bg-soft: #efebe0;
  --surface: #ffffff;
  --surface-2: #f1ede2;
  --line: rgba(24, 22, 14, 0.1);
  --line-strong: rgba(24, 22, 14, 0.18);
  --text: #17160f;
  --muted: #625f53;
  --faint: #716e62;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: rgba(194, 65, 12, 0.1);
  --glow: rgba(194, 65, 12, 0.26);
  --mint: #0b8a72;
  --mint-soft: rgba(11, 138, 114, 0.12);
  --shadow: 0 24px 50px -26px rgba(60, 40, 10, 0.35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--glow); }
.btn-ghost { border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.logo img { width: 34px; height: 34px; }
.logo small { font-weight: 400; color: var(--muted); font-size: inherit; margin-left: -4px; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.nav-links a { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: border-color 0.2s, transform 0.3s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle svg { display: none; }
:root[data-mode="auto"] .theme-toggle .i-auto,
:root[data-mode="light"] .theme-toggle .i-sun,
:root[data-mode="dark"] .theme-toggle .i-moon { display: block; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform 0.25s, background-color 0.25s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle.open span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 80%; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(30% 30% at 85% 20%, var(--mint-soft), transparent 70%);
}
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero h1 { font-size: clamp(40px, 7vw, 82px); max-width: 17ch; margin: 26px auto 0; font-weight: 600; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 58ch; margin: 24px auto 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

.arc-wrap { position: relative; margin-top: 76px; }
.arc {
  position: absolute; left: 50%; top: -44px; width: min(1500px, 190vw); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none; z-index: 0;
  border-top: 1.5px solid var(--accent);
  box-shadow: 0 -22px 60px -12px var(--glow), inset 0 24px 70px -30px var(--glow);
  -webkit-mask-image: linear-gradient(#000 0, #000 5%, transparent 24%);
  mask-image: linear-gradient(#000 0, #000 5%, transparent 24%);
}

.bento { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; text-align: left; }
.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 55%, var(--surface)), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: var(--line-strong); }
.card-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h3 { font-size: 22px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.tag-note { font-size: 11px; color: var(--faint); font-weight: 500; letter-spacing: 0; text-transform: none; }

.c-chat { grid-column: span 4; display: flex; flex-direction: column; min-height: 290px; }
.c-kpi { grid-column: span 3; display: flex; flex-direction: column; justify-content: space-between; }
.c-chart { grid-column: span 5; }

.rot-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 14px 0 12px; gap: 4px 12px; }
.rot-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.rot-name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.rot-sub { font-size: 12px; color: var(--faint); }
.rot-chat { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 130px; }
.rot-msg { max-width: 88%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; animation: pop 0.35s ease both; }
.rot-msg.ai { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.rot-msg.user { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; align-self: flex-end; font-weight: 500; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.rot-dots { display: flex; gap: 6px; margin-top: 14px; }
.rot-dots button { width: 18px; height: 4px; border-radius: 4px; background: var(--line-strong); transition: background-color 0.3s, width 0.3s; }
.rot-dots button.active { background: var(--accent); width: 30px; }

.kpi-num { font-family: var(--font-display); font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-top: 18px; }
.kpi-delta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--mint); background: var(--mint-soft); padding: 4px 10px; border-radius: 999px; width: fit-content; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 84px; margin-top: 20px; }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--line-strong); height: var(--h); transform-origin: bottom; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms + 300ms); }
.bars span:nth-child(5) { background: var(--accent); }
@keyframes grow { from { transform: scaleY(0); } }

.chart { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.chart .axis { fill: var(--faint); font-size: 11px; font-family: var(--font-body); }
.chart .area { fill: url(#areaFill); opacity: 0; animation: fade 1s 0.9s ease forwards; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s 0.3s cubic-bezier(.4,.1,.2,1) forwards; }
.chart .pt { fill: var(--bg); stroke: var(--accent); stroke-width: 2.5; opacity: 0; animation: fade 0.4s 2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.chart-head h3 { font-size: 20px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; overflow-x: clip; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.h2 { font-size: clamp(34px, 5vw, 60px); text-wrap: balance; }
.h2 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: 17px; max-width: 56ch; }
.head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.head-split > div { flex: 1 1 420px; }
.head-split > .lead { flex: 0 1 380px; }
.head-center { text-align: center; max-width: 780px; margin-inline: auto; }
.head-center .lead { margin: 18px auto 0; }

/* What we build */
.build { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.build-copy .lead { margin-top: 22px; }
.build-copy .btn { margin-top: 30px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 500; color: var(--muted); transition: all 0.2s; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-panel { margin: 8px 6px 6px; padding: 26px; min-height: 250px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); display: flex; flex-direction: column; }
.chip-panel h3 { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.chip-panel .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.chip-panel .ico svg { width: 22px; height: 22px; }
.chip-panel > p { color: var(--muted); margin-top: 14px; }
.chip-panel ul { margin-top: 16px; display: grid; gap: 8px; }
.chip-panel li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.chip-panel li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; flex: none; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.4 2.4 4.6-5' fill='none' stroke='%231a0b03' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.chip-panel .ask { margin-top: auto; padding-top: 18px; align-self: flex-start; color: var(--accent); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 8px; align-items: center; }
.chip-panel .ask:hover { gap: 12px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 6px 6px; }
.mini { padding: 18px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); }
.mini b { font-family: var(--font-display); display: flex; align-items: center; gap: 9px; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }
.mini b svg { width: 18px; height: 18px; color: var(--accent); }
.mini p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Backed by intelligence */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.feat { padding: 28px; min-height: 420px; display: flex; flex-direction: column; border-radius: 26px; }
.feat h3 { font-size: 28px; }
.feat p { margin-top: 12px; }
.feat .viz { margin-top: auto; padding-top: 24px; }
.feat.is-accent { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.feat.is-accent p { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.feat.is-accent .bars-big { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.feat.is-accent .bars-big span { flex: 1; border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-ink) 78%, transparent) 0 48%, color-mix(in srgb, #fff 55%, transparent) 48%); height: var(--h); }
.spark { width: 100%; height: 130px; }
.spark path.f { fill: url(#sparkFill); }
.spark path.l { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.donut-row { display: flex; align-items: center; gap: 22px; }
.donut { width: 130px; height: 130px; flex: none; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 11; }
.donut .bg { stroke: var(--line-strong); }
.donut .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 72 100; }
.donut-legend { display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); }
.donut-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; background: var(--accent); }
.donut-legend i.b { background: var(--line-strong); }
.small-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.small-row .card { padding: 24px; }
.small-row h3 { font-size: 19px; }

/* Industries */
.industries { background: var(--bg-soft); border-block: 1px solid var(--line); }
.ind-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 48px; }
.ind { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; transition: transform 0.2s, border-color 0.2s, background-color 0.2s; }
.ind svg { width: 18px; height: 18px; color: var(--accent); }
.ind:hover { transform: translateY(-3px); border-color: var(--accent); }
.ind-note { text-align: center; margin-top: 32px; color: var(--muted); }
.ind-note button { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Demo */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { margin: 30px 0 36px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: center; font-weight: 500; }
.checks li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='%23ff6b2c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.phone { position: relative; max-width: 420px; margin-inline: auto; padding: 14px; border-radius: 38px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 0 10px var(--accent-soft); }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 12px 10px 16px; border-bottom: 1px solid var(--line); }
.phone-top img { width: 46px; height: 46px; }
.phone-top b { display: block; font-family: var(--font-display); font-size: 17px; }
.phone-top span { font-size: 12.5px; color: var(--mint); display: flex; align-items: center; gap: 6px; }
.phone-top span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.phone-body { padding: 18px 6px; display: flex; flex-direction: column; gap: 10px; min-height: 330px; }
.phone-foot { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--faint); font-size: 14px; }
.phone-foot span { flex: 1; padding-left: 12px; }
.phone-foot i { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }
.phone-foot i svg { width: 16px; height: 16px; }

/* Process */
.steps { margin-top: 56px; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 90px 1fr 1.1fr; gap: 24px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding 0.3s ease; }
.step::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 40% 50%, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; z-index: -1; }
.step:hover::before { opacity: 1; }
.step:hover h3 { color: var(--accent); transform: translateX(8px); }
.step .n { font-family: var(--font-display); color: var(--faint); font-size: 15px; font-weight: 500; }
.step h3 { font-size: clamp(28px, 3.6vw, 44px); transition: color 0.3s, transform 0.3s; }
.step p { color: var(--muted); max-width: 46ch; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-size: 18px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--accent); transition: transform 0.25s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); }
.faq-item a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* CTA + contact */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 6vw, 72px); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface) 60%); border: 1px solid var(--line-strong); }
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta h2 { font-size: clamp(34px, 4.6vw, 56px); }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta .lead { margin-top: 20px; }
.contact-lines { margin-top: 32px; display: grid; gap: 14px; }
.contact-lines a, .contact-lines span { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-lines svg { width: 20px; height: 20px; color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all 0.2s; }
.socials a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.socials:empty { display: none; }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 16px; }
:root[data-theme="light"] .form { background: #fff; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--text);
  padding: 13px 16px; border-radius: 12px; font: inherit; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
:root[data-theme="light"] .field input, :root[data-theme="light"] .field textarea { background: var(--bg); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { padding: 72px 0 36px; border-top: 1px solid var(--line); margin-top: clamp(60px, 8vw, 100px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid p { color: var(--muted); margin-top: 16px; max-width: 34ch; font-size: 14.5px; }
.foot-grid h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid li a, .foot-grid li button { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.foot-grid li a:hover, .foot-grid li button:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

/* ---------- Zarza: launcher + right-side panel ---------- */
.launcher { position: fixed; right: 22px; bottom: 22px; z-index: 250; transition: transform 0.25s ease, opacity 0.25s ease; }
.launcher-btn { display: flex; align-items: center; gap: 10px; padding: 6px 20px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 0 5px var(--accent-soft); transition: transform 0.25s ease, box-shadow 0.25s; }
.launcher-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 0 0 7px var(--accent-soft); }
.launcher-face { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; position: relative; }
.launcher-face img { width: 44px; height: 44px; }
.launcher-face::after { content: ""; position: absolute; right: 1px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); border: 2px solid var(--surface); }
.launcher-label { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.launcher-teaser { position: absolute; right: 4px; bottom: calc(100% + 14px); width: max-content; max-width: 240px; padding: 12px 34px 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px) scale(0.96); transform-origin: bottom right; pointer-events: none; transition: all 0.35s cubic-bezier(.2,.9,.3,1); }
.launcher-teaser.show { opacity: 1; transform: none; pointer-events: auto; }
.launcher-teaser button { position: absolute; top: 6px; right: 8px; width: 22px; height: 22px; border-radius: 50%; font-size: 15px; line-height: 1; opacity: 0.6; }
.launcher-teaser button:hover { opacity: 1; }
body.chat-open .launcher { opacity: 0; transform: translateY(20px); pointer-events: none; }

.chat-scrim { position: fixed; inset: 0; z-index: 290; background: rgba(5, 5, 4, 0.45); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.chat-panel { position: fixed; z-index: 300; top: 16px; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 28px; box-shadow: var(--shadow), 0 0 0 1px var(--accent-soft); overflow: hidden; transform: translateX(calc(100% + 40px)); visibility: hidden; transition: transform 0.4s cubic-bezier(.2,.85,.25,1), visibility 0.4s; }
.chat-panel.open { transform: none; visibility: visible; }
.chat-head { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), transparent); }
.chat-head .mascot { width: 56px; height: 56px; flex: none; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; }
.chat-head .mascot img { width: 48px; height: 48px; }
.chat-head h3 { font-size: 19px; }
.chat-head .tagline { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--mint); font-size: 12px; font-weight: 600; margin-top: 4px; }
.chat-head small::before { content: ""; width: 7px; height: 7px; background: var(--mint); border-radius: 50%; }
.chat-close { margin-left: auto; align-self: flex-start; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); flex: none; }
.chat-close:hover { border-color: var(--accent); }
.chat-close svg { width: 18px; height: 18px; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; overscroll-behavior: contain; }
.bubble { display: flex; gap: 10px; max-width: 92%; animation: pop 0.3s ease both; }
.bubble.user { align-self: flex-end; flex-direction: row-reverse; }
.bubble .av { width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; }
.bubble .av img { width: 100%; height: 100%; }
.bubble .bc { padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.bubble.ai .bc { background: var(--surface-2); border: 1px solid var(--line); border-top-left-radius: 5px; }
.bubble.user .bc { background: var(--accent); color: var(--accent-ink); border-top-right-radius: 5px; font-weight: 500; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 42px; animation: pop 0.4s 0.2s ease both; }
.quick button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 500; transition: all 0.2s; }
.quick button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.typing { display: flex; gap: 10px; align-items: center; }
.typing .av { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.typing .av img { width: 100%; height: 100%; }
.typing .dots { display: flex; gap: 5px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; border-top-left-radius: 5px; }
.typing .dots span { width: 7px; height: 7px; background: var(--faint); border-radius: 50%; animation: bounce 1.1s infinite; }
.typing .dots span:nth-child(2) { animation-delay: 0.15s; }
.typing .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-foot { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-foot input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--text); border-radius: 999px; padding: 0 20px; height: 48px; font: inherit; font-size: 15px; }
.chat-foot input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.send { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; transition: transform 0.2s; }
.send:hover:not(:disabled) { transform: scale(1.07); }
.send:disabled { opacity: 0.5; cursor: not-allowed; }
.send svg { width: 20px; height: 20px; }
.chat-note { text-align: center; font-size: 11.5px; color: var(--faint); padding: 0 14px 12px; }

/* Meet Zarza */
.meet { display: flex; align-items: center; gap: 18px; padding: 16px 20px 16px 14px; margin: 26px 0 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.meet img { width: 84px; height: 84px; flex: none; }
.meet b { font-family: var(--font-display); font-size: 20px; display: block; }
.meet p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.traits span { padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); z-index: 400; padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 14.5px; background: var(--text); color: var(--bg); opacity: 0; transition: all 0.35s ease; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #d93025; color: #fff; }

/* ---------- Reveal on scroll (content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .c-chat { grid-column: span 6; }
  .c-kpi { grid-column: span 6; }
  .c-chart { grid-column: span 12; }
  .build, .demo-grid, .faq-wrap, .cta-grid { grid-template-columns: 1fr; gap: 44px; }
  .trio, .small-row { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; border-radius: 0 0 24px 24px; border-width: 0 0 1px;
    background: var(--bg); padding: 14px 24px 24px; gap: 2px; margin: 0;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 8px; font-size: 17px; border-radius: 10px; }
  .menu-toggle { display: grid; }
  .nav-actions .btn { display: none; }
  .nav-actions { margin-left: auto; }
  .step { grid-template-columns: 44px 1fr; row-gap: 10px; }
  .step p { grid-column: 2; }
}
@media (max-width: 640px) {
  .container { width: min(1160px, 100% - 36px); }
  .c-chat, .c-kpi, .c-chart { grid-column: span 12; }
  .row-2, .mini-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .arc-wrap { margin-top: 56px; }
  .arc { top: -36px; }
  .btn-lg { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .chip-panel { padding: 20px; }
  .donut-row { flex-direction: column; align-items: flex-start; }
  .chat-panel { inset: 0; width: 100%; border-radius: 0; border: 0; }
  body.chat-open .chat-scrim { opacity: 1; visibility: visible; }
  .launcher-label { display: none; }
  .launcher { right: 16px; bottom: 16px; }
  .launcher-btn { padding: 6px; }
  .meet { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .chart .line { stroke-dashoffset: 0; }
  .chart .area, .chart .pt { opacity: 1; }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-page .navbar { position: fixed; }
.blog-hero, .blog-index-header { padding: calc(var(--nav-h) + 56px) 0 40px; position: relative; }
.blog-hero::before, .blog-index-header::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; background: radial-gradient(60% 70% at 50% 0%, var(--accent-soft), transparent 70%); }
.container-narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--faint); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.6; }
.section-tag { display: inline-flex; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.blog-hero h1, .blog-index-header h1 { font-size: clamp(34px, 5.6vw, 62px); margin: 20px 0 0; text-wrap: balance; }
.gradient-text, .accent { color: var(--accent); }
.blog-hero .lead { margin-top: 20px; font-size: 18px; max-width: 62ch; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: var(--faint); font-size: 14px; }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.blog-index-header { text-align: center; }
.blog-index-header p { max-width: 58ch; margin: 18px auto 0; color: var(--muted); font-size: 18px; }

.article-wrapper { padding-bottom: 40px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.article-body { max-width: 74ch; font-size: 17.5px; line-height: 1.75; }
.article-body h2 { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 16px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.article-body h3 { font-size: 22px; margin: 32px 0 10px; }
.article-body p { margin: 0 0 18px; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; list-style: revert; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.article-body li { margin-bottom: 8px; padding-left: 4px; }
.article-body li::marker { color: var(--accent); font-weight: 600; }
.article-body strong { color: var(--text); }

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0 32px; }
.feature-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature-card h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.article-body .feature-card p { font-size: 15px; line-height: 1.55; margin: 0; color: var(--muted); }

.stat-row-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 26px 0 8px; }
.stat-box { padding: 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.stat-num { display: block; font-family: var(--font-display); font-size: 38px; font-weight: 600; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.stat-label { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.stat-note { font-size: 13px !important; color: var(--faint) !important; margin: 0 0 24px !important; font-style: italic; }

.callout { padding: 20px 24px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); background: var(--surface); margin: 28px 0; }
.callout p { margin: 0 !important; font-size: 16px; }

.table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.comparison-table th, .comparison-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table thead th { font-family: var(--font-display); font-size: 15px; color: var(--muted); background: var(--bg-soft); }
.comparison-table thead th.ai-col { color: var(--accent); }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table td.ai-win { background: var(--accent-soft); }
.badge-win { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; white-space: nowrap; }

.faq-section { margin-top: 56px; }
.faq-section h2 { margin-top: 0; }
.faq-section .faq-item { margin-bottom: 12px; }
.faq-section .faq-item details { padding: 0; }
.faq-section summary { padding: 18px 22px; }
.faq-section .faq-answer { padding: 0 22px 20px; margin: 0; color: var(--muted); font-size: 16px; }

.cta-box { margin-top: 56px; padding: clamp(28px, 5vw, 48px); border-radius: 28px; border: 1px solid var(--line-strong); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface) 65%); }
.cta-box h2 { margin: 0 0 12px; }
.cta-box p { color: var(--muted); }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.article-body .cta-box a.btn { text-decoration: none; }
.article-body .btn-primary { color: var(--accent-ink); }
.btn-secondary { border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-glow { box-shadow: 0 10px 30px -10px var(--glow); }

.toc-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.toc-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.toc-card h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.toc-list { display: grid; gap: 4px; }
.toc-list a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14.5px; line-height: 1.4; transition: color 0.2s, border-color 0.2s; }
.toc-list a:hover, .toc-list a.on { color: var(--accent); border-left-color: var(--accent); }

.related-section { margin-top: 70px; padding-top: 44px; border-top: 1px solid var(--line); }
.related-section h2 { font-size: 28px; margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: transform 0.25s, border-color 0.25s; }
.related-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.related-card h3 { font-size: 18px; margin-bottom: 8px; }
.related-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 20px; }
.blog-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 55%, var(--surface)), var(--surface)); transition: transform 0.3s ease, border-color 0.3s ease; }
.blog-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.blog-card-category { align-self: flex-start; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); }
.blog-card-category.cat-industry { background: var(--mint-soft); color: var(--mint); }
.blog-card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); color: var(--accent); margin: 18px 0 16px; }
.blog-card h2 { font-size: 21px; line-height: 1.2; }
.blog-card p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.blog-card-footer { display: flex; justify-content: space-between; margin-top: auto; padding-top: 20px; font-size: 13.5px; color: var(--faint); }
.read-more { color: var(--accent); font-weight: 600; }

@media (max-width: 1020px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc-sidebar { display: none; }
  .blog-grid, .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .features-grid, .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .container-narrow { width: min(820px, 100% - 36px); }
  .article-body { font-size: 17px; }
}
