:root {
  color-scheme: dark;
  --bg: #030406;
  --text: #f4f4f6;
  --muted: rgba(244, 244, 246, 0.68);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 24%, rgba(92, 94, 110, 0.08), rgba(3, 4, 6, 0) 28%),
    radial-gradient(circle at 50% 112%, rgba(9, 12, 20, 0.76), rgba(3, 4, 6, 0) 40%),
    linear-gradient(180deg, #000 0%, #020306 40%, #000 100%);
  background-position:
    center,
    center,
    center;
  background-size:
    100% 100%,
    100% 100%,
    100% 100%;
}

/* Subtle film-grain overlay */
body::after {
  position: fixed;
  inset: 0;
  z-index: 10;
  content: "";
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

#ambientCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.landing {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: clamp(20px, 2.8vw, 36px) clamp(20px, 3.2vw, 52px);
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.brand em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 42px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: rgba(244, 244, 246, 0.65);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
}

.contact-link {
  flex: 0 0 auto;
  color: rgba(244, 244, 246, 0.65);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
  transition: color 200ms ease;
}

.contact-link:hover {
  color: rgba(244, 244, 246, 0.9);
}

/* Hero */
.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px 80px;
  position: relative;
  z-index: 2;
}

h1 {
  margin: 0 0 clamp(10px, 1.4vw, 18px);
  color: #ffffff;
  font-size: clamp(52px, 6.4vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  text-shadow:
    0 0 80px rgba(255, 255, 255, 0.08),
    0 24px 88px rgba(0, 0, 0, 0.42);
}

.tagline-en {
  margin: 0 0 clamp(8px, 0.9vw, 12px);
  color: rgba(244, 244, 246, 0.72);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.subtitle {
  margin: 0;
  color: rgba(244, 244, 246, 0.48);
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 400;
  line-height: 1.3;
}

/* Footer */
.footer {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 18px;
  color: rgba(244, 244, 246, 0.38);
  font-size: 12.5px;
}

.footer a {
  color: rgba(244, 244, 246, 0.52);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer a:hover {
  color: rgba(244, 244, 246, 0.85);
}

/* Responsive */
@media (max-width: 760px) {
  .landing {
    padding: 16px 16px 0;
  }

  .hero-copy {
    padding: 0 16px 100px;
  }

  .footer {
    height: 68px;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
  }

  .contact-link {
    color: rgba(244, 244, 246, 0.72);
    font-size: 13px;
  }

  body {
    background-size:
      100% 100%,
      100% 100%,
      100% 100%;
  }

}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(42px, 12.5vw, 56px);
  }

  .tagline-en {
    font-size: 17px;
  }

  .subtitle {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
