:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0b0b0c;
  --panel-2: #111113;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f7f7f8;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --accent: #faee13;
  --danger: #ff5c7a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.mesh-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  background: rgba(5, 5, 5, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.mesh-brand,
.footer-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.mesh-mark {
  width: 54px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.mesh-mark img {
  width: 54px;
  height: 36px;
  object-fit: contain;
}

.mesh-brand strong,
.mesh-brand span {
  display: block;
}

.mesh-brand strong {
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0;
}

.mesh-brand span {
  color: var(--muted);
  font-size: 11px;
}

.mesh-nav,
.ghost-link {
  display: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mesh-cta,
.button-primary,
.button-secondary,
.join-form button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.mesh-cta,
.button-primary,
.join-form button {
  background: var(--text);
  color: var(--bg);
}

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

.mesh-cta {
  padding: 0 14px;
}

.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 64px);
  margin: 0;
  display: grid;
  place-items: center;
  padding: 72px 18px 48px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.38) 50%, #050505 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.02) 50%, rgba(0, 0, 0, 0.28) 100%),
    url("./assets/peakflow-compute-hero-bg.png") center top / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(250, 238, 19, 0.08), transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.06) 55%, #050505 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

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

.eyebrow {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 1320px;
  margin: 0;
  font-size: clamp(32px, 9.2vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 780px;
  margin: 14px auto 0;
  color: #c9c9d1;
  font-size: 16px;
}

.hero-system-line {
  margin: 16px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.button-primary,
.button-secondary {
  min-width: 148px;
  padding: 0 18px;
}

.product-preview {
  width: 100%;
  max-width: 960px;
  margin-top: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 8, 9, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.preview-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2a2a2e;
}

.preview-bar span:first-child {
  background: var(--accent);
}

.preview-bar b {
  margin-left: 8px;
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}

.preview-card {
  min-height: 142px;
  padding: 20px;
  background: var(--panel);
}

.preview-card small,
.platform-grid small,
.proof-step small,
.region-card small,
.detail-grid small,
.stack-list span,
.update-grid span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-card strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.15;
}

.preview-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.primary-card {
  background:
    linear-gradient(rgba(250, 238, 19, 0.08), rgba(250, 238, 19, 0)),
    var(--panel);
}

.section {
  padding: 70px 18px;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.center-head {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section h2 {
  margin: 0;
  font-size: clamp(31px, 9vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow) {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.platform-grid,
.region-grid,
.redline-grid,
.update-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.platform-grid article,
.proof-step,
.region-card,
.redline-card,
.update-grid article,
.node-detail,
.receipt-panel {
  background: var(--panel);
}

.platform-grid article,
.region-card,
.redline-card,
.update-grid article {
  min-height: 184px;
  padding: 22px;
}

.platform-grid h3,
.region-card h3,
.redline-card h3,
.update-grid b {
  display: block;
  margin: 22px 0 0;
  font-size: 23px;
  line-height: 1.1;
}

.platform-grid p,
.region-card p,
.redline-card p,
.detail-grid p,
.update-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.brain-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.28) 0%, rgba(5, 5, 5, 0.34) 46%, rgba(5, 5, 5, 0.74) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.36) 0%, rgba(5, 5, 5, 0.04) 50%, rgba(5, 5, 5, 0.36) 100%),
    url("./assets/peakflow-pfos-relationship-bg.png") center center / cover no-repeat;
}

.brain-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(250, 238, 19, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.02), rgba(5, 5, 5, 0.24));
  pointer-events: none;
}

.brain-section > * {
  position: relative;
  z-index: 1;
}

.brain-grid,
.dual-track-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.brain-grid article,
.track-card {
  min-height: 218px;
  padding: 24px;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(12px);
}

.brain-grid small,
.track-card span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.brain-grid h3,
.track-card h3 {
  margin: 28px 0 0;
  font-size: 30px;
  line-height: 1.05;
}

.brain-grid p,
.track-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.dual-track-section {
  background:
    linear-gradient(180deg, rgba(250, 238, 19, 0.04), transparent 38%),
    #050505;
}

.track-card {
  position: relative;
  overflow: hidden;
}

.track-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(250, 238, 19, 0.16);
  border-radius: 999px;
}

.region-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.22) 46%, rgba(5, 5, 5, 0.6) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0.03) 50%, rgba(5, 5, 5, 0.4) 100%),
    url("./assets/peakflow-regional-roots-bg.png") center center / cover no-repeat;
}

.region-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(250, 238, 19, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.02), rgba(5, 5, 5, 0.18));
  pointer-events: none;
}

.region-section > * {
  position: relative;
  z-index: 1;
}

.region-section .section-head p:not(.eyebrow) {
  color: #d4d4d8;
}

.region-section .region-card {
  background: rgba(5, 5, 5, 0.46);
  backdrop-filter: blur(12px);
}

.roadmap-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.28) 0%, rgba(5, 5, 5, 0.22) 48%, rgba(5, 5, 5, 0.68) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.38) 0%, rgba(5, 5, 5, 0.03) 50%, rgba(5, 5, 5, 0.38) 100%),
    url("./assets/peakflow-roadmap-bg.png") center center / cover no-repeat;
}

.roadmap-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(250, 238, 19, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.02), rgba(5, 5, 5, 0.2));
  pointer-events: none;
}

.roadmap-section > * {
  position: relative;
  z-index: 1;
}

.roadmap-section .region-card {
  background: rgba(5, 5, 5, 0.5);
  backdrop-filter: blur(12px);
}

.split-section {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 28px;
}

.stack-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.stack-list article {
  min-height: 112px;
  padding: 18px;
  background: var(--panel);
}

.stack-list b {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.stack-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.node-map-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.34) 0%, rgba(5, 5, 5, 0.26) 42%, rgba(5, 5, 5, 0.58) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.42) 0%, rgba(5, 5, 5, 0.06) 50%, rgba(5, 5, 5, 0.42) 100%),
    url("./assets/peakflow-node-ladder-map.png") center center / cover no-repeat;
}

.node-map-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(250, 238, 19, 0.06), transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.04) 48%, rgba(5, 5, 5, 0.68) 100%);
  pointer-events: none;
}

.node-map-section > * {
  position: relative;
  z-index: 1;
}

.node-map-section .section-head p:not(.eyebrow) {
  color: #d4d4d8;
}

.node-ladder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.node-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.node-tabs::-webkit-scrollbar {
  display: none;
}

.node-tab {
  flex: 0 0 162px;
  min-height: 58px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 5, 5, 0.58);
  backdrop-filter: blur(10px);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.node-tab.is-active {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.11);
}

.node-tab span {
  display: block;
  color: var(--accent);
  font-weight: 900;
}

.node-detail {
  min-height: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.68);
  backdrop-filter: blur(14px);
}

.node-detail h3 {
  margin: 0;
  font-size: 28px;
}

.node-detail .muted {
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.detail-grid article,
.proof-step {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.blocked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.blocked-list span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 92, 122, 0.3);
  border-radius: 999px;
  color: #ff9aad;
  background: rgba(255, 92, 122, 0.08);
  font-size: 12px;
}

.proof-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
}

.proof-step {
  position: relative;
  min-height: 92px;
}

.proof-step b {
  display: block;
  margin-top: 12px;
  font-size: 15px;
}

.proof-step p {
  margin: 6px 0 0;
  color: var(--muted);
}

.join-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.join-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.join-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.join-form input,
.join-form select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  padding: 0 10px;
}

.join-form button {
  width: 100%;
  border-radius: 10px;
}

.receipt-panel {
  min-height: 330px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.receipt-panel pre {
  margin: 14px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hold-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 900;
}

.site-footer {
  padding: 38px 18px 22px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.footer-brand strong {
  display: block;
  font-size: 15px;
}

.footer-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-nav {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
}

.footer-nav h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
}

.footer-nav a {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: 1180px;
  margin: 34px auto 0;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 12px;
}

@media (min-width: 760px) {
  .mesh-topbar {
    padding: 12px clamp(18px, 4vw, 52px);
  }

  .mesh-brand {
    min-width: 236px;
  }

  .mesh-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--muted);
    font-size: 13px;
  }

  .mesh-nav a:hover,
  .ghost-link:hover {
    color: var(--text);
  }

  .ghost-link {
    display: inline-flex;
    color: var(--muted);
    font-size: 13px;
  }

  .hero {
    padding: 96px 24px 56px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.32) 50%, #050505 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.01) 50%, rgba(0, 0, 0, 0.24) 100%),
      url("./assets/peakflow-compute-hero-bg.png") center center / cover no-repeat;
  }

  h1 {
    font-size: clamp(64px, 5.2vw, 96px);
    line-height: 1.03;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .preview-grid {
    grid-template-columns: 1.12fr 1fr 1fr;
  }

  .platform-grid,
  .region-grid,
  .brain-grid,
  .dual-track-grid,
  .update-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .section {
    padding: 86px clamp(20px, 5vw, 72px);
  }

  .split-section {
    grid-template-columns: 0.86fr 1.14fr;
    align-items: start;
  }

  .node-ladder {
    grid-template-columns: 280px 1fr;
    gap: 18px;
  }

  .node-map-panel {
    margin-bottom: 28px;
  }

  .node-tabs {
    display: grid;
    overflow: visible;
  }

  .node-tab {
    width: 100%;
  }

  .node-detail {
    min-height: 360px;
    padding: 30px;
  }

  .node-detail h3 {
    font-size: 36px;
  }

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

  .proof-flow {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .proof-step {
    min-height: 136px;
  }

  .join-shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  }

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

  .join-form .wide,
  .join-form button {
    grid-column: 1 / -1;
  }

  .footer-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1040px) {
  .mesh-topbar {
    padding-right: 64px;
    padding-left: 64px;
  }

  .section {
    padding-right: 64px;
    padding-left: 64px;
  }
}
