:root {
  --canvas: #fafaf9;
  --surface: #fffefb;
  --surface-muted: #f2f1ee;
  --surface-dark: #172321;
  --surface-dark-muted: #20302d;
  --text: #1c1917;
  --text-muted: #6c6661;
  --text-light: #f7f7f2;
  --text-light-muted: #b8c5c1;
  --border: #d6d3d1;
  --border-strong: #a8a29e;
  --border-dark: #3b4d49;
  --accent: #115e59;
  --accent-hover: #0d4d49;
  --accent-fg: #ffffff;
  --accent-soft: #dce9e6;
  --success: #166534;
  --write-bg: #dbeafe;
  --write-fg: #1e3a8a;
  --read-bg: #eae8e4;
  --read-fg: #44403c;
  --radius-control: 3px;
  --radius-panel: 2px;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-data: ui-monospace, "Cascadia Mono", "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a,
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 570;
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.header-inner > .button {
  justify-self: end;
}

.button {
  min-height: 44px;
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  color: var(--accent-fg);
  font-size: 15px;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-small {
  min-height: 36px;
  padding-inline: 14px;
  font-size: 14px;
}

.hero {
  padding: 104px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  align-items: center;
  gap: 76px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-link {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  color: var(--accent);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 13px;
  list-style: none;
}

.trust-line li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-line li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.product-frame {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-panel);
}

.frame-chrome,
.frame-tabs,
.matrix-context,
.frame-footer {
  display: flex;
  align-items: center;
}

.frame-chrome {
  min-height: 46px;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-data);
  font-size: 10px;
}

.frame-file,
.frame-state {
  display: flex;
  align-items: center;
  gap: 9px;
}

.file-symbol {
  width: 10px;
  height: 13px;
  border: 1px solid var(--text-muted);
}

.frame-state {
  color: var(--text-muted);
  text-transform: uppercase;
}

.frame-state span + span {
  padding-left: 9px;
  border-left: 1px solid var(--border);
}

.frame-state .state-local {
  color: var(--accent);
  font-weight: 700;
}

.frame-state .state-clear {
  color: var(--success);
}

.frame-tabs {
  min-height: 35px;
  gap: 22px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
}

.frame-tabs span {
  align-self: stretch;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.frame-tabs .active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.matrix-wrap {
  padding: 15px;
}

.matrix-context {
  justify-content: space-between;
  margin-bottom: 10px;
}

.matrix-context > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.context-label,
.context-count {
  color: var(--text-muted);
  font-family: var(--font-data);
  font-size: 9px;
  text-transform: uppercase;
}

.matrix-context strong {
  font-size: 12px;
}

.matrix {
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border);
  font-family: var(--font-data);
}

.matrix-row {
  min-height: 43px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) repeat(3, 60px);
}

.matrix-row > span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}

.matrix-row > span:first-child {
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 4px 10px;
}

.matrix-row small {
  color: var(--text-muted);
  font-size: 8px;
}

.matrix-header {
  min-height: 28px;
  background: var(--surface-muted);
  color: var(--text-muted);
  text-transform: uppercase;
}

.matrix-header > span:first-child {
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
}

.matrix-row .perm {
  font-weight: 700;
}

.perm.write {
  background: var(--write-bg);
  color: var(--write-fg);
}

.perm.read {
  background: var(--read-bg);
  color: var(--read-fg);
}

.perm.hidden {
  color: var(--text-muted);
}

.matrix-row .active-cell {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.active-row > span:first-child {
  border-left: 3px solid var(--accent);
  padding-left: 7px;
}

.frame-footer {
  min-height: 38px;
  gap: 16px;
  padding: 0 14px;
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-data);
  font-size: 9px;
}

.frame-footer b {
  color: var(--text);
}

.frame-source {
  margin-left: auto;
}

.proof-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.proof-grid {
  min-height: 74px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.proof-grid p {
  margin: 0;
  padding: 0 28px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 580;
  text-align: center;
}

.proof-grid p + p {
  border-left: 1px solid var(--border);
}

.section {
  padding: 112px 0;
}

.section-muted {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 54px;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-heading > p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 18px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
}

.capability {
  padding: 30px 30px 34px;
}

.capability + .capability {
  border-left: 1px solid var(--border);
}

.capability-number,
.step-number {
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
}

.capability h3,
.steps h3 {
  margin: 48px 0 12px;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.capability p {
  min-height: 104px;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.capability ul {
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  list-style: none;
}

.capability li {
  position: relative;
  padding-left: 16px;
}

.capability li + li {
  margin-top: 7px;
}

.capability li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  border-top: 1px solid var(--accent);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 96px;
}

.workflow-heading {
  margin-bottom: 0;
}

.steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--border);
}

.steps h3 {
  margin: 0 0 8px;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

.privacy-section {
  background: var(--surface-dark);
  color: var(--text-light);
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 100px;
}

.eyebrow-light {
  color: #8fc1b7;
}

.privacy-copy {
  padding-top: 6px;
}

.privacy-lede {
  max-width: 650px;
  margin-bottom: 40px;
  color: var(--text-light-muted);
  font-size: 20px;
}

.privacy-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border-dark);
}

.privacy-facts > div {
  min-height: 142px;
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--border-dark);
}

.privacy-facts > div:nth-child(even) {
  padding-left: 22px;
  border-left: 1px solid var(--border-dark);
}

.privacy-facts strong,
.privacy-facts span {
  display: block;
}

.privacy-facts strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.privacy-facts span {
  color: var(--text-light-muted);
  font-size: 13px;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 100px;
}

.faq-heading {
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--border-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 22px 42px 22px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 2px;
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 23px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 670px;
  margin: -5px 42px 24px 0;
  color: var(--text-muted);
}

code {
  font-family: var(--font-data);
  font-size: 0.9em;
}

.closing {
  background: var(--accent);
  color: var(--accent-fg);
}

.closing-inner {
  min-height: 270px;
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  align-items: center;
  gap: 80px;
  padding-top: 52px;
  padding-bottom: 52px;
}

.closing .eyebrow {
  color: #b9ddd6;
}

.closing h2 {
  margin-bottom: 0;
}

.closing-action {
  border-left: 1px solid #4e8a84;
  padding-left: 44px;
}

.closing-action p {
  margin-bottom: 20px;
  color: #d6e8e5;
}

.button-light {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--accent);
}

.button-light:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.site-footer {
  padding: 54px 0 34px;
  background: var(--surface);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.footer-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-legal p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .product-frame {
    max-width: 760px;
  }

  .capability p {
    min-height: 128px;
  }

  .workflow-grid,
  .privacy-grid,
  .faq-grid {
    gap: 56px;
  }
}

@media (max-width: 800px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 78px 0 72px;
  }

  .proof-grid,
  .capability-grid,
  .workflow-grid,
  .privacy-grid,
  .faq-grid,
  .closing-inner {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    padding: 10px 0;
  }

  .proof-grid p {
    padding: 12px;
  }

  .proof-grid p + p {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .section {
    padding: 84px 0;
  }

  .capability + .capability {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .capability p {
    min-height: 0;
  }

  .capability h3 {
    margin-top: 34px;
  }

  .closing-inner {
    gap: 34px;
  }

  .closing-action {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid #4e8a84;
    border-left: 0;
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .header-inner {
    min-height: 62px;
  }

  .header-inner > .button {
    min-height: 34px;
    padding-inline: 11px;
  }

  .button-small span {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .product-frame {
    overflow: hidden;
  }

  .frame-chrome {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .frame-tabs {
    gap: 16px;
    overflow: hidden;
  }

  .frame-tabs span:nth-child(4),
  .frame-tabs span:nth-child(5) {
    display: none;
  }

  .matrix-wrap {
    padding: 10px;
  }

  .matrix-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .matrix-row {
    grid-template-columns: minmax(130px, 1fr) repeat(3, 42px);
  }

  .frame-footer {
    gap: 10px;
  }

  .frame-source {
    display: none;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .capability {
    padding-inline: 6px;
  }

  .privacy-facts {
    grid-template-columns: 1fr;
  }

  .privacy-facts > div,
  .privacy-facts > div:nth-child(even) {
    min-height: 0;
    padding: 20px 0;
    border-left: 0;
  }

  .footer-main,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
