:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #071126;
  --muted: #63708a;
  --line: #dbe3ef;
  --line-strong: #c9d5e6;
  --navy: #081f55;
  --blue: #0b6ff5;
  --blue-dark: #063cc9;
  --cyan: #18d3e2;
  --green: #15803d;
  --red: #b42318;
  --amber: #b7791f;
  --shadow: 0 18px 46px rgba(7, 17, 38, 0.14);
  --page-width: 92vw;
  --page-max: 1760px;
  --page-min: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
}

button,
input,
select {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: 44px;
}

h2 {
  font-size: 28px;
}

p {
  margin: 0;
}

.brand-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: var(--page-width);
  max-width: var(--page-max);
  min-width: var(--page-min);
  margin-left: auto;
  margin-right: auto;
  padding: 32px 0 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 30px;
}

.brand-mark.dark {
  color: var(--navy);
}

.brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 154px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.brand-logo.small {
  width: 120px;
  height: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-light {
  min-width: 230px;
  background: #ffffff;
  color: #050b1b;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.button-outline {
  min-width: 230px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button-ghost {
  background: #ffffff;
  color: var(--blue);
  border-color: var(--line);
}

.button.primary {
  background: var(--blue);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: var(--navy);
  border-color: var(--line);
}

.home-surface {
  min-height: 100vh;
  color: #ffffff;
  background: #020b35;
}

.landing-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(
      117deg,
      rgba(7, 22, 98, 0.98) 0%,
      rgba(4, 28, 148, 0.92) 38%,
      rgba(0, 144, 204, 0.8) 74%,
      rgba(12, 219, 218, 0.84) 100%
    ),
    linear-gradient(24deg, #06115d 0%, #062ed2 52%, #16cfda 100%);
}

.landing-page::before {
  content: "";
  position: absolute;
  inset: -18% -10% auto -10%;
  height: 54%;
  background: linear-gradient(110deg, rgba(31, 116, 255, 0.7), rgba(20, 210, 224, 0.42));
  clip-path: polygon(0 0, 64% 0, 52% 62%, 0 94%);
}

.landing-page::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background: repeating-linear-gradient(
    112deg,
    transparent 0 12px,
    rgba(255, 255, 255, 0.38) 13px,
    transparent 14px 26px
  );
  mask-image: linear-gradient(110deg, transparent 18%, #000000 46%, transparent 84%);
}

.landing-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: var(--page-width);
  max-width: var(--page-max);
  min-width: var(--page-min);
  min-height: calc(100vh - 98px);
  margin-left: auto;
  margin-right: auto;
  padding: 34px 0 120px;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.landing-hero h1 {
  margin-top: 36px;
  color: #ffffff;
  font-size: 72px;
  font-weight: 900;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 25px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 52px;
}

.demo-feature-surface {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(11, 111, 245, 0.05), transparent 32%), #f8fbff;
}

.demo-feature-page {
  width: var(--page-width);
  max-width: var(--page-max);
  min-width: var(--page-min);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 72px;
}

.feature-header {
  width: 100%;
  padding-top: 30px;
}

.feature-intro {
  margin-top: 82px;
}

.feature-intro h1 {
  color: var(--ink);
  font-size: 42px;
}

.feature-intro p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.demo-feature-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
  align-items: start;
  gap: 0;
  margin-top: 76px;
  overflow: visible;
  transition:
    grid-template-columns 220ms ease,
    gap 220ms ease;
}

.demo-feature-layout.modal-open {
  grid-template-columns: minmax(660px, 1fr) minmax(0, 2fr);
  gap: 48px;
}

.feature-card-section {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
}

.demo-feature-layout.modal-open .feature-card-section {
  min-width: 0;
}

.feature-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
  transition:
    gap 220ms ease,
    max-width 220ms ease,
    margin 220ms ease;
}

.demo-feature-layout.modal-open .feature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.feature-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 96px 56px minmax(72px, auto);
  min-width: 0;
  min-height: 300px;
  height: auto;
  align-content: center;
  justify-items: center;
  align-items: center;
  gap: 16px;
  padding: 32px 22px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 14px 34px rgba(7, 17, 38, 0.06);
  cursor: pointer;
  transition: all 220ms ease;
}

.feature-card:hover,
.feature-card:focus-visible {
  z-index: 3;
  border-color: rgba(11, 111, 245, 0.85);
  box-shadow: 0 18px 42px rgba(11, 111, 245, 0.16);
  outline: none;
  transform: translateY(-4px);
}

.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  flex: 0 0 96px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #eef7ff, #e5f4ff);
}

.feature-card-icon svg,
.feature-card-icon img {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.feature-card small {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 72px;
  max-width: 280px;
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.feature-modal-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
  transform: translateX(16px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    padding 220ms ease,
    border-width 220ms ease,
    max-height 220ms ease;
}

.feature-modal-panel.open {
  max-height: min(860px, calc(100vh - 136px));
  overflow: auto;
  padding: 40px;
  border: 1px solid var(--line);
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.panel-close {
  top: 22px;
  right: 22px;
}

.feature-modal-content {
  padding-right: 18px;
}

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

.modal-description {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.method-list,
.guide-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.method-list {
  padding: 0;
  list-style: none;
}

.guide-list {
  padding-left: 22px;
  color: var(--ink);
}

.method-list li {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.method-list strong {
  display: block;
  margin-bottom: 6px;
}

.method-list span,
.guide-list li {
  color: var(--muted);
  line-height: 1.65;
}

.sdk-spec-section,
.sdk-guide-block {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  scroll-margin-top: 24px;
}

.sdk-spec-section h3,
.sdk-guide-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.sdk-spec-section p,
.sdk-guide-block p {
  color: var(--muted);
  line-height: 1.7;
}

.sdk-spec-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.sdk-spec-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #ffffff;
}

.sdk-spec-table th,
.sdk-spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #26324a;
  font-size: 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.46;
}

.sdk-spec-table tr:last-child td {
  border-bottom: 0;
}

.sdk-spec-table th {
  color: #4f5d78;
  font-size: 11px;
  font-weight: 900;
  background: #fbfdff;
}

.sdk-spec-table th:nth-child(1),
.sdk-spec-table td:nth-child(1) {
  width: 20%;
  font-weight: 800;
}

.sdk-spec-table th:nth-child(2),
.sdk-spec-table td:nth-child(2) {
  width: 30%;
}

.sdk-spec-table th:nth-child(3),
.sdk-spec-table td:nth-child(3) {
  width: 24%;
}

.sdk-spec-table th:nth-child(4),
.sdk-spec-table td:nth-child(4) {
  width: 26%;
}

.sdk-spec-table code,
.method-list code,
.guide-list code,
.setting-note code,
.settings-grid code {
  white-space: nowrap;
}

.sdk-spec-table code {
  font-size: 0.92em;
}

.sdk-guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.sdk-guide-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.sdk-guide-toc a:hover {
  border-color: var(--blue);
}

.sdk-guide-doc {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.code-sample {
  max-width: 100%;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.code-sample code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: pre;
}

.setting-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--muted);
  line-height: 1.65;
}

.setting-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.setting-note ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

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

.settings-grid article {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.settings-grid h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
}

.settings-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.policy-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.policy-add-button {
  min-height: 40px;
  padding: 0 16px;
}

.policy-create-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.policy-create-form:not([hidden]) {
  display: grid;
}

.policy-create-form[hidden] {
  display: none !important;
}

.policy-create-form label {
  display: block;
  margin-bottom: 6px;
  color: #4f5d78;
  font-size: 12px;
  font-weight: 900;
}

.policy-create-form input,
.policy-create-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

.policy-form-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.button-primary-small {
  min-height: 42px;
  padding: 0 18px;
  background: var(--blue);
  color: #ffffff;
}

.policy-table-wrap {
  margin-top: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
  background: #ffffff;
}

.policy-table th:nth-child(1),
.policy-table td:nth-child(1) {
  width: 38%;
}

.policy-table th:nth-child(2),
.policy-table td:nth-child(2) {
  width: 28%;
}

.policy-table th:nth-child(3),
.policy-table td:nth-child(3) {
  width: 22%;
}

.policy-table th:nth-child(4),
.policy-table td:nth-child(4) {
  width: 12%;
  text-align: center;
}

.policy-table th,
.policy-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.policy-table th {
  color: #4f5d78;
  font-size: 13px;
  font-weight: 900;
  background: #fbfdff;
}

.policy-table td {
  color: #26324a;
}

.policy-table td strong,
.policy-table td span {
  display: block;
}

.policy-table td span {
  margin-top: 4px;
  color: var(--muted);
}

.policy-issuer-did {
  display: block;
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.policy-table select {
  width: min(158px, 100%);
  min-height: 44px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.policy-empty-state,
.policy-error-state {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdff;
  line-height: 1.6;
}

.policy-error-state {
  color: var(--red);
  background: #fff8f7;
}

.issuer-policy-implementation-guide {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(11, 111, 245, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.implementation-guide-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.implementation-guide-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0;
}

.implementation-guide-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.implementation-option-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.implementation-option-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.implementation-option-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.implementation-option-card ul {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: #4f5d78;
  font-size: 12px;
  line-height: 1.55;
}

.implementation-option-card code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #005b73;
  background: #eef8fb;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 12px;
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 800;
  color: var(--navy);
  overflow-wrap: anywhere;
}

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

.nav form {
  margin: 0;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}

.page.compact {
  width: min(920px, calc(100% - 32px));
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 28px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
  min-width: 0;
}

code,
.inline-code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f3f5f8;
  color: #26324a;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 35, 0.62);
}

.modal-panel {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.qr-modal-panel {
  width: min(860px, 100%);
  color: var(--ink);
}

.qr-modal-panel .modal-copy {
  color: var(--ink);
}

.qr-modal-panel .eyebrow {
  color: var(--blue);
}

.qr-modal-panel h2 {
  color: var(--ink);
}

.qr-modal-panel .modal-description {
  color: var(--muted);
}

.qr-modal-panel .detail-list dt {
  color: var(--muted);
}

.qr-modal-panel .detail-list dd {
  color: var(--ink);
}

.qr-modal-panel .status-line {
  color: var(--muted);
}

.qr-modal-panel .icon-button {
  color: var(--muted);
}

.qr-modal-panel .icon-button:hover {
  color: var(--blue);
}

.modal-grid,
.qr-modal-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.modal-copy {
  min-width: 0;
}

.qr-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-wrap.is-verified {
  border-color: rgba(22, 163, 74, 0.28);
  background: #ffffff;
}

.qr-wrap img {
  width: min(280px, 100%);
  height: auto;
}

.intro-static-qr {
  position: relative;
  display: grid;
  place-items: center;
  width: min(280px, 100%);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(209, 224, 240, 0.96);
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.intro-static-qr::before {
  display: none;
  content: "";
}

.intro-static-qr span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-width: 74px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.qr-modal-panel .status-line + .button {
  margin-top: 18px;
}

.qr-success-state {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: #e7f7ed;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.16);
}

.qr-success-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.verified-claims-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 320px;
  max-height: 320px;
  min-height: 320px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 12px;
  background: #fbfffc;
  overflow: hidden;
}

.verified-claims-header {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.verified-claims-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.verified-claims-list {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
  margin: 0;
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.verified-claims-list::-webkit-scrollbar {
  width: 8px;
}

.verified-claims-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(79, 93, 120, 0.28);
}

.verified-claims-list::-webkit-scrollbar-track {
  background: transparent;
}

.verified-claims-list div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.verified-claims-list div:first-child {
  border-top: 0;
}

.verified-claims-list dt {
  color: var(--muted);
  font-weight: 800;
}

.verified-claims-list dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.claim-empty {
  color: var(--muted);
  font-weight: 700;
}

.icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.icon-button::before,
.icon-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.icon-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.icon-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.icon-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
}

.compact-detail div {
  grid-template-columns: 74px minmax(0, 1fr);
}

.detail-list dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.badge.pending {
  background: #fff7e6;
  color: var(--amber);
}

.badge.verified {
  background: #e7f7ed;
  color: var(--green);
}

.badge.failed,
.badge.expired {
  background: #fdecea;
  color: var(--red);
}

.badge.intro-demo {
  background: #e8f2ff;
  color: var(--blue);
}

.result-box {
  max-height: 220px;
  overflow: auto;
  margin: 18px 0 0;
  padding: 14px;
  background: #0f172a;
  color: #dbeafe;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.policy-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
}

.policy-edit-modal.is-open {
  display: grid;
}

.policy-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 45, 0.46);
  backdrop-filter: blur(6px);
}

.policy-edit-panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(11, 23, 54, 0.24);
  color: var(--ink);
}

.policy-edit-panel h2 {
  margin: 4px 0 10px;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: 0;
}

.intro-disabled-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  place-items: center;
  padding: 24px;
}

.intro-disabled-modal.is-open {
  display: grid;
}

.intro-disabled-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 45, 0.48);
  backdrop-filter: blur(6px);
}

.intro-disabled-panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(11, 23, 54, 0.24);
}

.intro-disabled-panel h2 {
  margin: 4px 0 10px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0;
}

.intro-disabled-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

.intro-disabled-close {
  top: 18px;
  right: 18px;
}

.policy-edit-close {
  top: 18px;
  right: 18px;
}

.policy-edit-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.policy-edit-form label {
  display: grid;
  gap: 7px;
  color: #4f5d78;
  font-size: 12px;
  font-weight: 900;
}

.policy-edit-form input,
.policy-edit-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.policy-edit-form input:focus,
.policy-edit-form select:focus {
  outline: 2px solid rgba(11, 111, 245, 0.18);
  border-color: var(--blue);
}

.policy-edit-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 8px;
  color: var(--red);
  background: #fff8f7;
  font-weight: 800;
}

.policy-edit-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.policy-edit-actions-right {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.button-danger-small {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 8px;
  color: var(--red);
  background: #fff8f7;
  font-weight: 900;
  cursor: pointer;
}

.button-danger-small:hover {
  border-color: rgba(220, 38, 38, 0.42);
  background: #fff1ef;
}

.policy-edit-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.policy-edit-button:hover {
  border-color: var(--blue);
  background: #f7fbff;
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .demo-feature-layout.modal-open {
    grid-template-columns: minmax(620px, 1fr) minmax(0, 2fr);
    gap: 32px;
  }

  .feature-modal-panel.open {
    padding: 32px 24px 26px;
  }
}

@media (max-width: 1100px) {
  .implementation-option-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1199px) {
  .brand-header,
  .landing-hero,
  .demo-feature-page {
    width: calc(100% - 32px);
    min-width: 0;
  }

  .landing-hero h1 {
    font-size: 56px;
  }

  .demo-feature-layout,
  .demo-feature-layout.modal-open {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 24px;
    margin-left: 0;
    transform: none;
    width: 100%;
  }

  .feature-card-section,
  .demo-feature-layout.modal-open .feature-card-section {
    min-width: 0;
  }

  .feature-card-grid,
  .demo-feature-layout.modal-open .feature-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin: 0;
  }

  .feature-card,
  .demo-feature-layout.modal-open .feature-card {
    grid-template-columns: 1fr;
    grid-template-rows: 112px minmax(44px, auto) minmax(54px, auto);
    gap: 18px;
    min-height: 300px;
    height: auto;
    align-content: center;
    justify-items: center;
    padding: 30px 24px;
    text-align: center;
  }

  .feature-card-icon,
  .demo-feature-layout.modal-open .feature-card-icon {
    grid-row: auto;
    width: 112px;
    height: 112px;
    min-width: 112px;
    min-height: 112px;
    flex: 0 0 112px;
  }

  .feature-card-icon svg,
  .feature-card-icon img,
  .demo-feature-layout.modal-open .feature-card-icon svg,
  .demo-feature-layout.modal-open .feature-card-icon img {
    width: 54px;
    height: 54px;
  }

  .feature-card strong,
  .demo-feature-layout.modal-open .feature-card strong {
    justify-content: center;
    min-height: 44px;
    font-size: 18px;
  }

  .feature-card small,
  .demo-feature-layout.modal-open .feature-card small {
    justify-content: center;
    min-height: 54px;
    max-width: 280px;
    font-size: 14px;
    line-height: 1.55;
  }

  .feature-modal-panel.open {
    max-height: none;
  }
}

@media (max-width: 860px) {
  body {
    font-size: 14px;
  }

  .brand-header,
  .landing-hero,
  .demo-feature-page {
    width: min(100% - 32px, 1120px);
  }

  .brand-header {
    padding-top: 22px;
  }

  .brand-mark {
    font-size: 25px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .brand-logo {
    width: 132px;
    height: 34px;
  }

  .feature-header .brand-logo {
    transform: translateX(-20px);
  }

  .landing-hero {
    min-height: calc(100vh - 80px);
    padding: 42px 0 72px;
  }

  .landing-hero h1,
  .feature-intro h1 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .feature-intro p,
  .modal-description,
  .sdk-spec-section p,
  .sdk-guide-block p,
  .detail-list,
  .status-line {
    font-size: 14px;
  }

  .button {
    min-height: 44px;
    font-size: 14px;
  }

  .feature-card strong {
    font-size: 16px;
  }

  .feature-card small {
    font-size: 13px;
  }

  .hero-actions,
  .button-light,
  .button-outline {
    width: 100%;
  }

  .feature-intro {
    margin-top: 46px;
  }

  .demo-feature-layout {
    margin-top: 38px;
  }

  .feature-card-grid,
  .demo-feature-layout.modal-open .feature-card-grid,
  .modal-grid,
  .qr-modal-grid {
    grid-template-columns: 1fr;
  }

  .policy-create-form {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .demo-feature-layout.modal-open .feature-card {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-rows: minmax(24px, auto) minmax(38px, auto);
    column-gap: 16px;
    row-gap: 4px;
    min-height: 118px;
    height: auto;
    align-content: center;
    align-items: center;
    justify-items: start;
    padding: 18px 18px;
    text-align: left;
  }

  .feature-card strong,
  .demo-feature-layout.modal-open .feature-card strong {
    justify-content: flex-start;
    min-height: 24px;
    font-size: 15px;
    text-align: left;
  }

  .feature-card small,
  .demo-feature-layout.modal-open .feature-card small {
    justify-content: flex-start;
    min-height: 0;
    max-width: none;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
  }

  .feature-card-icon,
  .demo-feature-layout.modal-open .feature-card-icon {
    grid-row: 1 / 3;
    width: 78px;
    height: 78px;
    min-width: 78px;
    min-height: 78px;
    flex: 0 0 78px;
  }

  .feature-card-icon svg,
  .feature-card-icon img,
  .demo-feature-layout.modal-open .feature-card-icon svg,
  .demo-feature-layout.modal-open .feature-card-icon img {
    width: 38px;
    height: 38px;
  }

  .feature-modal-panel.open {
    padding: 28px 18px 22px;
  }

  .feature-modal-content {
    padding-right: 0;
  }

  .sdk-spec-table th,
  .sdk-spec-table td {
    font-size: 11px;
  }

  .sdk-spec-table th {
    font-size: 10px;
  }

  .policy-table {
    min-width: 680px;
  }

  .policy-table th,
  .policy-table td {
    padding: 12px 14px;
    font-size: 12px;
  }

  .policy-table th {
    font-size: 11px;
  }

  .policy-table select {
    min-height: 38px;
    font-size: 12px;
  }

  .policy-issuer-did {
    max-width: 220px;
  }

  .code-sample {
    font-size: 10px;
    line-height: 1.5;
  }

  code,
  .inline-code {
    font-size: 0.86em;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .setting-note {
    font-size: 11px;
    line-height: 1.52;
  }

  .setting-note strong,
  .settings-grid h4 {
    font-size: 11px;
  }

  .settings-grid p {
    font-size: 10px;
    line-height: 1.5;
  }

  .modal {
    padding: 12px;
  }

  .modal-panel {
    padding: 18px;
  }

  .qr-modal-panel {
    padding-top: 28px;
  }

  .qr-modal-panel .icon-button {
    z-index: 4;
  }

  .modal-panel h2,
  .feature-modal-content h2 {
    font-size: 24px;
  }

  .qr-wrap img {
    width: min(240px, 100%);
  }

  .intro-static-qr {
    width: min(240px, 100%);
  }

  .qr-wrap {
    justify-self: center;
    width: 254px;
    min-height: 254px;
    margin: 0 auto;
    padding: 6px;
  }

  .topbar {
    padding: 0 18px;
  }

  .page {
    width: min(100% - 24px, 1120px);
    padding: 28px 0;
  }
}

@media (max-width: 720px) {
  .issuer-policy-implementation-guide {
    padding: 18px;
  }

  .implementation-option-card {
    padding: 14px;
  }

  .verified-claims-panel {
    height: 300px;
    max-height: 300px;
    min-height: 300px;
  }

  .verified-claims-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .verified-claims-list dd {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .qr-success-state {
    width: 68px;
    height: 68px;
  }

  .qr-success-icon {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .policy-edit-panel {
    padding: 26px 20px;
  }

  .intro-disabled-panel {
    padding: 26px 20px;
  }

  .intro-disabled-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .intro-disabled-actions .button {
    width: 100%;
  }

  .policy-edit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .policy-edit-actions-right {
    justify-content: stretch;
  }

  .policy-edit-actions-right .button,
  .button-danger-small {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .landing-hero h1,
  .feature-intro h1 {
    font-size: 28px;
  }

  .hero-kicker {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .qr-wrap img {
    width: min(224px, 100%);
  }

  .intro-static-qr {
    width: min(224px, 100%);
  }

  .qr-wrap {
    width: 236px;
    min-height: 236px;
    padding: 5px;
  }

  .policy-table th,
  .policy-table td {
    padding: 10px 12px;
  }

  .policy-table {
    min-width: 640px;
  }

  .status-line {
    align-items: flex-start;
    flex-direction: column;
  }
}
