:root {
  --ink: #19201f;
  --muted: #64706d;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #ded9cf;
  --green: #286855;
  --green-dark: #174638;
  --blue: #315f7d;
  --gold: #b5832e;
  --red: #9d4b3f;
  --shadow: 0 24px 70px rgba(25, 32, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(222, 217, 207, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 900;
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.top-action,
.primary-button,
.secondary-button,
.login-box button,
.login-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.top-action,
.primary-button,
.login-box button,
.login-link {
  border: 0;
  background: var(--green);
  color: white;
  box-shadow: 0 10px 24px rgba(40, 104, 85, 0.2);
}

.top-action {
  padding: 0 18px;
}

.intro {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(40px, 7vw, 92px) clamp(18px, 4vw, 64px) 56px;
}

.intro-copy {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.lead {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  padding: 0 22px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.product-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.browser-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.browser-strip span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9c2b5;
}

.browser-strip strong {
  margin-left: 8px;
  font-weight: 700;
}

.dashboard-preview {
  display: grid;
  min-height: 430px;
  grid-template-columns: 72px minmax(0, 1fr);
  background: #fbfaf6;
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 26px 0;
  background: var(--green-dark);
}

.mock-sidebar span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.mock-sidebar .active {
  background: #e8c269;
}

.mock-content {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: clamp(20px, 3vw, 34px);
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-row article,
.role-card,
.restriction-panel,
.flow article,
.audit-log,
.login-box,
pre {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-row article {
  padding: 18px;
}

.status-row b {
  display: block;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
}

.status-row span,
.case-table,
.role-card p,
.section-heading p,
.flow p,
.footer,
.login-box label {
  color: var(--muted);
}

.case-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 14px;
}

.case-table div {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.case-table div:last-child {
  border-bottom: 0;
}

mark {
  width: fit-content;
  border-radius: 999px;
  background: rgba(181, 131, 46, 0.16);
  color: #725018;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

mark.ok {
  background: rgba(40, 104, 85, 0.14);
  color: var(--green);
}

mark.warn {
  background: rgba(157, 75, 63, 0.14);
  color: var(--red);
}

section:not(.intro) {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 64px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading p:last-child {
  margin: 14px 0 0;
  max-width: 68ch;
  font-size: 17px;
}

.login-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: #ebe5da;
}

.login-box {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.login-box label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
}

.login-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.login-box button,
.login-link {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.access-section,
.social-section,
.model-section {
  background: #f9f8f4;
}

.consent-band {
  background: #fffdf8;
}

.consent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.consent-grid article,
.social-summary,
.social-checklist article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(18px, 3vw, 26px);
}

.consent-grid strong,
.consent-grid span {
  display: block;
}

.consent-grid span {
  margin-top: 8px;
  color: var(--muted);
}

.role-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.role-switch button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
}

.role-switch button.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.role-card {
  padding: clamp(20px, 3vw, 30px);
  opacity: 0.66;
}

.role-card.active {
  border-color: rgba(40, 104, 85, 0.4);
  box-shadow: 0 16px 38px rgba(40, 104, 85, 0.12);
  opacity: 1;
}

.role-badge {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(49, 95, 125, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 10px;
}

.permission-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.permission-list li {
  position: relative;
  padding-left: 24px;
}

.permission-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.restriction-panel {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 28px);
}

.restriction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.restriction-grid span,
.audit-list span {
  border-radius: 8px;
  background: rgba(157, 75, 63, 0.09);
  color: #70352d;
  font-size: 14px;
  font-weight: 800;
  padding: 12px;
}

.workflow-section {
  background: #efece3;
}

.social-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.social-summary {
  box-shadow: 0 16px 38px rgba(49, 95, 125, 0.1);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.metric-row div {
  border-radius: 8px;
  background: #f6f3eb;
  padding: 14px;
}

.metric-row b,
.metric-row span {
  display: block;
}

.metric-row b {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
}

.metric-row span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.keyword-cloud span {
  border-radius: 999px;
  background: rgba(40, 104, 85, 0.12);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 11px;
}

.social-checklist {
  display: grid;
  gap: 18px;
}

.warning-list li::before {
  color: var(--red);
  content: "!";
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow article {
  min-height: 220px;
  padding: 22px;
}

.flow span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

.flow p {
  margin-bottom: 0;
}

.audit-section {
  background: #f6f1e8;
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: start;
}

.audit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.audit-list span {
  background: rgba(49, 95, 125, 0.1);
  color: var(--blue);
}

.audit-log {
  overflow: hidden;
}

.audit-log div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.audit-log div:last-child {
  border-bottom: 0;
}

.audit-log b {
  color: var(--gold);
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  color: #eef7f2;
  background: #17211d;
  font-size: 15px;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding: 26px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #fffdf8;
}

.footer strong {
  color: var(--ink);
}

@media (max-width: 940px) {
  .nav {
    display: none;
  }

  .intro,
  .login-band,
  .audit-layout {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 0;
  }

  h1 {
    max-width: 13ch;
  }

  .role-grid,
  .consent-grid,
  .social-layout,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .restriction-grid,
  .flow,
  .audit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .top-action {
    padding: 0 12px;
  }

  h1 {
    font-size: 42px;
  }

  .dashboard-preview {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .status-row,
  .metric-row,
  .restriction-grid,
  .flow,
  .audit-list {
    grid-template-columns: 1fr;
  }

  .case-table {
    font-size: 12px;
  }

  .case-table div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
  }
}
