:root {
  color-scheme: light;
  --bg: #f6f9fe;
  --panel: #fff;
  --line: #d7e2f1;
  --text: #142344;
  --muted: #485d7b;
  --blue: #234fa6;
  --blue-strong: #163d8c;
  --tint: #edf4ff;
  --shadow: 0 10px 30px #274e8510;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button[hidden], [hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul { padding: 0; margin: 0; list-style: none; }
code, .mono { font-family: var(--mono); }
section[id] { scroll-margin-top: 104px; }
:focus-visible { outline: 2px solid #2460c8; outline-offset: 4px; }
::selection { background: #cfe1ff; color: var(--text); }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px 15px; background: var(--text); color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: #fffffff5; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); }
.header-row { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.brand img { filter: drop-shadow(0 2px 3px #3b63a52c); }
.brand-slash { margin-inline: 9px; color: #52698f; font-weight: 400; }
.brand-terra { color: var(--blue); }
.header-row > #navigation, .footer-row nav { display: flex; gap: clamp(18px, 3vw, 42px); align-items: center; }
#navigation a, .footer-row nav a, .top-link { color: var(--muted); font-size: 14px; font-weight: 550; }
#navigation a:hover, .footer-row nav a:hover, .top-link:hover { color: var(--text); }
.language { justify-self: end; align-self: center; display: inline-flex; width: fit-content; height: 38px; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); }
.language a, .language button, .examples button { border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.language a, .language button { display: inline-flex; flex: 0 0 39px; justify-content: center; align-items: center; width: 39px; min-width: 39px; height: 30px; min-height: 30px; padding: 0; line-height: 1; font: 700 12px var(--mono); }
.language a[aria-current="page"], .language button[aria-pressed="true"], .examples button[aria-pressed="true"] { color: var(--blue-strong); background: #dce9ff; }
.menu-button { display: none; }

.menu-dialog {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--text);
}
.menu-dialog[open] { display: flex; justify-content: center; align-items: center; }
.menu-dialog::backdrop { background: #14234480; backdrop-filter: blur(3px); }
:root:has(.menu-dialog[open]) { overflow: hidden; }
.menu-panel {
  width: min(100%, 390px);
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 20px 60px #1423443b;
}
.menu-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.menu-panel-header h2 { padding-inline: 8px; font-size: 20px; }
.menu-panel-header h2:focus { outline: none; }
.menu-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--tint); color: var(--blue-strong); }
.menu-panel nav { display: grid; gap: 4px; }
.menu-panel nav a { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; border-radius: 8px; font-weight: 650; }
.menu-panel nav a:hover, .menu-panel nav a:focus-visible, .menu-close:hover { background: #dce9ff; }

.hero { min-height: 505px; position: relative; isolation: isolate; display: grid; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding: 58px 0 65px; max-width: 670px; }
.network-label, .eyebrow { display: flex; align-items: center; gap: 10px; font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-strong); }
.network-label { width: fit-content; padding: 7px 12px; border: 1px solid #c8d9f0; border-radius: 8px; background: var(--tint); }
.label-divider { width: 1px; height: 12px; background: #aabedb; }
.hero h1 { margin-top: 22px; font-size: clamp(43px, 5.2vw, 78px); font-weight: 760; line-height: 1.03; letter-spacing: -.065em; }
.hero-accent { color: #2456b4; }
.hero-description { max-width: 460px; margin-top: 23px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.62; }
.hero-actions { margin-top: 29px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 720; transition: background .18s, border-color .18s, color .18s; }
.button .icon { width: 16px; height: 16px; }
.primary { color: #fff; background: #2055be; border-color: #2055be; box-shadow: 0 5px 20px #2055be2b; }
.primary:hover { background: #17418f; }
.secondary { color: var(--blue-strong); border-color: #b8cde9; background: #ffffffe8; }
.secondary:hover { border-color: #7c9ed5; background: var(--tint); }

.hero-visual { position: absolute; z-index: -1; inset: 0 -16px 0 41%; overflow: hidden; }
.hero-visual img { width: 100%; height: 104%; position: absolute; inset: 0; object-fit: cover; object-position: 56% 14%; mask-image: radial-gradient(ellipse 59% 78% at 54% 44%, black 54%, transparent 100%); }
.hero-grid { position: absolute; inset: 0; background: radial-gradient(ellipse at 62% 43%, #d7e8ff 0%, transparent 67%), linear-gradient(90deg, #7c9acc20 1px, transparent 1px), linear-gradient(#7c9acc20 1px, transparent 1px); background-size: auto, 39px 39px, 39px 39px; mask-image: radial-gradient(ellipse 59% 62% at 58% 51%, #000, transparent 97%); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), transparent 26%), linear-gradient(0deg, var(--bg), transparent 20%); }
.network { position: relative; }
.network-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(110deg, #eef5ff, #fff 65%); box-shadow: var(--shadow); }
.metric { min-width: 0; padding: 19px 24px 20px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric dt, .validator-metrics dt, .field-label { font-size: 12px; font-weight: 650; color: var(--muted); margin-bottom: 7px; }
.metric dd, .validator-metrics dd { font-size: 18px; font-weight: 720; font-variant-numeric: tabular-nums; }
.metric .mono { font-size: 17px; }
.metric a:hover { color: var(--blue); }
.token, .status { display: flex; align-items: center; gap: 9px; }
.status { width: fit-content; font-size: 15px; min-height: 23px; }
.status::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #667e9f; }
.status[data-state="healthy"]::before { background: #087d5c; box-shadow: 0 0 0 3px #087d5c18; }
.status[data-state="warning"]::before { background: #a56100; }

.section { margin-top: 76px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
h2 { font-size: clamp(34px, 4vw, 51px); line-height: 1.06; letter-spacing: -.052em; font-weight: 750; }
.section-head p, .validator-copy > p:not(.eyebrow), .api-copy > p:not(.eyebrow), .about > p { color: var(--muted); line-height: 1.62; font-size: 16px; margin-top: 12px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 222px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); transition: border-color .18s, background .18s, transform .18s; }
.tool-card:hover { border-color: #7c9ed5; transform: translateY(-3px); background: #fcfdff; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-arrow { color: #47658d; }
.tile { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 10px; border: 1px solid; }
.tile .icon { width: 23px; height: 23px; }
.wallet { color: #2453a9; background: #e8f0ff; border-color: #c9daf7; }
.explorer { color: #12627e; background: #e6f5fc; border-color: #c3e3f2; }
.api { color: #5944a3; background: #f0ecff; border-color: #ded5fb; }
.tool-card h3 { font-size: 23px; letter-spacing: -.035em; margin-top: 16px; }
.tool-card p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 8px 0 19px; }
.domain { font: 12px/1.4 var(--mono); color: var(--blue); overflow-wrap: anywhere; margin-top: auto; }

.validator-panel { padding: clamp(22px, 4vw, 45px); display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(20px, 5vw, 68px); align-items: center; border: 1px solid #c4d7f3; border-radius: 16px; background: radial-gradient(ellipse at 4% 0%, #dbeaff, transparent 75%), #eef5ff; }
.validator-copy h2, .api-copy h2 { margin-top: 10px; }
.validator-copy .button { margin-top: 22px; }
.validator-data { min-width: 0; padding: 16px; border: 1px solid #cbdcf2; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.field-label { display: block; }
.address-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.address-row code, .command code { min-width: 0; color: var(--blue-strong); overflow-wrap: anywhere; font-size: 12px; line-height: 1.65; }
.icon-button { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid #c3d6f2; border-radius: 8px; background: var(--tint); color: var(--blue-strong); }
.icon-button:hover { border-color: #7c9ed5; background: #dce9ff; }
.validator-metrics { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 15px; display: grid; gap: 10px; grid-template-columns: 1.35fr .85fr 1fr; }
.validator-metrics dd { font-size: clamp(14px, 1.5vw, 18px); overflow-wrap: anywhere; }
.source-link { margin-top: 13px; font-size: 12px !important; }

.api-section { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(20px, 5vw, 60px); align-items: center; }
.api-copy > .text-link { margin-top: 18px; }
.text-link { display: inline-flex; width: fit-content; gap: 6px; align-items: center; color: var(--blue); font-size: 14px; font-weight: 650; }
.text-link:hover, .mini-link:hover { color: var(--blue-strong); text-decoration: underline; }
.text-link .icon { width: 15px; height: 15px; }
.terminal { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.terminal-head { padding: 14px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: var(--tint); color: var(--blue-strong); font: 13px var(--mono); }
.terminal-head .icon { width: 16px; height: 16px; }
.examples { display: flex; flex-wrap: wrap; gap: 5px; padding: 12px 16px 0; }
.examples button { min-height: 36px; padding: 6px 10px; font-size: 13px; font-weight: 620; }
.examples button:hover, .language button:hover { color: var(--blue-strong); }
.command { display: flex; gap: 9px; align-items: center; padding: 13px 16px 10px; }
.command > span { align-self: center; color: #087d5c; font: 15px var(--mono); }
.command code { flex: 1; }
.terminal-link { margin: 0 16px 15px; }

.operator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.operator-heading { flex-wrap: wrap; }
.operator-heading .button { flex: none; }
.operator-panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.operator-panel h3 { margin-bottom: 13px; font-size: 20px; letter-spacing: -.025em; }
.chain-settings > div, .resources a { display: grid; align-items: center; gap: 8px; min-height: 42px; padding-block: 7px; border-top: 1px solid var(--line); font-size: 14px; }
.chain-settings > div { grid-template-columns: 1fr auto; }
.chain-settings dt { color: var(--muted); }
.chain-settings dd { text-align: right; }
.chain-settings code { font-size: 13px; color: var(--blue-strong); }
.resources a { grid-template-columns: 1fr auto; border-radius: 2px; }
.resources a:hover { color: var(--blue); }
.resources .icon { width: 14px; height: 14px; color: #47658d; }
.provider { color: var(--muted); font: 11px var(--mono); white-space: nowrap; }
.mini-link { color: var(--blue); font-size: 12px; margin-inline-start: 5px; }
.endpoints { margin-top: 16px; }
.endpoint-intro { margin: -5px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.endpoint-list li { display: grid; grid-template-columns: minmax(105px, .45fr) 1fr auto; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-block: 12px; font-size: 14px; }
.endpoint-address { color: var(--muted); overflow-wrap: anywhere; font: 13px/1.4 var(--mono); }
.about { display: grid; grid-template-columns: 1fr 1.75fr; column-gap: 30px; align-items: start; border-top: 1px solid var(--line); padding: 34px 0 40px; }
.about > div:first-child { display: flex; gap: 11px; align-items: center; }
.about > div img { flex: none; }
.about h2 { font-size: clamp(27px, 3vw, 37px); }
.about > p { margin: 0; }
.about-links { grid-column: 2; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px 23px; }
.site-footer { border-top: 1px solid var(--line); background: #eef4fc; }
.footer-row { min-height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 15px 24px; }
.footer-row .brand { font-size: 16px; }
.footer-row .brand .icon, .top-link .icon { width: 14px; height: 14px; color: var(--blue); }
.top-link { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.toast { position: fixed; z-index: 10; bottom: 20px; right: 20px; max-width: calc(100% - 40px); padding: 11px 16px; border: 1px solid #abc4ea; border-radius: 9px; background: #e4efff; color: var(--blue-strong); pointer-events: none; box-shadow: var(--shadow); }
.toast:empty { display: none; }

@media (max-width: 1030px) {
  .shell { width: calc(100% - 56px); }
  .hero { min-height: 445px; }
  .hero-copy { max-width: 580px; }
  .hero-visual { left: 40%; }
  .hero-visual img { object-position: 51% 12%; }
  .metric { padding-inline: 18px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .header-row { min-height: 64px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  #navigation { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; padding-bottom: 15px; gap: 9px 18px; }
  #navigation a { padding-block: 7px; }
  .header-row:has(.menu-button:not([hidden])) #navigation { display: none; }
  .menu-button { display: grid; place-items: center; width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; color: var(--blue-strong); background: var(--tint); border: 1px solid var(--line); border-radius: 9px; grid-column: 3; }
  .language { grid-column: 2; grid-row: 1; justify-self: end; height: 40px; }
  .language a, .language button { height: 32px; min-height: 32px; }
  .brand { font-size: 16px; gap: 6px; }
  .brand img { width: 28px; height: 31px; }
  .brand-slash { margin-inline: 5px; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { width: 100%; max-width: none; padding: 34px 0 0; }
  .hero h1 { font-size: clamp(37px, 7.6vw, 59px); margin-top: 16px; }
  .hero-description { margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
  .hero-visual { position: relative; inset: auto; width: 100%; height: clamp(210px, 57vw, 355px); margin-top: 1px; }
  .hero-visual img { height: 110%; object-position: 50% 12%; }
  .hero-visual::after { background: linear-gradient(0deg, var(--bg), transparent 29%); }
  .metric { padding: 15px 13px; }
  .metric dd, .metric .mono { font-size: 15px; }
  .status { font-size: 13px; }
  .section { margin-top: 53px; }
  .tool-grid { gap: 10px; }
  .tool-card { padding: 13px; min-height: 190px; }
  .tool-card h3 { font-size: 18px; }
  .tool-card p { font-size: 14px; }
  .validator-panel, .api-section, .operator-grid { grid-template-columns: 1fr; }
  .footer-row { padding-block: 15px; flex-wrap: wrap; }
  .about { grid-template-columns: 1fr; row-gap: 14px; }
  .about-links { grid-column: 1; margin-top: 0; }
}
@media (max-width: 520px) {
  .network-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 0; padding: 16px; }
  .tool-card h3 { margin-top: 11px; }
  .tool-card p { margin-bottom: 12px; }
  .tile { width: 40px; height: 40px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { gap: 6px; padding-inline: 10px; min-height: 44px; font-size: 13px; }
  .operator-panel { padding: 16px; }
  .endpoint-list li { grid-template-columns: 1fr auto; }
  .endpoint-list .provider { grid-column: 2; grid-row: 1; }
  .endpoint-address { grid-column: 1 / -1; }
  .footer-row nav { order: 3; width: 100%; flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .hero-actions { display: grid; grid-template-columns: min(100%, 180px); justify-content: center; }
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
