:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --bg-soft: #15191e;
  --panel: rgba(23, 27, 32, 0.82);
  --panel-solid: #171b20;
  --text: #f5f2eb;
  --muted: #b8c0c2;
  --soft: #7f8a8e;
  --line: rgba(255, 255, 255, 0.11);
  --green: #42d392;
  --amber: #f6b85a;
  --red: #f26c6c;
  --cyan: #63d7e4;
  --ink: #111418;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: rgba(13, 15, 18, 0.68);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header[data-elevated="true"] {
  border-bottom-color: var(--line);
  background: rgba(13, 15, 18, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(99, 215, 228, 0.38);
  background: #102126;
  color: var(--cyan);
  font-weight: 800;
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 1px;
  color: var(--soft);
  font-size: 11px;
}

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

.nav a {
  transition: color 160ms ease;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(18px, 5vw, 64px) 90px;
  background: #0b0e10;
}

#lifeGraphCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 12, 0.94) 0%, rgba(8, 10, 12, 0.68) 44%, rgba(8, 10, 12, 0.24) 100%),
    linear-gradient(0deg, rgba(13, 15, 18, 1) 0%, rgba(13, 15, 18, 0.02) 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-label {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 0;
  font-size: clamp(66px, 11vw, 148px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: var(--green);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 700;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--line);
}

.button.primary {
  background: var(--text);
  color: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  bottom: 54px;
  z-index: 3;
  width: min(340px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(17, 20, 24, 0.74);
  border-radius: 8px;
  backdrop-filter: blur(20px);
}

.panel-heading,
.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.panel-heading strong {
  color: var(--green);
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.status-list li {
  padding: 9px 0;
  color: var(--muted);
  font-size: 14px;
}

.status-list li strong {
  color: var(--text);
  font-size: 13px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 2px;
}

.dot.ok {
  background: var(--green);
}

.dot.warn {
  background: var(--amber);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px clamp(18px, 4vw, 32px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 14px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
}

p {
  margin: 0;
}

.intro p,
.section-heading p,
.graph-copy p,
.privacy-card p,
.closing p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 18px;
}

.metric {
  min-height: 138px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: 8px;
}

.metric span {
  display: block;
  color: var(--green);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
}

.metric p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.feature-band {
  max-width: none;
  background: #111418;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-band > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 44px;
  align-items: end;
}

.section-heading h2 {
  margin-top: 12px;
}

.section-heading.compact {
  display: block;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 46px;
}

.feature-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
}

.feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 28px;
  margin-bottom: 34px;
  border: 1px solid rgba(66, 211, 146, 0.35);
  color: var(--green);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.feature-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.68;
}

.graph-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 42px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.graph-map {
  position: relative;
  height: 430px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    #12171b;
  background-size: 34px 34px;
  border-radius: 8px;
  overflow: hidden;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  background: #1b2228;
  color: var(--text);
  border-radius: 50%;
  font-weight: 800;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.node.self {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 94px;
  height: 94px;
  background: #f5f2eb;
  color: #121417;
}

.node.person { left: 12%; top: 16%; color: var(--green); }
.node.memory { right: 13%; top: 17%; color: var(--cyan); }
.node.media { left: 17%; bottom: 15%; color: var(--amber); }
.node.place { right: 18%; bottom: 13%; color: #c6a7ff; }
.node.health { left: 48%; top: 5%; color: #ff8aa4; }

.edge {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(99, 215, 228, 0.05), rgba(99, 215, 228, 0.72), rgba(66, 211, 146, 0.05));
  transform-origin: left center;
}

.e1 { left: 23%; top: 28%; width: 230px; transform: rotate(24deg); }
.e2 { left: 54%; top: 30%; width: 170px; transform: rotate(-26deg); }
.e3 { left: 28%; bottom: 28%; width: 220px; transform: rotate(-20deg); }
.e4 { right: 28%; bottom: 31%; width: 170px; transform: rotate(22deg); }
.e5 { left: 51%; top: 21%; width: 130px; transform: rotate(90deg); }

.app-section {
  padding-top: 34px;
}

.app-section h2 {
  max-width: 800px;
  margin-top: 12px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 38px;
}

.app-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: 8px;
}

.app-row strong {
  min-width: 88px;
  color: var(--text);
}

.app-row span {
  color: var(--muted);
  line-height: 1.6;
}

.architecture {
  max-width: none;
  background: #151816;
}

.architecture > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.stack {
  display: grid;
  gap: 10px;
  margin-top: 44px;
}

.stack div {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  min-height: 68px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.stack span {
  color: var(--green);
  font-weight: 800;
}

.stack strong {
  color: var(--text);
  font-size: 18px;
}

.privacy-card {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  background: #171b20;
  border-radius: 8px;
}

.privacy-card h2 {
  margin-top: 12px;
}

.privacy-card p {
  max-width: 900px;
  margin-top: 24px;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.principles span {
  padding: 9px 12px;
  border: 1px solid rgba(99, 215, 228, 0.25);
  background: rgba(99, 215, 228, 0.08);
  color: #d4fbff;
  border-radius: 8px;
  font-size: 14px;
}

.closing {
  text-align: center;
  padding-top: 40px;
}

.closing p {
  max-width: 760px;
  margin: 22px auto 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}

.icp-link {
  color: var(--soft);
  text-decoration: none;
  transition: color 160ms ease;
}

.icp-link:hover {
  color: var(--cyan);
}

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

  .hero {
    align-items: start;
    min-height: 920px;
  }

  .hero-panel {
    left: 18px;
    right: 18px;
    bottom: 34px;
    width: auto;
  }

  .intro-grid,
  .section-heading,
  .graph-layout,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .metrics,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
  }

  .hero {
    min-height: 850px;
    padding-top: 92px;
  }

  .hero-actions {
    display: grid;
  }

  .metrics,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .app-row {
    display: grid;
    gap: 8px;
  }

  .graph-map {
    height: 360px;
  }

  .node {
    width: 62px;
    height: 62px;
    font-size: 13px;
  }

  .node.self {
    width: 78px;
    height: 78px;
  }

  .site-footer {
    display: grid;
  }
}
