:root {
  color-scheme: dark;
  --bg: #080a0c;
  --bg-soft: #101316;
  --text: #f4fbff;
  --muted: #9eb1b7;
  --line: rgba(189, 244, 255, 0.16);
  --cyan: #49e6ff;
  --green: #8effbf;
  --amber: #ffd27a;
  --shadow: rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(73, 230, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 16% 70%, rgba(142, 255, 191, 0.08), transparent 28rem),
    linear-gradient(135deg, #080a0c 0%, #0d1012 48%, #090b0e 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

.site-shell {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

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

.brand,
.header-action,
.button {
  font-size: 14px;
  font-weight: 650;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(73, 230, 255, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(73, 230, 255, 0.98), rgba(142, 255, 191, 0.72)),
    #101316;
  box-shadow: 0 0 28px rgba(73, 230, 255, 0.38);
  transform: rotate(45deg);
}

.inline-link {
  transition: color 180ms ease;
}

.inline-link:hover {
  color: var(--text);
}

.header-action {
  justify-self: end;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d8fbff;
  background: rgba(255, 255, 255, 0.035);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 74px);
  min-height: calc(100vh - 190px);
  padding: 26px 0 48px;
}

.hero-copy {
  max-width: 610px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 116px);
  line-height: 0.95;
  font-weight: 780;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  border: 1px solid rgba(73, 230, 255, 0.72);
  background: linear-gradient(135deg, #d9fbff, #49e6ff 55%, #8effbf);
  color: #071013;
  box-shadow: 0 18px 42px rgba(73, 230, 255, 0.22);
}

.secondary {
  border: 1px solid var(--line);
  color: #d9f5f8;
  background: rgba(255, 255, 255, 0.04);
}

.secondary:hover,
.header-action:hover {
  border-color: rgba(73, 230, 255, 0.46);
  background: rgba(73, 230, 255, 0.08);
}

.hero-visual {
  position: relative;
  min-height: min(58vw, 650px);
  isolation: isolate;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(1.08) contrast(1.04);
  box-shadow:
    0 34px 90px var(--shadow),
    0 0 80px rgba(73, 230, 255, 0.18);
  mask-image: radial-gradient(circle at 50% 48%, black 42%, rgba(0, 0, 0, 0.9) 58%, transparent 83%);
}

.visual-orbit {
  position: absolute;
  inset: 12%;
  z-index: 1;
  border: 1px solid rgba(73, 230, 255, 0.22);
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: drift 16s linear infinite;
}

.orbit-two {
  inset: 22% 7%;
  border-color: rgba(255, 210, 122, 0.18);
  animation-duration: 24s;
  animation-direction: reverse;
}

.principles,
.projects {
  border-top: 1px solid var(--line);
  padding: 58px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.projects p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

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

.principle-grid article {
  min-height: 182px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
}

.dot {
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: 34px;
  border-radius: 50%;
  box-shadow: 0 0 22px currentColor;
}

.pure {
  color: var(--cyan);
  background: var(--cyan);
}

.open {
  color: var(--green);
  background: var(--green);
}

.calm {
  color: var(--amber);
  background: var(--amber);
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
}

article p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.projects {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 84px;
}

.projects h2 {
  margin-bottom: 16px;
}

.inline-link {
  flex: 0 0 auto;
  color: #d8fbff;
  font-weight: 650;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: rgba(158, 177, 183, 0.78);
  font-size: 13px;
  line-height: 1.6;
}

.beian-link {
  color: rgba(216, 251, 255, 0.78);
  transition: color 180ms ease;
}

.beian-link:hover {
  color: var(--text);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 20px 0 34px;
  }

  .hero-visual {
    order: -1;
    min-height: clamp(220px, 62vw, 330px);
  }

  .hero p {
    margin-top: 24px;
  }

  .section-heading,
  .projects {
    display: block;
  }

  .section-heading p {
    margin-top: 16px;
  }

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

  .inline-link {
    display: inline-block;
    margin-top: 20px;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 12px;
  }

  .brand,
  .header-action {
    font-size: 13px;
  }

  .header-action {
    padding: 9px 11px;
  }

  .site-footer {
    display: block;
    text-align: center;
  }

  .site-footer span {
    display: block;
    margin-top: 6px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .button {
    width: 100%;
  }
}
