:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #607069;
  --paper: #f5f4ee;
  --panel: #ffffff;
  --line: #d8ddd3;
  --forest: #15392f;
  --moss: #6d8b4f;
  --signal: #e2573e;
  --aqua: #18a0a6;
  --shadow: 0 26px 80px rgba(22, 32, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", "Songti SC", serif;
  background:
    linear-gradient(90deg, rgba(21, 57, 47, 0.055) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, rgba(21, 57, 47, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 33, 29, 0.16) 0.6px, transparent 0.6px);
  background-size: 5px 5px;
  opacity: 0.18;
  z-index: -1;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(245, 244, 238, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: #f8f3dc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.language-toggle {
  min-width: 48px;
  height: 34px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  font-weight: 800;
  cursor: pointer;
}

.hero-section {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  padding: clamp(56px, 9vw, 108px) clamp(18px, 7vw, 92px) 48px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  color: var(--signal);
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.04;
}

h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.hero-lede {
  max-width: 720px;
  margin: 26px 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 19px;
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions,
.site-header,
.release-facts,
.guide-layout,
.download-section,
.contact-strip {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--forest);
  color: #fbf7e7;
  box-shadow: 0 14px 28px rgba(21, 57, 47, 0.24);
}

.button.secondary {
  border: 1px solid var(--forest);
  color: var(--forest);
}

.button.full {
  width: 100%;
}

.release-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 34px 0 0;
}

.release-facts div,
.text-panel,
.download-card,
.command-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.release-facts div {
  padding: 14px;
  border-radius: 8px;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.network-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  padding: 22px;
  background: #10241f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #f5f4ee;
}

.network-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 38px 38px;
  opacity: 0.6;
}

.network-toolbar,
.node-row,
.signal-grid {
  position: relative;
}

.network-toolbar {
  display: flex;
  gap: 8px;
}

.network-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f26a4f;
}

.network-toolbar span:nth-child(2) {
  background: #f4bd4f;
}

.network-toolbar span:nth-child(3) {
  background: #57c06f;
}

.node-row {
  display: grid;
  grid-template-columns: 1fr minmax(70px, 0.5fr) 1fr;
  align-items: center;
  min-height: 280px;
}

.node {
  padding: 20px;
  background: rgba(245, 244, 238, 0.08);
  border: 1px solid rgba(245, 244, 238, 0.18);
  border-radius: 8px;
}

.node-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(245, 244, 238, 0.68);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}

.node strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(15px, 2vw, 19px);
}

.node em {
  color: #ff8066;
  font-style: normal;
}

.pulse-line {
  height: 2px;
  background: rgba(245, 244, 238, 0.24);
  overflow: hidden;
}

.pulse-line span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--signal);
  animation: pulseRoute 2.8s linear infinite;
}

@keyframes pulseRoute {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.signal-grid div {
  padding: 14px;
  border: 1px solid rgba(245, 244, 238, 0.13);
  border-radius: 8px;
  background: rgba(245, 244, 238, 0.07);
}

.signal-grid span {
  display: block;
  color: rgba(245, 244, 238, 0.62);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
}

.signal-grid strong {
  display: block;
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.section {
  padding: clamp(64px, 9vw, 110px) clamp(18px, 7vw, 92px);
}

.compact-section {
  padding-top: clamp(42px, 6vw, 78px);
  padding-bottom: clamp(48px, 7vw, 86px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 32px;
}

.visual-section {
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(48px, 7vw, 86px);
}

.site-graphic {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 54px rgba(22, 32, 28, 0.10);
}

.site-graphic img {
  display: block;
  width: 100%;
  height: auto;
}

.process-grid,
.quick-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.process-card,
.quick-steps li {
  min-height: 286px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.process-card span,
.quick-steps span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
}

.process-card h3,
.quick-steps h3 {
  font-size: 26px;
  line-height: 1.18;
}

.process-card p,
.quick-steps p {
  margin: 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

.process-card.dark-card {
  background: #10241f;
  color: #f5f4ee;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.process-card.dark-card p {
  color: rgba(245, 244, 238, 0.72);
}

.quick-steps {
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.insight-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.insight-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

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

.text-panel,
.compat-grid article {
  min-height: 230px;
  padding: 28px;
  border-radius: 8px;
}

.text-panel p,
.highlight-card p,
.insight-grid p,
.compat-grid p,
.workflow p,
.guide-list p,
.download-section p,
.command-card p,
.contact-strip p {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
  color: var(--muted);
}

.highlight-section {
  padding-top: 42px;
}

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

.highlight-card,
.compat-grid article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.highlight-card {
  min-height: 260px;
  padding: 24px;
  border-radius: 8px;
}

.highlight-card span {
  display: block;
  margin-bottom: 28px;
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

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

.dark-band {
  background: var(--forest);
  color: #f6f1df;
}

.dark-band .eyebrow {
  color: #ff9c78;
}

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

.workflow article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(245, 244, 238, 0.18);
  border-radius: 8px;
  background: rgba(245, 244, 238, 0.06);
}

.workflow span {
  display: block;
  margin-bottom: 34px;
  color: #ff9c78;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.workflow p {
  color: rgba(246, 241, 223, 0.72);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 20px;
  align-items: start;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: guide;
}

.guide-list li {
  counter-increment: guide;
  position: relative;
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-list li::before {
  content: counter(guide, decimal-leading-zero);
  display: block;
  margin-bottom: 24px;
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.guide-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.command-card {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: 8px;
}

.command-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.command-card code {
  display: block;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #10241f;
  color: #f7f1d6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.45fr);
  gap: 32px;
  align-items: center;
}

.download-card {
  padding: 24px;
  border-radius: 8px;
}

.download-card dl {
  margin: 18px 0 0;
}

.download-card div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.download-card div:last-child {
  border-bottom: 0;
}

.hash {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 44px clamp(18px, 7vw, 92px);
  background: #ebe7dc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-strip a {
  color: var(--forest);
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 900;
  text-decoration-thickness: 2px;
}

.contact-email {
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 7vw, 92px);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero-section,
  .split-grid,
  .highlight-grid,
  .insight-grid,
  .process-grid,
  .quick-steps,
  .workflow,
  .guide-layout,
  .compat-grid,
  .download-section {
    grid-template-columns: 1fr;
  }

  .network-card {
    min-height: 390px;
  }

  .command-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-section {
    padding-top: 42px;
  }

  .release-facts,
  .guide-list,
  .signal-grid,
  .node-row {
    grid-template-columns: 1fr;
  }

  .pulse-line {
    width: 2px;
    height: 54px;
    margin: 0 auto;
  }

  .pulse-line span {
    width: 100%;
    height: 42%;
    animation: pulseDown 2.8s linear infinite;
  }

  @keyframes pulseDown {
    0% { transform: translateY(-120%); }
    100% { transform: translateY(260%); }
  }

  .contact-strip,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-email {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
