/* ==========================================================================
   SETC — shared styles
   ========================================================================== */

:root {
  --bg: #0a0b0e;
  --bg-2: #0e1014;
  --surface: #121419;
  --surface-2: #171a20;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f1f2f4;
  --text-2: #a6abb5;
  --muted: #737985;
  --accent: #6ef2c2;
  --accent-2: #8fa5ff;
  --accent-3: #b9a0ff;
  --warn: #ff8a9a;
  --radius: 8px;
  --radius-lg: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
::selection { background: rgba(110, 242, 194, 0.25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 16px; }

.eyebrow { display: block; margin: 0 0 16px; font-size: 0.875rem; font-weight: 500; line-height: 1.4; color: var(--accent); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--text-2); max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  background: var(--text); color: var(--bg); font-size: 0.94rem; font-weight: 500; line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #d4d7dd; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.24); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 0.875rem; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 0.97rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; font-size: 0.94rem; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 14, 0.82); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.12em; font-size: 0.95rem; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.main-nav { display: flex; gap: 2px; margin-right: auto; }
.main-nav a { padding: 6px 12px; border-radius: 6px; color: var(--text-2); font-size: 0.9rem; transition: color .15s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.header-cta { display: flex; gap: 6px; align-items: center; }
.header-cta .btn-ghost { border-color: transparent; color: var(--text-2); }
.header-cta .btn-ghost:hover { background: transparent; color: var(--text); }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: transparent; cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-only { display: none; }

/* ---------- Heroes ---------- */
.hero, .page-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(143, 165, 255, 0.09), transparent 70%);
}
.hero { padding: 88px 0 104px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.hero h1 { margin: 0 0 22px; font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.split-hero { padding-top: 80px; }
.split-hero .hero-grid { grid-template-columns: 1fr 1.1fr; }

.page-hero { padding: 96px 0 72px; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.75rem); margin-inline: auto; max-width: 20ch; }
.page-hero .lead { margin: 0 auto; }
.page-hero .hero-actions { justify-content: center; }
.page-hero .back-link { display: flex; justify-content: center; }
.page-hero.left { text-align: left; }
.page-hero.left h1 { margin-inline: 0; max-width: 18ch; }
.page-hero.left .lead { margin: 0; }
.manifesto { padding: 120px 0 88px; }
.manifesto h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); max-width: 14ch; }

/* ---------- Surfaces ---------- */
.glass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.panel { padding: 24px; }
.layer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font: 500 0.75rem var(--mono); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font: 500 0.7rem/1.6 var(--mono); }
.tag-green { background: rgba(110, 242, 194, 0.1); color: var(--accent); }
.tag-blue { background: rgba(143, 165, 255, 0.12); color: var(--accent-2); }
.tag-violet { background: rgba(185, 160, 255, 0.12); color: var(--accent-3); }
.tag-red { background: rgba(255, 138, 154, 0.12); color: var(--warn); }
.tag .live { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.mini-table { width: 100%; border-collapse: collapse; font: 0.78rem/1.4 var(--mono); }
.mini-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.mini-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-2); white-space: nowrap; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .hl { color: var(--accent); }
.mini-table .num { text-align: right; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(143, 165, 255, 0.55); }
.bars.b2 i { background: rgba(110, 242, 194, 0.7); }

.visual-box { border-radius: 10px; padding: 16px; background: var(--bg); border: 1px solid var(--border); font: 0.8rem/1.6 var(--mono); color: var(--text-2); }
.check-rows { display: grid; padding-block: 4px; }
.check-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.check-rows > div:last-child { border-bottom: 0; }
.ok { color: var(--accent); }
.chat { display: grid; gap: 10px; }
.chat .msg { padding: 10px 14px; border-radius: 10px; max-width: 88%; font: 0.86rem/1.5 var(--font); }
.chat .user { background: rgba(143, 165, 255, 0.12); justify-self: end; color: var(--text); }
.chat .bot { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.img-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.img-grid i { aspect-ratio: 1; border-radius: 6px; position: relative; overflow: hidden; filter: saturate(0.75); }
.img-grid i::after { content: ""; position: absolute; inset: 22% 18%; border: 1.5px solid rgba(110, 242, 194, 0.85); border-radius: 2px; }
.img-grid i:nth-child(1) { background: linear-gradient(135deg, #1b2a4a, #2c4d6b 60%, #6a8e8a); }
.img-grid i:nth-child(2) { background: linear-gradient(160deg, #3a2a4f, #6b4c7a 50%, #c69a86); }
.img-grid i:nth-child(3) { background: linear-gradient(120deg, #13322c, #2d6b57 55%, #9fc7a0); }
.img-grid i:nth-child(4) { background: linear-gradient(200deg, #2b2b2b, #57504a 50%, #b39b77); }
.img-grid i:nth-child(5) { background: linear-gradient(90deg, #0f2238, #264f7e 55%, #7fb0d9); }
.img-grid i:nth-child(6) { background: linear-gradient(145deg, #2d1f1f, #6b3c3c 50%, #d29a7a); }
.img-grid i:nth-child(7) { background: linear-gradient(170deg, #1e1e36, #3f3f7a 55%, #9a9ad6); }
.img-grid i:nth-child(8) { background: linear-gradient(110deg, #22301a, #4f6b34 55%, #b6c98a); }
.img-grid i:nth-child(odd)::after { inset: 30% 30% 16% 14%; border-color: rgba(185, 160, 255, 0.9); }
.spark { width: 100%; height: 150px; }

/* Product window mock */
.app-window { overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.app-url { flex: 1; text-align: center; font: 0.72rem var(--mono); color: var(--muted); background: rgba(255, 255, 255, 0.04); border-radius: 6px; padding: 4px 10px; max-width: 340px; margin: 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { display: grid; grid-template-columns: 130px 1fr; min-height: 340px; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
.app-side .app-brand { margin: 0 6px 14px; }
.app-side .app-brand svg { width: 22px; height: 22px; }
.app-side > span:not(.app-brand) { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; }
.app-side .on { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.app-main { padding: 18px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.app-head .btn { pointer-events: none; height: 28px; padding: 0 10px; font-size: 0.75rem; }
.app-title strong { display: block; font: 600 0.95rem var(--font); }
.app-title span { font: 0.72rem var(--mono); color: var(--muted); }
.app-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); font-size: 0.78rem; color: var(--muted); }
.app-tabs span { padding-bottom: 9px; margin-bottom: -1px; border-bottom: 1px solid transparent; }
.app-tabs .on { color: var(--text); border-color: var(--text); }
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-cards > div { padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); font-size: 0.75rem; display: grid; gap: 10px; }
.app-cards .bars { height: 52px; }
.app-window .mini-table { font-size: 0.7rem; }
.app-window .mini-table th, .app-window .mini-table td { padding: 7px 6px; }
.app-window .tag { font-size: 0.62rem; padding: 1px 7px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 112px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head p:not(.eyebrow) { color: var(--text-2); font-size: 1.08rem; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; flex-wrap: wrap; }
.section-head.split h2 { margin: 0; }

/* Cards */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: block; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
a.card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); margin: 0; font-size: 0.95rem; }
.card .link-arrow { margin-top: 18px; }
.card-lg { padding: 32px; }
.icon-badge { width: 36px; height: 36px; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-strong); color: var(--text); }
.icon-badge svg { width: 18px; height: 18px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .span-2 { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }

/* Tabs */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: stretch; }
.tab-list { display: flex; flex-direction: column; gap: 4px; }
.tab-btn { text-align: left; padding: 16px 18px; border-radius: 10px; cursor: pointer; background: transparent; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.tab-btn strong { display: block; font-size: 0.98rem; font-weight: 600; margin-bottom: 2px; color: var(--text-2); transition: color .2s; }
.tab-btn span { display: block; font-size: 0.86rem; color: var(--muted); }
.tab-btn:hover strong { color: var(--text); }
.tab-btn[aria-selected="true"] { background: var(--surface); border-color: var(--border); box-shadow: inset 2px 0 0 var(--accent); }
.tab-btn[aria-selected="true"] strong { color: var(--text); }
.tab-panel { padding: 32px; min-height: 400px; }
.tab-panel.is-active { animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.panel-grid h3 { font-size: 1.4rem; }
.panel-grid .link-arrow { margin-top: 24px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; color: var(--text-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%236ef2c2' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Steps */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--border-strong); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--accent); }
.step-num { font: 500 0.8rem var(--mono); color: var(--muted); margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* Code */
.code-card { overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--border); font: 0.78rem var(--mono); color: var(--muted); }
.copy-btn { background: transparent; border: 1px solid var(--border-strong); border-radius: 6px; padding: 4px 10px; font: 500 0.74rem var(--mono); color: var(--text-2); cursor: pointer; transition: color .15s, border-color .15s; }
.copy-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.24); }
.copy-btn.copied { color: var(--accent); border-color: rgba(110, 242, 194, 0.4); }
pre.code { margin: 0; padding: 20px 22px; overflow-x: auto; font: 0.85rem/1.75 var(--mono); color: var(--text-2); background: var(--bg); }
.code .c { color: #646b78; } .code .k { color: #c5b3ff; } .code .s { color: #8fe9c6; } .code .n { color: #f4c47e; } .code .f { color: #a9b8ff; }

/* Split feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row.reverse > :first-child { order: 2; }
.feature-row h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.feature-row p:not(.eyebrow) { color: var(--text-2); font-size: 1.04rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-row .compare p { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }

/* Principles */
.principles { counter-reset: p; }
.principle { padding: 32px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 24px; align-items: baseline; }
.principle::before { counter-increment: p; content: "0" counter(p); font: 500 0.85rem var(--mono); color: var(--muted); }
.principle h3 { font-size: 1.3rem; margin: 0; }
.principle p { color: var(--text-2); margin: 0; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-weight: 500; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-size: 1.4rem; font-weight: 300; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 24px; margin: 0; max-width: 68ch; }
.faq details a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.faq details a:hover { text-decoration-color: var(--accent); }

/* CTA band */
.cta-band { position: relative; padding: 80px 40px; border-radius: 16px; overflow: hidden; text-align: center; isolation: isolate; background: var(--surface); border: 1px solid var(--border); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(110, 242, 194, 0.07), transparent 70%); }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p:not(.eyebrow) { color: var(--text-2); max-width: 54ch; margin: 0 auto 32px; font-size: 1.08rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--text-2); }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius); font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #5d636e; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, 0.2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgba(110, 242, 194, 0.55); box-shadow: 0 0 0 3px rgba(110, 242, 194, 0.12); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23737985' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.select option { background: var(--surface); }
.textarea { min-height: 140px; resize: vertical; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: rgba(255, 138, 154, 0.7); box-shadow: 0 0 0 3px rgba(255, 138, 154, 0.1); }
.field-error { font-size: 0.8rem; color: var(--warn); }
.form-note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--text); }
.form-status { color: var(--warn); font-size: 0.875rem; margin: 0; }
.form-status:empty { display: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(10, 11, 14, 0.25); border-top-color: var(--bg); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: center; padding: 40px 10px; animation: fadeIn .4s var(--ease); }
.form-success h3 { font-size: 1.5rem; }
.form-success .hero-actions { justify-content: center; margin-top: 24px; }
.form-success .check { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(110, 242, 194, 0.08); border: 1px solid rgba(110, 242, 194, 0.3); color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-grid h2 { font-size: 1.75rem; }
.contact-card { padding: 36px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.contact-list li a { display: flex; gap: 16px; align-items: center; padding: 16px 18px; transition: border-color .2s, background .2s; }
.contact-list li a:hover { border-color: var(--border-strong); background: var(--surface-2); }
.contact-list .icon-badge { margin: 0; flex: none; }
.contact-list strong { display: block; font-weight: 600; font-size: 0.95rem; }
.contact-list strong + span { font-size: 0.875rem; color: var(--muted); }

/* ---------- Careers ---------- */
.job-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.job-filter {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); font-size: 0.875rem;
  transition: background .15s, border-color .15s, color .15s;
}
.job-filter small { font: 500 0.72rem var(--mono); color: var(--muted); }
.job-filter:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.24); }
.job-filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.job-filter[aria-pressed="true"] small { color: rgba(10, 11, 14, 0.6); }
.jobs-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.jobs-count { font: 500 0.8rem var(--mono); color: var(--muted); margin-bottom: 24px; }
.job-list { display: grid; gap: 10px; }
.job-row { display: grid; grid-template-columns: 1fr auto 20px; gap: 24px; align-items: center; padding: 22px 24px; transition: border-color .2s, background .2s; }
.job-row:hover { border-color: var(--border-strong); background: var(--surface-2); }
.job-row h3 { margin: 0 0 4px; font-size: 1.05rem; }
.job-row p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.job-meta { display: flex; gap: 14px; align-items: center; color: var(--text-2); font-size: 0.875rem; white-space: nowrap; }
.job-arrow { color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.job-row:hover .job-arrow { color: var(--text); transform: translateX(3px); }
.job-layout { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; }
.job-body h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.job-body p { color: var(--text-2); }
.job-body ul { padding-left: 20px; margin: 0; display: grid; gap: 8px; color: var(--text-2); }
.job-body li::marker { color: var(--muted); }
.job-facts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.job-facts span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 0.875rem; color: var(--text-2); }
.job-missing { padding: 48px; text-align: center; max-width: 640px; margin: 0 auto; }
.job-missing h2 { font-size: 1.75rem; }
.job-missing .hero-actions { justify-content: center; }
.apply-card { position: sticky; top: 88px; padding: 28px; }
.apply-card h2 { font-size: 1.3rem; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--text-2); font-size: 0.9rem; margin-bottom: 20px; }
.back-link:hover { color: var(--text); }
.file-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); border: 1px dashed var(--border-strong); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop:focus-within { border-color: rgba(110, 242, 194, 0.55); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .icon-badge { margin: 0; flex: none; }
.file-drop strong { display: block; font-size: 0.92rem; }
.file-drop span { font-size: 0.82rem; color: var(--muted); word-break: break-all; }
.field.invalid .file-drop { border-color: rgba(255, 138, 154, 0.7); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 0; counter-reset: s; }
.process li { list-style: none; padding: 24px; }
.process li::before { counter-increment: s; content: "0" counter(s); display: block; font: 500 0.8rem var(--mono); color: var(--muted); margin-bottom: 14px; }
.process h3 { margin-bottom: 6px; }
.process p { margin: 0; color: var(--text-2); font-size: 0.93rem; }
.roles-panel { padding: 24px; }
.roles-total { font-size: 1rem; color: var(--text-2); margin: 6px 0 16px; }
.roles-total strong { font-size: 2.8rem; font-weight: 600; color: var(--text); letter-spacing: -0.04em; margin-right: 6px; }
.roles-panel ul { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--border); }
.roles-panel li a { display: flex; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--border); color: var(--text-2); transition: color .15s; }
.roles-panel li a:hover { color: var(--text); }
.roles-foot { font-size: 0.85rem; margin: 16px 0 0; }
.careers-banner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 44px; transition: border-color .2s, background .2s; }
.careers-banner:hover { border-color: var(--border-strong); background: var(--surface-2); }
.careers-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.careers-banner p:not(.eyebrow) { margin: 0; }

/* ---------- Solutions ---------- */
.sol-layout { display: grid; grid-template-columns: 200px 1fr; gap: 64px; align-items: start; }
.sol-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.sol-nav .eyebrow { margin-bottom: 12px; }
.sol-nav a:not(.btn) { padding: 8px 14px; border-left: 1px solid var(--border-strong); color: var(--muted); font-size: 0.92rem; transition: color .15s, border-color .15s; }
.sol-nav a:not(.btn):hover { color: var(--text); }
.sol-nav a.active { color: var(--text); border-color: var(--accent); }
.sol-nav .btn { align-self: flex-start; margin-top: 20px; }
.sol-item { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 56px 0; border-top: 1px solid var(--border); scroll-margin-top: 88px; }
.sol-item:first-child { border-top: 0; padding-top: 0; }
.sol-item h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.sol-item p:not(.eyebrow) { color: var(--text-2); font-size: 1.04rem; max-width: 64ch; }
.sol-item .link-arrow { margin-top: 28px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-cover { height: 180px; border-bottom: 1px solid var(--border); background: #0f1116 center / cover no-repeat; }
.post-cover.c1 { background-image: url("cover-fundamentals.svg"); }
.post-cover.c2 { background-image: url("cover-evaluation.svg"); }
.post-cover.c3 { background-image: url("cover-long-tail.svg"); }
.post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font: 500 0.75rem var(--mono); color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.post-body h3 { font-size: 1.15rem; line-height: 1.35; }
.post-body p { flex: 1; }
.featured-grid { grid-template-columns: repeat(2, 1fr); }
.featured-grid > :first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.featured-grid > :first-child .post-cover { height: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--border); }
.featured-grid > :first-child .post-body { padding: 40px; justify-content: center; }
.featured-grid > :first-child h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.article-hero { padding-bottom: 48px; }
.article-hero h1 { max-width: 24ch; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.article-hero .post-meta { justify-content: center; margin: 0 0 18px; }
.article-byline { margin: 18px 0 0; }
.article-cover { height: 300px; max-width: 960px; margin: 0 auto 56px; border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* Prose (articles, legal) */
.prose { max-width: 720px; margin-inline: auto; }
.prose .lead { font-size: 1.2rem; color: var(--text); }
.prose h2 { font-size: 1.55rem; margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.prose p, .prose li { color: var(--text-2); font-size: 1.04rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1.2em; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); transition: text-decoration-color .15s; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font-size: 1.2rem; color: var(--text); line-height: 1.5; }
.prose strong { color: var(--text); font-weight: 600; }
.article-footer { max-width: 720px; margin: 64px auto 0; padding-top: 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.article-footer .back-link { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 32ch; margin: 16px 0 12px; font-size: 0.9rem; }
.footer-brand > a:not(.logo) { color: var(--text-2); font-size: 0.9rem; }
.footer-brand > a:not(.logo):hover { color: var(--text); }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 0.9rem; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--text); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 16px; font-size: 0.9rem; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6); transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-aside { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px 56px; border-right: 1px solid var(--border); background: var(--bg-2); }
.auth-aside::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 80% 50% at 0% 0%, rgba(143, 165, 255, 0.08), transparent 70%); }
.auth-aside-body h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); max-width: 18ch; }
.auth-aside-foot { margin: 0; font-size: 0.85rem; }
.auth-preview { max-width: 460px; margin-top: 40px; padding: 16px 16px 8px; }
.auth-preview .layer-head { margin-bottom: 6px; }
.auth-preview .mini-table td:last-child { text-align: right; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.auth-view { width: min(380px, 100%); margin: 0 auto; }
.auth-view h1 { font-size: 1.75rem; letter-spacing: -0.025em; margin-bottom: 6px; }
.auth-view .form { margin-top: 28px; }
.auth-alert { margin: 0; padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgba(255, 138, 154, 0.35); background: rgba(255, 138, 154, 0.08); color: #ffc2cb; font-size: 0.9rem; }
.auth-foot { margin-top: 24px; font-size: 0.9rem; color: var(--muted); }
.auth-foot a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.auth-foot a:hover { text-decoration-color: var(--accent); }
.auth-legal { margin: 48px auto 0; font-size: 0.82rem; color: var(--muted); text-align: center; }
.auth-legal a:hover { color: var(--text); }
.auth-logo-mobile { display: none; margin: 0 auto 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .split-hero .hero-grid { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .tab-btn { flex: 0 0 auto; }
  .tab-btn span { display: none; }
  .tab-btn[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span-2, .bento .span-3 { grid-column: span 1; }
  .bento .span-4 { grid-column: span 2; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .job-layout { grid-template-columns: 1fr; }
  .apply-card { position: static; }
  .process { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .sol-layout { grid-template-columns: 1fr; gap: 24px; }
  .sol-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .sol-nav .eyebrow, .sol-nav .btn { display: none; }
  .sol-nav a:not(.btn) { border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 14px; font-size: 0.875rem; }
  .sol-nav a.active { border-color: var(--accent); }
}
@media (max-width: 860px) {
  .main-nav, .header-cta .btn-ghost { display: none; }
  .header-inner { gap: 12px; }
  .nav-toggle { display: grid; }
  .header-cta { margin-left: auto; }
  .nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; padding: 12px 24px 20px; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-open .main-nav a { padding: 12px 4px; font-size: 1rem; }
  .nav-open .main-nav .nav-mobile-only { display: block; }
  .nav-open .site-header { background: var(--bg); }
  .grid-3, .grid-2, .panel-grid, .feature-row, .values-grid { grid-template-columns: 1fr; }
  .feature-row { gap: 36px; }
  .feature-row.reverse > :first-child { order: 0; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .principle { grid-template-columns: 1fr; gap: 10px; }
  .section { padding: 88px 0; }
  .job-row { grid-template-columns: 1fr 20px; gap: 14px; }
  .job-meta { grid-column: 1; grid-row: 2; flex-wrap: wrap; }
  .job-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .featured-grid, .featured-grid > :first-child { grid-template-columns: 1fr; }
  .featured-grid > :first-child .post-cover { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--border); }
  .careers-banner { flex-direction: column; align-items: flex-start; padding: 32px; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-logo-mobile { display: inline-flex; }
  .auth-panel { padding: 40px 20px; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .container { width: min(1180px, 100% - 32px); }
  .header-cta .btn { display: none; }
  .bento, .grid-4, .pipeline, .form-row, .process, .post-grid, .compare { grid-template-columns: 1fr; }
  .bento .span-4 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 56px 22px; }
  .card, .card-lg, .contact-card, .tab-panel, .apply-card, .job-missing { padding: 22px; }
  .job-row { padding: 18px; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-cards { grid-template-columns: 1fr; }
  .featured-grid > :first-child .post-body { padding: 24px 26px 28px; }
  .article-cover { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
