@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400..800;1,400..800&display=swap");

/* etox.io — marketing (light surfaces, purple accent) */
:root {
  --bg: #f1f5f9;
  --bg-page: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0a0a0a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --accent: #5b3df5;
  --accent-hover: #4c32d4;
  --accent-soft: #f4f0ff;
  --accent-border: #ddd6fe;
  --accent-muted: #7c6aed;
  --gradient-hero: linear-gradient(105deg, #2563eb 0%, #06b6d4 42%, #10b981 100%);
  --success: #047857;
  --success-soft: #ecfdf5;
  --success-border: #a7f3d0;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --warn-border: #fde68a;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --footer-heading: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-card: 0 1px 0 rgba(15, 23, 42, 0.04), 0 12px 40px rgba(91, 61, 245, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 72rem;
  --space: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  z-index: 100;
}
.skip:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  left: var(--space);
  top: var(--space);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  overflow: visible;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}

.site-header--scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.875rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-main {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    padding-bottom: 0.2rem;
    margin-top: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, #000 0.75rem, #000 calc(100% - 0.75rem), transparent);
  }
  .nav-main::-webkit-scrollbar {
    display: none;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
}
.logo-mark {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #6366f1 0%, #7c3aed 55%, #a855f7 100%);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(91, 61, 245, 0.35);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.nav-main a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5625rem 1.125rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(91, 61, 245, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 2px 12px rgba(91, 61, 245, 0.35);
}
.btn-dark {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.btn-dark:hover {
  background: #262626;
  border-color: #262626;
  color: #fff;
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--text-tertiary);
  background: var(--surface-muted);
  color: var(--text);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--space);
}

/* Homepage */
main.main--home {
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  max-width: none;
  padding-left: var(--space);
  padding-right: var(--space);
}

main.main--home .hero--featured {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.main--home .hero {
  margin-bottom: 0;
}

.hero--featured {
  text-align: center;
  padding: clamp(1rem, 2.5vw, 1.75rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  position: relative;
  overflow: hidden;
}

.hero--featured::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: -60%;
  height: 120%;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(91, 61, 245, 0.14), transparent 58%),
    radial-gradient(ellipse 40% 35% at 85% 25%, rgba(6, 182, 212, 0.1), transparent 50%),
    radial-gradient(ellipse 35% 30% at 15% 40%, rgba(16, 185, 129, 0.07), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.hero--featured > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes heroFadeUp {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero--featured .hero-title {
    animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero--featured .hero-lead {
    animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }
  .hero--featured .hero-actions {
    animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
  }
  .hero--featured .hero-search-wrap {
    animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }
  .hero--featured .badge-row {
    animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
  }

  .chain-grid .chain-card:nth-child(1) {
    animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
  }
  .chain-grid .chain-card:nth-child(2) {
    animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  }
  .chain-grid .chain-card:nth-child(3) {
    animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.19s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--featured .hero-title,
  .hero--featured .hero-lead,
  .hero--featured .hero-actions,
  .hero--featured .hero-search-wrap,
  .hero--featured .badge-row,
  .chain-grid .chain-card {
    animation: none !important;
  }
}

.hero-title {
  margin: 0 0 0.875rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
}

.hero-title-primary {
  color: var(--accent);
}

.hero-title-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1:not(.hero-title) {
  margin: 0 0 1.125rem;
  font-size: clamp(1.875rem, 4.2vw, 2.625rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text);
  max-width: 24ch;
}
@media (min-width: 720px) {
  .hero h1:not(.hero-title) {
    max-width: none;
  }
}

.hero-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 0.75rem;
}

.hero-lead {
  margin: 0 auto 1.125rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 36rem;
  line-height: 1.6;
}

.hero--featured .hero-lead {
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.hero--featured .badge-row {
  justify-content: center;
  margin-top: 0.75rem;
}

.hero-search-wrap {
  max-width: min(24rem, 100%);
  margin: 0 auto;
  position: relative;
}

.hero-search-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  background: var(--text-tertiary);
  opacity: 0.5;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  pointer-events: none;
}

.hero-search {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1.125rem;
  font: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-search::placeholder {
  color: var(--text-tertiary);
}

.section-popular {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.section-popular .section-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-popular .section-title {
    text-align: left;
  }
}

.chain-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.chain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.chain-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--accent-border);
}

@media (prefers-reduced-motion: no-preference) {
  .chain-card:hover {
    transform: translateY(-3px);
  }
}

.chain-url-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.chain-url-row .chain-url-field {
  flex: 1;
  min-width: 0;
}

.chain-url-copy {
  flex-shrink: 0;
  align-self: stretch;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chain-url-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.chain-url-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chain-search-empty {
  margin: 1rem 0 0;
  padding: 1rem 1.125rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.chain-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem 0.75rem;
}

.chain-card-name {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.chain-card-name h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.chain-card-name h3 a {
  color: inherit;
  text-decoration: none;
}

.chain-card-name h3 a:hover {
  color: var(--accent);
}

.tag-evm {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.chain-card-rps {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  text-align: right;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--text-tertiary);
  max-width: 11rem;
}

.chain-card-rps strong {
  display: block;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
}

.chain-card-rps a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
}
.chain-card-rps a:hover {
  color: var(--accent-hover);
}

.chain-url-field {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-secondary);
  word-break: break-all;
}

.chain-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.chain-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.chain-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.chain-status-dot--soon {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.chain-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.chain-card-actions a.link-docs {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.chain-card-actions a.link-docs:hover {
  color: var(--accent);
}

.chain-card-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

main.main--home .section-head,
main.main--home .grid-3,
main.main--home .table-wrap,
main.main--home .cta-band {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

main.main--home .section-head {
  text-align: left;
}

.footer-inner:has(.footer-brand) .footer-brand {
  flex: 1 1 17rem;
  min-width: 0;
  max-width: 26rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.footer-nav-col {
  flex: 0 1 auto;
  min-width: 10.5rem;
}

@media (max-width: 699px) {
  .footer-inner:has(.footer-brand) .footer-brand {
    flex-basis: 100%;
    max-width: none;
  }
  .footer-nav {
    width: 100%;
  }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--footer-text);
  max-width: 22rem;
}

.footer-legal-entity {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--footer-text);
  max-width: 22rem;
}
.footer-legal-entity a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.footer-legal-entity a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

@media (max-width: 540px) {
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-legal-links {
    justify-content: flex-start;
  }
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.5rem;
}

.footer-legal-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.8125rem;
  padding: 0.15rem 0;
}

.footer-legal-links a[aria-current="page"] {
  color: #f1f5f9;
  font-weight: 500;
}

.footer-legal-links a:hover {
  color: #fff;
}

/* ===== Pricing page ===== */
main.main--pricing {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;
  padding-bottom: 0;
}

/* Hero */
.pr-hero {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) var(--space) clamp(2rem, 5vw, 3rem);
}

.pr-hero__title {
  margin: 0 0 0.625rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

.pr-hero__sub {
  margin: 0 auto 1.125rem;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.pr-hero__guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #047857;
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  border-radius: 999px;
}

.pr-hero__guarantee svg {
  flex-shrink: 0;
}

/* Billing toggle */
.pr-toggle {
  display: inline-flex;
  margin: 1.5rem auto 0;
  padding: 0.25rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 0.125rem;
}

.pr-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pr-toggle label {
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-tertiary);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid transparent;
  user-select: none;
}

.pr-toggle input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pr-toggle input:checked + label {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.pr-toggle__save {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #059669;
}

.pr-toggle__save::before {
  content: "↗";
  font-size: 0.75rem;
}

/* Pricing cards */
.pr-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  padding: 0 var(--space);
}

@media (min-width: 640px) {
  .pr-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.pr-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s ease, border-color 0.2s ease;
  cursor: pointer;
}

.pr-card:hover {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.pr-card:focus {
  outline: none;
}

.pr-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Selected plan (click to compare) */
.pr-card--selected {
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(91, 61, 245, 0.08), 0 12px 48px rgba(91, 61, 245, 0.12);
  z-index: 2;
}

@media (min-width: 900px) {
  .pr-card--selected {
    padding: 2.25rem 1.75rem 2.5rem;
  }
}

/* Tier labels */
.pr-card__label {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 6px;
  margin-bottom: 0.875rem;
  width: fit-content;
}

.pr-card__label--free {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.pr-card__label--pro {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.pr-card__label--biz {
  background: #1e293b;
  color: #fff;
}

.pr-card__label--starter {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.pr-card__label--growth {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.pr-card__label--scale {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Badge (e.g. "Best Value") */
.pr-card__badge {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pr-card__badge::before {
  content: "↗";
  font-size: 0.7rem;
}

/* Price */
.pr-card__price {
  margin: 0 0 0.125rem;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.15;
}

.pr-card__price--custom {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.pr-card__price-suffix {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* CTA buttons */
.pr-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  margin: 0.75rem 0 1rem;
}

.pr-card__btn--outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.pr-card__btn--outline:hover {
  border-color: var(--text-tertiary);
  background: var(--surface-muted);
}

.pr-card__btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 61, 245, 0.3);
}

.pr-card__btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(91, 61, 245, 0.35);
  color: #fff;
}

.pr-card__btn--dark {
  background: #0f172a;
  color: #fff;
}

.pr-card__btn--dark:hover {
  background: #1e293b;
  color: #fff;
}

/* Description */
.pr-card__desc {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.pr-card__desc strong {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 2px;
}

/* Feature head */
.pr-card__feat-head {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}

.pr-card__feat-head em {
  font-style: italic;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Feature list */
.pr-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex: 1;
}

.pr-card__features li {
  position: relative;
  padding-left: 1.625rem;
  margin-bottom: 0.625rem;
  line-height: 1.45;
}

.pr-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  background: var(--accent-muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.pr-card__note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.55;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.pr-card__note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 2px;
}

.pr-card__note a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.pr-card__note strong {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 2px;
}

/* Trust */
.pr-trust {
  text-align: center;
  padding: 1.75rem 1rem 2rem;
  border-top: 1px solid var(--border);
}

.pr-trust__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pr-trust__badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pr-trust__badges svg {
  flex-shrink: 0;
}

/* Billing info */
.pr-billing-info {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pr-billing-info h2 {
  margin: 0 0 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pr-billing-info p {
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pr-billing-info p:last-child {
  margin-bottom: 0;
}

.pr-billing-info strong {
  color: var(--text);
  font-weight: 600;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge {
  display: inline-block;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.badge-live {
  background: var(--success-soft);
  border-color: var(--success-border);
  color: var(--success);
}
.badge-soon {
  background: var(--warn-soft);
  border-color: var(--warn-border);
  color: var(--warn);
}

.section-head {
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}
.section-intro {
  margin: 0;
  color: var(--text-secondary);
  max-width: 44rem;
  font-size: 0.9375rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card h2,
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.card h2 a,
.card h3 a {
  color: inherit;
  text-decoration: none;
}
.card h2 a:hover,
.card h3 a:hover {
  color: var(--accent);
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.card p + p {
  margin-top: 0.75rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th,
td {
  padding: 0.875rem 1.125rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--surface-muted);
  font-weight: 600;
  color: var(--text);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tr:last-child td {
  border-bottom: 0;
}
td {
  color: var(--text-secondary);
}
tbody tr:hover td {
  background: #fafbfc;
}

.prose {
  max-width: 46rem;
}
.prose > h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}
.prose h2 {
  margin: 2rem 0 0.625rem;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Legal pages (Terms, Privacy, Cookies) */
.legal-doc {
  padding-bottom: 2rem;
}
.legal-doc .legal-meta {
  margin: -0.25rem 0 1.75rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}
.legal-doc .legal-meta a {
  color: var(--accent);
  font-weight: 600;
}
.legal-doc .legal-meta a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}
.legal-doc .legal-lead {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.legal-doc .legal-lead p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
}
.legal-doc .legal-lead p:last-child {
  margin-bottom: 0;
}

/* (pricing note styles moved to .pr-billing-info) */

.cta-band {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-sm);
}
.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.cta-band p {
  margin: 0 0 1.125rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 40rem;
}

.site-footer {
  background: var(--footer-bg);
  border-top: none;
  padding: 2.75rem var(--space) 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 3rem);
  font-size: 0.875rem;
  color: var(--footer-text);
}
.footer-inner h3 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--footer-heading);
  font-weight: 600;
}
.footer-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-inner li {
  margin-bottom: 0.45rem;
  line-height: 1.45;
}
.footer-inner a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-inner a:hover {
  color: #fff;
}
.footer-bottom {
  max-width: var(--max);
  margin: 2.25rem auto 0;
  padding: 1.5rem var(--space) 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.8125rem;
  color: var(--footer-text);
}
.footer-copyright {
  color: var(--footer-text);
  line-height: 1.5;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb a:hover {
  color: var(--accent);
}

code,
.pre-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
}
.pre-block {
  display: block;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  color: var(--text);
  line-height: 1.5;
  font-size: 0.8125rem;
}

/* ===== Chain RPC landing pages ===== */
.main--chain {
  padding-top: 0;
}

.chain-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.5rem) var(--space) clamp(2rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--border);
}

.chain-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(91, 61, 245, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(6, 182, 212, 0.1), transparent 50%);
}

.chain-hero--eth {
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 55%, #f8fafc 100%);
}

.chain-hero--arb {
  background: linear-gradient(180deg, #ecfeff 0%, #ffffff 55%, #f8fafc 100%);
}

.chain-hero--arb::before {
  background-image: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(6, 182, 212, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(91, 61, 245, 0.1), transparent 50%);
}

.chain-hero--base {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 55%, #f8fafc 100%);
}

.chain-hero--poly {
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 55%, #f8fafc 100%);
}

.chain-hero--poly::before {
  background-image: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(124, 58, 237, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(91, 61, 245, 0.1), transparent 50%);
}

.chain-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.chain-hero__breadcrumb {
  margin-bottom: 1rem;
}

.chain-hero__breadcrumb a {
  color: var(--text-secondary);
}

.chain-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.chain-hero__title {
  margin: 0 0 0.875rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
  max-width: 52rem;
}

.chain-hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 44rem;
}

.chain-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.chain-stat-board {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .chain-stat-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.chain-stat {
  padding: 1rem 1.125rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.chain-stat__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
}

.chain-stat__mono {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  word-break: break-all;
}

.chain-stat__text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.chain-pill-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem var(--space);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}

.chain-pill-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chain-pill-nav a:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.chain-pill-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(91, 61, 245, 0.08);
}

.chain-feature-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

@media (min-width: 900px) {
  .chain-feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.chain-feature {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.chain-feature:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card);
}

.chain-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.chain-feature__title {
  margin: 0 0 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.chain-feature__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.chain-article-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--space) 0;
}

.chain-article.prose > h2:first-child {
  margin-top: 0;
}

.main--chain .cta-band {
  margin-top: clamp(2rem, 4vw, 3rem);
}
