:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef3ff;
  --text: #121a2c;
  --muted: #56617a;
  --line: #e3e8f1;
  --brand: #2451e6;
  --brand-2: #7a4df0;
  --brand-ink: #ffffff;
  --brand-soft: #e9efff;
  --ok: #1d8052;
  --ok-soft: #e1f5ea;
  --warn: #9a5b00;
  --warn-soft: #fff1d6;
  --gray-soft: #eef0f4;
  --red-soft: #fde8e8;
  --red: #b42323;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .10);
  --radius: 14px;
  --max: 1120px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c111c;
    --bg-soft: #121929;
    --bg-tint: #141d33;
    --text: #e9edf5;
    --muted: #a2acc1;
    --line: #243049;
    --brand: #7196ff;
    --brand-2: #a98bff;
    --brand-ink: #0b1020;
    --brand-soft: #1a2747;
    --ok: #6fd3a1;
    --ok-soft: #153526;
    --warn: #f3c16b;
    --warn-soft: #3a2c10;
    --gray-soft: #1d2537;
    --red-soft: #3a1717;
    --red: #ff9b9b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 16px; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 40%, transparent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--bg); }
.btn-ghost:hover { background: var(--bg-soft); }
.nav .btn { padding: 8px 14px; font-size: 14px; color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 76px; background:
  radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
  radial-gradient(700px 380px at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
  var(--bg); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .35;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.06; margin: 18px 0; letter-spacing: -0.03em; font-weight: 800; }
.grad { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { margin-top: 26px; font-size: 14px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }

/* Mock Confluence window */
.window { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: visible; position: relative; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius) var(--radius) 0 0; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.window-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); }
.window-body { padding: 26px 28px 30px; }
.window-body .crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.window-body h3 { margin: 0 0 14px; font-size: 21px; letter-spacing: -.01em; }
.window-body p { margin: 0 0 12px; font-size: 15.5px; }
.line { height: 9px; border-radius: 6px; background: var(--gray-soft); margin: 10px 0; }
.term { border-bottom: 2px dotted color-mix(in srgb, var(--muted) 80%, transparent); cursor: help; }
.term.active { background: var(--brand-soft); border-bottom-color: var(--brand); border-radius: 3px 3px 0 0; }
.term-wrap { position: relative; }
.tooltip { position: absolute; left: -150px; top: calc(100% + 12px); width: 300px; display: block; background: #111a2e; color: #eef2fb; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.5; box-shadow: 0 18px 40px rgba(10, 16, 32, .35); z-index: 2; border: 1px solid rgba(255,255,255,.08); }
.tooltip::before { content: ""; position: absolute; top: -8px; left: 156px; border: 8px solid transparent; border-top: 0; border-bottom-color: #111a2e; }
.tooltip strong { display: block; margin-bottom: 4px; font-size: 14.5px; }
.tooltip .meta { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 12px; color: #b9c3da; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; }
.pill.ok { background: #1f7a4d; color: #fff; }
.avatar { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: inline-grid; place-items: center; font-size: 10px; color: #fff; font-weight: 700; }

/* Sections */
section { padding: 84px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 14px; letter-spacing: -0.02em; line-height: 1.15; }
.section-lede { color: var(--muted); margin: 0 0 42px; max-width: 640px; font-size: 18px; }
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.card h3 { margin: 16px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }

/* Product preview (mock glossary table) */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 12px; margin: 0 0 16px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mock-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mock-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mock-table tr:last-child td { border-bottom: 0; }
.mock-table td:first-child { font-weight: 700; white-space: nowrap; }
.mock-table .alias { display: block; font-weight: 400; font-style: italic; color: var(--muted); font-size: 12.5px; }
.loz { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; margin: 0 4px 4px 0; white-space: nowrap; }
.loz.ok { background: var(--ok-soft); color: var(--ok); }
.loz.draft { background: var(--gray-soft); color: var(--muted); }
.loz.dep { background: var(--red-soft); color: var(--red); }
.loz.due { background: var(--warn-soft); color: var(--warn); }
.loz.space { background: var(--brand-soft); color: var(--brand); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; position: relative; }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Security band */
.secure { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat b { display: block; font-size: 34px; letter-spacing: -.02em; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* Compare */
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15.5px; }
.compare th, .compare td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg-soft); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.compare thead th:nth-child(2) { color: var(--brand); }
.compare td.yes { color: var(--ok); font-weight: 600; }
.compare td.no { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin: 0 auto; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--bg); text-align: left; }
.price.featured { border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(135deg, var(--brand), var(--brand-2)) border-box; box-shadow: var(--shadow); }
.price h3 { margin: 0; font-size: 18px; }
.amount { font-size: 38px; font-weight: 800; margin: 10px 0 4px; letter-spacing: -.02em; }
.amount small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 18px 0 0; color: var(--muted); }
.price li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.price li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--bg); margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* CTA band */
.band { padding: 0 0 90px; }
.band-inner { border-radius: 22px; padding: 56px 32px; text-align: center; color: #fff; background:
  radial-gradient(600px 240px at 90% 0%, rgba(255,255,255,.18), transparent 70%),
  linear-gradient(135deg, #2451e6, #7a4df0); box-shadow: var(--shadow); }
.band-inner h2 { color: #fff; }
.band-inner p { color: rgba(255,255,255,.85); margin: 0 auto 28px; max-width: 560px; font-size: 18px; }
.band-inner .cta { justify-content: center; }
.band-inner .btn-primary { background: #fff; color: #2451e6; box-shadow: none; }
.band-inner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.band-inner .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Prose pages */
.page-head { padding: 56px 0 36px; background: radial-gradient(700px 260px at 80% 0%, color-mix(in srgb, var(--brand-2) 14%, transparent), transparent 70%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 4vw, 44px); margin: 8px 0 6px; }
.page-head p { color: var(--muted); margin: 0; }
.prose { max-width: 760px; padding: 40px 0 80px; }
.prose h2 { font-size: 25px; margin-top: 44px; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose code, .prose pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 14px; }
.prose pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; }
.callout { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); border-radius: 12px; padding: 16px 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; background: var(--bg-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer .brand { font-size: 16px; }
.site-footer .brand img { width: 26px; height: 26px; }
.site-footer nav a { color: var(--muted); margin-left: 22px; text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer small { display: block; margin-top: 6px; }

@media (max-width: 900px) {
  .hero .wrap, .split, .secure { grid-template-columns: 1fr; gap: 40px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .nav a:not(.btn) { display: none; }
  .tooltip { width: 250px; left: -110px; }
  .tooltip::before { left: 116px; }
  section { padding: 64px 0; }
}

/* Let grid children shrink below their content width (wide tables scroll instead of widening the page). */
.hero .wrap > *, .split > *, .secure > * { min-width: 0; }

@media (max-width: 520px) {
  .nav .btn { display: none; }
  .stats { grid-template-columns: 1fr; }
  .window-body { padding: 20px; }
  .tooltip { width: 220px; left: -70px; }
  .tooltip::before { left: 76px; }
  .compare th, .compare td { padding: 12px; }
  .band-inner { padding: 40px 20px; }
  .site-footer nav a { margin: 0 16px 0 0; }
}

@media (max-width: 360px) {
  .site-header .brand { font-size: 16px; gap: 8px; }
  .site-header .brand img { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
