:root {
  --black: #050505;
  --ink: #111315;
  --muted: #6e7378;
  --line: #e7e7e4;
  --paper: #f6f5f1;
  --white: #ffffff;
  --silver: #d7dce1;
  --blue: #7fb7d8;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 18px clamp(22px, 4vw, 56px);
  color: var(--white);
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  transition: background 260ms ease, color 260ms ease, border-color 260ms ease;
}

.site-header.is-light {
  color: var(--ink);
  background: rgba(246, 245, 241, 0.82);
  border-color: rgba(17, 19, 21, 0.08);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  font-size: 18px;
}

.brand-word {
  font-size: 12px;
  color: currentColor;
  opacity: 0.68;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 13px;
  font-weight: 500;
  color: currentColor;
}

.site-nav a,
.language-select > button {
  opacity: 0.76;
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.language-select > button:hover {
  opacity: 1;
}

.language-select {
  position: relative;
}

.language-select > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 0;
  font: inherit;
  outline: none;
  cursor: pointer;
}

.language-select > button::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.68;
  transition: transform 180ms ease;
}

.language-select.is-open > button::after {
  margin-top: 2px;
  transform: rotate(225deg);
}

.language-options {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 118px;
  display: grid;
  padding: 6px;
  background: rgba(5, 5, 5, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 46px rgba(5, 5, 5, 0.12);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.language-select.is-open .language-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.language-options button {
  min-height: 34px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.language-options button:hover,
.language-options button.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.language-select select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.language-select option {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 72px);
  padding: 104px clamp(22px, 5vw, 64px) clamp(42px, 6vh, 76px);
  color: var(--white);
  background: var(--black);
  overflow: hidden;
}

.hero-copy {
  grid-column: 1;
  align-self: end;
  max-width: 780px;
  padding-bottom: clamp(10px, 2.4vh, 28px);
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(68px, 10.5vw, 142px);
  line-height: 0.92;
  font-weight: 800;
}

.wanyou-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
}

.morph-char {
  position: relative;
  display: inline-block;
  color: currentColor;
  cursor: default;
  transition: color 520ms ease, transform 520ms ease;
}

.morph-char::after {
  content: attr(data-alt);
  position: absolute;
  inset: 0;
  color: var(--white);
  opacity: 0;
  transform: translateY(0.05em) scale(0.98);
  transition: opacity 520ms ease, transform 520ms ease;
  pointer-events: none;
}

.morph-char:hover {
  color: rgba(255, 255, 255, 0);
  transform: translateY(-0.01em);
}

.morph-char:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-line {
  margin: 24px 0 0;
  font-size: clamp(26px, 3.1vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  max-width: 840px;
  white-space: nowrap;
}

.hero-text {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.72;
}

.hero-motion {
  position: absolute;
  top: clamp(92px, 11vh, 128px);
  right: clamp(90px, 8vw, 120px);
  width: min(44vw, 540px);
  max-width: none;
  transform: none;
  transform-origin: center;
  pointer-events: none;
  z-index: 0;
}

.one-many-svg {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: visible;
}

.motion-origin {
  fill: rgba(246, 245, 241, 0.96);
  transform-box: fill-box;
  transform-origin: center;
  animation: origin-cycle 8.8s linear infinite;
}

.motion-axis {
  transform-box: fill-box;
  transform-origin: center;
  animation: axis-spin 8.8s linear infinite;
}

.motion-axis line {
  stroke: rgba(246, 245, 241, 0.94);
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(246, 245, 241, 0.3));
  animation: axis-tone 8.8s linear infinite;
}

.motion-particle {
  opacity: 0;
  transform-box: view-box;
  transform-origin: 310px 310px;
  animation: particle-orbit 8.8s linear infinite;
  animation-delay: calc(var(--i) * 26ms);
}

.motion-particle circle {
  fill: rgba(246, 245, 241, 0.98);
  filter: drop-shadow(0 0 8px rgba(246, 245, 241, 0.72)) drop-shadow(0 0 18px rgba(246, 245, 241, 0.22));
  animation: particle-tone 8.8s linear infinite;
  animation-delay: inherit;
}

@keyframes origin-cycle {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  8% {
    opacity: 0.96;
    transform: scale(1);
  }

  20% {
    opacity: 0.96;
    transform: scale(1);
  }

  28% {
    opacity: 0.42;
    transform: scale(0.72);
  }

  36%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes axis-spin {
  0% {
    opacity: 0;
    transform: rotate(0deg) scaleX(0.045);
  }

  19% {
    opacity: 0;
    transform: rotate(0deg) scaleX(0.045);
  }

  26% {
    opacity: 0.88;
    transform: rotate(8deg) scaleX(0.2);
  }

  34% {
    opacity: 0.96;
    transform: rotate(24deg) scaleX(1);
  }

  48% {
    opacity: 0.82;
    transform: rotate(160deg) scaleX(1);
  }

  62% {
    opacity: 0.8;
    transform: rotate(620deg) scaleX(0.9);
  }

  76% {
    opacity: 0.72;
    transform: rotate(1640deg) scaleX(0.72);
  }

  88% {
    opacity: 0.38;
    transform: rotate(3500deg) scaleX(0.42);
  }

  96% {
    opacity: 0.04;
    transform: rotate(5200deg) scaleX(0.16);
  }

  100% {
    opacity: 0;
    transform: rotate(6800deg) scaleX(0.045);
  }
}

@keyframes axis-tone {
  0% {
    stroke: rgba(246, 245, 241, 0.94);
  }

  68% {
    stroke: rgba(238, 238, 238, 0.88);
  }

  84% {
    stroke: rgba(132, 132, 132, 0.48);
  }

  98%,
  100% {
    stroke: rgba(5, 5, 5, 1);
  }
}

@keyframes particle-orbit {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0);
  }

  32% {
    opacity: 0;
    transform: rotate(30deg) scale(0.02);
  }

  46% {
    opacity: 0.98;
    transform: rotate(var(--mid-spin)) scale(0.36);
  }

  78% {
    opacity: 0.98;
    transform: rotate(var(--end-spin)) scale(1.3);
  }

  92% {
    opacity: 0.72;
    transform: rotate(var(--end-spin)) scale(1.54);
  }

  100% {
    opacity: 0;
    transform: rotate(var(--end-spin)) scale(1.68);
  }
}

@keyframes particle-tone {
  0% {
    fill: rgba(246, 245, 241, 0.98);
  }

  76% {
    fill: rgba(246, 245, 241, 0.94);
  }

  92% {
    fill: rgba(150, 150, 150, 0.56);
  }

  98%,
  100% {
    fill: rgba(5, 5, 5, 1);
  }
}

.section-dark,
.section-light,
.services,
.partners {
  padding: clamp(62px, 8vw, 104px) clamp(22px, 5vw, 64px);
}

.section-heading,
.founder {
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading h2,
.founder h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 66px);
  line-height: 1.04;
}

.founder p {
  max-width: 790px;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.72;
}

.partners {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.section-heading.compact {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
}

.logo-marquee {
  max-width: var(--max);
  margin: 34px auto 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.logo-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: logo-scroll 42s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-item {
  min-width: 208px;
  min-height: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
  border-right: 1px solid var(--line);
  opacity: 0.94;
  transition: opacity 180ms ease, transform 180ms ease;
}

.logo-item img {
  width: auto;
  height: auto;
  max-width: 148px;
  max-height: 54px;
  object-fit: contain;
  display: block;
}

.ellipsis-logo {
  min-width: 120px;
  color: rgba(17, 19, 21, 0.54);
  font-size: 30px;
  font-weight: 800;
}

.logo-item:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.04);
}

.app-logo {
  min-width: 150px;
}

.app-logo img {
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
}

.galaxy-club-logo {
  min-width: 178px;
  padding: 0 28px;
}

.galaxy-club-logo img {
  width: 76px;
  height: 76px;
  max-width: 76px;
  max-height: 76px;
  border-radius: 50%;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.services {
  background: var(--paper);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  color: var(--ink);
}

.section-heading > p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.68;
}

.service-list {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.service-row {
  scroll-margin-top: 96px;
  min-height: 116px;
  display: grid;
  grid-template-columns: 72px minmax(160px, 0.35fr) minmax(260px, 1fr) 86px;
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, padding 180ms ease;
}

.service-row:hover {
  background: var(--white);
  padding-left: 18px;
  padding-right: 18px;
}

.service-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.service-name {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
}

.service-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
  color: #426d85;
  font-size: 13px;
  font-weight: 700;
}

.service-link::after {
  content: "";
  width: 26px;
  height: 1px;
  margin-left: 10px;
  background: currentColor;
  transition: width 180ms ease;
}

.service-row:hover .service-link::after {
  width: 42px;
}

.section-light {
  background: var(--white);
}

.founder {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.founder-media {
  max-width: 340px;
}

.founder-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d8c0a0;
  border: 1px solid rgba(17, 19, 21, 0.12);
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.founder p {
  color: var(--muted);
}

.founder-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.founder .founder-title {
  margin: 0;
  color: var(--ink);
  max-width: none;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
}

.ai-avatar-button {
  width: clamp(88px, 8vw, 112px);
  height: clamp(88px, 8vw, 112px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  overflow: visible;
  transition: transform 180ms ease, filter 180ms ease;
}

.ai-avatar-button:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 18px rgba(17, 19, 21, 0.14));
}

.ai-avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--white);
}

.founder-signature {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(22px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.62);
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.ai-chat[hidden] {
  display: none;
}

.ai-chat {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  background: rgba(5, 5, 5, 0.24);
}

.ai-chat-panel {
  width: min(420px, calc(100vw - 48px));
  background: var(--white);
  border: 1px solid rgba(17, 19, 21, 0.12);
  box-shadow: 0 28px 70px rgba(5, 5, 5, 0.24);
}

.ai-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.ai-chat-header strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.ai-chat-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.ai-chat-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ai-chat-messages {
  max-height: 330px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  overflow-y: auto;
}

.ai-message {
  max-width: 88%;
  margin: 0;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.58;
  border: 1px solid var(--line);
  background: #f8f7f3;
}

.ai-user {
  align-self: flex-end;
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.ai-bot {
  align-self: flex-start;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.ai-chat-form input {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 12px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.ai-chat-form button {
  border: 1px solid var(--ink);
  padding: 0 16px;
  color: var(--white);
  background: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.forum-page {
  background: var(--paper);
}

.forum-hero,
.forum-layout {
  max-width: var(--max);
  margin: 0 auto;
}

.forum-hero {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.forum-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 1;
}

.forum-hero p:not(.forum-label) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.75;
}

.forum-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  padding-top: 34px;
}

.forum-shell,
.guide-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 118px clamp(22px, 5vw, 64px) 72px;
}

.community-hero,
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.forum-label {
  margin: 0 0 14px;
  color: #426d85;
  font-size: 13px;
  font-weight: 800;
}

.community-hero h1,
.guide-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(40px, 6.4vw, 86px);
  line-height: 1.03;
}

.community-hero p:not(.forum-label),
.guide-hero p:not(.forum-label) {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.74;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.primary-action {
  color: var(--white);
  background: var(--ink);
}

.secondary-action,
.ghost-action {
  color: var(--ink);
  background: transparent;
}

.community-map {
  display: grid;
  gap: 10px;
}

.map-node {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.map-node span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.map-node strong {
  font-size: 16px;
}

.map-node p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.map-node.is-active {
  border-color: rgba(66, 109, 133, 0.42);
  background: #eef5f8;
}

.community-feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 30px 0 0;
}

.feature-card {
  display: grid;
  align-content: start;
  min-height: 248px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 19, 21, 0.24);
}

.feature-card.is-guide {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.feature-kicker {
  color: #426d85;
  font-size: 12px;
  font-weight: 900;
}

.feature-card.is-guide .feature-kicker,
.feature-card.is-guide p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-card h2 {
  max-width: 720px;
  margin: 18px 0 12px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.1;
}

.feature-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.feature-link {
  margin-top: 28px;
  font-size: 13px;
  font-weight: 900;
}

.forum-workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 240px;
  gap: 22px;
  padding-top: 22px;
}

.forum-sidebar,
.forum-rightbar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.forum-panel {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

.forum-panel h2 {
  margin: 0 0 16px;
  font-size: 17px;
}

.forum-panel a,
.forum-panel p,
.forum-filter {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font: inherit;
  font-size: 14px;
}

.forum-filter {
  cursor: pointer;
}

.forum-filter:hover,
.forum-filter.is-active,
.forum-panel a:hover {
  color: var(--ink);
}

.forum-filter.is-active {
  font-weight: 800;
}

.forum-feed {
  display: grid;
  gap: 12px;
}

.post-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(22px, 3vw, 34px);
}

.post-card h2 {
  margin: 18px 0 12px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.post-actions {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.forum-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

.forum-toolbar h2 {
  margin: 0;
  font-size: 24px;
}

.forum-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 20px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

.topic-row[hidden] {
  display: none;
}

.topic-row.is-pinned {
  border-color: rgba(66, 109, 133, 0.42);
  background: #eef5f8;
}

.post-meta,
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.topic-row h3 {
  margin: 12px 0 8px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}

.topic-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.topic-stats {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topic-stats strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.community-notes-shell {
  max-width: 1040px;
}

.community-notes-hero {
  max-width: 760px;
  padding-bottom: 34px;
}

.community-notes-hero p:not(.forum-label) {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.5;
}

.notes-board {
  border-top: 1px solid var(--line);
}

.notes-toolbar {
  position: sticky;
  top: 72px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  color: var(--muted);
  background: rgba(246, 245, 241, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 700;
}

.notes-search {
  min-width: min(360px, 52vw);
}

.notes-search input {
  width: 100%;
  min-height: 38px;
  padding: 0 0 0 2px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17, 19, 21, 0.26);
  border-radius: 0;
  outline: 0;
  font: inherit;
  font-size: 14px;
}

.notes-search input::placeholder {
  color: rgba(110, 115, 120, 0.72);
}

.notes-search input:focus {
  border-color: var(--ink);
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--white);
  border: 1px solid var(--line);
}

.sort-control button {
  min-width: 64px;
  min-height: 30px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.sort-control button:hover,
.sort-control button.is-active {
  color: var(--white);
  background: var(--ink);
}

.note-list {
  display: grid;
}

.note-item {
  border-bottom: 1px solid var(--line);
}

.note-item a {
  display: block;
  padding: clamp(22px, 3.3vw, 36px) 0;
  transition: padding-left 180ms ease, padding-right 180ms ease, background 180ms ease;
}

.note-item a:hover {
  padding-left: 18px;
  padding-right: 18px;
  background: var(--white);
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.note-item h2 {
  max-width: 820px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: 0;
}

.note-item[hidden] {
  display: none;
}

.note-detail-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 132px clamp(22px, 5vw, 64px) 82px;
}

.note-back {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.note-back:hover {
  color: var(--ink);
}

.note-detail[hidden] {
  display: none;
}

.note-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.note-detail h1 {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.note-detail p,
.note-detail li {
  color: var(--ink);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.86;
}

.note-detail p {
  margin: 0 0 24px;
}

.note-detail ul {
  margin: 28px 0 0;
  padding-left: 22px;
  color: var(--ink);
}

.note-detail li + li {
  margin-top: 12px;
}

.advisory-shell {
  max-width: 1080px;
}

.advisory-hero {
  max-width: 820px;
  padding-bottom: 44px;
}

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

.advisory-item {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-height: 520px;
  padding: clamp(22px, 2.8vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
}

.advisory-index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.advisory-copy h2 {
  margin: 14px 0 14px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.16;
}

.advisory-copy p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.78;
}

.advisory-facts {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.advisory-contact {
  padding: 34px 0 0;
}

.advisory-contact a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.capital-loading {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px clamp(22px, 5vw, 64px);
}

.capital-loading p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: 0;
}

.forum-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.forum-steps li + li {
  margin-top: 10px;
}

.guide-shell {
  display: grid;
  gap: 24px;
}

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

.guide-index {
  position: sticky;
  top: 82px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: rgba(246, 245, 241, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.guide-index a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.guide-article {
  scroll-margin-top: 142px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
  background: var(--white);
  border: 1px solid var(--line);
}

.guide-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: #426d85;
  font-size: 13px;
  font-weight: 900;
}

.guide-copy h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.1;
}

.guide-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.76;
}

.guide-visual {
  min-width: 0;
  padding: 14px;
  background: #fbfaf7;
  border: 1px solid var(--line);
}

.guide-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.guide-checks {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.guide-checks li {
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14px;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.term-grid span {
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.term-grid strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.prompt-box {
  margin-top: 20px;
  padding: 16px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-left: 4px solid #426d85;
  white-space: pre-wrap;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-links a {
  padding: 7px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.note-card {
  min-height: 176px;
  display: grid;
  align-content: start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease;
}

.note-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 19, 21, 0.24);
}

.note-card span {
  color: #426d85;
  font-size: 12px;
  font-weight: 900;
}

.note-card strong {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.18;
}

.note-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.note-page .guide-hero {
  border-bottom: 0;
}

.note-article {
  display: grid;
  gap: 18px;
}

.note-section {
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
}

.note-section h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.12;
}

.note-section h3 {
  margin: 28px 0 10px;
  font-size: 21px;
  line-height: 1.24;
}

.note-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.note-section ul,
.note-section ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.note-section li + li {
  margin-top: 8px;
}

.note-callout {
  margin-top: 18px;
  padding: 18px;
  color: var(--ink);
  background: #eef5f8;
  border: 1px solid rgba(66, 109, 133, 0.24);
  font-weight: 700;
}

.note-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 15px;
}

.note-table th,
.note-table td {
  padding: 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.note-table th {
  background: var(--paper);
  color: var(--ink);
}

.note-flow {
  margin-top: 20px;
  padding: 16px;
  background: #fbfaf7;
  border: 1px solid var(--line);
}

.note-flow svg {
  display: block;
  width: 100%;
  height: auto;
}

.note-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.note-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 86px;
    padding-bottom: clamp(26px, 7vh, 58px);
  }

  .hero-copy {
    max-width: 680px;
    padding-bottom: 0;
  }

  .hero-motion {
    position: absolute;
    top: clamp(42px, 7vh, 70px);
    right: 0;
    width: min(112vw, 720px);
    max-width: none;
    transform: translate(34%, -24%) scale(1.2);
    z-index: 0;
  }

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

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

  .service-row {
    grid-template-columns: 52px 1fr;
    gap: 12px 20px;
  }

  .service-desc,
  .service-link {
    grid-column: 2;
  }

  .service-link {
    justify-content: flex-start;
  }

  .community-hero,
  .community-feature-grid,
  .forum-layout,
  .forum-workspace,
  .note-grid,
  .guide-article {
    grid-template-columns: 1fr;
  }

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

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

  .advisory-list {
    grid-template-columns: 1fr;
  }

  .advisory-item {
    min-height: auto;
  }
}

@media (min-width: 981px) and (max-height: 900px) {
  .hero {
    padding-top: 92px;
    padding-bottom: clamp(28px, 4.6vh, 44px);
  }

  .hero h1 {
    font-size: clamp(60px, 8.4vw, 116px);
  }

  .hero-line {
    margin-top: 18px;
    font-size: clamp(23px, 2.55vw, 35px);
  }

  .hero-text {
    margin-top: 15px;
    max-width: 660px;
    font-size: 14.5px;
    line-height: 1.56;
  }

  .hero-copy {
    padding-bottom: 6px;
  }

  .hero-motion {
    top: clamp(98px, 11vh, 118px);
    width: min(42vw, 520px);
    transform: none;
  }
}

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

  .site-nav {
    gap: 11px;
    font-size: 11px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .brand-word {
    display: none;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 82px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .hero h1 {
    font-size: clamp(56px, 17vw, 82px);
  }

  .hero-line {
    margin-top: 16px;
    font-size: clamp(19px, 5.1vw, 25px);
    white-space: normal;
  }

  .hero-text {
    margin-top: 14px;
    max-width: 94vw;
    font-size: clamp(14px, 3.7vw, 15px);
    line-height: 1.58;
  }

  .hero-motion {
    top: 62px;
    right: 0;
    width: 132vw;
    transform: translate(42%, -26%) scale(1.16);
    opacity: 0.94;
  }

  .logo-item {
    min-width: 168px;
    min-height: 82px;
    padding: 0 24px;
  }

  .logo-item img {
    max-width: 118px;
    max-height: 44px;
  }

  .app-logo {
    min-width: 118px;
  }

  .app-logo img {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
  }

  .service-row {
    min-height: 142px;
    grid-template-columns: 42px 1fr;
    padding: 20px 0;
  }

  .founder-title-row {
    gap: 14px;
  }

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

  .advisory-facts {
    display: grid;
    gap: 8px;
  }

  .ai-chat {
    padding: 14px;
  }

  .ai-chat-panel {
    width: 100%;
  }

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

  .forum-shell,
  .guide-shell {
    padding-top: 104px;
  }

  .community-map,
  .forum-rightbar,
  .note-grid,
  .term-grid {
    grid-template-columns: 1fr;
  }

  .forum-toolbar,
  .topic-row {
    grid-template-columns: 1fr;
  }

  .forum-toolbar {
    display: grid;
  }

  .topic-stats {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    justify-items: start;
    gap: 4px 10px;
  }

  .guide-index {
    position: static;
  }

  .guide-article {
    padding: 20px;
  }
}

@media (max-width: 390px) {
  .hero {
    padding-top: 78px;
    padding-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(50px, 16vw, 66px);
  }

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

  .hero-text {
    font-size: 13.5px;
    line-height: 1.52;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track,
  .motion-origin,
  .motion-axis,
  .motion-axis line,
  .motion-particle,
  .motion-particle circle {
    animation: none;
  }

  .morph-char,
  .morph-char::after {
    transition: none;
  }
}
