:root {
  font-family: "Avenir Next", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  color: #e9f5ed;
  background: #080d0b;
  font-synthesis: none;
  --bg: #080d0b;
  --surface: #0e1713;
  --surface-strong: #132019;
  --text: #e9f5ed;
  --muted: #8ea096;
  --line: rgba(233, 245, 237, 0.12);
  --accent: #b9ed72;
  --accent-ink: #14200f;
  --danger: #ff928a;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 82% 12%, rgba(185, 237, 114, 0.1), transparent 28rem), var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-shell { min-height: 100dvh; }
.site-header { width: min(1320px, calc(100% - 64px)); height: 72px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-weight: 760; letter-spacing: -0.03em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-ink); background: var(--accent); font-weight: 900; }
.brand-name { font-size: 17px; }
.network-label { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; }
nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 13px; }
nav a { transition: color 180ms ease; }
nav a:hover { color: var(--text); }
.language { justify-self: end; }
.language select { padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--text); background: var(--surface); font-size: 11px; }
main { width: min(1220px, calc(100% - 64px)); margin: 0 auto; }
.hero { min-height: calc(100dvh - 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr); align-items: center; gap: clamp(56px, 8vw, 120px); padding: 70px 0; }
.eyebrow { margin: 0 0 17px; color: var(--accent); font: 750 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(48px, 6.1vw, 82px); line-height: 0.98; letter-spacing: -0.065em; }
.hero-lead { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 11px; margin-top: 32px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 9px; font-weight: 760; font-size: 13px; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button.primary { color: var(--accent-ink); background: var(--accent); }
.button.secondary { color: var(--text); border-color: var(--line); background: rgba(14, 23, 19, 0.62); }
.hero-note { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 0; color: #708178; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-note strong { color: #aabbb1; font-weight: 600; }
.separator { color: #3b4941; }
.network-console { min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; border: 1px solid rgba(185, 237, 114, 0.2); border-radius: var(--radius) var(--radius) var(--radius) 3px; background: linear-gradient(150deg, rgba(19, 32, 25, 0.96), rgba(9, 15, 12, 0.98)); box-shadow: 18px 18px 0 rgba(185, 237, 114, 0.05); }
.console-head { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.09em; text-transform: uppercase; }
.health { color: var(--accent); }
.health.error { color: var(--danger); }
.height-block span, .network-metrics span { display: block; color: var(--muted); font-size: 11px; }
.height-block strong { display: block; margin-top: 8px; overflow: hidden; color: var(--text); font: 650 clamp(56px, 7vw, 92px) ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.08em; }
.height-block strong.changed { animation: block-change 420ms cubic-bezier(0.16, 1, 0.3, 1); }
.network-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.network-metrics strong { display: block; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; color: var(--text); font: 600 17px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.block-stream { height: 40px; display: flex; align-items: end; gap: 7px; }
.block-stream i { flex: 1; height: 8px; border-radius: 2px 2px 0 0; background: var(--accent); opacity: 0.25; animation: stream 1.6s ease-in-out infinite alternate; }
.block-stream i:nth-child(2), .block-stream i:nth-child(7) { height: 15px; animation-delay: 160ms; }
.block-stream i:nth-child(3), .block-stream i:nth-child(6) { height: 27px; animation-delay: 320ms; }
.block-stream i:nth-child(4) { height: 18px; animation-delay: 480ms; }
.block-stream i:nth-child(5) { height: 34px; animation-delay: 640ms; }
.access { padding: 100px 0; border-top: 1px solid var(--line); }
.section-copy { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 50px; align-items: start; margin-bottom: 50px; }
.section-copy h2, .faucet h2 { margin-bottom: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.055em; }
.service-list { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 12px; }
.service { min-height: 210px; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14, 23, 19, 0.68); transition: transform 180ms ease, border-color 180ms ease; }
a.service:hover { transform: translateY(-3px); border-color: rgba(185, 237, 114, 0.4); }
.service.primary-service { grid-row: span 2; min-height: 432px; justify-content: flex-end; background: var(--accent); color: var(--accent-ink); }
.service > span { color: var(--muted); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.09em; }
.primary-service > span { color: rgba(20, 32, 15, 0.65); }
.service strong { max-width: 480px; margin-top: auto; font-size: 22px; line-height: 1.35; letter-spacing: -0.035em; }
.primary-service strong { margin-top: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.03; }
.service b { margin-top: 24px; font-size: 12px; }
.service.unavailable { opacity: 0.55; }
.faucet { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(48px, 10vw, 140px); align-items: center; padding: 110px 0; border-top: 1px solid var(--line); }
.faucet-copy > p:not(.eyebrow) { max-width: 500px; margin: 24px 0 34px; color: var(--muted); line-height: 1.7; }
.faucet dl { margin: 0; }
.faucet dl div { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.faucet dt { color: var(--muted); font-size: 12px; }
.faucet dd { margin: 0; font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.faucet-form { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faucet-form label { display: block; font-weight: 700; font-size: 13px; }
.field-help { margin: 7px 0 19px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.faucet-form input { width: 100%; height: 54px; padding: 0 15px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--text); background: #09100d; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.faucet-form input:focus { border-color: rgba(185, 237, 114, 0.62); box-shadow: inset 0 0 0 1px rgba(185, 237, 114, 0.25); }
.faucet-form .button { width: 100%; margin-top: 12px; }
.faucet-form .button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.form-message { min-height: 44px; margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.form-message.success { color: var(--accent); }
.form-message.error { color: var(--danger); }
footer { width: min(1320px, calc(100% - 64px)); margin: 0 auto; display: flex; gap: 24px; padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
footer span { margin-right: auto; color: var(--text); }

@keyframes block-change { from { opacity: 0.25; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stream { to { opacity: 0.85; transform: scaleY(1.18); } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding: 72px 0 90px; }
  .network-console { max-width: 660px; }
  .section-copy { grid-template-columns: 1fr; gap: 4px; }
  .faucet { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: calc(100% - 32px); }
  .site-header { height: 66px; }
  .brand-name { font-size: 15px; }
  .hero { min-height: 0; padding: 54px 0 70px; }
  h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .network-console { min-height: 370px; padding: 22px; box-shadow: 10px 10px 0 rgba(185, 237, 114, 0.05); }
  .network-metrics { grid-template-columns: 1fr 1fr; }
  .network-metrics > div:last-child { grid-column: 1 / -1; }
  .access, .faucet { padding: 74px 0; }
  .service-list { grid-template-columns: 1fr; }
  .service.primary-service { grid-row: auto; min-height: 300px; }
  .service { min-height: 190px; }
  .faucet-form { padding: 22px 17px; }
  footer { align-items: flex-start; flex-wrap: wrap; gap: 12px 18px; }
  footer span { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
