:root {
  --ink: #111827;
  --muted: #64748b;
  --blue: #246bff;
  --cyan: #18c7ff;
  --mint: #34d399;
  --signal: #ff6b4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 28%, rgba(24, 199, 255, 0.18), transparent 34%),
    radial-gradient(circle at 12% 22%, rgba(52, 211, 153, 0.11), transparent 28%),
    linear-gradient(125deg, #ffffff 0%, #f6faff 48%, #eef7ff 100%);
  font-family: "Bahnschrift", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  overflow: hidden;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 107, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 107, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 68% 40%, black 0%, transparent 72%);
}

#neural-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.glow-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    conic-gradient(from 180deg at 72% 38%, transparent 0deg, rgba(36, 107, 255, 0.10) 72deg, transparent 126deg, rgba(52, 211, 153, 0.08) 214deg, transparent 300deg),
    radial-gradient(ellipse at 72% 62%, rgba(36, 107, 255, 0.12), transparent 44%);
  filter: blur(22px);
  opacity: 0.9;
}

.home {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  pointer-events: none;
}

.site-header,
.hero-copy,
.hero-visual {
  pointer-events: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(36, 107, 255, 0.35);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(217, 236, 255, 0.95));
  box-shadow: 0 0 24px rgba(36, 107, 255, 0.18), inset 0 0 12px rgba(24, 199, 255, 0.18);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(36, 107, 255, 0.7);
}

.brand-mark::before {
  width: 5px;
  height: 5px;
  left: 8px;
  top: 9px;
}

.brand-mark::after {
  width: 4px;
  height: 4px;
  right: 8px;
  bottom: 9px;
}

.brand-mark span:nth-child(1) {
  width: 13px;
  height: 1px;
  left: 10px;
  top: 12px;
  transform: rotate(32deg);
}

.brand-mark span:nth-child(2) {
  width: 11px;
  height: 1px;
  left: 13px;
  top: 20px;
  transform: rotate(-23deg);
}

.brand-mark span:nth-child(3) {
  width: 5px;
  height: 5px;
  left: 15px;
  top: 17px;
  background: var(--cyan);
}

.brand-mark span:nth-child(4) {
  width: 4px;
  height: 4px;
  right: 9px;
  top: 10px;
  background: var(--mint);
}

.brand-word {
  font-weight: 800;
  font-size: 20px;
}

.brand-word span {
  color: var(--blue);
}

.header-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid rgba(36, 107, 255, 0.16);
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.10);
  font-size: 14px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(430px, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 24px 0 40px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin: 0 0 16px;
  color: #0f172a;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(44px, 5.7vw, 78px);
  line-height: 1.05;
  letter-spacing: 0;
}

h1::first-letter {
  color: var(--blue);
}

.tagline {
  margin: 0 0 18px;
  color: #1f2937;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

.hero-text {
  max-width: 580px;
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(36, 107, 255, 0.14);
  border-radius: 999px;
  color: #2c3e59;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.scan-ring {
  position: absolute;
  left: 51%;
  bottom: 40px;
  width: min(54vw, 640px);
  aspect-ratio: 1 / 0.34;
  border: 1px solid rgba(36, 107, 255, 0.26);
  border-radius: 50%;
  transform: translateX(-50%) rotateX(64deg);
  box-shadow: 0 0 38px rgba(36, 107, 255, 0.12), inset 0 0 28px rgba(24, 199, 255, 0.16);
}

.ring-a {
  animation: scanPulse 4.6s ease-in-out infinite;
}

.ring-b {
  width: min(42vw, 500px);
  bottom: 64px;
  border-color: rgba(24, 199, 255, 0.24);
  animation: scanPulse 4.6s ease-in-out 1s infinite;
}

@keyframes scanPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-50%) rotateX(64deg) scale(0.92);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) rotateX(64deg) scale(1.08);
  }
}

@media (max-width: 980px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .home {
    width: min(100% - 32px, 760px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .scan-ring {
    width: min(92vw, 620px);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 18px;
  }

  .brand-word {
    font-size: 17px;
  }

  .header-note {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(42px, 12.5vw, 52px);
  }

  .tagline {
    font-size: 24px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-visual {
    min-height: 350px;
  }
}

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