/* Layout: one dark "control room" world. A faint blueprint grid and soft glows sit behind a
   1180px column; flow (teal), AI (violet) and colleague (amber) colour-code every exchange,
   and Geist Mono carries the system's own voice: statuses, logs, latencies. */
:root {
  --bg: #07060b;
  --bg-2: #0c0a13;
  --panel: rgb(255 255 255 / 3.5%);
  --panel-solid: #12101a;
  --panel-hi: rgb(255 255 255 / 6%);
  --ink: #f1eef8;
  --muted: #9a93ad;
  --faint: #6f6883;
  --line: rgb(255 255 255 / 9%);
  --line-hi: rgb(255 255 255 / 16%);
  --brand-rgb: 124 58 237;
  --brand-hi-rgb: 167 139 250;
  --grid: rgb(var(--brand-hi-rgb) / 7%);
  --brand: #b49cff;
  --brand-fill: #7c3aed;
  --on-brand: #ffffff;
  --flow: #2dd4bf;
  --flow-tint: rgb(45 212 191 / 12%);
  --ai: #b49cff;
  --ai-tint: rgb(var(--brand-rgb) / 16%);
  --human: #fbbf24;
  --human-tint: rgb(251 191 36 / 12%);
  --ok: #34d399;
  --wa: #3ddc7a;
  --tg: #4cb8ea;
  --term: #05040a;
  --term-ink: #e9e5f5;
  --glow-violet: rgb(var(--brand-rgb) / 38%);
  --glow-amber: rgb(245 158 11 / 16%);
  --shadow: 0 1px 0 rgb(255 255 255 / 6%) inset, 0 30px 80px -30px rgb(0 0 0 / 80%);
  --font-display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 14px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px / 1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
:root[data-lang="hu"] .en,
:root[data-lang="en"] .hu {
  display: none !important;
}
a {
  color: inherit;
}
::selection {
  background: rgb(var(--brand-rgb) / 45%);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 700;
}
h3 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
p {
  margin: 0;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 0.74rem / 1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 62ch;
}
.mono {
  font-family: var(--font-mono);
}
section {
  padding-block: clamp(72px, 9vw, 120px);
  position: relative;
}
.band {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 780px;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.grad-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hi), transparent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font: 600 0.95rem / 1 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--brand-fill);
  color: var(--on-brand);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 14%) inset,
    0 8px 30px -8px var(--glow-violet);
}
.btn-primary:hover {
  background: var(--brand-fill);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 20%) inset,
    0 10px 40px -6px var(--glow-violet);
}
.btn-ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line-hi);
}
.btn-ghost:hover {
  background: var(--panel-hi);
  border-color: rgb(255 255 255 / 26%);
}
.btn svg {
  width: 16px;
  height: 16px;
}

.draft {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  font: 500 0.7rem / 1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--panel-solid);
  color: var(--muted);
  border: 1px solid var(--line-hi);
  padding: 9px 12px;
  border-radius: 999px;
}
.draft::before {
  content: "● ";
  color: var(--human);
}

/* Header */
header.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgb(7 6 11 / 72%);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.15rem / 1 var(--font-display);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo svg {
  width: 28px;
  height: 28px;
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
.nav a {
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav a:hover {
  color: var(--ink);
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: inline-flex;
  border: 1px solid var(--line-hi);
  border-radius: 8px;
  padding: 3px;
}
.lang button {
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 0.72rem / 1 var(--font-mono);
  padding: 7px 9px;
  border-radius: 5px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--panel-hi);
  color: var(--ink);
}
@media (max-width: 1120px) {
  .nav {
    display: none;
  }
}
@media (max-width: 520px) {
  .top .btn-primary {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 112px);
  overflow: hidden;
  isolation: isolate;
}
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  right: -120px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-violet), transparent 70%);
  filter: blur(10px);
}
.hero .glow-amber {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: 18%;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-amber), transparent 70%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: var(--panel);
  font: 500 0.75rem / 1 var(--font-mono);
  color: var(--muted);
}
.status-chip b {
  color: var(--ink);
  font-weight: 500;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgb(52 211 153 / 60%);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(52 211 153 / 55%);
  }
  70% {
    box-shadow: 0 0 0 8px rgb(52 211 153 / 0%);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(52 211 153 / 0%);
  }
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-top: 22px;
}
.hero h1 .who {
  white-space: nowrap;
}
.who-ai {
  color: var(--ai);
  text-shadow: 0 0 40px rgb(var(--brand-hi-rgb) / 45%);
}
.who-human {
  color: var(--human);
  text-shadow: 0 0 40px rgb(251 191 36 / 30%);
}
.hero .lede {
  margin-top: 24px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 32px;
  color: var(--muted);
  font: 500 0.8rem / 1.4 var(--font-mono);
}
.proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof i {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--brand);
  display: inline-block;
  transform: rotate(45deg);
}

/* Chat demo */
.demo {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.demo-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.demo-tabs button[data-ch] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font: 500 0.78rem / 1 var(--font-mono);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.demo-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--line-hi);
  background: var(--panel-hi);
}
.demo-tabs .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.replay {
  margin-left: auto;
  padding: 8px 12px !important;
  font: 500 0.78rem / 1 var(--font-mono) !important;
}
.chat-frame {
  position: relative;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgb(45 212 191 / 55%),
    rgb(var(--brand-rgb) / 70%) 45%,
    rgb(251 191 36 / 55%)
  );
  box-shadow:
    0 40px 100px -30px rgb(var(--brand-rgb) / 45%),
    0 0 0 1px rgb(255 255 255 / 4%);
}
.chat {
  --c-head: var(--brand-fill);
  --c-head-ink: #fff;
  --c-bg: #ffffff;
  --c-in: #f3f0fa;
  --c-in-ink: #17131f;
  --c-out: var(--brand-fill);
  --c-out-ink: #fff;
  --c-btn: #ffffff;
  --c-btn-ink: var(--brand-fill);
  --c-btn-line: #ddd3f7;
  border-radius: 21px;
  overflow: hidden;
  background: var(--c-bg);
  color: var(--c-in-ink);
}
.chat.wa {
  --c-head: #008069;
  --c-bg: #efe7dd;
  --c-in: #ffffff;
  --c-out: #d9fdd3;
  --c-out-ink: #111b21;
  --c-btn: #ffffff;
  --c-btn-ink: #027eb5;
  --c-btn-line: #e9e2d8;
}
.chat.tg {
  --c-head: #ffffff;
  --c-head-ink: #111;
  --c-bg: #cfdfe9;
  --c-in: #ffffff;
  --c-out: #e3fbd0;
  --c-out-ink: #111;
  --c-btn: rgb(0 0 0 / 22%);
  --c-btn-ink: #ffffff;
  --c-btn-line: transparent;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-head);
  color: var(--c-head-ink);
}
.chat.tg .chat-head {
  border-bottom: 1px solid #dfe5ea;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 0.9rem / 1 var(--font-display);
  background: rgb(255 255 255 / 22%);
  color: inherit;
}
.chat.tg .avatar {
  background: #8b6cf0;
  color: #fff;
}
.chat-head b {
  display: block;
  font-size: 0.98rem;
}
.chat-head small {
  opacity: 0.8;
  font-size: 0.78rem;
}
.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.msg {
  display: grid;
  gap: 4px;
  max-width: 84%;
  animation: rise 0.35s ease both;
}
.msg.out {
  align-self: flex-end;
  justify-items: end;
}
.bubble {
  padding: 10px 13px;
  border-radius: 16px;
  background: var(--c-in);
  color: var(--c-in-ink);
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgb(0 0 0 / 6%);
}
.msg.out .bubble {
  background: var(--c-out);
  color: var(--c-out-ink);
  border-bottom-right-radius: 6px;
}
.msg.in .bubble {
  border-bottom-left-radius: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.66rem / 1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 6px;
  width: fit-content;
}
.tag.flow {
  background: #e3f5f2;
  color: #0f766e;
}
.tag.ai {
  background: #efe9ff;
  color: var(--brand-fill);
}
.tag.human {
  background: #fdf0dc;
  color: #92400e;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.choices span {
  border: 1px solid var(--c-btn-line);
  background: var(--c-btn);
  color: var(--c-btn-ink);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}
.chat.wa .choices,
.chat.tg .choices {
  display: grid;
  gap: 4px;
  width: 100%;
}
.chat.wa .choices span {
  border-radius: 8px;
  text-align: center;
}
.chat.tg .choices span {
  border-radius: 8px;
  text-align: center;
}
.choices span.picked {
  outline: 2px solid currentColor;
}
.source {
  font: 500 0.68rem / 1 var(--font-mono);
  color: #5d566e;
  background: rgb(255 255 255 / 70%);
  border: 1px solid #e7e2f1;
  padding: 4px 7px;
  border-radius: 6px;
}
.event {
  align-self: center;
  text-align: center;
  font: 500 0.7rem / 1.4 var(--font-mono);
  color: #6b5a3e;
  background: #fdf0dc;
  border: 1px solid #f3d9a8;
  padding: 7px 10px;
  border-radius: 10px;
  max-width: 92%;
  animation: rise 0.35s ease both;
}
.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--c-in);
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a93ab;
  animation: blink 1s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes rise {
  from {
    transform: translateY(6px);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
.statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(5 4 10 / 60%);
  font: 500 0.72rem / 1.3 var(--font-mono);
  color: var(--faint);
}
.statusbar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.statusbar b {
  color: var(--muted);
  font-weight: 500;
}
.statusbar i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

/* Architecture */
.arch-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 255 255 / 3%), transparent 60%), var(--bg);
  overflow: hidden;
  position: relative;
}
.arch-scroll {
  overflow-x: auto;
}
.arch-scroll svg {
  display: block;
  min-width: 720px;
  width: 100%;
  height: auto;
}
.arch .node {
  fill: #110f18;
  stroke: rgb(255 255 255 / 12%);
}
.arch .core {
  fill: #14101f;
  stroke: rgb(var(--brand-hi-rgb) / 45%);
}
.arch .t {
  fill: var(--ink);
  font: 600 15px var(--font-body);
}
.arch .s {
  fill: var(--muted);
  font: 500 11.5px var(--font-mono);
  letter-spacing: 0.03em;
}
.arch .k {
  font: 500 10.5px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.arch .wire {
  fill: none;
  stroke: rgb(255 255 255 / 14%);
  stroke-width: 1.5;
}
.arch .flowing {
  fill: none;
  stroke-width: 1.6;
  stroke-dasharray: 4 7;
  animation: dash 1.6s linear infinite;
}
@keyframes dash {
  to {
    stroke-dashoffset: -22;
  }
}
.log {
  border-top: 1px solid var(--line);
  background: var(--term);
  padding: 14px 18px;
  font: 400 0.78rem / 1.75 var(--font-mono);
  color: var(--term-ink);
  height: 168px;
  overflow: hidden;
  position: relative;
}
.log::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 36px;
  background: linear-gradient(var(--term), transparent);
  pointer-events: none;
}
.log-line {
  display: grid;
  grid-template-columns: 74px 84px minmax(0, 1fr);
  gap: 12px;
  white-space: nowrap;
  animation: rise 0.4s ease both;
}
.log-line .ts {
  color: var(--faint);
}
.log-line .src {
  text-transform: lowercase;
}
.log-line .msg-t {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #c9c3d9;
}
.c-flow {
  color: var(--flow);
}
.c-ai {
  color: var(--ai);
}
.c-human {
  color: var(--human);
}
.c-wa {
  color: var(--wa);
}
.c-tg {
  color: var(--tg);
}
.c-web {
  color: #c4b5fd;
}

/* Steps: flow → AI → colleague */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 920px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition:
    border-color 0.25s,
    background 0.25s;
}
.card:hover {
  border-color: var(--line-hi);
  background: var(--panel-hi);
}
.step {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 24px;
  min-width: 0;
}
.step-no {
  font: 500 0.74rem / 1 var(--font-mono);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.step-no b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-weight: 600;
  color: #0b0a10;
}
.step p {
  color: var(--muted);
}
.vignette {
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgb(5 4 10 / 55%);
  padding: 16px;
  min-height: 196px;
  position: relative;
  overflow: hidden;
}
.dots {
  background-image: radial-gradient(rgb(255 255 255 / 9%) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

/* Flow vignette */
.fnode {
  position: relative;
  background: #15121e;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.8rem;
  color: var(--ink);
}
.fnode .k {
  font: 500 0.62rem / 1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flow);
  display: block;
  margin-bottom: 5px;
}
.fnode.ai .k {
  color: var(--ai);
}
.flowv {
  display: grid;
  gap: 20px;
}
.flowv .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.flowv .opt {
  font-size: 0.72rem;
  border: 1px dashed rgb(45 212 191 / 60%);
  color: var(--flow);
  padding: 4px 8px;
  border-radius: 999px;
}

/* AI vignette */
.kb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.7rem / 1 var(--font-mono);
  background: #15121e;
  border: 1px solid rgb(255 255 255 / 12%);
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--muted);
}
.doc svg {
  width: 13px;
  height: 13px;
}
.arrow-down {
  display: grid;
  place-items: center;
  height: 34px;
  color: var(--ai);
}
.ans {
  background: var(--ai-tint);
  border: 1px solid rgb(var(--brand-hi-rgb) / 25%);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 0.85rem;
}
.ans .src {
  display: block;
  margin-top: 7px;
  font: 500 0.64rem / 1 var(--font-mono);
  color: var(--ai);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Inbox rows */
.irow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: #15121e;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.82rem;
}
.irow .av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 0.7rem / 1 var(--font-display);
  background: #1e3a8a;
  color: #dbeafe;
}
.irow .nm {
  font-weight: 600;
}
.irow .pv {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.pill {
  font: 500 0.64rem / 1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 7px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pill.ai {
  background: var(--ai-tint);
  color: var(--ai);
  border-color: rgb(var(--brand-hi-rgb) / 25%);
}
.pill.human {
  background: var(--human-tint);
  color: var(--human);
  border-color: rgb(251 191 36 / 25%);
}
.pill.done {
  background: var(--panel-hi);
  color: var(--muted);
}
.note {
  margin-top: 10px;
  border-left: 2px solid var(--human);
  background: var(--human-tint);
  border-radius: 0 10px 10px 0;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--ink);
}
.note b {
  font: 500 0.64rem / 1 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--human);
  display: block;
  margin-bottom: 4px;
}

/* Channels */
.channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1000px) {
  .channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .channels {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ch {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  min-width: 0;
}
.ch-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
}
.ch-ico svg {
  width: 21px;
  height: 21px;
}
.ch p {
  color: var(--muted);
  font-size: 0.93rem;
}
.ch .meta {
  font: 500 0.7rem / 1.4 var(--font-mono);
  color: var(--faint);
  border-top: 1px dashed var(--line-hi);
  padding-top: 12px;
  margin-top: auto;
}
.badge-exp {
  font: 500 0.62rem / 1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--human);
  border: 1px solid currentColor;
  padding: 4px 6px;
  border-radius: 5px;
  width: fit-content;
}
.embed {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--term);
  border: 1px solid var(--line);
  color: var(--term-ink);
}
.embed code {
  font: 400 0.82rem / 1.5 var(--font-mono);
  overflow-x: auto;
  white-space: nowrap;
  display: block;
}
.embed code .a {
  color: #c4b5fd;
}
.embed code .s {
  color: #86efac;
}
.embed small {
  color: var(--faint);
  font: 500 0.75rem / 1.4 var(--font-mono);
}
@media (max-width: 640px) {
  .embed {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.feat {
  grid-column: span 2;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  min-width: 0;
}
.feat.wide {
  grid-column: span 3;
}
@media (max-width: 1000px) {
  .feat,
  .feat.wide {
    grid-column: span 3;
  }
  .feat:last-child {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .feat,
  .feat.wide,
  .feat:last-child {
    grid-column: span 6;
  }
}
.feat p {
  color: var(--muted);
  font-size: 0.93rem;
}
.feat .vignette {
  min-height: 0;
}
.kbd {
  font: 500 0.72rem / 1 var(--font-mono);
  border: 1px solid var(--line-hi);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 4px 7px;
  background: #15121e;
}
.search {
  display: grid;
  gap: 6px;
}
.search .q {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-hi);
  background: #15121e;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.85rem;
}
.search .hit {
  font-size: 0.8rem;
  padding: 7px 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.search .hit.on {
  background: var(--ai-tint);
}
.search .hit small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.models span {
  font: 500 0.76rem / 1 var(--font-mono);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-hi);
  background: #15121e;
}
.models span.on {
  border-color: var(--ai);
  color: var(--ai);
  box-shadow: 0 0 20px -6px var(--glow-violet);
}
.meter {
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
  overflow: hidden;
  margin-top: 10px;
}
.meter i {
  display: block;
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, var(--brand-fill), var(--brand));
  border-radius: inherit;
  box-shadow: 0 0 12px var(--glow-violet);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 92px;
}
.bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgb(255 255 255 / 7%);
  position: relative;
}
.bars i b {
  position: absolute;
  inset: auto 0 0 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--brand), var(--brand-fill));
}
.bars-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font: 500 0.64rem / 1 var(--font-mono);
  color: var(--faint);
}

/* White label */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 920px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split .first-on-mobile {
    order: -1;
  }
}
.checks {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.checks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #d9d4e6;
}
.checks svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  margin-top: 3px;
}
.wl {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line-hi);
  box-shadow: var(--shadow);
}
.ws {
  display: grid;
  gap: 4px;
}
.ws .h {
  font: 500 0.64rem / 1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 6px;
}
.ws .it {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--muted);
}
.ws .it.on {
  background: var(--panel-hi);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--line-hi) inset;
}
.ws .it i {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 0.7rem / 1 var(--font-display);
  font-style: normal;
}
.ws .it small {
  margin-left: auto;
  color: var(--faint);
  font: 500 0.68rem / 1 var(--font-mono);
}
.launchers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.launch {
  border-radius: 12px;
  border: 1px solid #e6e2ee;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fbfaff;
}
.launch .bar {
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-inline: 8px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.launch .lines i {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: #e7e2f1;
  margin-top: 5px;
}
.launch .fab {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  justify-self: end;
}

/* Self-hosting */
.term {
  border-radius: 16px;
  background: var(--term);
  color: var(--term-ink);
  border: 1px solid var(--line-hi);
  box-shadow:
    var(--shadow),
    0 0 80px -30px var(--glow-violet);
  overflow: hidden;
  min-width: 0;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
}
.term-bar span {
  margin-left: 10px;
  font: 500 0.7rem / 1 var(--font-mono);
  color: var(--faint);
}
.term pre {
  margin: 0;
  padding: 18px;
  font: 400 0.82rem / 1.75 var(--font-mono);
  overflow-x: auto;
}
.term .p {
  color: var(--brand);
}
.term .ok {
  color: #86efac;
}
.term .dim {
  color: #8f88a3;
}
.term .u {
  color: #fde68a;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: #c4b5fd;
  vertical-align: -2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.fact {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.fact b {
  display: block;
  font: 600 1.05rem / 1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.fact span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Pricing */
.billing {
  display: inline-flex;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 30px;
  background: var(--panel);
}
.billing button {
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 0.85rem / 1 var(--font-body);
  padding: 10px 16px;
  border-radius: 7px;
  cursor: pointer;
}
.billing button[aria-pressed="true"] {
  background: var(--panel-hi);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-hi) inset;
}
.billing em {
  font-style: normal;
  color: var(--ok);
  font-weight: 600;
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 16px;
  padding: 26px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  min-width: 0;
}
.plan.featured {
  border-color: rgb(var(--brand-hi-rgb) / 50%);
  background: linear-gradient(180deg, rgb(var(--brand-rgb) / 14%), transparent 55%), var(--panel);
  box-shadow: 0 30px 80px -40px var(--glow-violet);
  position: relative;
}
.plan.featured::before {
  content: attr(data-flag);
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--brand-fill);
  color: #fff;
  font: 500 0.66rem / 1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 6px;
}
:root[data-lang="en"] .plan.featured[data-flag-en]::before {
  content: attr(data-flag-en);
}
.plan .price {
  font: 700 2.7rem / 1 var(--font-display);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.plan .price small {
  font: 500 0.9rem / 1 var(--font-mono);
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 6px;
}
.plan .who {
  color: var(--muted);
  font-size: 0.93rem;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
  color: #d9d4e6;
}
.plan li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
}
.plan li svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--ok);
}
.plan li.no,
.plan li.no svg {
  color: var(--faint);
}
.plan .btn {
  justify-content: center;
}
.fineprint {
  margin-top: 24px;
  color: var(--faint);
  font-size: 0.85rem;
  max-width: 80ch;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: var(--line-hi);
  background: var(--panel-hi);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font: 500 1.1rem / 1 var(--font-mono);
  color: var(--brand);
}
.faq details[open] summary::after {
  content: "−";
}
.faq .a {
  padding: 0 20px 18px;
  color: var(--muted);
  max-width: 72ch;
}

/* About + CTA */
.about {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
@media (max-width: 760px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}
.photo {
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 18px;
  border: 1px dashed var(--line-hi);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--faint);
  font: 500 0.75rem / 1.5 var(--font-mono);
  background: var(--panel);
}
.cta {
  border-radius: 24px;
  padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgb(var(--brand-rgb) / 35%), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line-hi);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.cta p {
  color: var(--muted);
  margin-top: 12px;
}
.cta .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 820px) {
  .cta {
    grid-template-columns: minmax(0, 1fr);
  }
}
footer {
  padding-block: 40px 90px;
  color: var(--faint);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
}

[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .top .login {
    display: none;
  }
}

/* Preview of an unpublished draft */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  text-align: center;
  padding: 8px 16px;
  background: #f59e0b;
  color: #1c1206;
  font: 600 0.78rem / 1.3 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.quote {
  margin: 0;
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: space-between;
}
.quote blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #d9d4e6;
}
.quote blockquote::before {
  content: "“";
  display: block;
  font: 700 2.4rem / 0.8 var(--font-display);
  color: var(--brand);
  margin-bottom: 8px;
}
.quote .who-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote img,
.quote .ini {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.quote .ini {
  display: grid;
  place-items: center;
  background: var(--ai-tint);
  color: var(--ai);
  font: 600 0.8rem / 1 var(--font-mono);
}
.quote small {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
}

/* Cookie consent banner (only when analytics is set up) */
.cookie {
  position: fixed;
  inset-inline: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  background: var(--panel-solid);
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 45%);
  font-size: 0.9rem;
  line-height: 1.5;
}
.cookie p {
  margin: 0;
  color: var(--muted);
}
.cookie a {
  color: var(--brand);
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
footer button.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
footer button.link:hover {
  color: var(--ink);
}
