:root {
  color-scheme: light;
  --ink: #15201b;
  --muted: #607068;
  --paper: #f8faf7;
  --line: rgba(21, 32, 27, 0.12);
  --green: #1f8a5b;
  --teal: #1d9aa2;
  --coral: #ed6a5a;
  --gold: #e6a93f;
  --white: #ffffff;
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
a {
  font: inherit;
}

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

.app-shell,
.loading-screen,
.home-screen {
  min-height: 100vh;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 22% 18%, rgba(237, 106, 90, 0.18), transparent 28%),
    radial-gradient(circle at 78% 30%, rgba(29, 154, 162, 0.2), transparent 30%),
    linear-gradient(135deg, #f9fbf4 0%, #eef8f4 52%, #fff7ec 100%);
  transition:
    opacity 520ms ease,
    visibility 520ms ease;
}

.loading-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.loader-panel {
  position: relative;
  width: min(440px, 100%);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 90px rgba(36, 79, 66, 0.18);
  backdrop-filter: blur(18px);
}

.loader-mark {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 28px;
}

.loader-mark span {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--green);
  border-right-color: var(--teal);
  border-radius: 50%;
  animation: spin 1.35s linear infinite;
}

.loader-mark span:nth-child(2) {
  inset: 12px;
  border-top-color: var(--coral);
  border-right-color: var(--gold);
  animation-duration: 1s;
  animation-direction: reverse;
}

.loader-mark span:nth-child(3) {
  inset: 28px;
  border-color: var(--ink);
  animation: pulse 1.2s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.loader-panel h1,
.hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.loading-copy {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(21, 32, 27, 0.1);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--coral));
  transition: width 120ms ease;
}

.loading-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

#skipButton {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.home-screen {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.home-screen.is-active {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 247, 0.86);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
}

.site-nav {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  padding: clamp(40px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.hero-content {
  max-width: 780px;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 34px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: var(--ink);
}

.hero-art {
  position: relative;
  min-height: 420px;
}

.orbit,
.core {
  position: absolute;
  border-radius: 50%;
}

.orbit {
  border: 1px solid rgba(21, 32, 27, 0.18);
}

.orbit-one {
  inset: 8%;
  animation: spin 16s linear infinite;
}

.orbit-two {
  inset: 22%;
  border-color: rgba(31, 138, 91, 0.32);
  animation: spin 10s linear infinite reverse;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.orbit-one::before {
  top: 12%;
  left: 12%;
  background: var(--coral);
}

.orbit-one::after {
  right: 8%;
  bottom: 18%;
  background: var(--teal);
}

.orbit-two::before {
  right: 18%;
  top: 5%;
  background: var(--gold);
}

.orbit-two::after {
  left: 8%;
  bottom: 18%;
  background: var(--green);
}

.core {
  inset: 38%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18)),
    var(--green);
  box-shadow: 0 24px 80px rgba(31, 138, 91, 0.34);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.feature-band article {
  min-height: 220px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
}

.feature-band span {
  color: var(--coral);
  font-weight: 800;
}

.feature-band h3 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
}

.feature-band p,
.site-footer {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    transform: scale(0.62);
    opacity: 0.45;
  }
}

@media (max-width: 760px) {
  .loader-panel {
    padding: 28px;
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-art {
    order: -1;
    min-height: 280px;
  }

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