:root {
  --color-bg-dark: #000000;
  --color-bg-dark-alt: #1d1d1f;
  --color-bg-light: #fbfbfd;
  --color-bg-white: #ffffff;
  --color-text-primary: #1d1d1f;
  --color-text-secondary: #86868b;
  --color-text-light: #f5f5f7;
  --color-accent: #863bff;
  --color-border: #d2d2d7;
  --nav-height: 48px;
  --section-padding: clamp(64px, 10vw, 120px);
  --content-max: 980px;
  --font-system: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-system);
  color: var(--color-text-primary);
  background: var(--color-bg-light);
  line-height: 1.47059;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav--scrolled {
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav__inner {
  width: 100%;
  max-width: 1024px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: -0.02em;
}

.nav__logo img {
  width: 24px;
  height: 24px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 12px;
  color: var(--color-text-light);
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.nav__links a:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .nav__links {
    gap: 16px;
  }

  .nav__links a {
    font-size: 11px;
  }
}

/* Typography */
.headline {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.headline--hero {
  font-size: clamp(48px, 8vw, 80px);
}

.subheadline {
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.004em;
  line-height: 1.14286;
  margin-top: 8px;
}

.section-dark .subheadline {
  color: #a1a1a6;
}

.body-text {
  font-size: 17px;
  line-height: 1.47059;
  color: var(--color-text-secondary);
}

/* Sections */
.section {
  padding: var(--section-padding) 22px;
  text-align: center;
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section-light {
  background: var(--color-bg-light);
  color: var(--color-text-primary);
}

.section-white {
  background: var(--color-bg-white);
  color: var(--color-text-primary);
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(48px, 8vh, 80px);
  padding-bottom: clamp(48px, 6vh, 64px);
}

.hero__content {
  margin-bottom: clamp(32px, 5vh, 56px);
}

.hero__cta {
  display: inline-block;
  margin-top: 20px;
  font-size: 17px;
  color: var(--color-accent);
  transition: opacity 0.2s ease;
}

.hero__cta:hover {
  opacity: 0.8;
}

.hero__cta::after {
  content: " ›";
}

.hero__image-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero__image-wrap img {
  width: 100%;
  border-radius: 12px;
}

/* Feature blocks */
.feature {
  padding: var(--section-padding) 22px;
}

.feature__header {
  max-width: var(--content-max);
  margin: 0 auto clamp(32px, 5vw, 48px);
  text-align: center;
}

.feature__description {
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 17px;
  color: var(--color-text-secondary);
}

.section-dark .feature__description {
  color: #a1a1a6;
}

.feature__image-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.feature__image-wrap img {
  width: 100%;
  border-radius: 12px;
}

/* Showcase */
.showcase {
  padding: var(--section-padding) 0;
  overflow: hidden;
}

.showcase__header {
  padding: 0 22px;
  max-width: var(--content-max);
  margin: 0 auto clamp(32px, 5vw, 48px);
  text-align: center;
}

.showcase__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 max(22px, calc((100% - var(--content-max)) / 2));
  scrollbar-width: none;
}

.showcase__track::-webkit-scrollbar {
  display: none;
}

.showcase__item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: clamp(200px, 28vw, 280px);
}

.showcase__item img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* About */
.about__content {
  max-width: 680px;
  margin: 24px auto 0;
  text-align: center;
}

.about__meta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 24px 22px 32px;
}

.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 12px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--color-text-primary);
}

.footer__copyright,
.footer__icp {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Coming soon badge */
.badge {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 980px;
}

.section-dark .badge {
  color: #a1a1a6;
  border-color: rgba(255, 255, 255, 0.2);
}
