:root {
  color-scheme: dark;
  --bg: #03070d;
  --bg-soft: #06111b;
  --surface: rgba(6, 17, 27, 0.86);
  --surface-strong: #081622;
  --surface-soft: rgba(12, 29, 43, 0.9);
  --ink: #f4fbff;
  --ink-soft: #c7d7e5;
  --muted: #8394a7;
  --line: rgba(126, 209, 231, 0.18);
  --line-strong: rgba(115, 240, 215, 0.38);
  --accent: #5cf2d6;
  --accent-strong: #19d7b8;
  --blue: #66a6ff;
  --violet: #9f7cff;
  --amber: #f0c36c;
  --danger: #ff665c;
  --danger-line: rgba(255, 102, 92, 0.42);
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(92, 242, 214, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 166, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #03070d 0%, #05111b 44%, #03070d 100%);
  background-size: 42px 42px, 42px 42px, auto;
  font-family:
    "Inter", "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", Meiryo,
    sans-serif;
  letter-spacing: 0;
}

button,
textarea,
input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

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

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

h1,
h2,
h3,
p,
dl {
  margin: 0;
}

h1 {
  max-width: 740px;
  font-size: 4.45rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: 1.72rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  font-size: 1rem;
  line-height: 1.36;
  letter-spacing: 0;
}

.topbar,
.footer {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 13, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(244, 251, 255, 0.2);
  border-radius: 8px;
  color: var(--accent);
  background: #07111b;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(92, 242, 214, 0.08);
}

.topnav,
.footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.topnav a,
.footer a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.topnav a:hover,
.footer a:hover {
  color: var(--accent);
}

.nav-action,
.primary-button,
.ghost-button,
.ghost-link,
.tab-button,
.text-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-action,
.primary-button {
  color: #02110e;
  border-color: rgba(92, 242, 214, 0.7);
  background: linear-gradient(180deg, #7dffe7, #22d6b9);
  box-shadow: 0 0 28px rgba(34, 214, 185, 0.22);
}

.nav-action:hover,
.primary-button:hover {
  background: linear-gradient(180deg, #abfff0, #38e5ca);
}

.ghost-button,
.ghost-link {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.ghost-button:hover,
.ghost-link:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

.text-button {
  color: var(--muted);
  background: transparent;
}

.text-button.danger {
  color: var(--danger);
}

.site-shell,
.public-page {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.site-shell {
  padding: 44px 0 32px;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 46px;
  align-items: center;
  min-height: 500px;
  padding: 26px 20px 34px;
}

.hero-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92, 242, 214, 0.35), transparent);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-line span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(92, 242, 214, 0.72);
}

.hero-lead,
.section-heading p,
.console-note,
.harness-strip p,
.route-steps p,
.proof-routes p,
.rejected-panel li,
.template-grid p,
.final-cta p,
.public-hero p,
.public-section p,
.certificate-card p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-lead {
  max-width: 620px;
  margin-top: 18px;
  font-size: 1.05rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.principles div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.principles span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 900;
}

.principles strong {
  font-size: 0.9rem;
}

.principles small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.trust-ticker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
}

.trust-ticker span {
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: 190px minmax(120px, 1fr) minmax(300px, 340px);
  gap: 18px;
  align-items: center;
}

.metadata-stack {
  display: grid;
  gap: 14px;
  z-index: 2;
}

.metadata-stack article,
.hero-certificate,
.mcp-console,
.trust-section,
.certificate-section,
.templates-section,
.final-cta,
.endpoint-row,
.harness-strip article,
.prompt-card,
.how-card,
.allowed-panel,
.rejected-panel,
.proof-certificate,
.share-panel,
.template-grid article,
.public-section,
.certificate-card,
.detail-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(10, 26, 40, 0.88), rgba(4, 13, 22, 0.9));
  box-shadow: var(--shadow);
}

.metadata-stack article {
  padding: 13px 14px;
}

.metadata-stack b {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}

.metadata-stack span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.signal-field {
  position: relative;
  min-height: 280px;
}

.signal-field span {
  position: absolute;
  left: -6px;
  right: -6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--accent), transparent);
  box-shadow: 0 0 18px rgba(92, 242, 214, 0.5);
}

.signal-field span:nth-child(1) { top: 78px; transform: rotate(7deg); }
.signal-field span:nth-child(2) { top: 116px; transform: rotate(2deg); opacity: 0.75; }
.signal-field span:nth-child(3) { top: 150px; transform: rotate(-3deg); }
.signal-field span:nth-child(4) { top: 186px; transform: rotate(-7deg); opacity: 0.7; }
.signal-field span:nth-child(5) { top: 222px; transform: rotate(-10deg); opacity: 0.55; }

.signal-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 35%, rgba(102, 166, 255, 0.12) 45%, transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(92, 242, 214, 0.18) 19px 20px);
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 76%, transparent);
  opacity: 0.42;
}

.hero-certificate {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 20px;
  border-color: rgba(92, 242, 214, 0.34);
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-topline strong {
  flex: 1;
  min-width: 0;
  font-size: 1.02rem;
}

.card-topline em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(92, 242, 214, 0.38);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(92, 242, 214, 0.08);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.proof-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(92, 242, 214, 0.18), rgba(102, 166, 255, 0.1));
}

.proof-mark::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
}

.score-cluster,
.certificate-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
}

.score-orbit {
  display: grid;
  place-items: center;
  align-content: center;
  width: 122px;
  height: 122px;
  border: 1px solid rgba(92, 242, 214, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(92, 242, 214, 0.12), transparent 58%),
    conic-gradient(var(--accent) 86%, rgba(92, 242, 214, 0.12) 0);
  box-shadow: inset 0 0 0 10px rgba(3, 7, 13, 0.86), 0 0 28px rgba(92, 242, 214, 0.2);
}

.score-orbit.large {
  width: 142px;
  height: 142px;
}

.score-orbit strong {
  font-size: 2.55rem;
  line-height: 1;
}

.score-orbit small {
  color: var(--muted);
  font-weight: 900;
}

dl {
  display: grid;
  gap: 10px;
}

dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.strength-line {
  display: flex;
  gap: 7px;
  margin-top: 22px;
}

.strength-line span,
.strength-line i {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(92, 242, 214, 0.44);
}

.strength-line i {
  background: rgba(92, 242, 214, 0.18);
  box-shadow: none;
}

.share-chip {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.mcp-console,
.trust-section,
.certificate-section,
.templates-section,
.final-cta {
  position: relative;
  margin-top: 18px;
  padding: 22px;
}

.section-number {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(92, 242, 214, 0.06);
  font-size: 0.72rem;
  font-weight: 900;
}

.section-heading {
  margin-top: 14px;
}

.section-heading p {
  margin-top: 8px;
}

.endpoint-row {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  box-shadow: none;
}

.endpoint-row > span,
.panel-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.endpoint-row code,
.endpoint-panel code,
.share-panel code,
.signature-line {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.endpoint-stats,
.candidate-meta,
.module-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.endpoint-stats span,
.candidate-meta span,
.module-strip span,
.module-card > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 18px;
}

.harness-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.harness-strip article {
  min-width: 0;
  padding: 15px;
  box-shadow: none;
}

.harness-strip span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(92, 242, 214, 0.32);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(92, 242, 214, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.harness-strip h3 {
  margin-top: 12px;
}

.harness-strip p {
  margin-top: 7px;
  font-size: 0.84rem;
}

.prompt-card,
.how-card {
  min-width: 0;
  padding: 18px;
  box-shadow: none;
}

.mcp-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.tab-button {
  min-height: 54px;
  border-radius: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.tab-button:last-child {
  border-right: 0;
}

.tab-button.is-active {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(92, 242, 214, 0.16), rgba(92, 242, 214, 0.04));
  box-shadow: inset 0 -2px 0 var(--accent);
}

.console-note {
  margin-top: 18px;
  font-size: 0.88rem;
}

.copy-box {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.copy-box textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: #d7f7ff;
  background: #03101a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.copy-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.flow-list {
  display: grid;
  gap: 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
}

.flow-list li::before {
  content: counter(item);
  counter-increment: item;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.flow-list {
  counter-reset: item;
}

.flow-list strong {
  grid-column: 2;
  font-size: 0.92rem;
}

.flow-list span {
  grid-column: 2;
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 24px;
  margin-top: 18px;
}

.allowed-panel,
.rejected-panel {
  padding: 18px;
  box-shadow: none;
}

.proof-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.proof-routes article,
.template-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.proof-routes article > span,
.template-grid article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.proof-routes h3,
.template-grid h3 {
  margin-top: 16px;
}

.proof-routes p,
.template-grid p {
  margin-top: 8px;
  font-size: 0.86rem;
}

.proof-routes b,
.template-grid b {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 0 9px;
  border: 1px solid rgba(92, 242, 214, 0.32);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(92, 242, 214, 0.08);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.rejected-panel {
  border-color: var(--danger-line);
  background: linear-gradient(180deg, rgba(36, 15, 18, 0.9), rgba(13, 8, 12, 0.9));
}

.rejected-panel .panel-label {
  color: #ff8b83;
}

.rejected-panel ul {
  display: grid;
  gap: 13px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.rejected-panel li {
  position: relative;
  padding-left: 22px;
  font-size: 0.86rem;
}

.rejected-panel li::before {
  content: "x";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid var(--danger);
  border-radius: 999px;
  color: var(--danger);
  font-size: 0.62rem;
  font-weight: 900;
}

.certificate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 18px;
}

.proof-certificate,
.share-panel {
  padding: 18px;
  box-shadow: none;
}

.proof-certificate {
  border-color: rgba(170, 223, 255, 0.42);
}

.certificate-body {
  grid-template-columns: minmax(0, 0.8fr) auto minmax(220px, 0.7fr);
}

.cert-meta {
  gap: 13px;
}

.stats-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stats-box div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.stats-box span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-box strong {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
}

.provenance-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.provenance-chain span {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.provenance-chain span::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: #07111b;
  box-shadow: 0 0 14px rgba(92, 242, 214, 0.42);
}

.provenance-chain span::after {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(50% + 12px);
  width: calc(100% - 24px);
  height: 1px;
  background: var(--accent);
}

.provenance-chain span:last-child::after {
  display: none;
}

.signature-line {
  display: block;
  margin-top: 18px;
  color: var(--ink-soft);
}

.share-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.verify-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.verify-box span {
  color: var(--muted);
  font-size: 0.84rem;
}

.verify-box .ghost-button {
  margin-top: 8px;
}

.qr-placeholder {
  display: grid;
  grid-template-columns: repeat(4, 24px);
  grid-auto-rows: 24px;
  gap: 6px;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.qr-placeholder span {
  background: var(--ink-soft);
}

.qr-placeholder span:nth-child(2n) {
  background: var(--accent);
}

.qr-placeholder span:nth-child(3n) {
  opacity: 0.28;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.6fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
}

.final-cta h2 {
  max-width: 600px;
  font-size: 2rem;
}

.final-cta p {
  max-width: 620px;
  margin-top: 10px;
}

.final-cta .copy-actions {
  margin-top: 22px;
}

.cube-art {
  display: grid;
  place-items: center;
  min-height: 230px;
}

.cube-art span {
  width: 112px;
  height: 112px;
  border: 2px solid var(--accent);
  transform: rotate(45deg) skew(-10deg, -10deg);
  box-shadow: 0 0 34px rgba(92, 242, 214, 0.46), inset 0 0 28px rgba(92, 242, 214, 0.18);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  border-top: 1px solid var(--line);
}

.privacy-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.privacy-line div {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  background: var(--surface-strong);
}

.privacy-line strong {
  font-size: 0.78rem;
}

.privacy-line span {
  color: var(--muted);
  font-size: 0.86rem;
}

.public-page {
  max-width: 1120px;
  padding: 34px 0 56px;
}

.public-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 6px;
}

.public-hero h1 {
  max-width: 760px;
  font-size: 2.7rem;
  overflow-wrap: normal;
  word-break: keep-all;
}

.owner-line {
  margin-top: 10px;
  color: var(--ink-soft) !important;
  font-size: 0.92rem;
  font-weight: 900;
}

.status-badge {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(92, 242, 214, 0.32);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(92, 242, 214, 0.08);
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
  gap: 14px;
}

.public-section {
  padding: 16px;
}

.public-section + .public-section {
  margin-top: 14px;
}

.module-grid,
.project-grid,
.work-sample-grid,
.certificate-list,
.timeline {
  display: grid;
  gap: 10px;
}

.project-grid {
  margin-top: 14px;
}

.project-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(126, 209, 231, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(92, 242, 214, 0.055), transparent 44%),
    rgba(255, 255, 255, 0.025);
}

.project-card + .project-card {
  margin-top: 10px;
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.project-meta,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.project-meta span,
.project-tags span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.74rem;
  font-weight: 800;
}

.project-tags span {
  color: var(--accent);
  border-color: rgba(92, 242, 214, 0.28);
  background: rgba(92, 242, 214, 0.06);
}

.project-fields {
  grid-template-columns: 86px 1fr;
  gap: 9px 12px;
  margin-top: 14px;
}

.project-fields dt,
.project-fields dd {
  margin: 0;
  line-height: 1.48;
}

.project-fields dd {
  color: var(--ink-soft);
}

.project-captures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.project-captures a {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--accent);
}

.project-captures img,
.project-captures a > span {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 2;
  place-items: center;
  object-fit: cover;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.project-captures small {
  display: block;
  padding: 8px 9px;
  color: var(--accent);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.module-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.module-card h3 {
  margin-top: 12px;
}

.module-card p {
  margin-top: 6px;
}

.work-sample-grid {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-sample-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.work-sample-card img,
.work-sample-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(92, 242, 214, 0.12), rgba(102, 166, 255, 0.08)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 12px);
}

.work-sample-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.work-sample-card div:last-child {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.work-sample-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.work-sample-card a {
  color: var(--accent);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.timeline {
  margin-top: 14px;
}

.timeline div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.certificate-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  box-shadow: none;
}

.certificate-card-top,
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.detail-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.compact-empty {
  min-height: 160px;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #07111b;
  font-size: 0.9rem;
  font-weight: 900;
  transition: 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  h1 {
    font-size: 3.5rem;
  }

  .hero-section,
  .hero-visual,
  .console-grid,
  .trust-grid,
  .certificate-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .signal-field {
    display: none;
  }

  .template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .harness-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar,
  .footer {
    width: min(100% - 28px, 1360px);
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
  }

  .topnav {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
  }

  .nav-action {
    width: 100%;
  }

  .site-shell,
  .public-page {
    width: min(100% - 28px, 1320px);
  }

  .hero-section,
  .mcp-console,
  .trust-section,
  .certificate-section,
  .templates-section,
  .final-cta {
    padding: 16px;
  }

  h1,
  .public-hero h1 {
    font-size: 2.48rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.35rem;
  }

  .principles,
  .endpoint-row,
  .harness-strip,
  .proof-routes,
  .certificate-body,
    .stats-box,
    .template-grid,
    .privacy-line,
    .module-grid,
    .work-sample-grid,
    .public-grid {
    grid-template-columns: 1fr;
  }

  .metadata-stack {
    order: 2;
  }

  .hero-certificate {
    order: 1;
  }

  .mcp-tabs {
    grid-template-columns: 1fr;
  }

  .tab-button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tab-button:last-child {
    border-bottom: 0;
  }

  .copy-actions .primary-button,
  .copy-actions .ghost-button {
    width: 100%;
  }

  .copy-box textarea {
    min-height: 300px;
    font-size: 0.82rem;
  }

  .provenance-chain {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: start;
  }

  .provenance-chain span {
    grid-template-columns: 18px 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .provenance-chain span::after {
    display: none;
  }

  .public-hero,
  .project-head,
  .certificate-card-top,
  .panel-head,
  .footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-fields,
  .project-captures {
    grid-template-columns: 1fr;
  }

  .project-head span {
    white-space: normal;
  }

  .timeline div {
    grid-template-columns: 1fr;
  }
}
