:root {
  color-scheme: dark;
  --bg: #141210;
  --bg-elevated: #1c1916;
  --surface: #242019;
  --surface-hover: #2c2820;
  --text: #e8e4dc;
  --muted: #8a8478;
  --border: rgba(232, 228, 220, 0.08);
  --border-strong: rgba(232, 228, 220, 0.14);
  --accent: #d4954a;
  --accent-hover: #e0a85c;
  --accent-contrast: #141210;
  --terminal: #7db87a;
  --code-bg: #1a1714;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  font:
    0.85em "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
  color: var(--accent);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  font:
    600 13px/1 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
}

.brand-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-name strong {
  font-weight: 700;
}

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

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
  touch-action: manipulation;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-github svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* "Get started" duplicate inside the menu is mobile-only */
.nav-links .nav-menu-cta {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: visible;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 360px;
  max-width: 120vw;
  background: radial-gradient(
    closest-side,
    rgba(212, 149, 74, 0.1),
    transparent 72%
  );
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-bottom: 24px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 20px;
  max-width: 680px;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.accent-text {
  color: var(--accent);
}

.hero-sub {
  margin: 0 0 32px;
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
  width: 100%;
}

.badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.badges svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

/* ---------- Terminal / code windows ---------- */

.terminal {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green {
  background: #28c840;
}

.terminal-title {
  margin-left: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
}

.terminal-copy {
  margin-left: auto;
}

.code-block {
  margin: 0;
  padding: 20px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font:
    13.5px/1.75 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
  color: var(--text);
}

.code-line {
  white-space: pre;
  min-width: min-content;
}

.code-line .prompt {
  color: var(--terminal);
  user-select: none;
}

.code-line .cmd {
  color: var(--text);
}

.code-line .comment {
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 14px;
  max-width: 560px;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.section-lead {
  margin: 0 0 32px;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Use cases ---------- */

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

.use-cases li {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.use-cases li:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.use-case-index {
  display: block;
  margin-bottom: 10px;
  font:
    600 12px/1 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
  color: var(--muted);
}

.use-cases h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.use-cases p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

@media (min-width: 700px) {
  .use-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Reference ---------- */

.facts {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}

.facts div {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  background: var(--surface);
}

.facts dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

@media (min-width: 700px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Support / crypto ---------- */

.crypto-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crypto-item {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.crypto-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.crypto-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.crypto-network {
  font-size: 12px;
  color: var(--muted);
}

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

.crypto-address {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  overflow-x: auto;
  border-radius: 6px;
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.copy-btn:hover {
  background: var(--surface-hover);
}

.copy-btn--done {
  border-color: var(--terminal);
  color: var(--terminal);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0));
  font-size: 13px;
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
}

.footer-inner p {
  margin: 0;
}

.footer-link,
.footer-support a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: min(880px, calc(100% - 32px));
  }

  .nav-inner {
    gap: 12px;
    padding: 12px 0;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
  }

  .nav-links .nav-menu-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 8px;
    color: var(--accent-contrast);
    font-size: 14px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-glow {
    top: -80px;
    height: 360px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    align-self: stretch;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(28px, 8.5vw, 40px);
  }

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

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .terminal-bar {
    padding: 10px 12px;
    gap: 6px;
  }

  .code-block {
    padding: 16px;
    font-size: 12.5px;
    line-height: 1.7;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: clamp(22px, 6vw, 28px);
  }

  .use-cases li {
    padding: 20px;
  }

  .use-cases li:hover {
    transform: none;
  }

  .facts div {
    padding: 18px 20px;
  }

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

  .crypto-row {
    flex-direction: column;
    align-items: stretch;
  }

  .crypto-row .copy-btn {
    width: 100%;
  }

  .terminal-copy {
    padding-inline: 12px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(880px, calc(100% - 24px));
  }

  .brand-name {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .use-cases li:hover {
    transform: none;
  }
}

/* ---------- Light mode ---------- */

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f4ef;
    --bg-elevated: #fffcf7;
    --surface: #edeae3;
    --surface-hover: #e4e0d8;
    --text: #1a1814;
    --muted: #6b6560;
    --border: rgba(26, 24, 20, 0.1);
    --border-strong: rgba(26, 24, 20, 0.16);
    --accent: #b8762e;
    --accent-hover: #a56824;
    --accent-contrast: #fffcf7;
    --terminal: #4a7c47;
    --code-bg: #e8e4dc;
    --shadow: 0 12px 36px rgba(26, 24, 20, 0.08);
  }

  .nav {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
  }
}

