:root {
  --navy-950: #2AC9E2;
  --navy-900: #101d32;
  --navy-800: #16243b;
  --paper: #faf8f2;
  --paper-line: #e7e2d4;
  --ink: #14203a;
  --ink-soft: #4b5769;
  --teal: #1f8a83;
  --teal-dark: #146963;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Faint ledger-line texture across the dark backdrop */
.ledger-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 40px
  );
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, rgba(31, 138, 131, 0.14), transparent 60%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.035) 0px,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 40px
    );
}

.wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  padding: 48px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  position: relative;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  padding: 44px 44px 40px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 30px 60px -25px rgba(0, 0, 0, 0.6),
    0 8px 20px -8px rgba(0, 0, 0, 0.5);
}

.logo {
  display: block;
  height: 34px;
  width: auto;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.2;
  color: var(--ink);
  max-width: 22ch;
}

h2 {
  margin: 34px 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  max-width: 26ch;
  padding-top: 22px;
  border-top: 1px solid var(--paper-line);
}

.body-copy {
  margin: 0 0 8px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
}

.body-copy:last-of-type {
  margin-bottom: 32px;
}

.body-copy strong {
  color: var(--ink);
  font-weight: 600;
}

/* Ledger / block-metadata block */
.ledger {
  margin: 0 0 32px;
  padding: 18px 20px;
  background: #f2efe4;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
}

.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}

.ledger-row + .ledger-row {
  border-top: 1px dashed #d9d3c1;
}

.ledger-row dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b8371;
  flex-shrink: 0;
}

.ledger-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  text-align: right;
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--teal);
  color: #f7fbfa;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta:hover { background: var(--teal-dark); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 3px;
}

.cta-arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.cta:hover .cta-arrow { transform: translateX(2px); }

/* Stamp signature element */
.stamp {
  position: absolute;
  top: -22px;
  right: 30px;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-9deg);
}

.stamp-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stamp-ring circle {
  fill: none;
  stroke: #2AC9E2;
  stroke-width: 2.5;
  stroke-dasharray: 3.5 4;
  opacity: 0.85;
}

.stamp-text {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
}

.footnote {
  margin: 22px 4px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--navy-950);
  text-align: center;
  max-width: 46ch;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta, .cta-arrow { transition: none; }
}

/* Mobile */
@media (max-width: 480px) {
  .wrap { padding: 32px 14px 24px; }
  .card { padding: 56px 24px 32px; }
  .logo { height: 28px; margin-bottom: 30px; }
  .stamp {
    top: -18px;
    right: 24px;
    width: 62px;
    height: 62px;
  }
  .stamp-text { font-size: 10px; }
  .ledger-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ledger-row dd { text-align: left; }
}