/* Cadence — Ship in public */
:root {
  --bg: #09090b;
  --bg-2: #0e0e11;
  --surface: #121215;
  --surface-2: #18181c;
  --surface-3: #1f1f24;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.13);
  --text: #ededf0;
  --text-2: #c4c4cc;
  --muted: #9b9ba5;
  --faint: #6e6e78;
  --indigo: #5558e6;
  --indigo-hi: #6d70f3;
  --indigo-text: #a5a7ff;
  --green: #34d399;
  --amber: #fbbf24;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 3.5vw, 40px);
  --max: 1200px;
  --header: 64px;
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "cv11", "ss01"; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, pre { margin: 0; }
ul, ol { list-style: none; padding: 0; }
code { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 2px solid var(--indigo-text); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.dim { color: var(--muted); }
.mono { font-family: var(--mono); }
h2 { text-wrap: balance; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn-lg { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(0,0,0,.4); }
.btn-primary:hover { background: var(--indigo-hi); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header); background: rgba(9,9,11,.72); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover, .nav a.is-current { color: var(--text); }
.nav-cta-mobile { display: none; }
.header-cta { margin-left: auto; }
.menu-toggle { display: none; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; cursor: pointer; position: relative; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { position: absolute; left: 12px; width: 16px; height: 1.5px; background: var(--text); transition: transform .2s, top .2s; }
.menu-toggle .bars { top: 20px; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; left: 0; }
.menu-toggle .bars::before { top: -5px; } .menu-toggle .bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: calc(var(--header) + clamp(40px, 6.5vw, 84px)) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-bg { 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: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  opacity: .55; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13.5px; color: var(--text-2); text-decoration: none; transition: border-color .15s, background-color .15s; }
.pill:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.pill-tag { padding: 2px 8px; border-radius: 999px; background: rgba(85,88,230,.2); color: var(--indigo-text); font-family: var(--mono); font-size: 11.5px; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.6rem); line-height: .98; letter-spacing: -.055em; font-weight: 600;
  background: linear-gradient(180deg, #fff 30%, #a9a9b4); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-sub { max-width: 36em; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.fine { font-size: 13px; color: var(--muted); }

/* Window chrome */
.window { position: relative; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 30px 80px -20px rgba(0,0,0,.8); overflow: hidden; min-width: 0; }
.window-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.dots { display: flex; gap: 6px; flex: 1; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a30; }
.url { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 12px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.bar-spacer { flex: 1; }
.hero-window { margin-top: clamp(40px, 5.5vw, 64px); }
.hero-window::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(165,167,255,.8), transparent); z-index: 2; }

/* Tags / avatars (shared) */
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.t-feat { background: rgba(99,102,241,.16); color: var(--indigo-text); }
.t-fix { background: rgba(251,191,36,.12); color: #fcd34d; }
.t-imp { background: rgba(52,211,153,.12); color: #6ee7b7; }
.status { font-size: 11px; padding: 0 7px; height: 20px; display: inline-flex; align-items: center; border-radius: 5px; border: 1px dashed var(--line-2); color: var(--text-2); }
.s-sched { border-color: rgba(165,167,255,.45); color: var(--indigo-text); }
.s-draft { color: var(--muted); }
.av { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 8.5px; font-weight: 600; color: #0b0b0d; flex: none; }
.av-1 { background: #c7c8ff; } .av-2 { background: #fde68a; } .av-3 { background: #a7f3d0; } .av-4 { background: #fbcfe8; }
.ver { font-family: var(--mono); font-size: 12px; color: var(--text); }
.kbd { font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.mini-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 500; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.mini-btn.primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--indigo-text); animation: blink 1.1s steps(1) infinite; }

/* App mockup */
.app { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1.15fr); min-height: 470px; text-align: left; font-size: 13px; }
.app-side { display: flex; flex-direction: column; gap: 14px; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--bg-2); }
.ws { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; font-weight: 500; }
.ws-av { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(135deg, #f97316, #e11d48); font-size: 11px; font-weight: 700; color: #fff; }
.chev { margin-left: auto; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; color: var(--muted); }
.side-nav li.on { background: rgba(255,255,255,.06); color: var(--text); }
.side-nav em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.ico { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .8; flex: none; }
.ico-embed { border-radius: 50%; } .ico-users { border-radius: 50% 50% 3px 3px; } .ico-chart { border-width: 0 0 1.5px 1.5px; border-radius: 0; } .ico-hook { border-radius: 50% 50% 50% 0; } .ico-gear { border-style: dotted; border-radius: 50%; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 8px 2px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.side-foot .mono { color: var(--indigo-text); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.app-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.list-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.list-head strong { font-size: 14px; font-weight: 600; }
.list-head .mini-btn { margin-left: auto; }
.list-filters { display: flex; gap: 4px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.list-filters span { padding: 3px 9px; border-radius: 6px; font-size: 12px; color: var(--muted); }
.list-filters span.on { background: rgba(255,255,255,.06); color: var(--text); }
.list-filters b { font-weight: 500; color: var(--indigo-text); margin-left: 3px; }
.entries li { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.entries li.sel { background: rgba(85,88,230,.08); box-shadow: inset 2px 0 0 var(--indigo); }
.e-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.e-title { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-meta { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.e-meta .av { width: 16px; height: 16px; font-size: 7px; }
.app-editor { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.ed-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ed-tools { display: flex; gap: 4px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.ed-tools > * { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 5px; font-style: normal; }
.ed-tools i { font-style: italic; }
.ed-save { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.ed-save::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
.ed-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.ed-meta.compact { padding: 0 0 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.field small { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; }
.ed-doc { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); line-height: 1.6; }
.ed-h { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.ed-doc ul { display: flex; flex-direction: column; gap: 4px; padding-left: 2px; }
.ed-doc li::before { content: "–"; color: var(--faint); margin-right: 8px; }
.ed-doc code, .tl-body code { padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text); }
.ed-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.ed-foot .av + span:not(.av) { margin-left: 4px; }

/* Logos */
.logos { padding: 8px 0 clamp(56px, 7vw, 88px); }
.logos-cap { text-align: center; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.logo-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px; align-items: center; justify-items: center; color: #8d8d97; }
.lg { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; line-height: 1; white-space: nowrap; transition: color .2s; }
.lg:hover { color: var(--text); }
.lg-atlas { font-weight: 800; letter-spacing: .22em; font-size: 14px; }
.lg-north { font-weight: 600; letter-spacing: -.05em; font-size: 21px; }
.lg-north span { color: var(--indigo-text); }
.lg-prism { font-weight: 500; letter-spacing: -.01em; }
.lg-kilter { font-family: var(--mono); font-weight: 500; letter-spacing: .12em; font-size: 14px; }
.lg-outline { font-weight: 700; font-style: italic; letter-spacing: -.03em; }
.lg-grove { font-weight: 600; letter-spacing: -.02em; font-size: 19px; }
.lg-halcyon { font-weight: 300; letter-spacing: .3em; font-size: 13px; }
.lg-lattice { font-family: var(--mono); font-size: 15px; letter-spacing: -.02em; }
.glyph-tri { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid currentColor; }
.glyph-sq { width: 12px; height: 12px; border: 2px solid currentColor; transform: rotate(45deg); }
.glyph-dot { width: 11px; height: 11px; border-radius: 50%; background: currentColor; box-shadow: 6px 0 0 -2px currentColor; margin-right: 4px; }

/* Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo-text); }
.eyebrow .num { color: var(--muted); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.section-head.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 600; }

.why-inner { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.why h2 { font-size: clamp(2rem, 5vw, 3.9rem); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 40em; }

/* Pillars */
.product { padding-top: 0; border-top: 0; }
.pillar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; }
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar.flip .pillar-copy { order: 2; }
.pillar-copy { display: flex; flex-direction: column; gap: 18px; }
.pillar-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.pillar-copy > p:not(.eyebrow) { color: var(--muted); font-size: 16.5px; }
.checks { display: flex; flex-direction: column; gap: 9px; font-size: 15px; color: var(--text-2); }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 14px; height: 8px; border-left: 1.5px solid var(--indigo-text); border-bottom: 1.5px solid var(--indigo-text); transform: rotate(-45deg) translateY(-3px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); background: rgba(255,255,255,.02); }

.mock-editor .me-body { position: relative; padding: 20px 22px 28px; font-size: 13.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 10px; min-height: 360px; }
.slash-line { color: var(--text); }
.slash-line .mono { color: var(--indigo-text); }
.slash { width: min(260px, 100%); margin-top: -2px; padding: 6px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 1px; }
.slash-h { padding: 6px 8px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.opt { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; font-size: 13px; color: var(--text-2); }
.opt b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--muted); }
.opt kbd { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.opt.on { background: rgba(85,88,230,.18); color: var(--text); }
.opt.on b { color: var(--indigo-text); border-color: rgba(165,167,255,.3); }

.code-snippet { position: relative; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 14px 16px; overflow-x: auto; }
.cs-lang { position: absolute; top: 8px; right: 10px; font-size: 10px; color: var(--faint); letter-spacing: .08em; }
.code-snippet pre, .terminal pre { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--text-2); white-space: pre; }
.c-tag { color: #f0abfc; } .c-attr { color: var(--indigo-text); } .c-str { color: #86efac; } .c-dim { color: var(--faint); }

.mock-embed .host { position: relative; min-height: 400px; background: #f6f6f8; color: #1a1a1f; }
.host-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e6e6ea; background: #fff; }
.host-logo { width: 22px; height: 22px; border-radius: 6px; background: #1a1a1f; }
.sk { display: block; height: 8px; border-radius: 4px; background: #e3e3e8; }
.host-top .sk { width: 70px; } .host-top .sk.w30 { width: 50px; }
.bell { margin-left: auto; position: relative; width: 28px; height: 28px; border-radius: 8px; border: 1px solid #e3e3e8; display: grid; place-items: center; font-size: 9px; color: #9a9aa6; }
.bell b { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--indigo); color: #fff; font-size: 9.5px; display: grid; place-items: center; }
.host-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
.host-side { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; border-right: 1px solid #e6e6ea; min-height: 340px; }
.host-side .sk.short { width: 60%; }
.host-main { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.host-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.host-cards span { height: 64px; border-radius: 8px; background: #fff; border: 1px solid #e6e6ea; }
.host-chart { width: 100%; height: 140px; color: #c9c9d3; background: #fff; border: 1px solid #e6e6ea; border-radius: 8px; padding: 12px; }
.widget { position: absolute; top: 50px; right: 14px; width: min(300px, calc(100% - 28px)); background: #fff; border: 1px solid #e3e3e8; border-radius: 12px; box-shadow: 0 24px 50px -12px rgba(20,20,40,.35), 0 2px 6px rgba(20,20,40,.08); overflow: hidden; font-size: 13px; }
.w-head { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #eeeef2; }
.w-head strong { font-size: 14px; }
.w-sub { font-size: 11.5px; color: #6b6b78; }
.w-item { padding: 11px 14px; border-bottom: 1px solid #f0f0f3; display: flex; flex-direction: column; gap: 4px; }
.w-item .e-title { color: #17171c; }
.w-date { margin-left: auto; font-size: 11px; color: #6b6b78; }
.w-desc { font-size: 12px; color: #55555f; line-height: 1.45; }
.widget .t-feat { background: #ececff; color: #4338ca; } .widget .t-fix { background: #fef3c7; color: #92400e; } .widget .t-imp { background: #d1fae5; color: #065f46; }
.w-foot { padding: 8px 14px; font-size: 10.5px; color: #6b6b78; text-align: center; background: #fafafb; }

.mock-email .mail { background: var(--surface); }
.mail-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mail-head p { font-weight: 600; margin-top: 2px; }
.mail-av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f97316, #e11d48); color: #fff; font-weight: 700; }
.mail-time { margin-left: auto; font-size: 12px; white-space: nowrap; }
.mail-card { margin: 18px; padding: 22px; border-radius: 10px; background: #fff; color: #1a1a1f; display: flex; flex-direction: column; gap: 14px; }
.mail-kicker { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #6b6b78; }
.mail-title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-top: -6px; }
.mail-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; padding-top: 12px; border-top: 1px solid #eeeef2; font-size: 13.5px; }
.mail-item p { font-size: 12.5px; color: #55555f; }
.mail-card .t-feat { background: #ececff; color: #4338ca; } .mail-card .t-fix { background: #fef3c7; color: #92400e; } .mail-card .t-imp { background: #d1fae5; color: #065f46; }
.mail-card .tag { justify-self: start; }
.mail-btn { align-self: flex-start; padding: 9px 14px; border-radius: 7px; background: #17171c; color: #fff; font-size: 13px; font-weight: 500; margin-top: 4px; }
.mail-foot { font-size: 11px; color: #75757f; }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); gap: 1px; }
.feat { background: var(--bg); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; transition: background-color .2s; }
.feat:hover { background: var(--bg-2); }
.feat svg { width: 22px; height: 22px; fill: none; stroke: var(--indigo-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.feat h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.mono-inline { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); word-break: break-all; }

.api { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.api-copy { display: flex; flex-direction: column; gap: 14px; }
.api-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; }
.api-copy p:last-child { color: var(--muted); }
.terminal { border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; min-width: 0; }
.term-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); }
.term-tabs button { padding: 6px 12px; border-radius: 6px; border: 0; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.term-tabs button[aria-selected="true"] { background: rgba(255,255,255,.07); color: var(--text); }
.terminal pre { padding: 18px 20px; overflow-x: auto; min-height: 236px; }
.js .terminal pre.is-hidden-js { display: none; }

/* Changelog timeline */
.cl-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.cl-side { position: sticky; top: calc(var(--header) + 32px); display: flex; flex-direction: column; gap: 16px; }
.cl-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-btn { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; transition: all .15s; }
.chip-btn:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.chip-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.cl-sub { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(52,211,153,.15); }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.tl { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); padding-bottom: 44px; }
.tl[hidden] { display: none; }
.tl::before { content: ""; position: absolute; left: 146px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--indigo-text); }
.tl:first-child::before { background: var(--indigo-text); box-shadow: 0 0 0 4px rgba(165,167,255,.15); }
.tl-when { display: flex; flex-direction: column; gap: 2px; padding-right: 20px; }
.tl-when time { font-size: 13px; color: var(--muted); }
.tl-body { padding-left: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tl-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-body h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.tl-body p { color: var(--muted); font-size: 15px; max-width: 40em; }
.by { display: flex; align-items: center; gap: 8px; font-size: 13px !important; color: var(--text-2) !important; }

/* Customers */
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.case > * { background: var(--bg-2); padding: clamp(24px, 4vw, 48px); }
.case-copy { display: flex; flex-direction: column; gap: 26px; }
.case-co { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .2em; font-size: 13px; }
.case-co .muted { font-weight: 400; letter-spacing: 0; }
.case blockquote p { font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.35; letter-spacing: -.02em; font-weight: 500; }
.case blockquote footer, .quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 14px; line-height: 1.4; }
.case blockquote footer .av, .quote figcaption .av { width: 36px; height: 36px; font-size: 12px; }
.case-chart { display: flex; flex-direction: column; gap: 14px; }
.cc-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cbars { flex: 1; min-height: 200px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; border-bottom: 1px solid var(--line-2); }
.cbars span { position: relative; height: var(--h); border-radius: 4px 4px 0 0; background: rgba(255,255,255,.12); }
.cbars span.on { background: linear-gradient(180deg, var(--indigo-text), var(--indigo)); }
.cbars i { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--text-2); white-space: nowrap; }
.js .cbars span { transform-origin: bottom; transform: scaleY(.04); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.js .case.in .cbars span { transform: none; }
.js .case.in .cbars span:nth-child(n+5) { transition-delay: .25s; }
.cbars-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: clamp(40px, 5vw, 64px) 0; }
.stats li { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.stats b { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.stats span { color: var(--muted); font-size: 14.5px; max-width: 22em; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.quote blockquote p { font-size: 15.5px; color: var(--text-2); line-height: 1.6; }

/* Pricing */
.billing { display: inline-flex; padding: 4px; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); }
.billing button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; transition: background-color .15s, color .15s; }
.billing button[aria-checked="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.save { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(52,211,153,.12); color: #6ee7b7; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); }
.plan h3 { font-size: 17px; font-weight: 600; }
.plan-for { color: var(--muted); font-size: 14.5px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; }
.plan-price b { font-size: 46px; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); }
.plan-bill { font-size: 13px; color: var(--muted); min-height: 1.6em; margin-bottom: 10px; }
.plan-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.plan-list li { display: flex; gap: 10px; align-items: baseline; }
.plan-list li::before { content: ""; flex: none; width: 11px; height: 6px; border-left: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg) translateY(-3px); }
.plan-pop { border-color: rgba(165,167,255,.45); background: linear-gradient(180deg, rgba(85,88,230,.09), rgba(85,88,230,0) 45%), var(--bg-2); box-shadow: 0 0 0 1px rgba(85,88,230,.25), 0 30px 60px -30px rgba(85,88,230,.45); }
.plan-pop .plan-list li::before { border-color: var(--indigo-text); }
.pop { position: absolute; top: -11px; left: 28px; padding: 2px 10px; border-radius: 999px; background: var(--indigo); color: #fff; font-size: 11.5px; font-weight: 500; }
.plan-price b.flash { animation: flash .35s ease-out; }
.compare { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.compare summary { cursor: pointer; padding: 16px 20px; font-size: 14.5px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: "+"; font-size: 18px; color: var(--muted); transition: transform .2s; }
.compare[open] summary::after { transform: rotate(45deg); }
.table-scroll { overflow-x: auto; padding: 0 20px 16px; }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 11px 12px; border-top: 1px solid var(--line); text-align: left; }
.compare thead th { color: var(--muted); font-weight: 500; font-size: 13px; }
.compare tbody th { font-weight: 400; color: var(--text-2); }
.compare td { color: var(--text-2); }
.yes { color: #6ee7b7; } .no { color: var(--faint); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-grid h2 { margin-top: 14px; }
.accordion { border-top: 1px solid var(--line-2); }
.acc-item { border-bottom: 1px solid var(--line-2); }
.acc-item h3 { font-size: inherit; font-weight: inherit; }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 2px; background: none; border: 0; text-align: left; font-size: 16.5px; font-weight: 500; cursor: pointer; color: var(--text); }
.acc-btn:hover { color: #fff; }
.acc-ico { position: relative; flex: none; width: 14px; height: 14px; }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; background: var(--muted); transition: transform .25s; }
.acc-ico::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-ico::after { transform: rotate(0); }
.acc-panel p { padding: 0 40px 22px 2px; color: var(--muted); font-size: 15.5px; max-width: 46em; }
.acc-panel[hidden] { display: none; }

/* CTA */
.cta { position: relative; padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.cta::before { 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: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 20%, transparent 70%); opacity: .6; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.06; letter-spacing: -.045em; font-weight: 600; }
.cta-form { display: flex; gap: 8px; width: min(460px, 100%); margin-top: 8px; }
.cta-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 15px; }
.cta-form input::placeholder { color: var(--faint); }
.cta-form input:focus { outline: none; border-color: var(--indigo-text); box-shadow: 0 0 0 3px rgba(165,167,255,.2); }
.notice { font-size: 14px; color: var(--text-2); }
.notice:empty { display: none; }
.notice:not(:empty) { padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(165,167,255,.35); background: rgba(85,88,230,.1); animation: fadein .3s ease-out; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 72px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px; }
.foot-tag { margin-top: 12px; font-size: 14px; }
.sys-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--text-2); }
.foot-h { font-size: 13px; color: var(--text); font-weight: 500; margin-bottom: 12px; }
.site-footer nav ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.footer-base { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; font-size: 13px; color: var(--muted); }

.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }

/* Badge */
.concept-badge { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: rgba(18,18,21,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-2); color: var(--text-2); font-size: 12px; text-decoration: none; transition: color .15s, border-color .15s; }
.concept-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-text); }
.concept-badge:hover { color: var(--text); border-color: rgba(255,255,255,.3); }

/* Reveal (below the fold only) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes flash { from { opacity: .3; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1080px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .app-side { display: none; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 880px) {
  .nav { position: fixed; top: var(--header); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: rgba(9,9,11,.97); border-bottom: 1px solid var(--line-2); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text); }
  .nav .nav-cta-mobile { display: flex; margin-top: 16px; border-bottom: 0; padding: 0 16px; color: #fff; }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .pillar, .api, .cl-grid, .faq-grid, .case { grid-template-columns: minmax(0, 1fr); }
  .pillar.flip .pillar-copy { order: 0; }
  .cl-side { position: static; }
  .plans, .quotes { grid-template-columns: minmax(0, 1fr); }
  .plans { max-width: 480px; margin: 0 auto; gap: 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-editor { display: none; }
  .entries li:nth-child(n+5) { display: none; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stats li { padding: 18px 0; }
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { left: 4px; }
  .tl { grid-template-columns: minmax(0, 1fr); padding-left: 26px; padding-bottom: 36px; }
  .tl::before { left: 0; }
  .tl-when { flex-direction: row; gap: 10px; align-items: baseline; padding: 0 0 10px; }
  .tl-body { padding-left: 0; }
  .mock-embed .host { min-height: 380px; }
  .host-body { grid-template-columns: minmax(0, 1fr); }
  .host-side { display: none; }
  .mail-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mail-card { margin: 12px; padding: 18px; }
  .cta-form { flex-direction: column; }
  .site-footer { padding-bottom: 84px; }
  .footer-base { flex-direction: column; }
}

@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; }
  .js .cbars span { transform: none; }
}
