
:root {
  --bg: #eef5fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --ink: #112b45;
  --ink-soft: #35516b;
  --brand: #0e7fa7;
  --brand-strong: #0a6787;
  --brand-soft: #78acd1;
  --accent: #ef9232;
  --accent-soft: rgba(239, 146, 50, 0.12);
  --line: rgba(17, 43, 69, 0.11);
  --line-strong: rgba(17, 43, 69, 0.18);
  --shadow: 0 18px 60px rgba(23, 52, 83, 0.10);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1180px;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(120, 172, 209, 0.22), transparent 28rem),
    radial-gradient(circle at right 20%, rgba(239, 146, 50, 0.10), transparent 24rem),
    linear-gradient(180deg, #f6fbff 0%, var(--bg) 100%);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 127, 167, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 127, 167, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 82%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

code,
pre {
  font-family: var(--mono);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(246, 251, 255, 0.84);
  border-bottom: 1px solid rgba(17, 43, 69, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.025em;
  font-size: 1.2rem;
}

.brand-chevron {
  color: var(--brand);
  letter-spacing: -0.16em;
  font-weight: 700;
}

.brand-word {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-links a,
.text-link {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.18s ease, opacity 0.18s ease;
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--brand-strong);
}

.hero {
  padding: 58px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 28px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-weight: 640;
  font-size: 0.94rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  max-width: 13ch;
}

.hero-lead,
.section-heading p,
.footer-copy,
.hero-note,
.panel-copy,
.form-footnote,
.form-status {
  color: var(--ink-soft);
}

.hero-lead {
  max-width: 68ch;
  font-size: 1.1rem;
  margin: 20px 0 0;
}

.hero-note {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 0.97rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.94rem;
}

.badge.badge-soft {
  background: rgba(120, 172, 209, 0.12);
}

.badge.badge-accent {
  background: var(--accent-soft);
  border-color: rgba(239, 146, 50, 0.26);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 620;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 36px rgba(17, 43, 69, 0.20);
}

.button-primary:hover {
  background: #0b2138;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(14, 127, 167, 0.32);
  background: rgba(255, 255, 255, 0.96);
}

.panel,
.exchange-card,
.proof-card,
.wdc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.panel-head,
.code-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-kicker {
  color: var(--brand-strong);
  font-size: 0.84rem;
  font-weight: 640;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(239, 146, 50, 0.28);
  color: #9a5513;
  font-size: 0.84rem;
  font-weight: 620;
}

.timing-list,
.compact-list,
.bullet-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.timing-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.timing-list li {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(14, 127, 167, 0.08);
  border: 1px solid rgba(14, 127, 167, 0.12);
}

.timing-list code {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 620;
  white-space: normal;
  word-break: break-word;
}

.timing-list span {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-list li,
.bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
}

.compact-list li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.section {
  padding: 44px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 14ch;
}

.section-heading p {
  margin: 14px 0 0;
  max-width: 68ch;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.proof-card,
.wdc-card,
.exchange-card {
  padding: 24px;
}

.proof-card h3,
.wdc-card h3,
.exchange-card h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.proof-card p,
.exchange-card p,
.exchange-meta,
.exchange-link,
.wdc-card li {
  color: var(--ink-soft);
}

.proof-card p,
.exchange-card p {
  margin: 12px 0 0;
}

.exchange-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.exchange-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exchange-meta {
  font-size: 0.92rem;
}

.exchange-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 620;
}

.exchange-link:hover {
  color: var(--ink);
}

.split-grid,
.form-grid-shell,
.example-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 22px;
  align-items: start;
}

.list-panel {
  padding: 28px;
}

.bullet-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.wdc-card {
  display: grid;
  gap: 14px;
}

.wdc-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.wdc-card li {
  position: relative;
  padding-left: 18px;
}

.wdc-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.code-panel {
  background: #0e1d30;
  color: #edf7ff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 172, 209, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code-panel-head {
  padding: 20px 22px 0;
}

.copy-button {
  appearance: none;
  border: 1px solid rgba(237, 247, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #edf7ff;
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(237, 247, 255, 0.28);
}

.code-panel pre {
  margin: 0;
  padding: 10px 22px 26px;
  overflow-x: auto;
  font-size: 0.93rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.field-span-2 {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 580;
  color: var(--ink);
}

label span {
  font-size: 0.94rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border-radius: 16px;
  min-height: 52px;
  padding: 14px 15px;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
  min-height: 148px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(14, 127, 167, 0.38);
  box-shadow: 0 0 0 4px rgba(14, 127, 167, 0.10);
  background: #fff;
}

.form-footnote,
.form-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.4em;
}

.site-footer {
  padding: 34px 0 46px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  border-top: 1px solid rgba(17, 43, 69, 0.10);
  padding-top: 22px;
}

.brand-footer {
  font-size: 1.06rem;
}

.footer-copy {
  margin: 10px 0 0;
  max-width: 36ch;
}

.footer-links {
  display: grid;
  gap: 10px;
  text-align: right;
}

@media (max-width: 1080px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .split-grid,
  .form-grid-shell,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .section-heading h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .header-inner {
    padding: 10px 0;
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.96rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
  }

  .card-grid-4,
  .card-grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }

  .panel,
  .proof-card,
  .wdc-card,
  .exchange-card,
  .code-panel {
    border-radius: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    text-align: left;
  }
}
