:root {
  color-scheme: light;
  --background: #f8fbff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --muted: #eef6ff;
  --muted-foreground: #52657a;
  --border: #d9e8f8;
  --primary: #0033ad;
  --primary-foreground: #ffffff;
  --accent: #1b75bc;
  --accent-soft: #e6f2ff;
  --ring: #1b75bc;
  --code: #0b1f3a;
  --shadow: 0 14px 36px rgba(14, 75, 140, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
}

.brand-name {
  font-weight: 750;
}

.brand-kicker,
.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  border-radius: 8px;
  color: var(--muted-foreground);
  padding: 10px 12px;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-soft);
  color: var(--primary);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  padding: 6px 10px;
}

.content {
  min-width: 0;
  padding: 40px clamp(20px, 4vw, 64px) 64px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  min-width: 0;
  padding-bottom: 34px;
}

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

h1 {
  max-width: 880px;
  font-size: 4rem;
  line-height: 1.04;
  margin-bottom: 18px;
}

h2 {
  font-size: 2.35rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.lede {
  max-width: 820px;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.quick-links,
.media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 650;
  min-width: 0;
  padding: 10px 14px;
  text-decoration: none;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.button.secondary {
  background: var(--card);
  color: var(--primary);
}

.tutorial-path {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tutorial-path span,
.tutorial-path a {
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  padding: 8px 12px;
}

.tutorial-path span {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 750;
}

.tutorial-path a {
  background: var(--card);
  color: var(--primary);
  font-weight: 650;
  text-decoration: none;
}

.section {
  min-width: 0;
  padding: 44px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.card,
.command-card,
.step {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  min-width: 0;
}

.card,
.step {
  padding: 22px;
}

.card p,
.step p,
.section-heading p,
.two-column p {
  color: var(--muted-foreground);
}

.card a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.repo-map {
  margin-top: 18px;
}

.wide {
  max-width: 1080px;
}

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

.command-card {
  overflow: hidden;
}

pre {
  overflow: auto;
  margin: 0;
  background: var(--code);
  color: #e7f4ff;
  padding: 18px;
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.callout {
  border-left: 4px solid var(--accent);
  background: var(--muted);
  color: #24435f;
  margin-top: 16px;
  padding: 14px 16px;
}

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

.issue-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 20px;
}

.issue-label {
  color: var(--accent);
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.fix-list {
  color: var(--muted-foreground);
  margin: 10px 0 0;
  padding-left: 20px;
}

.fix-list li + li {
  margin-top: 8px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.check-list span {
  border-left: 4px solid var(--accent);
  background: var(--muted);
  color: #24435f;
  padding: 12px 14px;
}

.check-list strong {
  color: var(--foreground);
}

.network-note {
  margin-top: 22px;
}

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

.network-options article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  min-width: 0;
  padding: 16px;
}

.network-options h4 {
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.network-options p {
  color: var(--muted-foreground);
  margin: 0 0 8px;
}

.network-options p:last-child {
  margin-bottom: 0;
}

.command-note {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #102a4b;
  color: #d6ecff;
  font-size: 0.9rem;
  padding: 14px 18px;
}

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

.term-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 20px;
}

.term-card p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.term-card a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.term-card a:hover,
.tutorial-path a:hover {
  text-decoration: underline;
}

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

.step-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
  margin-bottom: 14px;
}

.tutorial-flow {
  display: grid;
  gap: 18px;
}

.walkthrough-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(280px, 440px);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 18px;
}

.walkthrough-card p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.walkthrough-shot {
  box-shadow: none;
  margin: 0;
}

.video-page-section {
  max-width: 1040px;
}

.single-video {
  margin: 0;
  max-width: 960px;
}

.single-video video {
  display: block;
  width: 100%;
  aspect-ratio: 80 / 61;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #1f2534;
  object-fit: contain;
}

.single-video figcaption {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 820px;
  padding-top: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.shot {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.shot:focus-visible,
.button:focus-visible,
.nav-link:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
}

.shot span {
  display: block;
  color: var(--foreground);
  font-weight: 650;
  padding: 10px 2px 2px;
}

.featured-media {
  margin-bottom: 18px;
}

.image-dialog {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
  max-width: min(1180px, 94vw);
  padding: 12px;
}

.image-dialog::backdrop {
  background: rgba(9, 21, 39, 0.62);
}

.image-dialog img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 6px;
}

.dialog-close {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--primary);
  cursor: pointer;
  font-weight: 650;
  margin-bottom: 10px;
  padding: 8px 12px;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .topbar,
  .two-column {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .timeline,
  .term-grid,
  .troubleshooting-grid,
  .network-options,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .walkthrough-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .walkthrough-shot {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .content {
    padding: 24px 16px 44px;
  }

  .button {
    flex: 1 1 100%;
  }

  .grid.three,
  .timeline,
  .term-grid,
  .troubleshooting-grid,
  .network-options,
  .gallery,
  .nav-list {
    grid-template-columns: 1fr;
  }

  .walkthrough-card {
    grid-template-columns: 1fr;
  }

  .walkthrough-card .step-index {
    margin-bottom: 0;
  }
}

/* Public proposal landing page */

.landing-page {
  background: #f5f8f7;
  color: #10211d;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  background: #ffffff;
  color: #082c6c;
  padding: 10px 14px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-hero {
  position: relative;
  display: flex;
  min-height: 88svh;
  overflow: hidden;
  background-color: #071c33;
  color: #ffffff;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(5, 18, 32, 0.18);
}

.hero-ecosystem-art {
  position: absolute;
  top: 142px;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 86px;
  z-index: 1;
  width: min(42vw, 510px);
  pointer-events: none;
}

.hero-ecosystem-art img {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.24));
}

.ecosystem-cardano {
  top: 0;
  right: 28px;
  width: 250px;
  height: 232px;
  opacity: 0.9;
}

.ecosystem-catalyst {
  bottom: 78px;
  left: 12px;
  width: 142px;
  height: 142px;
}

.ecosystem-adao {
  right: 8px;
  bottom: 18px;
  width: 142px;
  height: 142px;
  border-radius: 4px;
}

.landing-nav {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  transform: translateX(-50%);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 760;
  text-decoration: none;
}

.landing-brand .brand-mark {
  background: #ffffff;
  color: #0033ad;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-links a,
.footer-links a {
  color: inherit;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.landing-nav-links a:hover,
.footer-links a:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 140px 0 118px;
}

.hero-eyebrow {
  margin-bottom: 18px;
  color: #7cf0c9;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 5rem;
  line-height: 0.98;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.35rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.hero-primary,
.button.hero-secondary {
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.52);
  color: #ffffff;
}

.button.hero-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #082c6c;
}

.button.hero-secondary {
  background: rgba(7, 28, 51, 0.36);
}

.button.hero-primary:hover,
.button.hero-secondary:hover {
  border-color: #7cf0c9;
}

.hero-signals {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-signals span {
  flex: 1 1 0;
}

.landing-section {
  padding: 92px 24px;
}

.landing-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.proposal-section {
  background: #ffffff;
}

.proposal-layout,
.audience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 80px;
  align-items: start;
}

.proposal-layout h2,
.audience-layout h2 {
  max-width: 560px;
}

.proposal-copy {
  border-top: 3px solid #24a77d;
  padding-top: 24px;
  color: #425b54;
  font-size: 1.08rem;
}

.proposal-copy p:last-child,
.implementation-copy p:last-child {
  margin-bottom: 0;
}

.capability-section {
  background: #edf3f1;
}

.landing-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #bccdc7;
}

.capability-item {
  min-width: 0;
  border-right: 1px solid #bccdc7;
  padding: 28px 26px 6px 0;
}

.capability-item + .capability-item {
  padding-left: 26px;
}

.capability-item:last-child {
  border-right: 0;
}

.capability-number {
  display: block;
  margin-bottom: 28px;
  color: #14785d;
  font-size: 0.8rem;
  font-weight: 800;
}

.capability-item h3 {
  font-size: 1.3rem;
}

.capability-item p {
  color: #526860;
}

.implementation-section {
  background: #ffffff;
}

.implementation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 72px;
  align-items: center;
}

.implementation-copy p {
  color: #526860;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.plain-list li {
  border-top: 1px solid #d3dfdb;
  padding-top: 10px;
}

.text-link {
  color: #0033ad;
  font-weight: 760;
  text-decoration: none;
}

.product-figure {
  margin: 0;
}

.product-figure img {
  display: block;
  width: 100%;
  border: 1px solid #cedbd7;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(14, 43, 34, 0.15);
}

.product-figure figcaption {
  margin-top: 12px;
  color: #6a7d76;
  font-size: 0.82rem;
}

.audience-section {
  background: #102925;
  color: #ffffff;
}

.audience-section .eyebrow {
  color: #7cf0c9;
}

.audience-list {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.audience-list div {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 22px 0;
}

.audience-list span {
  color: rgba(255, 255, 255, 0.72);
}

.resource-section {
  background: #f5f8f7;
}

.resource-links {
  border-top: 1px solid #afc4bc;
}

.resource-links a {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #afc4bc;
  color: #10211d;
  padding: 18px 0;
  text-decoration: none;
}

.resource-links a:hover {
  color: #0033ad;
}

.resource-links a > span:first-child {
  display: grid;
  gap: 3px;
}

.resource-links strong {
  font-size: 1.08rem;
}

.resource-links small {
  color: #5d716a;
  font-size: 0.91rem;
}

.resource-links a > span:last-child {
  color: #14785d;
  font-size: 1.5rem;
}

.landing-footer {
  background: #071c33;
  color: #ffffff;
  padding: 34px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-inner > div:first-child {
  display: grid;
  gap: 2px;
}

.footer-inner span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 980px) {
  .landing-hero h1 {
    font-size: 4rem;
  }

  .proposal-layout,
  .implementation-layout,
  .audience-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

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

  .capability-item:nth-child(2) {
    border-right: 0;
  }

  .capability-item:nth-child(n + 3) {
    border-top: 1px solid #bccdc7;
  }
}

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

  h2 {
    font-size: 1.75rem;
  }

  .landing-hero {
    min-height: 86svh;
  }

  .landing-hero .hero-shade {
    background: rgba(5, 18, 32, 0.1);
  }

  .hero-ecosystem-art {
    top: auto;
    right: 16px;
    bottom: 72px;
    left: 16px;
    display: flex;
    width: auto;
    height: 92px;
    align-items: center;
    justify-content: space-around;
  }

  .hero-ecosystem-art img {
    position: static;
    width: 76px;
    height: 76px;
  }

  .ecosystem-cardano {
    opacity: 0.88;
  }

  .landing-nav {
    width: calc(100% - 32px);
    min-height: 72px;
  }

  .landing-brand > span:last-child {
    display: none;
  }

  .landing-brand .brand-mark {
    width: 38px;
    height: 38px;
  }

  .landing-nav-links {
    gap: 16px;
  }

  .landing-nav-links a {
    font-size: 0.84rem;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 112px 0 126px;
  }

  .landing-hero h1 {
    font-size: 2.8rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .hero-signals {
    width: calc(100% - 32px);
    gap: 10px;
    justify-content: space-between;
    font-size: 0.68rem;
    line-height: 1.3;
    text-align: center;
  }

  .landing-section {
    padding: 64px 16px;
  }

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

  .capability-item,
  .capability-item + .capability-item {
    border-top: 1px solid #bccdc7;
    border-right: 0;
    padding: 24px 0 12px;
  }

  .capability-item:first-child {
    border-top: 0;
  }

  .capability-number {
    margin-bottom: 12px;
  }

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

  .resource-links a {
    align-items: flex-start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell .sidebar {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    gap: 16px;
    padding: 16px;
  }

  .app-shell .nav-list {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .app-shell .nav-link {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    padding: 8px 10px;
    white-space: nowrap;
  }

  .app-shell .sidebar-footer {
    display: none;
  }

  .app-shell .content {
    width: 100%;
  }
}
