/* Battani — product landing page */
:root {
  color-scheme: dark;
  --bg: #07090e;
  --bg-2: #0b0e15;
  --surface: #10141d;
  --surface-2: #151a25;
  --surface-3: #1b2130;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #eef1f7;
  --text-2: #a6aec0;
  --text-3: #6d7588;
  --accent: #e0662f;
  --accent-2: #f39a4f;
  --accent-soft: rgba(224, 102, 47, 0.12);
  --accent-ring: rgba(224, 102, 47, 0.35);
  --ok: #3ccf8e;
  --warn: #f0b04a;
  --danger: #f06a5b;
  --redis: #ff5a4e;
  --rabbit: #ff8a3d;
  --elastic: #2ec4b6;
  --sql: #6ea2ff;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1200px;
  --font: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, pre {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

code, pre, kbd {
  font-family: var(--mono);
}

svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, #ffd29a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
}

.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(60, 207, 142, 0.15); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(240, 176, 74, 0.15); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 150ms ease;
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px -8px rgba(224, 102, 47, 0.6);
}

.btn-primary:hover {
  background: #ea7338;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 30px -8px rgba(224, 102, 47, 0.75);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-sm {
  height: 36px;
  padding: 0 0.9rem;
  font-size: 0.86rem;
}

.btn-lg {
  height: 50px;
  padding: 0 1.4rem;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease;
}

.site-header.scrolled {
  background: rgba(7, 9, 14, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
  stroke: none;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.site-nav > a {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.site-nav > a:hover,
.site-nav > a.current {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta-mobile {
  display: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% -5%, rgba(224, 102, 47, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 20%, rgba(110, 162, 255, 0.1), transparent 70%),
    radial-gradient(ellipse 35% 30% at 10% 35%, rgba(46, 196, 182, 0.08), transparent 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.86rem;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
}

.announce:hover {
  border-color: rgba(224, 102, 47, 0.5);
  color: var(--text);
}

.announce svg {
  width: 14px;
  height: 14px;
}

.announce-tag {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 64ch;
  margin-top: 1.5rem;
  color: var(--text-2);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero-lede strong {
  color: var(--text);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.hero-free {
  margin-top: 1.8rem;
  color: var(--text-2);
  font-size: 0.9rem;
}

.free-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(60, 207, 142, 0.25);
  border-radius: 999px;
  background: rgba(60, 207, 142, 0.08);
  color: var(--ok);
  font-weight: 600;
}

.hero-free-note {
  margin-top: 0.8rem;
  color: var(--text-2);
  font-size: 0.84rem;
}

.site-nav > .nav-docs { color: var(--accent-2); }

.feature-overview,
.module-overview,
.docs-discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.module-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.overview-card,
.docs-discovery-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}

.overview-card { transition: border-color 150ms ease, background 150ms ease; }
.overview-card:hover { border-color: var(--accent-ring); background: var(--surface-2); }
.overview-card .tile-icon { margin: 0; }
.overview-card h3,
.docs-discovery-card h3 { font-size: 1.05rem; line-height: 1.4; }
.overview-card p,
.docs-discovery-card p { color: var(--text-2); font-size: 0.92rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-2);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }
.text-link svg { width: 15px; height: 15px; }
.overview-card > .text-link,
.docs-discovery-card > .text-link { margin-top: auto; padding-top: 0.5rem; }
.module-card-label { display: flex; align-items: center; gap: 0.55rem; }
.split-copy > .btn { margin-top: 1.5rem; }
.sec-grid.sec-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.documentation-section { background: linear-gradient(180deg, var(--bg), rgba(224, 102, 47, 0.04)); }
.docs-discovery-head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2.25rem; }
.docs-discovery-head .section-head { margin-bottom: 0; }
.docs-discovery-head .btn { flex-shrink: 0; }
.docs-number { font-family: var(--mono); font-size: 0.8rem; color: var(--accent-2); }
.docs-topic-links { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; margin-top: auto; padding-top: 0.5rem; }
.install-head .install-free-note { color: var(--ok); font-size: 0.88rem; }

@media (max-width: 1080px) {
  .module-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-discovery-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .feature-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-discovery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .feature-overview,
  .module-overview,
  .sec-grid.sec-grid-compact { grid-template-columns: 1fr; }
  .hero-free { max-width: 30ch; }
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  color: var(--text-3);
  font-size: 0.88rem;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-proof svg {
  width: 15px;
  height: 15px;
  color: var(--ok);
}

/* ---------- Product mock ---------- */
.mock-wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin-top: 4rem;
  text-align: left;
  perspective: 2000px;
}

.mock-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 5% -8%;
  background: radial-gradient(ellipse at center, rgba(224, 102, 47, 0.25), transparent 65%);
  filter: blur(40px);
  z-index: 0;
}

.mock {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, #0f131c, #0b0e15);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px) rotateX(8deg); }
  to { opacity: 1; transform: none; }
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 38px;
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mock-url {
  margin-inline: auto;
  padding: 0.15rem 0.9rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.mock-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 380px;
}

.mock-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 0;
  border-right: 1px solid var(--line);
}

.ms-logo svg {
  width: 26px;
  height: 26px;
  margin-bottom: 0.6rem;
  color: var(--accent);
  stroke: none;
}

.ms-item {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: var(--text-3);
}

.ms-item.on {
  background: var(--accent-soft);
  color: var(--accent);
}

.ms-item svg {
  width: 17px;
  height: 17px;
}

.mock-main {
  padding: 1rem 1.1rem 1.2rem;
  min-width: 0;
}

.mock-top {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
}

.chip-select {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 30px;
  padding: 0 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  white-space: nowrap;
}

.chip-select em {
  color: var(--text-3);
  font-style: normal;
}

.mock-search {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 0.4rem 0 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
}

.mock-search kbd {
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 0.68rem;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.9rem 0;
}

.mock-stats > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.mock-stats small {
  color: var(--text-3);
  font-size: 0.7rem;
}

.mock-stats b {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mock-stats span {
  font-size: 0.7rem;
}

.mock-stats .up { color: var(--ok); }
.mock-stats .warn { color: var(--warn); }

.bar {
  display: block;
  height: 5px;
  margin-top: 0.35rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.mock-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.76rem;
}

.mock-table .tr {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr 0.8fr 0.8fr 0.6fr;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

.mock-table .tr span:first-child {
  font-family: var(--mono);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-table .tr span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mock-table .th {
  border-top: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-3);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mock-table .th span:first-child {
  font-family: var(--font);
  color: var(--text-3);
}

.mock-ai {
  position: absolute;
  z-index: 2;
  right: -28px;
  bottom: -36px;
  width: min(360px, 42%);
  padding: 1rem;
  border: 1px solid rgba(224, 102, 47, 0.35);
  border-radius: 14px;
  background: rgba(16, 20, 29, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 4px rgba(224, 102, 47, 0.06);
  font-size: 0.8rem;
  animation: rise 900ms 250ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ai-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.ai-head svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.ai-head .mode {
  margin-left: auto;
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 500;
}

.ai-user {
  justify-self: end;
  margin-left: 2.5rem;
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px 10px 2px 10px;
  background: var(--surface-3);
}

.ai-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.ai-tools span {
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.ai-answer {
  color: var(--text-2);
  line-height: 1.5;
}

.ai-answer code,
.chat code {
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.9em;
}

.ai-approve {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.6rem;
  border: 1px dashed rgba(224, 102, 47, 0.45);
  border-radius: 9px;
  background: rgba(224, 102, 47, 0.05);
}

.ai-approve code {
  font-size: 0.7rem;
  color: var(--text);
  word-break: break-all;
}

.ai-approve div {
  display: flex;
  gap: 0.4rem;
}

.ab {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 500;
}

.ab.ok {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

/* ---------- Strip ---------- */
.strip {
  padding: 2.5rem 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}

.strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.strip p {
  color: var(--text-3);
  font-size: 0.85rem;
  white-space: nowrap;
}

.strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.strip-list li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 6.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 3.25rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

.section h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.lede {
  margin-top: 1.1rem;
  color: var(--text-2);
  font-size: 1.06rem;
}

.lede a,
.price-foot a,
.faq a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 154, 79, 0.35);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Compare ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.compare-col {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.compare-col h3 {
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.compare-col ul {
  display: grid;
  gap: 0.8rem;
}

.compare-col li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-3);
}

.compare-col.before h3 {
  color: var(--text-3);
}

.compare-col.after {
  border-color: rgba(224, 102, 47, 0.35);
  background: linear-gradient(180deg, rgba(224, 102, 47, 0.08), var(--surface) 55%);
}

.compare-col.after li {
  color: var(--text);
}

.compare-col.after li::before {
  top: 0.35em;
  width: 10px;
  height: 6px;
  border: 2px solid var(--accent);
  border-top: 0;
  border-right: 0;
  background: none;
  transform: rotate(-45deg);
}

.compare-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.compare-arrow svg {
  width: 28px;
  height: 28px;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
}

.tile {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}

.tile:hover {
  border-color: var(--line-strong);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(224, 102, 47, 0.07), transparent 40%);
  pointer-events: none;
}

.tile-xl {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-wide {
  grid-column: span 2;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(224, 102, 47, 0.25);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.tile h3 {
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tile p {
  color: var(--text-2);
  font-size: 0.93rem;
}

.cluster-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.cluster-list div {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
}

.cluster-list b {
  font-family: var(--mono);
  font-weight: 500;
}

.cluster-list span {
  color: var(--text-3);
  font-size: 0.8rem;
}

.cluster-list em {
  padding: 0.1rem 0.55rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 0.72rem;
  font-style: normal;
}

.topo {
  position: relative;
  height: 130px;
  margin-top: 1.25rem;
}

.topo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: rgba(224, 102, 47, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  animation: dash 1.6s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -18; }
}

.topo .n {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  white-space: nowrap;
}

.topo .n1 { left: 10%; top: 50%; }
.topo .n2 { left: 30%; top: 50%; }
.topo .n3 { left: 52.5%; top: 25%; border-color: rgba(224, 102, 47, 0.5); color: var(--text); }
.topo .n4 { left: 52.5%; top: 75%; }
.topo .n5 { left: 75%; top: 25%; }
.topo .n6 { left: 90%; top: 50%; }

/* ---------- Split (AI) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 2rem;
}

.mode-grid div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.mode-grid div.on {
  border-color: rgba(224, 102, 47, 0.45);
  background: linear-gradient(180deg, rgba(224, 102, 47, 0.1), var(--surface));
}

.mode-grid b {
  font-weight: 600;
  font-size: 0.93rem;
}

.mode-grid span {
  color: var(--text-3);
  font-size: 0.84rem;
  line-height: 1.45;
}

.facts {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.facts li {
  display: grid;
}

.facts b {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.facts span {
  color: var(--text-3);
  font-size: 0.85rem;
}

.fine {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.86rem;
}

.chat {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
  font-size: 0.9rem;
}

.chat-msg {
  padding: 0.8rem 1rem;
  border-radius: 12px;
}

.chat-msg.user {
  justify-self: end;
  max-width: 85%;
  border-bottom-right-radius: 3px;
  background: var(--surface-3);
}

.chat-msg.bot {
  display: grid;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-2);
}

.chat-msg.bot p {
  margin-top: 0.35rem;
}

.chat-msg.bot b {
  color: var(--text);
  font-weight: 500;
}

.tool-run {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.tool-run span {
  margin-left: auto;
}

.chat-approval {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
  border: 1px dashed rgba(224, 102, 47, 0.5);
  border-radius: 12px;
  background: rgba(224, 102, 47, 0.05);
}

.ca-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 500;
}

.ca-head svg {
  width: 16px;
  height: 16px;
}

.ca-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.ca-row code {
  overflow: hidden;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Modules ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow-x: auto;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 40px;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.tab-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.tab-dot.redis { background: var(--redis); }
.tab-dot.rabbit { background: var(--rabbit); }
.tab-dot.elastic { background: var(--elastic); }
.tab-dot.sql { background: var(--sql); }

.module-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.module-panel[hidden] {
  display: none;
}

.module-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.module-title h3 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.status {
  padding: 0.18rem 0.65rem;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 500;
}

.status.soon { background: rgba(240, 176, 74, 0.12); color: var(--warn); }
.status.preview { background: rgba(110, 162, 255, 0.12); color: var(--sql); }
.status.ga { background: rgba(60, 207, 142, 0.12); color: var(--ok); }

.module-lede {
  margin-top: 0.75rem;
  color: var(--text-2);
}

.cap-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 1.75rem;
}

.cap:last-child {
  grid-column: 1 / -1;
}

.cap h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

.cap h4 svg {
  width: 16px;
  height: 16px;
  color: var(--accent-2);
}

.cap ul {
  display: grid;
  gap: 0.45rem;
}

.cap li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cap li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
}

.cap li b {
  color: var(--text);
  font-weight: 500;
}

.mv {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg-2);
  font-size: 0.8rem;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.mv-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.mv-pill {
  margin-left: auto;
  padding: 0.1rem 0.55rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 0.7rem;
}

.mv-pill.ok {
  background: rgba(60, 207, 142, 0.14);
  color: var(--ok);
}

.mv-search {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.mv-search::before {
  content: "SCAN  ";
  color: var(--text-3);
}

.mv-rows {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.mv-rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-3);
}

.mv-rows > div:first-child {
  border-top: 0;
}

.mv-rows code {
  overflow: hidden;
  color: var(--text);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-rows .t {
  padding: 0.05rem 0.45rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 0.7rem;
}

.mv-rows > div > span:last-child {
  text-align: right;
}

.mv-rows.q > div {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 3.2rem 3.4rem;
}

.mv-rows.q .bar {
  margin: 0;
}

.mv-rows.q .alert code {
  color: var(--danger);
}

.mv-rows.q .alert .bar i {
  background: var(--danger);
}

.mv-rows.result > div {
  grid-template-columns: 1fr auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text);
}

.mv-rows.result > div.h {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
}

.mv-code {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #05070b;
  color: #d8dee9;
  font-size: 0.74rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-x: auto;
}

.mv-foot,
.mv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 0.74rem;
}

.mv-actions {
  justify-content: flex-start;
  gap: 0.4rem;
}

.mv-actions span {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text-2);
}

.mv-actions .danger {
  border-color: rgba(240, 106, 91, 0.35);
  color: var(--danger);
}

.foundation {
  margin-top: 1.5rem;
  padding: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(224, 102, 47, 0.08), transparent 60%),
    var(--surface);
}

.foundation-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: 2rem;
}

.foundation-head h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.foundation-head p {
  color: var(--text-2);
}

.foundation-head b {
  color: var(--text);
  font-weight: 500;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
}

.foundation-grid div {
  display: grid;
  gap: 0.35rem;
}

.foundation-grid svg {
  width: 20px;
  height: 20px;
  margin-bottom: 0.3rem;
  color: var(--accent-2);
}

.foundation-grid b {
  font-weight: 600;
  font-size: 0.95rem;
}

.foundation-grid span {
  color: var(--text-2);
  font-size: 0.88rem;
}

/* ---------- Security ---------- */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
}

.sec-grid article {
  padding: 2rem 1.75rem;
  background: var(--bg-2);
  transition: background 200ms ease;
}

.sec-grid article:hover {
  background: var(--surface);
}

.sec-grid svg {
  width: 22px;
  height: 22px;
  margin-bottom: 1.1rem;
  color: var(--accent-2);
}

.sec-grid h3 {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.sec-grid p {
  color: var(--text-2);
  font-size: 0.92rem;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.4rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.steps h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.steps p {
  flex: 1;
  color: var(--text-2);
  font-size: 0.92rem;
}

.snippet {
  margin-top: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #05070b;
  color: #d8dee9;
  font-size: 0.76rem;
  overflow-x: auto;
  white-space: nowrap;
}

.snippet code::before {
  content: "$ ";
  color: var(--text-3);
}

.snippet.ps code::before {
  content: "PS> ";
}

/* ---------- Install / update panel ---------- */
.install-panel {
  margin-top: 3rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.install-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.4rem;
}

.install-head h3 {
  margin: 0 0 0.3rem;
}

.install-head p {
  max-width: 620px;
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

.os-switch {
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
}

.os-switch button {
  height: 36px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.os-switch button:hover {
  color: var(--text);
}

.os-switch button.active {
  background: var(--text);
  color: var(--bg);
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.install-card {
  min-width: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.install-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.install-card > p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
}

.snippet-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.snippet-row .snippet {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.copy-btn {
  flex: none;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--text);
}

.install-alt {
  margin: 0.6rem 0 0;
  color: var(--text-3);
  font-size: 0.8rem;
}

.install-alt code,
.install-notes code {
  font-size: 0.78rem;
}

.install-notes {
  margin: 1.1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .install-panel {
    padding: 1.2rem;
  }

  .install-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing ---------- */
.billing-switch {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  overflow-x: auto;
}

.billing-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.billing-switch button:hover {
  color: var(--text);
}

.billing-switch button.active {
  background: var(--text);
  color: var(--bg);
}

.save {
  padding: 0.08rem 0.45rem;
  border-radius: 99px;
  background: rgba(60, 207, 142, 0.16);
  color: var(--ok);
  font-size: 0.7rem;
  font-weight: 600;
}

.billing-switch button.active .save {
  background: rgba(19, 138, 85, 0.15);
  color: #138a55;
}

.billing-note {
  max-width: 640px;
  min-height: 3em;
  margin: 1rem auto 2.5rem;
  color: var(--text-3);
  font-size: 0.88rem;
  text-align: center;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.plan.featured {
  border-color: rgba(224, 102, 47, 0.55);
  background: linear-gradient(180deg, rgba(224, 102, 47, 0.12), var(--surface) 45%);
  box-shadow: 0 30px 80px -40px rgba(224, 102, 47, 0.5);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 1.75rem;
  padding: 0.2rem 0.75rem;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
}

.plan h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.plan-tag {
  margin-top: 0.3rem;
  color: var(--text-3);
  font-size: 0.9rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 1.25rem;
}

.price .amount {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.price .period {
  color: var(--text-3);
}

.price-sub {
  min-height: 1.5em;
  color: var(--text-2);
  font-size: 0.85rem;
}

.price-unit {
  margin-top: 0.15rem;
  color: var(--text-3);
  font-size: 0.78rem;
}

.limits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.limits li {
  display: grid;
  padding: 0.7rem 0.5rem;
  border-left: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.76rem;
  text-align: center;
}

.limits li:first-child {
  border-left: 0;
}

.limits b {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
}

.features {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  margin-top: 1.5rem;
}

.features li {
  display: flex;
  gap: 0.6rem;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.45;
}

.features svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--ok);
}

/* Side by side, the cards share row tracks so prices, limits and buttons line up
   even when a tagline or price note wraps. 8 rows = h3, tag, price, sub, unit, limits, cta, features. */
@media (min-width: 1081px) {
  .plans {
    grid-template-rows: repeat(8, auto);
    row-gap: 0;
  }

  .plan {
    display: grid;
    grid-row: span 8;
    grid-template-rows: subgrid;
    align-content: start;
  }
}

.price .amount-text {
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.price-volume {
  color: var(--accent-2);
}

/* Per-user price calculator */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  margin-top: 1rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.calc h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.calc-body {
  margin-top: 0.35rem;
  color: var(--text-3);
  font-size: 0.88rem;
}

.calc-users {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.calc-users label {
  color: var(--text-2);
  font-weight: 500;
}

.calc-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-2);
  overflow: hidden;
}

.calc-stepper button {
  width: 44px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.calc-stepper button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.calc-stepper input {
  width: 5.5rem;
  height: 44px;
  border: 0;
  border-inline: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.calc-stepper input::-webkit-outer-spin-button,
.calc-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.calc-stepper button:focus-visible,
.calc-stepper input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.calc-range {
  --fill: 0%;
  width: 100%;
  height: 6px;
  margin: 1.5rem 0 0;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--surface-3) var(--fill));
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.calc-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

.calc-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--text);
}

.calc-range:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 6px;
}

.calc-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.calc-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.calc-tiers li {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s;
}

.calc-tiers span {
  color: var(--text-3);
  font-size: 0.84rem;
}

.calc-tiers b {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calc-tiers small,
.calc-unit small,
.calc-totals small {
  white-space: nowrap;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 400;
}

.calc-tiers li.active {
  border-color: rgba(224, 102, 47, 0.55);
  background: var(--accent-soft);
}

.calc-tiers li.active span {
  color: var(--accent-2);
}

.calc-result {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}

.calc-label {
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calc-unit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.calc-unit span {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.calc-unit small {
  font-size: 0.9rem;
}

.calc-breakdown {
  margin-top: 0.35rem;
  color: var(--text-2);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.calc-totals {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0;
}

.calc-totals div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 10px;
}

.calc-totals div.active {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.calc-totals dt {
  flex: 1 1 0;
  min-width: 0;
  color: var(--text-2);
  font-size: 0.88rem;
}

.calc-totals dd {
  margin: 0;
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calc-hint {
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.85rem;
  line-height: 1.45;
}

.calc-result .btn {
  margin-top: auto;
}

.license-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.lc-col {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.lc-col h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.lc-col h3 svg {
  color: var(--accent-2);
}

.lc-col ul {
  display: grid;
  gap: 0.55rem;
}

.lc-col li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-2);
  font-size: 0.9rem;
}

.lc-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.price-foot {
  max-width: 760px;
  margin: 2rem auto 0;
  color: var(--text-3);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: start;
}

.faq-wrap .section-head {
  position: sticky;
  top: 100px;
  margin-bottom: 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.3rem 2.5rem 1.3rem 0;
  font-weight: 500;
  font-size: 1.02rem;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq summary:hover {
  color: var(--accent-2);
}

.faq details p {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 60% at 15% 0%, rgba(224, 102, 47, 0.14), transparent 70%),
    var(--bg-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

.contact-points {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.contact-points li {
  display: flex;
  gap: 0.65rem;
  color: var(--text-2);
}

.contact-points svg {
  margin-top: 3px;
  color: var(--ok);
}

.lead-form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
}

.req-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}

.req-types label {
  position: relative;
  cursor: pointer;
}

.req-types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.req-types span {
  display: grid;
  place-items: center;
  height: 38px;
  padding: 0 0.4rem;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.15;
  transition: background 150ms ease, color 150ms ease;
}

.req-types input:checked + span {
  background: var(--accent);
  color: #fff;
}

.req-types input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.field > span {
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 500;
}

.field em {
  color: var(--text-3);
  font-style: normal;
  font-weight: 400;
}

.lead-form input:not([type="radio"]):not([type="checkbox"]),
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.lead-form select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.lead-form select option {
  background: var(--surface);
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--text-3);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text-3);
  font-size: 0.82rem;
  cursor: pointer;
}

.consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--accent);
}

.form-status {
  min-height: 1.4em;
  font-size: 0.88rem;
  text-align: center;
}

.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer-brand p {
  max-width: 32ch;
  margin-top: 0.75rem;
  color: var(--text-3);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, auto));
  gap: 2.5rem;
}

.footer-links div {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-links b {
  margin-bottom: 0.2rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-links a {
  color: var(--text-3);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav > a { padding: 0.45rem 0.55rem; font-size: 0.88rem; }
  .hide-md { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-xl { grid-row: auto; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .module-panel { grid-template-columns: minmax(0, 1fr); }
  .foundation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foundation-head { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .calc { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .faq-wrap,
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .faq-wrap .section-head { position: static; }
  .mock-ai { right: 12px; bottom: -48px; width: min(340px, 55%); }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .header-cta .btn-primary { display: none; }
  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 16px 1.5rem;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 14, 0.97);
    backdrop-filter: blur(14px);
  }
  body.nav-open .site-nav { display: flex; }
  body.nav-open .site-header { background: rgba(7, 9, 14, 0.97); }
  .site-nav > a { padding: 0.8rem 0.5rem; font-size: 1rem; }
  .nav-cta-mobile { display: block; margin-top: 0.75rem; }
  .section { padding: 4.5rem 0; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare-arrow { transform: rotate(90deg); }
  .sec-grid,
  .steps { grid-template-columns: minmax(0, 1fr); }
  .license-compare { grid-template-columns: minmax(0, 1fr); }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-side { display: none; }
  .mock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-ai { position: relative; right: auto; bottom: auto; width: auto; margin: -2rem 12px 0; }
  .mock-search { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 3rem 0 3.5rem; }
  .hero-cta .btn { width: 100%; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-xl, .tile-wide { grid-column: auto; }
  .cluster-list div { grid-template-columns: auto 1fr auto; }
  .cluster-list span { display: none; }
  .topo { display: none; }
  .mode-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { gap: 1.5rem; }
  .module-panel,
  .foundation { padding: 1.4rem; }
  .cap-groups,
  .foundation-grid { grid-template-columns: minmax(0, 1fr); }
  .mv-rows.q > div { grid-template-columns: minmax(0, 1fr) auto auto; }
  .mv-rows.q .bar { display: none; }
  .tabs { justify-content: flex-start; width: 100%; }
  .billing-switch { border-radius: 14px; flex-direction: column; width: 100%; }
  .billing-switch button { justify-content: center; border-radius: 10px; }
  .calc { padding: 1.25rem; }
  .calc-result { padding: 1.25rem; }
  .lead-form { padding: 1.25rem; }
  .req-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row,
  .form-row.three { grid-template-columns: minmax(0, 1fr); }
  .mock-table .tr { grid-template-columns: 2fr 1.3fr 0.7fr; }
  .mock-table .tr span:nth-child(4),
  .mock-table .tr span:nth-child(5) { display: none; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
}

/* Grids without explicit columns size to min-content; keep mock content inside its frame. */
.chat,
.chat-msg.bot,
.chat-approval,
.mv,
.ai-approve {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Language picker ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lang-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text-2);
  transition: border-color 150ms ease, color 150ms ease;
}

.lang-picker:hover,
.lang-picker:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.lang-picker svg {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.lang-picker select {
  height: 100%;
  padding: 0 0.75rem 0 2rem;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  appearance: none;
}

.lang-picker select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-picker select option {
  background: var(--surface);
  color: var(--text);
}

.lang-picker-footer {
  margin-top: 1.25rem;
}

@media (max-width: 860px) {
  .header-cta .lang-picker select { width: 44px; padding: 0 0 0 2rem; color: transparent; }
  .header-cta .lang-picker select option { color: var(--text); }
}
