:root {
  --bg: #f4f5f3;
  --surface: #ffffff;
  --surface-soft: #eceeeb;
  --ink: #151817;
  --muted: #5f6562;
  --faint: #8a908c;
  --line: #d9ddd8;
  --accent: #b95732;
  --accent-dark: #863b23;
  --good: #238451;
  --warning: #c98524;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 22, 0.05), 0 18px 48px rgba(20, 24, 22, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.skip-link:focus { top: 16px; }

.shell { width: min(1320px, calc(100% - 56px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(227, 228, 225, 0.9);
  background: rgba(244, 245, 243, 0.94);
  backdrop-filter: blur(14px);
}

.utility-bar {
  border-bottom: 1px solid rgba(217, 221, 216, 0.82);
  background: #eef0ed;
  color: var(--muted);
  font-size: 11px;
}

.utility-shell {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  letter-spacing: 0.015em;
}

.utility-links { display: flex; align-items: center; gap: 18px; }
.utility-links a { color: var(--muted); }
.utility-links a:hover { color: var(--ink); }
.operational { display: inline-flex; align-items: center; gap: 7px; }
.operational::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(35, 132, 81, 0.1); }

.nav-shell {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: 22px;
  height: 26px;
  flex: none;
}

.brand-suite {
  margin-left: 2px;
  padding-left: 11px;
  border-left: 1px solid #cfd3ce;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0;
}

.rook-mark {
  position: relative;
  display: inline-grid;
  width: 25px;
  height: 29px;
  place-items: end center;
  border-radius: 3px 3px 5px 5px;
  background: var(--accent);
  color: transparent;
}

.rook-mark::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -1px;
  width: 29px;
  height: 8px;
  background: linear-gradient(90deg, var(--accent) 0 22%, transparent 22% 39%, var(--accent) 39% 61%, transparent 61% 78%, var(--accent) 78%);
}

.rook-mark::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 9px;
  border-radius: 4px 4px 1px 1px;
  background: var(--bg);
}

.site-nav { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; }
.site-nav a { padding: 9px 0; color: #434845; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 520;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-1px); background: #292b29; color: white; }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button.secondary:hover { border-color: #cccdc9; background: white; color: var(--ink); }
.button.ghost { padding-inline: 12px; background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--surface-soft); }
.button.full { width: 100%; }
.button.compact { min-height: 36px; padding: 7px 13px; font-size: 13px; }

.hero {
  padding: 104px 0 88px;
  border-inline: 1px solid var(--line);
  text-align: left;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(217, 221, 216, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 221, 216, 0.42) 1px, transparent 1px);
  background-size: 56px 56px;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(244, 245, 243, 0.94) 45%, rgba(244, 245, 243, 0.55) 100%);
}

.page-hero .hero-inner { position: relative; z-index: 1; }

.hero-inner { padding-inline: clamp(24px, 5vw, 70px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.page-hero h1 { max-width: 800px; font-size: clamp(42px, 5.2vw, 66px); }
.muted-heading { color: #8b8d89; }

.hero-copy {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.proof-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: var(--muted); font-size: 13px; }
.proof-row span::before { content: "✓"; margin-right: 7px; color: var(--good); }

.section { padding: 92px 0; border-top: 1px solid var(--line); }
.section.tight { padding-block: 64px; }
.section.alt { background: var(--surface-soft); }

.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 16px; font-size: clamp(31px, 4vw, 48px); font-weight: 520; letter-spacing: -0.04em; line-height: 1.05; }
.section-heading p { color: var(--muted); font-size: 18px; line-height: 1.55; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card:hover { border-color: #c9cec8; }

.card.dark { border-color: #252725; background: var(--ink); color: white; }
.card.accent { border-color: #efd1c4; background: #fbf1ed; }
.card h2 { font-size: 28px; font-weight: 520; letter-spacing: -0.03em; }
.card h3 { margin-bottom: 10px; font-size: 19px; font-weight: 560; letter-spacing: -0.02em; }
.card p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.card.dark p { color: #bfc2bd; }
.card-tag { display: block; margin-bottom: 28px; color: var(--faint); font: 12px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.card-icon { display: grid; width: 38px; height: 38px; margin-bottom: 28px; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--accent-dark); font-weight: 650; }

.feature-list { display: grid; gap: 12px; padding: 0; margin: 24px 0 0; list-style: none; color: var(--muted); }
.feature-list li { position: relative; padding-left: 24px; line-height: 1.5; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--good); }

.app-window { margin-top: 70px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.window-bar { height: 42px; display: flex; align-items: center; padding: 0 15px; border-bottom: 1px solid var(--line); }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d4d5d2; }
.window-dots i:first-child { background: #dd7150; }
.window-title { margin-inline: auto; color: var(--faint); font-size: 12px; }
.product-ui { display: grid; min-height: 490px; grid-template-columns: 210px 1fr 290px; }
.product-sidebar, .agent-panel { padding: 22px; }
.product-sidebar { border-right: 1px solid var(--line); background: #fafaf9; }
.agent-panel { border-left: 1px solid var(--line); }
.ui-label { margin-bottom: 14px; color: var(--faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.ui-nav { display: grid; gap: 5px; }
.ui-nav span { padding: 9px 10px; border-radius: 7px; color: var(--muted); font-size: 13px; }
.ui-nav .active { background: var(--surface-soft); color: var(--ink); }
.ui-main { min-width: 0; }
.finding-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.finding-title { min-width: 0; }
.finding-title strong, .finding-title small { display: block; }
.finding-title small { margin-top: 4px; overflow: hidden; color: var(--faint); font: 11px "Geist Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #f7e6df; color: var(--accent-dark); font-size: 12px; }
.pill.good { background: #e5f4eb; color: var(--good); }
.finding-body { display: grid; gap: 18px; padding: 22px; }
.thread { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.thread:last-child { border-bottom: 0; }
.thread-meta { display: flex; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.thread-meta span { color: var(--faint); }
.thread p { margin-bottom: 12px; color: #393b38; font-size: 14px; line-height: 1.55; }
.code-diff { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; font: 12px/1.65 "Geist Mono", monospace; }
.code-diff div { padding: 4px 10px; }
.code-diff .minus { background: #fdf0eb; color: #984127; }
.code-diff .plus { background: #eaf6ee; color: #226f44; }
.agent-panel h3 { font-size: 15px; }
.agent-step { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.agent-step strong { display: block; margin-bottom: 4px; color: var(--ink); }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 66px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; left: 0; top: 0; color: var(--accent); font: 13px "Geist Mono", monospace; }

.stat { padding: 24px 0; border-top: 1px solid var(--line); }
.stat strong { display: block; margin-bottom: 6px; font-size: clamp(30px, 4vw, 48px); font-weight: 520; letter-spacing: -0.04em; }
.stat span { color: var(--muted); }

.logo-cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; color: #858783; font: 13px "Geist Mono", monospace; }

.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.integration { min-height: 140px; display: grid; place-items: center; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); text-align: center; }
.integration strong { display: block; margin-bottom: 5px; }
.integration span { color: var(--muted); font-size: 13px; }

.pricing-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.price { margin: 22px 0 8px; font-size: 44px; font-weight: 520; letter-spacing: -0.05em; }
.price small { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.price-card .button { margin-top: auto; }
.price-card .feature-list { margin-bottom: 28px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 17px 20px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; font-weight: 520; }
tr:last-child td { border-bottom: 0; }

.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.docs-nav { position: sticky; top: 98px; display: grid; gap: 8px; }
.docs-nav a { padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: 14px; }
.docs-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.docs-content { max-width: 780px; }
.docs-content h2 { margin-top: 54px; font-size: 30px; font-weight: 520; letter-spacing: -0.03em; }
.docs-content h2:first-child { margin-top: 0; }
.docs-content p, .docs-content li { color: var(--muted); line-height: 1.65; }
.code-block { position: relative; overflow-x: auto; margin: 20px 0; padding: 22px; border-radius: 12px; background: #171918; color: #dfe2dc; font: 13px/1.7 "Geist Mono", monospace; }
.code-block .accent-text { color: #eca080; }
.callout { padding: 18px 20px; border-left: 3px solid var(--accent); background: #fbf1ed; color: #67473b; line-height: 1.55; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 70px; align-items: start; }
.form-card { padding: 34px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { color: #444642; font-size: 13px; font-weight: 520; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cfd4ce;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note, .form-status { color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-status { min-height: 20px; margin-top: 14px; color: var(--accent-dark); }

.enterprise-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.05fr);
  background: var(--surface);
}

.auth-context {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 76px);
  overflow: hidden;
  border-right: 1px solid #2a2e2b;
  background: #171a18;
  color: #f3f4f2;
}

.auth-context::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.auth-context > * { position: relative; z-index: 1; }
.auth-context .brand { color: white; }
.auth-context .brand-suite { border-color: #4b514d; color: #aeb4b0; }
.auth-message { max-width: 610px; padding-block: 70px; }
.auth-message .eyebrow { color: #df8d6c; }
.auth-message h1 { margin-bottom: 24px; font-size: clamp(42px, 5vw, 68px); }
.auth-message p { max-width: 560px; color: #b8beba; font-size: 18px; line-height: 1.6; }
.auth-capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 38px; }
.auth-capability { padding: 16px; border: 1px solid #343a36; border-radius: 8px; background: rgba(255,255,255,.025); }
.auth-capability strong { display: block; margin-bottom: 5px; color: #f4f5f3; font-size: 13px; }
.auth-capability span { color: #919893; font-size: 11px; line-height: 1.4; }
.auth-context-footer { display: flex; justify-content: space-between; gap: 20px; color: #858d87; font-size: 11px; }

.auth-entry {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px;
  background: #f7f8f6;
}

.auth-card { width: min(460px, 100%); padding: 40px; }
.auth-card h2 { margin-bottom: 10px; font-size: 28px; font-weight: 560; letter-spacing: -0.035em; }
.auth-lede { margin-bottom: 26px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; color: var(--accent-dark); font: 11px "Geist Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.auth-badge::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.sso-button { width: 100%; min-height: 48px; border-color: #232624; border-radius: 7px; background: #1c1f1d; }
.sso-button:hover { background: #303431; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-help { display: flex; justify-content: space-between; gap: 18px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.auth-help a { color: var(--accent-dark); }
.auth-security { display: flex; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-security-mark { display: grid; width: 24px; height: 24px; flex: none; place-items: center; border-radius: 6px; background: var(--surface-soft); color: var(--good); font-weight: 650; }

.status-banner { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid #cce7d6; border-radius: 12px; background: #edf8f1; color: #1f6f43; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 5px rgba(35, 132, 81, 0.12); }
.service-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row span:last-child { margin-left: auto; color: var(--good); font-size: 13px; }

.legal { max-width: 760px; }
.legal h2 { margin-top: 48px; font-size: 26px; font-weight: 520; letter-spacing: -0.03em; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }

.cta-band { padding: 70px; border-radius: 18px; background: var(--ink); color: white; }
.cta-band h2 { max-width: 700px; margin-bottom: 18px; font-size: clamp(34px, 5vw, 54px); font-weight: 520; letter-spacing: -0.045em; line-height: 1.03; }
.cta-band p { max-width: 620px; color: #bfc2bd; font-size: 18px; line-height: 1.55; }
.cta-band .button { background: white; color: var(--ink); }
.cta-band .button:hover { background: #eee; color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; padding-block: 56px; }
.footer-main p { max-width: 300px; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.footer-col strong { display: block; margin-bottom: 16px; font-size: 13px; }
.footer-col a { display: block; width: fit-content; margin: 10px 0; color: var(--muted); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 30px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }

@media (max-width: 960px) {
  .nav-shell { flex-wrap: wrap; gap: 12px 24px; padding-block: 12px; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; }
  .product-ui { grid-template-columns: 170px 1fr; }
  .agent-panel { display: none; }
  .grid.four, .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; gap: 42px; }
  .enterprise-auth { grid-template-columns: 1fr; }
  .auth-context { min-height: auto; padding: 34px; }
  .auth-message { padding-block: 62px 28px; }
  .auth-context-footer { display: none; }
  .auth-entry { min-height: auto; padding: 58px 24px; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 30px, 1320px); }
  .nav-shell { align-items: center; }
  .site-nav { gap: 18px; padding-bottom: 4px; }
  .nav-actions .button.ghost { display: none; }
  .utility-shell > span:first-child { display: none; }
  .utility-shell { justify-content: flex-end; }
  .brand-suite { display: none; }
  .hero { padding-block: 74px 62px; }
  .hero-inner { padding-inline: 18px; }
  h1 { font-size: 44px; }
  .section { padding-block: 68px; }
  .grid.two, .grid.four, .integration-grid { grid-template-columns: 1fr; }
  .product-ui { display: block; min-height: 0; }
  .product-sidebar { display: none; }
  .finding-head { align-items: flex-start; flex-direction: column; }
  .app-window { margin-top: 48px; }
  .docs-layout { grid-template-columns: 1fr; gap: 36px; }
  .docs-nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .auth-capabilities { grid-template-columns: 1fr; }
  .auth-message h1 { font-size: 42px; }
  .auth-card { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
