:root {
  color-scheme: dark;
  --bg: #070c0f;
  --bg-deep: #05090b;
  --surface: #0a1013;
  --surface-raised: #0f1619;
  --surface-hover: #151d20;
  --border: #303838;
  --border-subtle: #1b2427;
  --text: #f5f7f5;
  --text-soft: #c8cecb;
  --muted: #929b98;
  --dim: #899390;
  --green: #73cd67;
  --green-soft: #9adb91;
  --amber: #d6ad39;
  --danger: #ef7b74;
  --content: 1488px;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  font-synthesis: none;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--green);
  color: #07100a;
  background: var(--green);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 56px), var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 12, 15, 0.96);
}

.nav {
  display: grid;
  min-height: 88px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  width: max-content;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: 0.07em;
}

.brand img,
.footer-brand img {
  object-fit: contain;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 48px);
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid transparent;
  color: var(--text-soft);
  font-size: 17px;
  font-weight: 500;
  transition: color 150ms ease, border-color 150ms ease;
}

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

.nav-status {
  display: inline-flex;
  min-width: 216px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 12px;
  border: 1px solid var(--border);
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(115, 205, 103, 0.36);
}

.hero {
  padding: 18px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.hero-intro {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(390px, 0.72fr) minmax(640px, 1.28fr);
  align-items: stretch;
  gap: 18px;
}

.hero-content {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  padding: 42px 40px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero h1 {
  max-width: 560px;
  font-size: clamp(52px, 5vw, 68px);
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 1.19;
}

.hero-copy {
  max-width: 520px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--border);
  font-size: 17px;
  font-weight: 650;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover {
  border-color: var(--green);
}

.button:active {
  transform: translateY(1px);
}

.button img {
  width: 16px;
  height: 16px;
  margin-left: 14px;
}

.button-secondary {
  color: var(--text);
  background: transparent;
}

.button-secondary img {
  filter: invert(1);
}

.plan-console,
.download-console,
.route-group,
.support-note,
.terms-card {
  border: 1px solid var(--border);
  background: var(--surface);
}

.node-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-soft);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.node-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}


.overview {
  padding-top: 18px;
}

.plan-console,
.download-console {
  min-width: 0;
}

.hero-plan {
  align-self: stretch;
}

.panel-heading {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
  margin-top: 2px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.panel-heading > span {
  color: var(--dim);
  font-size: 12px;
}

.panel-code {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.comparison {
  display: block;
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

.comparison thead,
.comparison tbody {
  display: block;
}

.comparison-row {
  display: grid;
  min-height: 51px;
  grid-template-columns: minmax(116px, 0.56fr) repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--border-subtle);
}

.comparison tbody .comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row > * {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 10px 16px;
  font-weight: 400;
  text-align: left;
}

.comparison-row > * + * {
  border-left: 1px solid var(--border-subtle);
}

.comparison-label {
  color: var(--muted);
  font-size: 13px;
}

.comparison-head {
  min-height: 62px;
}

.plan-heading {
  width: 100%;
  justify-content: space-between;
  gap: 10px;
}

.plan-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 19px;
  font-weight: 650;
}

.plan-protocol {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.plan-heading.standard {
  color: var(--amber);
}

.plan-heading.premium {
  color: var(--green);
}

.plan-node-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.comparison-row td {
  color: var(--text-soft);
  font-size: 14px;
}

.comparison-row td strong {
  color: var(--text);
  font-weight: 650;
}

.price-row {
  min-height: 72px;
}

.price-row td {
  align-items: baseline;
  gap: 8px;
}

.price-row strong {
  font-family: var(--mono);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 520;
  letter-spacing: -0.04em;
}

.price-row td:nth-child(2) strong {
  color: var(--amber);
}

.price-row td:nth-child(3) strong {
  color: var(--green);
}

.price-row span {
  color: var(--muted);
  font-size: 12px;
}

.region-row {
  min-height: 62px;
}

.region-row td {
  line-height: 1.65;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  padding: 14px;
}

.download-card {
  display: flex;
  min-width: 0;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 18px 10px;
  border: 1px solid var(--border);
  text-align: center;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.download-card:hover {
  border-color: var(--green);
  background: var(--surface-hover);
}

.download-card:active {
  transform: translateY(1px);
}

.download-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  filter: brightness(0) saturate(100%) invert(78%) sepia(36%) saturate(668%) hue-rotate(63deg) brightness(94%) contrast(87%);
}

.download-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.download-card p {
  min-height: 0;
  margin-top: 5px;
  color: var(--dim);
  font-size: 13px;
}

.download-card > span {
  margin-top: 10px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.section {
  padding: 58px 0 0px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  margin-top: 6px;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 710;
  letter-spacing: -0.04em;
}

.section-head > p {
  max-width: 590px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.routes-wrap {
  display: grid;
  grid-template-columns: minmax(300px, 0.54fr) minmax(0, 1.46fr);
  gap: 18px;
}

.route-group {
  min-width: 0;
}

.route-group.standard {
  border-top-color: var(--amber);
}

.route-group.premium {
  border-top-color: var(--green);
}

.route-group-head {
  display: flex;
  min-height: 124px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.route-group-head p {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.route-group-head h3 {
  margin-top: 5px;
  font-size: 23px;
  font-weight: 650;
}

.route-group-head > div > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.route-group-head > strong {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.route-group-head > strong b {
  color: var(--green);
  font-size: 28px;
  font-weight: 550;
}

.route-group.standard .route-group-head > strong b {
  color: var(--amber);
}

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

.node-grid.single {
  grid-template-columns: 1fr;
}

.node-item {
  display: flex;
  min-width: 0;
  min-height: 84px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
}

.node-grid .node-item:nth-child(3n) {
  border-right: 0;
}

.node-grid .node-item:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.node-grid.single .node-item {
  border-right: 0;
  border-bottom: 0;
}

.node-code {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
}

.route-group.standard .node-code {
  color: var(--amber);
}

.node-info {
  min-width: 0;
  flex: 1;
}

.node-name {
  font-size: 15px;
  font-weight: 620;
}

.node-type {
  margin-top: 4px;
  overflow: hidden;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-note {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 13px;
}

.support-note strong {
  color: var(--text);
}

.support-note span:last-child {
  color: var(--amber);
  font-family: var(--mono);
  white-space: nowrap;
}

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

.terms-card {
  display: grid;
  min-height: 220px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
}

.terms-card.wide {
  min-height: 180px;
  grid-column: 1 / -1;
}

.term-index {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}

.terms-card h3 {
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 650;
}

.terms-card p,
.terms-list {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.terms-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-left: 18px;
}

.refund-card {
  border-top-color: var(--danger);
}

.refund-card strong {
  display: inline-block;
  margin-top: 14px;
  color: #ffaaa4;
  font-size: 12px;
}

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

.footer-row {
  display: grid;
  min-height: 108px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}

.footer-row > span:last-child {
  justify-self: end;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-brand img {
  width: 26px;
  height: 26px;
}

.bottom-nav {
  display: none;
}

@media (max-width: 1200px) {
  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-status {
    min-width: 178px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .download-grid {
    min-height: 0;
  }

  .download-card {
    min-height: 170px;
  }

  .routes-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .hero-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-content {
    display: grid;
    grid-template-areas:
      "eyebrow actions"
      "title actions"
      "copy actions";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 42px;
    padding: 36px;
  }

  .eyebrow {
    grid-area: eyebrow;
  }

  .hero h1 {
    grid-area: title;
    max-width: 760px;
    font-size: clamp(52px, 7vw, 66px);
  }

  .hero-copy {
    grid-area: copy;
    max-width: 700px;
  }

  .hero-actions {
    display: grid;
    grid-area: actions;
    min-width: 210px;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-status {
    min-width: 170px;
  }

  .hero-intro {
    grid-template-columns: 1fr;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .terms-grid {
    grid-template-columns: 1fr 1fr;
  }

  .terms-card.wide {
    grid-column: 1 / -1;
  }

  .terms-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

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

  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .shell {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 68px;
    gap: 14px;
  }

  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .nav-status {
    min-width: 0;
    min-height: 38px;
    padding: 0 11px;
    gap: 8px;
    font-size: 10px;
  }

  .hero {
    padding: 16px 0 0;
  }

  .hero-grid {
    padding-bottom: 16px;
  }

  .hero-intro {
    min-height: 0;
    gap: 12px;
  }

  .hero-content {
    display: flex;
    padding: 28px 16px 30px;
  }

  .eyebrow {
    grid-area: auto;
    margin-bottom: 14px;
  }

  .hero h1 {
    grid-area: auto;
    font-size: clamp(42px, 13vw, 56px);
    line-height: 1.14;
  }

  .hero-copy {
    grid-area: auto;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    grid-area: auto;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 26px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
  }

  .overview {
    padding-top: 12px;
  }

  .panel-heading {
    min-height: 62px;
    padding: 10px 14px;
  }

  .panel-heading > span {
    display: none;
  }

  .comparison-row {
    grid-template-columns: 82px repeat(2, minmax(0, 1fr));
  }

  .comparison-row > * {
    padding: 9px 10px;
  }

  .comparison-label,
  .comparison-row td {
    font-size: 11px;
  }

  .comparison-head {
    min-height: 70px;
  }

  .plan-heading {
    display: block;
  }

  .plan-title {
    display: block;
    font-size: 16px;
  }

  .plan-node-count,
  .plan-protocol {
    display: block;
    margin-top: 4px;
    font-size: 12px;
  }

  .price-row strong {
    font-size: clamp(24px, 8vw, 34px);
  }

  .price-row td {
    display: block;
  }

  .price-row span {
    display: block;
    margin-top: 3px;
    font-size: 10px;
  }

  .region-row {
    min-height: 88px;
  }

  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
    padding: 12px;
  }

  .download-card {
    min-height: 168px;
    padding: 16px 8px;
  }

  .download-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
  }

  .download-card p {
    min-height: 0;
  }

  .download-card > span {
    margin-top: 12px;
  }

  .section {
    padding: 46px 0 0px;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .section-head h2 {
    font-size: 36px;
  }

  .section-head > p {
    font-size: 14px;
  }

  .route-group-head {
    min-height: 112px;
    align-items: flex-start;
    padding: 16px;
  }

  .route-group-head h3 {
    font-size: 20px;
  }

  .route-group-head > strong b {
    font-size: 24px;
  }

  .node-grid {
    grid-template-columns: 1fr;
  }

  .node-grid .node-item,
  .node-grid .node-item:nth-child(3n),
  .node-grid .node-item:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .node-grid .node-item:last-child {
    border-bottom: 0;
  }

  .support-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-note span:last-child {
    white-space: normal;
  }

  .terms-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .terms-card,
  .terms-card.wide {
    min-height: 0;
    grid-column: auto;
    padding: 18px;
  }

  .site-footer {
    margin-top: 64px;
  }

  .footer-row {
    min-height: 134px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 8px;
  }

  .footer-row > span:last-child {
    justify-self: start;
  }

  .bottom-nav {
    position: fixed;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    z-index: 60;
    display: grid;
    min-height: 64px;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    background: rgba(7, 12, 15, 0.97);
  }

  .bottom-nav a {
    display: flex;
    min-width: 0;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid var(--border-subtle);
    color: var(--muted);
  }

  .bottom-nav a:last-child {
    border-right: 0;
  }

  .bottom-nav a span {
    font-family: var(--mono);
    font-size: 9px;
  }

  .bottom-nav a b {
    font-size: 11px;
    font-weight: 600;
  }

  .bottom-nav a:hover,
  .bottom-nav a.active {
    color: var(--green);
    background: var(--surface-raised);
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(calc(100% - 24px), var(--content));
  }

  .nav-status {
    padding: 0 8px;
    font-size: 9px;
  }

  .comparison-row {
    grid-template-columns: 70px repeat(2, minmax(0, 1fr));
  }

  .comparison-row > * {
    padding-right: 7px;
    padding-left: 7px;
  }

  .download-card {
    min-height: 156px;
  }
}

@media (max-width: 350px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

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