/* ==========================================================================
   Idedoc — design system & site styles
   ========================================================================== */

:root {
  --ink-950: #06080f;
  --ink-900: #0a0e1a;
  --ink-800: #111726;
  --ink-700: #1b2335;

  --paper: #ffffff;
  --paper-2: #f7f8fc;
  --paper-3: #eef0f7;

  --text: #0d1322;
  --text-2: #3d465c;
  --muted: #606a80;
  --muted-2: #667085;

  --line: #e5e8f0;
  --line-strong: #d6dae6;

  --brand: #4e5bf5;
  --brand-dark: #3a46d8;
  --brand-soft: #eef0ff;
  --violet: #8b5cf6;
  --mint: #10b981;
  --mint-bright: #5eead4;
  --amber: #f59e0b;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(13, 19, 34, .06);
  --shadow-sm: 0 8px 24px -12px rgba(13, 19, 34, .18);
  --shadow-md: 0 26px 60px -28px rgba(13, 19, 34, .28);
  --shadow-lg: 0 50px 120px -32px rgba(4, 8, 20, .5);

  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas,
    "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1160px;
}

/* ---------- reset ---------- */

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
figure, blockquote { margin: 0; }
h1, h2, h3, h4 {
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
::selection { background: rgba(78, 91, 245, .18); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon { width: 18px; height: 18px; flex: none; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 22px; height: 22px; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink-900);
  color: #fff;
  font-size: 13px;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
    background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #5a67ff, #4350ec);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22),
    0 7px 18px -10px rgba(78, 91, 245, .65);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #6974ff, #4b57f0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25),
    0 10px 24px -10px rgba(78, 91, 245, .7);
  transform: translateY(-1px);
}
.btn-light {
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6);
}
.btn-light:hover { background: #f1f3fa; transform: translateY(-1px); }
.btn-glass {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .26); }
.btn-outline {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--muted-2); background: var(--paper-2); }
.btn-ghost-light {
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 25px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn:disabled,
.btn[disabled] {
  background: #e8eaf0;
  border-color: #dfe2ea;
  color: #7a8499;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn:disabled:hover,
.btn[disabled]:hover {
  background: #e8eaf0;
  box-shadow: none;
  transform: none;
}
.btn:disabled .icon,
.btn[disabled] .icon { opacity: .7; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 14.5px;
  font-weight: 600;
}
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--light { color: #8f9cff; }
.eyebrow--light::before { background: #8f9cff; }
.eyebrow--center::after {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
  opacity: .55;
}

/* ---------- section primitives ---------- */

.section { padding: clamp(68px, 8vw, 112px) 0; }
.section--tight { padding: 64px 0; }
.section--paper { background: var(--paper-2); }

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(38px, 5vw, 56px);
  text-align: center;
}
.section-head h2,
.section-head .h2 {
  margin: 12px 0 0;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  letter-spacing: -.035em;
}
.section-lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
}
.section-foot { margin-top: 34px; text-align: center; }

.section-head--left { margin-left: 0; text-align: left; }
.section-head--left .section-lead { margin-left: 0; }

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(13, 19, 34, .35);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 8px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--text);
}
.brand-tld { color: var(--brand); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 34px;
}
.nav-link {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--paper-2); }
.nav-link.is-active { color: var(--brand-dark); background: var(--brand-soft); }

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-login { color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.header-login:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-drawer-extra { display: none; }

/* ---------- flash & toast ---------- */

.flash-region {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 150;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
}
.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #0d1322;
  color: #fff;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55);
  animation: slide-in .35s var(--ease) both;
}
.flash .icon { color: var(--mint-bright); margin-top: 1px; }
.flash span { flex: 1; }
.flash-close { color: rgba(255, 255, 255, .6); padding: 2px; }
.flash-close:hover { color: #fff; }
.flash-close .icon { width: 14px; height: 14px; color: currentColor; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  padding: 11px 18px;
  border-radius: 10px;
  background: #0d1322;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 104px);
  background: var(--ink-950);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 20%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 20%, #000 15%, transparent 78%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero-glow--one {
  width: 680px;
  height: 620px;
  top: -320px;
  left: 50%;
  transform: translateX(-62%);
  background: radial-gradient(circle, rgba(74, 87, 245, .75), transparent 66%);
  opacity: .55;
}
.hero-glow--two {
  width: 540px;
  height: 540px;
  bottom: -300px;
  right: -100px;
  background: radial-gradient(circle, rgba(15, 181, 160, .55), transparent 68%);
  opacity: .3;
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 15, .7));
  pointer-events: none;
  z-index: -1;
}

.hero-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: #c6cee4;
  font-size: 12.5px;
  line-height: 1.4;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.eyebrow-pill:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .24); }
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, .14), 0 0 12px rgba(94, 234, 212, .8);
}
.eyebrow-pill .icon { color: #8f9cff; }

.hero-title {
  margin: 26px 0 22px;
  font-size: clamp(2.55rem, 5.4vw, 4.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
  color: #fff;
}
.grad-text {
  background: linear-gradient(96deg, #b7c1ff 0%, #7c8cff 38%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  max-width: 660px;
  margin: 0 auto;
  color: #a9b3c9;
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  color: #7c879f;
  font-size: 12.5px;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .icon { color: #5eead4; }

.hero-visual {
  position: relative;
  max-width: 1084px;
  margin: 62px auto 0;
}

/* ---------- app window mock ---------- */

.app-window {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  background: #0b111d;
  box-shadow: 0 70px 150px -50px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(0, 0, 0, .35);
  overflow: hidden;
  font-size: 12px;
  color: #c9d1e4;
  text-align: left;
}
.app-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 14px;
  background: #0e1524;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #7b879f;
  font-size: 11px;
}
.traffic { display: inline-flex; gap: 6px; flex: none; }
.traffic i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; opacity: .85; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.app-address {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  max-width: 440px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
  color: #8c97ad;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-lock {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .14);
}
.app-chrome-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.app-search {
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  color: #6f7a90;
  font-size: 10px;
  margin-right: 4px;
}
.mini-avatar {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
  background: #2a3350;
  color: #cdd5e7;
  font-size: 9.5px;
  font-weight: 600;
}
.mini-avatar.mint { background: rgba(94, 234, 212, .16); color: #5eead4; }
.mini-avatar.ghost { background: rgba(255, 255, 255, .06); color: #8c97ad; }

.app-shell {
  display: grid;
  grid-template-columns: 202px minmax(0, 1fr) 268px;
  min-height: 432px;
}

.app-sidebar {
  padding: 12px 10px;
  background: #0a0f1a;
  border-right: 1px solid rgba(255, 255, 255, .07);
  font-size: 11px;
}
.side-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; }
.side-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #5b6bff, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex: none;
}
.side-head b { display: block; color: #e6eaf5; font-size: 11.5px; font-weight: 600; }
.side-head small { display: block; color: #6b7690; font-size: 9.5px; }
.side-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 10px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .035);
  color: #6a7590;
  font-size: 10px;
}
.side-label {
  padding: 8px 8px 4px;
  color: #5a647c;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.side-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5.5px 8px;
  border-radius: 6px;
  color: #9aa5bc;
  line-height: 1.3;
}
.side-list li.is-active {
  background: rgba(90, 103, 255, .16);
  color: #c9d1ff;
  box-shadow: inset 0 0 0 1px rgba(120, 135, 255, .2);
}
.side-ico { color: #5e6a85; font-size: 10px; }
.side-list--muted li { color: #7b869d; }
.side-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 9px 8px 2px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #9aa5bc;
  font-size: 10px;
}
.side-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #333d5a;
  font-size: 9px;
}
.side-plan {
  margin-left: auto;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 4px;
  color: #8c97ad;
  font-size: 8px;
}

.app-doc { padding: 24px 26px; background: #0c121f; min-width: 0; overflow: hidden; }
.doc-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #6b7690;
  font-size: 9.5px;
}
.doc-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .22);
  color: #34d399;
  font-size: 8px;
}
.doc-title { margin-bottom: 8px; color: #f2f5fc; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.doc-byline { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; color: #7b869d; font-size: 9.5px; }
.doc-live { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #5eead4; font-size: 9px; }
.doc-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s infinite;
}
.doc-p { margin-bottom: 12px; color: #aeb8cd; font-size: 11px; line-height: 1.7; }
.doc-h { margin: 14px 0 8px; color: #e4e9f5; font-size: 11.5px; font-weight: 600; }
.doc-tasks li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  color: #a3aec4;
  font-size: 10.5px;
}
.doc-tasks i {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 3px;
}
.doc-tasks li.done i { background: #16b981; border-color: #16b981; }
.doc-tasks li.done i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 4px;
  height: 7px;
  border-right: 1.5px solid #06231a;
  border-bottom: 1.5px solid #06231a;
  transform: rotate(45deg);
}
.doc-callout {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid rgba(124, 92, 252, .25);
  background: linear-gradient(90deg, rgba(124, 92, 252, .14), rgba(94, 234, 212, .06));
  color: #a9b3c9;
  font-size: 9.5px;
  line-height: 1.55;
}
.doc-callout b { color: #d9dfef; margin-right: 4px; }
.ai-chip {
  align-self: flex-start;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .12);
  color: #c7b9ff;
  font-size: 8px;
  font-weight: 700;
}
.doc-code {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: #080d17;
  color: #8fa0c4;
  font-family: var(--font-mono);
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
}
.c-key { color: #5eead4; }
.caret {
  display: inline-block;
  width: 1.5px;
  height: 11px;
  background: #7c8cff;
  animation: blink 1.2s steps(1) infinite;
}
.doc-comment {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 8px 10px;
  border-left: 2px solid #5b6bff;
  border-radius: 0 7px 7px 0;
  background: rgba(91, 107, 255, .07);
}
.doc-comment-body b { display: block; color: #dfe5f2; font-size: 9.5px; }
.doc-comment-body p { margin-top: 2px; color: #a9b3c9; font-size: 9.5px; line-height: 1.5; }
.mention { color: #8fa0ff; }
.comment-time { margin-left: auto; color: #6b7690; font-size: 8px; white-space: nowrap; }

.app-ai {
  display: flex;
  flex-direction: column;
  background: #0a0f1a;
  border-left: 1px solid rgba(255, 255, 255, .07);
}
.ai-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #e4e9f5;
  font-size: 11px;
}
.ai-head .icon { color: #a78bfa; }
.ai-beta {
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(167, 139, 250, .15);
  color: #c4b5fd;
  font-size: 8px;
}
.ai-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 12px;
}
.chat-q {
  align-self: flex-end;
  max-width: 92%;
  padding: 7px 10px;
  border-radius: 10px 10px 2px 10px;
  background: #3d4ae0;
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
}
.chat-a { display: flex; gap: 7px; color: #aeb8cd; font-size: 10px; line-height: 1.6; }
.ai-avatar {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #8b5cf6, #5b6bff);
  color: #fff;
  font-size: 9px;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .13);
}
.chat-sources { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chat-sources span {
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid rgba(120, 135, 255, .2);
  background: rgba(120, 135, 255, .12);
  color: #a5b4ff;
  font-size: 8.5px;
}
.chat-note {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: #5eead4;
  font-size: 8.5px;
}
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  color: #6b7690;
  font-size: 9px;
}
.chat-send {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #4f5dff;
  color: #fff;
  font-size: 11px;
}

/* floating cards */

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6);
  animation: floaty 7s ease-in-out infinite;
}
.float-card b { display: block; font-size: 12px; letter-spacing: -.01em; }
.float-card small { display: block; margin-top: 1px; color: var(--muted); font-size: 10.5px; }
.float-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.float-icon .icon { width: 16px; height: 16px; }
.float-icon--mint { background: #dcf7ee; color: #0f9d6e; }
.float-icon--violet { background: #eee9ff; color: #6d4aff; }
.float-card--review { left: 48px; bottom: -26px; }
.float-card--ai { right: 56px; top: -56px; animation-delay: -3.5s; }

/* ---------- logo marquee ---------- */

.logos-section {
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.logos-caption {
  margin-bottom: 22px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12.5px;
  letter-spacing: .01em;
}
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6b7488;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo-item i {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: rotate(45deg);
  opacity: .55;
}

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fcfcff, #f6f7fb);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
    transform .25s var(--ease);
}
.bento-card:hover {
  border-color: #d9ddf0;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.bento-card--wide { grid-column: span 2; }
.bento-head { display: flex; align-items: center; gap: 11px; }
.bento-head h3 { font-size: 17.5px; letter-spacing: -.02em; }
.bento-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-xs);
}
.bento-icon .icon { width: 17px; height: 17px; }
.bento-card > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.7;
  max-width: 52ch;
}
.bento-card--accent {
  border-color: rgba(124, 92, 252, .3);
  background: linear-gradient(150deg, #101528, #1a1f3d 55%, #161a33);
}
.bento-card--accent::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 65%);
  pointer-events: none;
}
.bento-card--accent .bento-head h3 { color: #f1f3fa; }
.bento-card--accent > p { color: #a9b3c9; }
.bento-card--accent .bento-icon {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
  color: #c4b5fd;
  box-shadow: none;
}

.vis { position: relative; margin-top: auto; padding-top: 20px; }

.vis-collab {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
}
.vis-avatars { display: flex; align-items: center; }
.avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid #fff;
}
.vis-avatars .avatar:not(:first-child) { margin-left: -9px; }
.avatar--indigo { background: #e6e9ff; color: #3a46d8; }
.avatar--mint { background: #d9f7ec; color: #076b4d; }
.avatar--amber { background: #fff0d6; color: #b45309; }
.avatar--violet { background: #efe8ff; color: #6d4aff; }
.avatar--ghost { background: #eef0f6; color: #606a80; }
.avatar--xs { width: 22px; height: 22px; font-size: 9px; border-width: 1.5px; }
.vis-cursors {
  position: absolute;
  top: 18px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
.cursor-tag {
  padding: 2px 7px;
  border-radius: 4px 4px 4px 0;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}
.cursor-tag--indigo { background: #5b6bff; }
.cursor-tag--amber { background: #f59e0b; }
.vis-doc-lines { margin-top: 13px; }
.vis-doc-lines span {
  display: block;
  height: 6px;
  margin: 6px 0;
  border-radius: 3px;
  background: #e3e7f1;
}

.vis-ai {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}
.vis-ai-orb {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #8b5cf6, #5b6bff);
  color: #fff;
  box-shadow: 0 0 24px rgba(139, 92, 246, .5);
}
.vis-ai-orb .icon { width: 18px; height: 18px; }
.vis-ai-lines { flex: 1; display: grid; gap: 6px; }
.vis-ai-lines span { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.vis-ai-cite { color: #c4b5fd !important; font-size: 9px; height: auto !important; background: none !important; }

.vis-git {
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: #0c1220;
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.diff-line { padding: 2px 0; color: #8fa0c4; white-space: nowrap; overflow: hidden; }
.diff-add { color: #34d399; }
.diff-del { color: #f87171; opacity: .8; }

.vis-review {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 10.5px;
}
.vis-review-head { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; }
.review-dot { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.review-state { margin-left: auto; color: #076b4d; font-size: 9.5px; font-weight: 600; }
.vis-review > p { margin: 7px 0; color: var(--muted); font-size: 10px; }
.vis-review-foot { display: flex; align-items: center; gap: 4px; }
.vis-review-checks { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: #076b4d; font-size: 9px; }

.vis-search {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.vis-search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  font-size: 10.5px;
}
.vis-kbd {
  margin-left: auto;
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--muted-2);
  font-size: 8.5px;
}
.vis-search-result {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--text-2);
  font-size: 10px;
}
.vis-search-result em { margin-left: auto; color: #076b4d; font-style: normal; font-size: 9px; }

.vis-security { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.vis-shield {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef0ff;
  color: var(--brand);
  margin-right: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge--sm { padding: 4px 8px; font-size: 9.5px; }

/* ---------- workflow ---------- */

.workflow-section {
  position: relative;
  padding: clamp(72px, 8vw, 110px) 0;
  background: linear-gradient(180deg, #070a13, #0b1020 70%, #080c17);
  color: #fff;
  overflow: hidden;
}
.workflow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000, transparent 75%);
  pointer-events: none;
}
.workflow-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.workflow-copy h2 { margin-top: 12px; font-size: clamp(1.9rem, 3.4vw, 2.65rem); color: #fff; }
.workflow-copy .section-lead { color: #99a4bb; max-width: 480px; }

.steps { display: grid; gap: 22px; margin: 34px 0 30px; }
.step { display: flex; gap: 16px; }
.step-no {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  color: #7f8ba8;
  font-family: var(--font-mono);
  font-size: 11px;
}
.step h3 { margin-bottom: 4px; color: #edf0f8; font-size: 15.5px; }
.step p { color: #8e99b0; font-size: 13.5px; line-height: 1.7; }

.terminal-card {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: #0a0f1b;
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #0e1524;
}
.terminal-title { margin: 0 auto; color: #7b879f; font-size: 10.5px; }
.terminal-tag {
  padding: 2px 6px;
  border: 1px solid rgba(120, 135, 255, .3);
  border-radius: 4px;
  background: rgba(120, 135, 255, .1);
  color: #8fa0ff;
  font-size: 8.5px;
  letter-spacing: .06em;
}
.terminal-body {
  min-height: 288px;
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 2.05;
  overflow-x: auto;
}
.term-line { white-space: pre; }
.term-cmd { color: #d7deee; }
.term-ok { color: #34d399; }
.term-info { color: #7fa0ff; }
.terminal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #6b7690;
  font-size: 10.5px;
}
.terminal-foot span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot--mint { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .12); }

/* ---------- AI section ---------- */

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.ai-copy h2 { margin: 12px 0 16px; font-size: clamp(1.9rem, 3.3vw, 2.6rem); }
.point-list { display: grid; gap: 22px; margin-top: 34px; }
.point-list li { display: flex; gap: 14px; }
.point-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.point-icon .icon { width: 18px; height: 18px; }
.point-list h3 { margin-bottom: 3px; font-size: 15px; }
.point-list p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

.ai-demo { position: relative; }
.ai-demo-window {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: #0b101c;
  box-shadow: 0 50px 110px -45px rgba(13, 19, 34, .55);
  overflow: hidden;
}
.ai-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: #0e1422;
}
.ai-demo-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e7ebf6;
  font-size: 12.5px;
  font-weight: 600;
}
.ai-demo-title .icon { color: #a78bfa; }
.ai-demo-badge { color: #7b879f; font-size: 10px; }
.ai-demo-body { display: grid; gap: 14px; padding: 22px; }
.chat-q--lg { font-size: 12.5px; padding: 10px 14px; }
.chat-a--lg { font-size: 11.5px; line-height: 1.7; }
.chat-a--lg .ai-avatar { width: 24px; height: 24px; font-size: 11px; }
.chat-a--lg .chat-sources span { font-size: 9.5px; padding: 3px 7px; }
.chat-a--lg .chat-note { font-size: 9.5px; }
.ai-demo-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .02);
  color: #6b7690;
  font-size: 9.5px;
}

/* ---------- stats ---------- */

.stats-section {
  padding: 54px 0 48px;
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 4px 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value {
  color: var(--text);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.stat-suffix { margin-left: 2px; color: var(--brand); font-size: .58em; font-weight: 700; }
.stat p { margin-top: 5px; color: var(--muted); font-size: 12.5px; }
.stats-note { margin-top: 26px; text-align: center; color: var(--muted-2); font-size: 11px; }

/* ---------- testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfbfe;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial-stars { display: flex; gap: 2px; color: #f59e0b; }
.testimonial-stars .icon { fill: currentColor; stroke: none; }
.testimonial blockquote {
  flex: 1;
  margin: 16px 0 22px;
  color: var(--text-2);
  font-size: 14.8px;
  line-height: 1.8;
}
.testimonial figcaption { display: flex; align-items: center; gap: 10px; }
.testimonial figcaption .avatar { width: 38px; height: 38px; font-size: 13px; border: 0; }
.testimonial figcaption b { display: block; font-size: 13px; }
.testimonial figcaption small { display: block; color: var(--muted); font-size: 11.5px; }

/* ---------- trust / integrations ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.trust-copy h2 { margin: 12px 0 14px; font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; }
.integration-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.integration-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: #076b4d; font-size: 11px; font-weight: 500; }
.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .14);
}
.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 18px; }
.integration-grid--wide {
  grid-template-columns: repeat(4, 1fr);
  max-width: 840px;
  margin-inline: auto;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.integration-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfe;
  color: var(--text-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.tool-mark {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--paper-3);
  color: var(--text-2);
  font-size: 8.5px;
  font-weight: 700;
}
.integration-note { margin-top: 16px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }

/* ---------- blog highlight ---------- */

.highlight-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(120deg, #f7f8fc, #eef1fb);
  overflow: hidden;
}
.highlight-copy h2 { margin: 10px 0 12px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.highlight-copy h2 a:hover { color: var(--brand); }
.highlight-copy > p { color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.highlight-meta { display: flex; align-items: center; gap: 8px; margin: 20px 0 22px; color: var(--muted); font-size: 11.5px; }
.highlight-art {
  padding: 20px;
  border-radius: 16px;
  background: #0b101c;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}
.art-doc {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: #0e1524;
}
.art-doc span { display: block; height: 7px; margin: 7px 0; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.art-doc span.short { width: 52%; }
.art-diff { margin-top: 12px; font-family: var(--font-mono); font-size: 9.5px; line-height: 1.9; }

/* ---------- final CTA ---------- */

.final-cta { padding: 0 0 clamp(72px, 8vw, 104px); }
.cta-panel {
  position: relative;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse 80% 100% at 50% 0%, #1a2050 0%, #0a0e1c 55%, #070a13 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-panel h2 { margin: 14px 0; font-size: clamp(1.95rem, 4vw, 3rem); color: #fff; }
.cta-panel > p { max-width: 560px; margin: 0 auto; color: #a3aec4; font-size: 15px; line-height: 1.75; }
.cta-glow {
  position: absolute;
  top: -240px;
  left: 50%;
  width: 700px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 100, 255, .45), transparent 65%);
  filter: blur(60px);
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-panel > *:not(.cta-glow) { position: relative; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- footer ---------- */

.site-footer {
  padding: 64px 0 28px;
  background: var(--ink-950);
  color: #8d97ac;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.15fr 2fr;
  gap: 60px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand--footer .brand-word { color: #fff; }
.footer-tagline { margin: 18px 0 20px; color: #7c879f; font-size: 12.5px; line-height: 1.85; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(94, 234, 212, .2);
  border-radius: 999px;
  background: rgba(94, 234, 212, .05);
  color: #a8f0d6;
  font-size: 11.5px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .14);
}
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h3 {
  margin-bottom: 14px;
  color: #e8ecf5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.footer-col li { margin: 9px 0; }
.footer-col a { color: #8d97ac; font-size: 12.5px; transition: color .18s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  color: #7f8aa1;
  font-size: 11.5px;
}
.footer-social { display: flex; gap: 18px; }
.footer-social a:hover { color: #fff; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-hero {
  position: relative;
  padding: clamp(48px, 6vw, 76px) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(ellipse 60% 90% at 85% 0%, rgba(78, 91, 245, .08), transparent 60%),
    linear-gradient(180deg, #f8f9fd, #fff);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero--center { text-align: center; }
.page-hero--center .page-hero-inner { margin-inline: auto; }
.page-hero-inner { max-width: 780px; }
.page-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.15rem, 4.4vw, 3.4rem);
  letter-spacing: -.045em;
  line-height: 1.1;
}
.page-hero .lead { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 640px; }
.page-hero--center .lead { margin-inline: auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted-2);
  font-size: 12px;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }

/* ---------- feature page ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
  padding: clamp(52px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-of-type { border-bottom: 0; }
.feature-row--flip .feature-visual { order: -1; }
.feature-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.feature-copy h2 { margin-bottom: 14px; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.feature-copy > p { color: var(--muted); font-size: 15px; line-height: 1.78; }
.feature-bullets { display: grid; gap: 12px; margin-top: 24px; }
.feature-bullets li { display: flex; gap: 10px; color: var(--text-2); font-size: 13.5px; line-height: 1.65; }
.feature-bullets .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

/* generic mock panel used on feature page */

.mock {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7f8fc;
  box-shadow: var(--shadow-sm);
}
.mock-dark {
  border-color: rgba(255, 255, 255, .09);
  background: #0b101c;
  box-shadow: var(--shadow-lg);
  color: #aeb8cd;
}
.mock-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted-2);
  font-size: 10.5px;
}
.mock-dark .mock-window-bar { color: #7b879f; }
.mock-window-bar .spacer { margin-left: auto; }
.mock-tree { display: grid; gap: 3px; padding: 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.mock-dark .mock-tree { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .07); }
.mock-tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 11.5px;
}
.mock-dark .mock-tree-row { color: #9aa5bc; }
.mock-tree-row.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.mock-dark .mock-tree-row.is-active { background: rgba(91, 107, 255, .16); color: #c9d1ff; }
.mock-tree-row .doc-ico { width: 12px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; opacity: .6; }
.mock-tree-row .count { margin-left: auto; color: var(--muted-2); font-size: 9.5px; }
.mock-doc-card { margin-top: 12px; padding: 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.mock-dark .mock-doc-card { border-color: rgba(255, 255, 255, .08); background: #0e1524; }
.mock-doc-card h4 { color: var(--text); font-size: 13px; margin-bottom: 9px; }
.mock-dark .mock-doc-card h4 { color: #e7ebf6; }
.mock-line { height: 6px; margin: 7px 0; border-radius: 3px; background: #e8ebf3; }
.mock-dark .mock-line { background: rgba(255, 255, 255, .12); }
.mock-line.w-80 { width: 80%; }
.mock-line.w-60 { width: 60%; }
.mock-line.w-40 { width: 40%; }
.mock-panel-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 10.5px;
}
.mock-dark .mock-panel-note { background: rgba(120, 135, 255, .12); color: #a5b4ff; }

.mock-chat { display: grid; gap: 10px; }
.mock-bubble { padding: 9px 11px; border-radius: 9px; font-size: 10.5px; line-height: 1.6; }
.mock-bubble--q { justify-self: end; max-width: 85%; background: #4e5bf5; color: #fff; border-radius: 9px 9px 2px 9px; }
.mock-bubble--a { max-width: 92%; background: #fff; border: 1px solid var(--line); color: var(--text-2); }
.mock-dark .mock-bubble--a { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); color: #aeb8cd; }
.mock-cite-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.mock-cite {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 9px;
}
.mock-dark .mock-cite { background: rgba(120, 135, 255, .14); color: #a5b4ff; }

.mock-diff { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.9; }
.mock-diff p { padding: 3px 8px; border-radius: 4px; white-space: nowrap; overflow: hidden; }
.mock-diff .add { background: rgba(16, 185, 129, .1); color: #076b4d; }
.mock-diff .del { background: rgba(239, 68, 68, .08); color: #dc2626; }
.mock-diff .ctx { color: var(--muted-2); }
.mock-dark .mock-diff .add { background: rgba(52, 211, 153, .1); color: #34d399; }
.mock-dark .mock-diff .del { background: rgba(248, 113, 113, .08); color: #f87171; }
.mock-dark .mock-diff .ctx { color: #6b7690; }

.mock-review-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.mock-review-head { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 11.5px; font-weight: 600; }
.mock-review-head .status { margin-left: auto; color: #076b4d; font-size: 10px; }
.mock-comment { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mock-comment p { color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.mock-comment b { color: var(--text-2); }
.mock-avatars { display: flex; align-items: center; margin-top: 12px; }
.mock-avatars .avatar { width: 26px; height: 26px; font-size: 10px; }
.mock-avatars .avatar:not(:first-child) { margin-left: -7px; }

/* ---------- pricing ---------- */

.pricing-page { padding: clamp(56px, 7vw, 80px) 0 clamp(72px, 8vw, 104px); }

.billing-toggle {
  display: inline-flex;
  gap: 2px;
  margin: 26px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-3);
}
.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.billing-toggle button.is-active { background: #fff; color: var(--text); box-shadow: var(--shadow-xs); }
.save-tag { padding: 2px 6px; border-radius: 999px; background: #dcf7ee; color: #076b4d; font-size: 9.5px; font-weight: 700; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 42px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.plan:hover { box-shadow: var(--shadow-md); }
.plan--featured {
  border-color: rgba(78, 91, 245, .45);
  background: linear-gradient(180deg, #fff, #f7f8ff);
  box-shadow: 0 30px 70px -34px rgba(78, 91, 245, .5);
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5a67ff, #4350ec);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.plan-name { font-size: 17px; font-weight: 650; }
.plan-tagline { margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.plan-price { display: flex; align-items: flex-end; gap: 4px; margin: 20px 0 4px; min-height: 52px; }
.price-amount { font-size: 2.7rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.price-amount--label { font-size: 2.1rem; letter-spacing: -.03em; margin-bottom: 1px; }
.price-currency { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.price-unit { margin-bottom: 6px; color: var(--muted); font-size: 11.5px; }
.price-alt { min-height: 18px; color: var(--muted-2); font-size: 11.5px; }
.plan-features { display: grid; gap: 10px; flex: 1; margin: 24px 0 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan-features li { display: flex; gap: 8px; color: var(--text-2); font-size: 12.8px; line-height: 1.55; }
.plan-features .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  padding: 2px;
  border-radius: 50%;
  background: #dcf7ee;
  color: #076b4d;
}
.pricing-note { margin-top: 22px; text-align: center; color: var(--muted-2); font-size: 11.5px; }

.compare-section { margin-top: clamp(64px, 8vw, 96px); }
.compare-section h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); text-align: center; }
.table-scroll {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare-table th,
.compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; font-size: 13px; }
.compare-table thead th { background: #fafbfe; color: var(--text-2); font-size: 12px; font-weight: 600; }
.compare-table th:first-child,
.compare-table td:first-child { text-align: left; color: var(--text-2); }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: #fbfbfe; }
.compare-table .col-featured { background: rgba(78, 91, 245, .035); }
.compare-table .icon { display: inline-block; color: #0f9d6e; vertical-align: middle; }
.compare-table .dash { color: var(--muted-2); }

.pricing-faq { max-width: 780px; margin: clamp(64px, 8vw, 96px) auto 0; }

/* ---------- FAQ / accordion ---------- */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.faq-item p { padding: 0 40px 20px 0; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.faq-item p a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- docs ---------- */

.docs-hero { padding: clamp(42px, 5vw, 60px) 0 0; background: linear-gradient(180deg, #f8f9fd, #fff); }
.docs-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 12px 0 10px; }
.docs-hero p { color: var(--muted); font-size: 15.5px; max-width: 620px; }

.docs-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 40px 0 clamp(72px, 8vw, 100px);
}
.docs-layout > * { min-width: 0; }
.table-scroll-x { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.docs-side { position: sticky; top: 96px; font-size: 13px; }
.docs-side-group { margin-bottom: 22px; }
.docs-side-title {
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.docs-side a {
  display: block;
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--text-2);
  line-height: 1.5;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.docs-side a:hover { background: var(--paper-2); color: var(--text); }
.docs-side a.is-active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.docs-nav-toggle { display: none; }

.docs-body { max-width: 760px; min-width: 0; }
.docs-section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.docs-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.docs-body .lead { color: var(--text-2); font-size: 16.5px; line-height: 1.8; }

.docs-body h3 { margin: 1.7em 0 .5em; font-size: 1.12rem; }
.docs-body p { margin: .85em 0; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.docs-body ul, .docs-body ol { margin: .8em 0; padding-left: 1.25em; }
.docs-body li { margin: .45em 0; color: var(--text-2); font-size: 14.5px; line-height: 1.75; }
.docs-body ul li { list-style: disc; }
.docs-body ol li { list-style: decimal; }
.docs-body strong { color: var(--text); }

.callout {
  margin: 1.4em 0;
  padding: 16px 18px;
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: #f5f6ff;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}
.callout strong { display: block; margin-bottom: 6px; color: var(--text); }
.callout ul { margin: .4em 0 .2em; }
.callout p { margin: .3em 0 0; font-size: 14px; }
.callout-tip { border-left-color: var(--mint); background: #f2fbf8; }
.callout-warn { border-left-color: var(--amber); background: #fffaf0; }

.docs-body table { width: 100%; margin: 1.2em 0; border-collapse: collapse; font-size: 13px; }
.docs-body th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
}
.docs-body td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--text-2); line-height: 1.6; }
.docs-body tr:last-child td { border-bottom: 0; }

.docs-body code,
.prose code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f4f5fa;
  color: #3a46d8;
  font-family: var(--font-mono);
  font-size: .86em;
  word-break: break-word;
}
.kbd,
.docs-body kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.6;
}

.pre-wrap { position: relative; margin: 1.3em 0; }
pre.code,
.prose pre,
.docs-body pre {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: #0c1220;
  color: #d7deee;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  overflow-x: auto;
  tab-size: 2;
}
pre.code code,
.prose pre code,
.docs-body pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  word-break: normal;
}
.copy-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: #aab4c8;
  font-size: 10.5px;
  opacity: 0;
  transition: opacity .18s var(--ease), background-color .18s var(--ease);
}
.pre-wrap:hover .copy-btn,
.copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.docs-foot { display: flex; gap: 12px; margin-top: 40px; }

/* ---------- blog ---------- */

.blog-page { padding: clamp(56px, 7vw, 80px) 0 clamp(72px, 8vw, 104px); }
.post-featured {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  margin-bottom: 48px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .25s var(--ease);
}
.post-featured:hover { box-shadow: var(--shadow-md); }
.post-featured-copy { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.post-featured-copy h2 { margin: 16px 0 12px; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.post-featured-copy h2 a:hover { color: var(--brand); }
.post-featured-copy > p { color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.post-featured-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px;
  background: radial-gradient(ellipse 80% 80% at 60% 20%, #202a5e, #0a0e1c 65%);
  overflow: hidden;
}
.post-featured-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.art-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: #0d1424;
  box-shadow: 0 30px 70px -25px #000;
}
.art-window-bar { display: flex; gap: 5px; margin-bottom: 12px; }
.art-window-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.art-window h4 { color: #eef1f9; font-size: 14px; margin-bottom: 12px; }
.art-window .art-line { height: 6px; margin: 7px 0; border-radius: 3px; background: rgba(255, 255, 255, .11); }
.art-window .art-line.short { width: 62%; }
.art-window .art-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(94, 234, 212, .12);
  color: #5eead4;
  font-family: var(--font-mono);
  font-size: 9px;
}

.post-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; }
.post-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9ddf0; }
.post-tag {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 10.5px;
  font-weight: 600;
}
.post-card h3 { margin: 13px 0 9px; font-size: 17px; line-height: 1.4; }
.post-card h3 a:hover { color: var(--brand); }
.post-card > p { flex: 1; color: var(--muted); font-size: 13px; line-height: 1.7; }
.post-card .post-meta { margin-top: 18px; }
.post-card .avatar { width: 26px; height: 26px; font-size: 10px; border: 0; }

.article { padding: 0 0 clamp(64px, 8vw, 96px); }
.article-head {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 68px) 0 32px;
  text-align: center;
}
.article-head h1 { margin: 16px 0 18px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.18; }
.article-head .post-meta { justify-content: center; }
.article-body { max-width: 720px; margin: 0 auto; }
.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 40px auto 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.article-author .avatar { width: 42px; height: 42px; }
.article-author b { display: block; font-size: 13.5px; }
.article-author small { color: var(--muted); font-size: 12px; }
.related { max-width: 720px; margin: 0 auto; padding-top: 40px; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 20px; font-size: 1.1rem; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s var(--ease); }
.related-card:hover { border-color: var(--brand); }
.related-card b { display: block; margin-bottom: 6px; font-size: 14px; line-height: 1.5; }
.related-card span { color: var(--muted); font-size: 11.5px; }

.prose { color: var(--text-2); font-size: 15.5px; line-height: 1.85; }
.prose h2 { margin: 2em 0 .6em; font-size: 1.55rem; color: var(--text); }
.prose h3 { margin: 1.7em 0 .5em; font-size: 1.15rem; color: var(--text); }
.prose p { margin: 1em 0; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.35em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose li { margin: .5em 0; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--brand);
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}
.prose a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(78, 91, 245, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { color: var(--text); }
.prose em { font-style: italic; }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.prose img { margin: 1.6em 0; border-radius: 12px; }

/* ---------- about ---------- */

.about-hero { padding: clamp(56px, 7vw, 88px) 0 40px; }
.about-hero h1 {
  max-width: 900px;
  margin: 16px 0 22px;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -.045em;
}
.about-hero .lead { max-width: 700px; color: var(--muted); font-size: 18px; line-height: 1.8; }

.about-stats { border-block: 1px solid var(--line); padding: 40px 0; background: var(--paper-2); }

.story-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  padding: clamp(56px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}
.story-grid h2 { font-size: 1.1rem; letter-spacing: 0; }
.story-body p { margin-bottom: 1.1em; color: var(--text-2); font-size: 15px; line-height: 1.85; }
.story-body p:last-child { margin-bottom: 0; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fbfbfe; }
.value-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.value-card h3 { margin-bottom: 8px; font-size: 16px; }
.value-card p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  position: relative;
  padding: 0 0 34px 28px;
  border-left: 1px solid var(--line);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year { color: var(--brand); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.timeline-item h3 { margin-bottom: 5px; font-size: 15.5px; }
.timeline-item p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---------- changelog ---------- */

.changelog-list { display: grid; gap: 30px; max-width: 820px; margin: 0 auto; }
.change-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.change-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.change-version { font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.change-date { color: var(--muted-2); font-size: 11.5px; }
.change-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 600;
}
.change-body h2 { margin-bottom: 14px; font-size: 17px; letter-spacing: -.01em; }
.change-body ul { display: grid; gap: 9px; }
.change-body li { display: flex; gap: 9px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.change-body .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--mint); }

/* ---------- contact ---------- */

.contact-page { padding: clamp(48px, 6vw, 72px) 0 clamp(72px, 8vw, 104px); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.form-card {
  padding: clamp(24px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.form-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.form-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -8px 0 22px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11.5px;
}
.form-plan b { font-weight: 650; }
.form-paused {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: -4px 0 22px;
  padding: 14px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 12px;
  background: #fffaf0;
}
.form-paused-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff0d6;
  color: #b45309;
}
.form-paused b { display: block; color: #6b4d0c; font-size: 13px; }
.form-paused p { margin-top: 3px; color: #7d6120; font-size: 12px; line-height: 1.65; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { margin-bottom: 6px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.field .req { color: #dc2626; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(78, 91, 245, .12);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #dc2626; }
.field-error { margin-top: 5px; color: #d93a3f; font-size: 11.5px; }
.field-hint { margin-top: 5px; color: var(--muted-2); font-size: 11px; }

.checkbox-field { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-field input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.checkbox-field label { margin: 0; color: var(--muted); font-weight: 400; font-size: 12px; line-height: 1.6; }
.checkbox-field a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-disclaimer { color: var(--muted-2); font-size: 11px; line-height: 1.5; }
.form-banner {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, .22);
  border-radius: 10px;
  background: #fef5f5;
  color: #b91c1c;
  font-size: 12.5px;
}

.contact-side { position: sticky; top: 96px; }
.contact-info { display: grid; gap: 2px; padding: 8px 0; }
.contact-channel { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-channel:last-child { border-bottom: 0; }
.channel-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--brand);
}
.channel-label { color: var(--muted-2); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.channel-value { margin-top: 2px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
a.channel-value:hover { color: var(--brand); }
.contact-side-faq { margin-top: 28px; }
.contact-side-faq h3 { margin-bottom: 12px; font-size: 14px; }
.contact-side-faq .faq-item summary { padding: 14px 0; font-size: 13px; }
.contact-side-faq .faq-item p { padding-bottom: 14px; font-size: 12.5px; }

/* ---------- legal ---------- */

.legal-page { padding: clamp(48px, 6vw, 72px) 0 clamp(72px, 8vw, 100px); }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 96px; font-size: 12.5px; }
.legal-toc-title { margin-bottom: 10px; color: var(--muted-2); font-size: 10.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.legal-toc a { display: block; padding: 5px 0; color: var(--muted); }
.legal-toc a:hover { color: var(--brand); }
.legal-body { max-width: 760px; }
.legal-body h1 { font-size: clamp(2rem, 3.5vw, 2.7rem); margin-bottom: 8px; }
.legal-updated { color: var(--muted-2); font-size: 12px; margin-bottom: 24px; }
.legal-intro {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.8;
}
.legal-section { padding-top: 30px; scroll-margin-top: 96px; }
.legal-section h2 { margin-bottom: 10px; font-size: 1.2rem; }
.legal-section p, .legal-section li { color: var(--text-2); font-size: 14px; line-height: 1.85; }
.legal-section p { margin: .7em 0; }
.legal-section ul { margin: .6em 0; padding-left: 1.3em; }
.legal-section li { list-style: disc; margin: .35em 0; }
.legal-section a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- error pages ---------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 96px 0;
  text-align: center;
}
.error-code {
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  background: linear-gradient(120deg, #4e5bf5, #8b5cf6 55%, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 { margin: 18px 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.error-page p { color: var(--muted); font-size: 14.5px; max-width: 440px; margin: 0 auto 26px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- animations ---------- */

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, .4); }
  50% { opacity: .7; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .ai-grid, .trust-grid { gap: 48px; }
}

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr) 244px; }
  .app-doc { padding: 20px; }
  .ai-grid, .trust-grid { gap: 48px; }
  .workflow-grid { gap: 44px; }
}

@media (max-width: 980px) {
  :root { --container: 100%; }

  .header-inner { height: 64px; }
  .header-login { display: none; }
  .primary-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 14px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(13, 19, 34, .35);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .site-header.nav-open .primary-nav {
    display: flex;
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    padding-bottom: 32px;
  }
  .site-header.nav-open .nav-toggle { background: var(--paper-2); }
  .site-header.nav-open .nav-toggle .icon-menu { display: none; }
  .site-header.nav-open .nav-toggle .icon-close { display: block; }
  .nav-toggle { display: grid; }
  .nav-link { padding: 11px 12px; font-size: 15px; }
  .nav-drawer-extra { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav-drawer-extra .btn { width: 100%; }

  .hero-visual { margin-top: 48px; }
  .app-shell { grid-template-columns: 184px minmax(0, 1fr); }
  .app-ai { display: none; }
  .float-card { display: none; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card { grid-column: span 1; min-height: 0; padding: 24px; }
  .bento-card--wide { grid-column: span 1; }

  .workflow-grid { grid-template-columns: 1fr; }
  .terminal-body { min-height: 0; }
  .ai-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }

  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial blockquote { font-size: 15px; }

  .highlight-card { grid-template-columns: 1fr; }
  .highlight-art { display: none; }

  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(4, 1fr); }

  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row--flip .feature-visual { order: 0; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan--featured { transform: none; }

  .docs-layout, .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .docs-side, .legal-toc { display: none; }
  .docs-nav-toggle {
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0 16px;
  }
  .docs-nav-toggle summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }
  .docs-nav-toggle summary::-webkit-details-marker { display: none; }
  .docs-nav-toggle[open] summary { border-bottom: 1px solid var(--line); }
  .docs-nav-toggle nav { padding: 12px 0; }
  .docs-nav-toggle a { display: block; padding: 5px 0; color: var(--text-2); font-size: 13.5px; }
  .docs-nav-toggle h4 { margin: 10px 0 4px; color: var(--muted-2); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
  .docs-nav-toggle .docs-side-title { margin: 10px 0 4px; font-size: 10.5px; }
  .docs-body { max-width: none; margin-top: 22px; }

  .post-featured { grid-template-columns: 1fr; }
  .post-featured-art { display: none; }
  .post-card-grid { grid-template-columns: repeat(2, 1fr); }

  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .values-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }

  .change-item { grid-template-columns: 1fr; gap: 16px; }
  .change-meta { flex-direction: row; align-items: center; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }

  .header-actions .btn-primary { display: none; }
  .hero { padding-top: 44px; }
  .hero-title { font-size: clamp(2.2rem, 9.4vw, 3rem); }
  .hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 6px 14px; font-size: 11.5px; }
  .app-window { border-radius: 12px; }
  .app-chrome { height: 38px; padding: 0 10px; gap: 8px; }
  .app-address { font-size: 9px; }
  .app-search { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-doc { padding: 18px 16px; }
  .doc-title { font-size: 18px; }
  .doc-code { font-size: 8.5px; }
  .doc-comment { display: none; }

  .logos-caption { font-size: 11.5px; padding: 0 10px; }
  .logo-track { gap: 38px; }

  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-card--wide { grid-column: span 1; }
  .bento-card { padding: 22px; }
  .bento-head h3 { font-size: 16.5px; }

  .stats-grid { gap: 24px 12px; }
  .stat-value { font-size: 2rem; }
  .stat p { font-size: 11.5px; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }

  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }

  .page-hero .lead { font-size: 15.5px; }
  .feature-row { padding: 44px 0; }
  .mock { padding: 14px; }

  .pricing-page { padding-top: 40px; }
  .compare-table th, .compare-table td { padding: 11px 12px; font-size: 12px; }

  .post-card-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }

  .change-item { padding: 22px; }

  .article-head { padding-top: 36px; }
  .prose { font-size: 14.5px; }
  .prose h2 { font-size: 1.35rem; }

  .docs-layout { padding-top: 28px; }
  .docs-hero { padding-top: 36px; }

  .footer-main { gap: 32px; }
  .footer-tagline { font-size: 12px; }
}

@media (max-width: 400px) {
  .brand-word { font-size: 19px; }
  .hero-meta li:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

@media print {
  .site-header, .site-footer, .final-cta, .flash-region, .toast, .nav-toggle { display: none !important; }
  .hero { background: #fff; color: #000; }
  body { color: #000; }
}
