:root {
  --bg: #0f1419;
  --surface: #161b22;
  --surface-2: #1c2128;
  --border: #30363d;
  --fg: #e6edf3;
  --fg-muted: #8b949e;
  --fg-dim: #6e7681;
  --accent: #00e5cc;
  --accent-dim: rgba(0, 229, 204, 0.1);
  --ok: #3fb950;
  --ok-dim: rgba(63, 185, 80, 0.1);
  --warn: #d29922;
  --deny: #f85149;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-sans: 'IBM Plex Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 204, 0.2);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px 64px;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 620px;
  line-height: 1.65;
  font-weight: 300;
}

/* Entitlement Card Section */
.entitlement-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.entitlement-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 3px;
}
.entitlement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
}
.entitlement-card-header {
  padding: 14px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}
.entitlement-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.entitlement-id {
  font-size: 11px;
  color: var(--fg-dim);
}
.entitlement-fields {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.entitlement-field {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
  font-size: 12.5px;
}
.entitlement-field:last-child { border-bottom: none; }
.field-key {
  color: var(--fg-dim);
  font-weight: 500;
  padding-top: 1px;
}
.field-value {
  color: var(--fg);
}
.field-status {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 10px;
}
.field-status--ok {
  color: var(--ok);
  background: var(--ok-dim);
}
.entitlement-field--audit .field-value {
  color: var(--fg-dim);
  font-size: 12px;
}
.state-arrow {
  color: var(--fg-dim);
  margin: 0 6px;
  font-size: 14px;
}
.field-state {
  color: var(--ok);
  font-weight: 500;
}
.entitlement-eval {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface-2);
}
.eval-query {
  font-size: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.eval-result {
  font-size: 12px;
  font-family: var(--font-mono);
}
.eval-result--yes { color: var(--ok); }
.eval-result--no { color: var(--deny); }
.entitlement-caption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  text-align: center;
}

/* Why */
.why-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}
.section-headline {
  max-width: 960px;
  margin: 0 auto 56px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.why-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.why-item { }
.why-icon {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}
.why-item h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.why-item p {
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* Protocol */
.protocol-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
}
.protocol-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.protocol-headline {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.protocol-sub {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 56px;
}
.protocol-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 56px;
}
.protocol-step {
  flex: 1;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.protocol-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.protocol-step h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.protocol-step p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
}
.protocol-connector {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 40px 0 0;
  flex-shrink: 0;
}
.protocol-code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.code-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  padding: 12px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.03em;
}
.protocol-code pre {
  padding: 20px;
  overflow-x: auto;
}
.protocol-code code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.7;
  white-space: pre;
}

/* Principles */
.principles-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}
.principles-headline {
  max-width: 960px;
  margin: 0 auto 56px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.principles-list {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.principle {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.principle:last-child { border-bottom: none; }
.principle-rule {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-dim);
  padding-top: 3px;
}
.principle-body h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.principle-body p {
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* Closing */
.closing {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
}
.closing-headline {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  max-width: 640px;
}
.closing-body {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 48px;
}
.closing-vision {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}
.vision-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.closing-vision p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
  font-style: italic;
  font-weight: 300;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.footer-slug {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 56px 20px 48px; }
  .entitlement-section { padding: 0 20px 56px; }
  .why-section { padding: 56px 20px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .protocol-section { padding: 56px 20px; }
  .protocol-flow { flex-direction: column; gap: 12px; }
  .protocol-connector { display: none; }
  .entitlement-field { grid-template-columns: 120px 1fr; }
  .principles-section { padding: 56px 20px; }
  .closing { padding: 56px 20px; }
  .footer-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
}