:root {
  --bg: #0b120e;
  --bg-soft: #121c16;
  --text: #f2f5f1;
  --muted: #b7c4ba;
  --accent: #c43b3b;
  --line: rgba(242, 245, 241, 0.12);
  --serif: "Instrument Serif", "Songti SC", "Noto Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 10, 0.28) 0%, rgba(8, 14, 10, 0.55) 42%, rgba(8, 14, 10, 0.92) 100%),
    radial-gradient(1000px 480px at 70% 20%, rgba(196, 59, 59, 0.18), transparent 60%);
  z-index: -1;
}

.hero__content {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto 12vh;
  padding-top: 20vh;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.headline {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.8vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--text);
  color: #10180f;
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.section__inner {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  animation: fade-up 0.9s ease both;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
}

.section__text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0.9rem 0 0.9rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: #080d0a;
}

.footer__inner {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.footer__brand {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.footer__meta,
.footer__icp,
.footer__copy {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(95, 140, 100, 0.18), transparent 55%),
    var(--bg);
}

.page__inner {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.page__inner h1 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
}

.page__inner h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

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

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__img,
  .hero__content,
  .section__inner {
    animation: none;
  }
}
