:root {
  --bg: #f8f5ef;
  --bg-soft: #fffdf8;
  --ink: #151517;
  --muted: #68656a;
  --faint: #9a9692;
  --line: rgba(24, 24, 27, 0.14);
  --line-strong: rgba(24, 24, 27, 0.22);
  --glass: rgba(255, 255, 255, 0.54);
  --rose: #eaa5c2;
  --violet: #ada9ef;
  --amber: #f3d6a3;
  --shadow: 0 30px 90px rgba(36, 32, 28, 0.12);
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 18%, rgba(226, 197, 232, 0.28), transparent 30rem),
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.92), transparent 24rem),
    linear-gradient(135deg, var(--bg-soft), var(--bg) 50%, #f3efe8);
  color: var(--ink);
  font-family: var(--sans);
}

body.runtime-awake {
  background:
    radial-gradient(circle at 78% 18%, rgba(234, 165, 194, 0.36), transparent 31rem),
    radial-gradient(circle at 52% 78%, rgba(173, 169, 239, 0.24), transparent 30rem),
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.92), transparent 24rem),
    linear-gradient(135deg, var(--bg-soft), var(--bg) 50%, #f3efe8);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(20, 20, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 22, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

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

.page-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 68px) 36px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(24, 24, 27, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  content: "";
  background: var(--ink);
}

.brand-mark::before {
  width: 22px;
  height: 2px;
  transform: translate(8px, -6px);
}

.brand-mark::after {
  width: 2px;
  height: 25px;
  transform: translate(4px, 3px) rotate(28deg);
}

.brand-mark span {
  width: 28px;
  height: 2px;
  transform: translate(1px, 7px);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 30px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 15px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: rgba(24, 24, 27, 0.46);
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.78fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
  min-height: min(760px, calc(100vh - 110px));
  padding: 66px 0 82px;
}

.hero-copy {
  min-width: 0;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(72px, 8.4vw, 128px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-kicker {
  margin-bottom: 32px;
  color: #343136;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.1;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 34px;
  color: #3e3a3f;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.hero-text span {
  font-family: var(--mono);
  font-size: 0.92em;
}

.hero-actions,
.button {
  display: inline-flex;
  align-items: center;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 46px;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  border-color: #17171a;
  background: #17171a;
  box-shadow: 0 15px 35px rgba(24, 24, 27, 0.18);
}

.button.primary:hover,
.button.primary:focus-visible {
  box-shadow: 0 18px 46px rgba(234, 165, 194, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.48);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
}

.orbit,
.orbit::after {
  position: absolute;
  border: 1px dashed rgba(39, 38, 41, 0.16);
  border-radius: 50%;
  content: "";
}

.orbit-one {
  width: min(92vw, 520px);
  height: min(92vw, 520px);
  transform: rotate(-21deg);
  animation: drift 19s linear infinite;
}

.orbit-two {
  width: min(82vw, 440px);
  height: min(55vw, 300px);
  transform: rotate(24deg);
  animation: drift 23s linear infinite reverse;
}

.orbit-one::after {
  width: 10px;
  height: 10px;
  top: 18%;
  right: 12%;
  background: rgba(24, 24, 27, 0.5);
}

.signal {
  position: absolute;
  z-index: 3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.label-memory {
  top: 18%;
  left: 14%;
}

.label-continuity {
  top: 16%;
  right: 9%;
}

.label-presence {
  left: 10%;
  top: 56%;
}

.signal::after {
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: rgba(24, 24, 27, 0.42);
  content: "";
}

.glass-sphere {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(70vw, 360px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.88), transparent 0 14%, transparent 28%),
    radial-gradient(circle at 54% 58%, rgba(255, 255, 255, 0.35), transparent 0 28%, transparent 58%),
    radial-gradient(circle at 75% 72%, rgba(201, 164, 246, 0.42), transparent 0 28%, transparent 48%),
    radial-gradient(circle at 18% 90%, rgba(246, 190, 135, 0.36), transparent 0 26%, transparent 46%),
    linear-gradient(145deg, rgba(244, 247, 255, 0.78), rgba(190, 191, 222, 0.58));
  box-shadow:
    inset 24px 26px 42px rgba(255, 255, 255, 0.72),
    inset -26px -28px 58px rgba(127, 118, 175, 0.3),
    0 0 0 8px rgba(255, 255, 255, 0.2),
    0 0 46px rgba(238, 156, 196, 0.48),
    var(--shadow);
  animation: breathe 5.6s ease-in-out infinite;
}

.runtime-awake .glass-sphere {
  box-shadow:
    inset 24px 26px 42px rgba(255, 255, 255, 0.72),
    inset -26px -28px 58px rgba(127, 118, 175, 0.3),
    0 0 0 8px rgba(255, 255, 255, 0.22),
    0 0 58px rgba(238, 156, 196, 0.68),
    0 0 92px rgba(173, 169, 239, 0.24),
    var(--shadow);
}

.glass-sphere::before,
.glass-sphere::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.glass-sphere::before {
  inset: 9px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 30px rgba(246, 208, 152, 0.42);
}

.glass-sphere::after {
  top: 44px;
  left: 44px;
  width: 104px;
  height: 72px;
  background: rgba(255, 255, 255, 0.42);
  filter: blur(1px);
  transform: rotate(-30deg);
}

.glass-sphere code {
  position: absolute;
  bottom: 31%;
  z-index: 2;
  color: rgba(255, 255, 255, 0.93);
  font-family: var(--mono);
  font-size: clamp(13px, 2vw, 18px);
  text-shadow: 0 1px 12px rgba(57, 54, 86, 0.42);
}

.heart {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  margin-top: -26px;
  transform: rotate(-45deg);
  border-bottom: 4px solid rgba(255, 255, 255, 0.92);
  border-left: 4px solid rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.72));
}

.heart::before,
.heart::after {
  position: absolute;
  width: 58px;
  height: 58px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  content: "";
}

.heart::before {
  top: -31px;
  left: -4px;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.heart::after {
  top: -4px;
  right: -31px;
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.stone-base {
  position: absolute;
  z-index: 1;
  bottom: 40px;
  width: min(78vw, 480px);
  height: 128px;
  border-radius: 42px 42px 34px 34px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(145deg, #e7e2db, #cfc8bd);
  box-shadow: 0 28px 48px rgba(51, 44, 38, 0.2);
  transform: perspective(520px) rotateX(52deg) translateY(42px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding-top: 62px;
  border-top: 1px solid var(--line);
}

.section-heading.compact {
  grid-template-columns: 1fr;
  gap: 0;
}

.section-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 700;
  line-height: 0.95;
}

.programming-compare,
.signals-section,
.manifesto,
.inventors,
.runtime-cta {
  padding: 40px 0 74px;
}

.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  margin-top: 34px;
}

.compare-panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.compare-panel.emotional {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.2)),
    radial-gradient(circle at 92% 0%, rgba(234, 165, 194, 0.24), transparent 22rem);
}

.panel-label {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.flow {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.flow span {
  display: grid;
  min-width: 78px;
  color: var(--ink);
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.1;
  white-space: nowrap;
}

.flow small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.flow i {
  width: 34px;
  height: 1px;
  background: var(--ink);
}

.flow i::after {
  display: block;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  margin-left: auto;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  content: "";
  transform: rotate(45deg);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-grid article {
  min-height: 168px;
  padding: 30px 18px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.signal-grid article:last-child {
  border-right: 0;
}

.signal-grid h3 {
  margin: 18px 0 7px;
  font-size: 18px;
  font-weight: 600;
}

.signal-grid p,
.profile p,
.institution p,
.manifesto small {
  color: var(--muted);
}

.signal-grid p {
  margin-bottom: 0;
  font-size: 12px;
}

.line-icon {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
}

.moon {
  border: 2px solid transparent;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-36deg);
}

.heart-icon {
  width: 30px;
  height: 30px;
  margin-top: 5px;
  transform: rotate(-45deg);
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.heart-icon::before,
.heart-icon::after {
  position: absolute;
  width: 27px;
  height: 27px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.heart-icon::before {
  top: -16px;
  left: -2px;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.heart-icon::after {
  top: -2px;
  right: -16px;
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.infinity::before {
  position: absolute;
  inset: 10px 3px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  transform: rotate(26deg);
}

.infinity::after {
  position: absolute;
  inset: 10px 3px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  transform: rotate(-26deg);
}

.book {
  border: 2px solid var(--ink);
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.book::before {
  position: absolute;
  top: -2px;
  bottom: 4px;
  left: 50%;
  width: 2px;
  background: var(--ink);
  content: "";
}

.unfinished {
  border: 2px dashed var(--ink);
  border-radius: 50%;
}

.people::before,
.people::after {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.people::before {
  top: 5px;
  left: 5px;
  width: 12px;
  height: 12px;
}

.people::after {
  top: 3px;
  right: 5px;
  width: 12px;
  height: 12px;
}

.people {
  border-bottom: 2px solid var(--ink);
  border-radius: 0 0 28px 28px;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.manifesto-grid article {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.3);
}

.manifesto-number {
  display: block;
  margin-bottom: 60px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}

.manifesto p {
  margin-bottom: 18px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.45;
}

.manifesto small {
  font-size: 14px;
  line-height: 1.7;
}

.inventor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1.12fr);
  gap: 18px;
  margin-top: 34px;
}

.profile,
.institution {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile h3,
.institution h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.profile p {
  margin-bottom: 8px;
  font-size: 14px;
}

.profile small {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

.avatar {
  width: 94px;
  height: 94px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(24, 24, 27, 0.08);
}

.institution p:last-child {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.8;
}

.runtime-cta {
  display: grid;
  place-items: center;
  padding: 80px 20px 96px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 30%, rgba(234, 165, 194, 0.2), transparent 28rem),
    rgba(255, 255, 255, 0.18);
}

.runtime-cta h2 {
  max-width: 900px;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 700;
  line-height: 1;
}

.runtime-status {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

:focus-visible {
  outline: 2px solid #18181b;
  outline-offset: 4px;
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.018);
  }
}

@keyframes drift {
  to {
    transform: rotate(339deg);
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .hero-visual {
    min-height: 510px;
  }

  .compare-grid,
  .manifesto-grid,
  .inventor-grid {
    grid-template-columns: 1fr;
  }

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

  .signal-grid article:nth-child(3) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 16px 28px;
  }

  .site-header {
    position: relative;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    gap: 18px;
    padding: 40px 0 52px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(44px, 12.4vw, 52px);
    line-height: 0.9;
  }

  .hero-kicker {
    font-size: 32px;
  }

  .hero-text {
    font-size: 17px;
    line-height: 1.8;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 430px;
    overflow: hidden;
  }

  .glass-sphere {
    width: min(68vw, 260px);
  }

  .stone-base {
    bottom: 34px;
    width: min(70vw, 278px);
    height: 88px;
  }

  .signal {
    font-size: 9px;
  }

  .label-memory {
    left: 12%;
  }

  .label-continuity {
    right: 24%;
  }

  .label-presence {
    left: 12%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .section-heading h2 {
    font-size: clamp(36px, 13vw, 56px);
  }

  .programming-compare,
  .signals-section,
  .manifesto,
  .inventors,
  .runtime-cta {
    padding-bottom: 52px;
  }

  .compare-panel,
  .manifesto-grid article,
  .profile,
  .institution {
    padding: 22px;
  }

  .flow {
    gap: 14px;
  }

  .flow span {
    font-size: 22px;
  }

  .flow i {
    width: 22px;
  }

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

  .signal-grid article {
    min-height: 150px;
  }

  .signal-grid article:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .signal-grid article:nth-child(2n) {
    border-right: 0;
  }

  .manifesto-number {
    margin-bottom: 42px;
  }

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

  .runtime-cta {
    padding: 64px 16px 74px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .signal-grid article,
  .signal-grid article:nth-child(3),
  .signal-grid article:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-grid article:last-child {
    border-bottom: 0;
  }

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

  .flow i {
    width: 1px;
    height: 24px;
    margin-left: 16px;
  }

  .flow i::after {
    margin-top: 17px;
    margin-left: -3px;
    transform: rotate(135deg);
  }
}

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