:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #14181f;
  --muted: #6b7280;
  --faint: #9aa3af;
  --accent: #2f3a4a;
  --accent-hover: #1a2330;
  --line: rgba(20, 24, 31, 0.10);
  --line-soft: rgba(20, 24, 31, 0.06);
  --toggle-track: #f1f3f6;
  --toggle-ring: rgba(20, 24, 31, 0.12);
  --toggle-active: #ffffff;
  --toggle-icon: #6b7280;
  --bg-mask: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.55) 40%, rgba(255,255,255,0.15) 100%);
  --footer-gradient: rgba(255,255,255,0.6);
  --footer-bg: rgba(255,255,255,0.35);
}

[data-theme="dark"] {
  --bg: #0b0e13;
  --text: #e8ebf0;
  --muted: #9aa3af;
  --faint: #6b7280;
  --accent: #c7d0dc;
  --accent-hover: #e8ebf0;
  --line: rgba(232, 235, 240, 0.12);
  --line-soft: rgba(232, 235, 240, 0.06);
  --toggle-track: rgba(255, 255, 255, 0.05);
  --toggle-ring: rgba(232, 235, 240, 0.16);
  --toggle-active: rgba(255, 255, 255, 0.10);
  --toggle-icon: #9aa3af;
  --bg-mask: linear-gradient(to bottom, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.60) 100%);
  --footer-gradient: rgba(0,0,0,0.8);
  --footer-bg: rgba(0,0,0,0.65);
}

* {
  box-sizing: border-box;
}

.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.bg-image.loaded {
  opacity: 1;
}

.bg-mask {
  position: absolute;
  inset: 0;
  background: var(--bg-mask);
  pointer-events: none;
  transition: background 0.4s ease;
}

.header,
.main,
.footer {
  z-index: 1;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent);
  position: relative;
  flex: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--bg);
  border-radius: 2px;
  transition: inset 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
}

.brand:hover .brand-mark::after {
  inset: 3px;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.theme-toggle {
  border: 1px solid var(--toggle-ring);
  background: var(--toggle-track);
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--toggle-icon);
  transform: scale(1.04);
}

.theme-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--toggle-icon);
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 13px;
  line-height: 1;
  user-select: none;
}

[data-theme="light"] .theme-icon.sun,
[data-theme="dark"] .theme-icon.moon {
  background: var(--toggle-active);
  color: var(--text);
}

.main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 7vh, 88px) clamp(20px, 4vw, 56px);
}

.emblem {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: var(--accent);
  opacity: 0.92;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.emblem:hover {
  transform: scale(1.08);
}

.emblem svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.emblem:hover svg {
  transform: rotate(-8deg);
}

.emblem svg rect,
.emblem svg circle {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawPath 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.emblem svg rect:nth-child(2) { animation-delay: 0.2s; }
.emblem svg rect:nth-child(3) { animation-delay: 0.3s; }
.emblem svg circle { animation-delay: 0.4s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  animation: pulse 2.4s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5.6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: min(560px, 100%);
  margin: 36px auto 0;
}

.feature {
  text-align: center;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feature:nth-child(1) { animation-delay: 0.4s; }
.feature:nth-child(2) { animation-delay: 0.5s; }
.feature:nth-child(3) { animation-delay: 0.6s; }

.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(47, 58, 74, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

[data-theme="dark"] .feature::after {
  background: radial-gradient(circle at 50% 0%, rgba(199, 208, 220, 0.08), transparent 70%);
}

.feature:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -16px rgba(20, 24, 31, 0.18);
}

.feature:hover::after {
  opacity: 1;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.10em;
  margin: 0;
  position: relative;
  z-index: 1;
}

.divider {
  width: min(380px, 70%);
  height: 1px;
  margin: 40px 0 0;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
  animation: shimmer 3.5s ease-in-out infinite;
}

.footer {
  position: relative;
  z-index: 1;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--footer-gradient));
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px clamp(20px, 4vw, 56px);
  font-size: 13px;
  color: var(--muted);
  background: var(--footer-bg);
}

.copyright {
  margin: 0;
  letter-spacing: 0.02em;
}

.record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.record-label {
  color: var(--faint);
}

a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--text);
  border-color: var(--text);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 16px 18px;
  }

  .main {
    padding: 40px 20px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .feature {
    padding: 14px 16px;
  }

  .footer-inner {
    padding: 14px 18px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
    background: var(--footer-bg);
  }

  .divider {
    margin-top: 32px;
  }

  .bg-mask {
    background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.4) 40%, rgba(255,255,255,0.1) 100%);
  }

  [data-theme="dark"] .bg-mask {
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.50) 100%);
  }
}
