:root {
  --bg: #05060a;
  --fg: #e8ecf4;
  --muted: #8a93a6;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.03);
  --accent-1: #6ee7ff;
  --accent-2: #a78bfa;
  --accent-3: #f472b6;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

#bg { position: fixed; inset: 0; z-index: -2; }
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.5;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6vw;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 6, 10, 0.55);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.5px;
}
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: conic-gradient(from 180deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  box-shadow: 0 0 20px rgba(110, 231, 255, 0.5);
}
.nav nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav nav a { color: var(--muted); transition: color 0.2s; }
.nav nav a:hover { color: var(--fg); }
.lang-btn {
  background: transparent; color: var(--fg); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font: 500 12px "Inter", sans-serif; letter-spacing: 1px;
  transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover { border-color: var(--accent-1); background: rgba(110, 231, 255, 0.08); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 120px 6vw 80px; position: relative;
}
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px; letter-spacing: 4px; color: var(--accent-1); text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  font-size: clamp(48px, 9vw, 112px); line-height: 1.05; font-weight: 700; letter-spacing: -2px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.subtitle { max-width: 560px; margin: 28px auto 0; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); }
.hero-actions { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 500; font-size: 15px;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #05060a;
  box-shadow: 0 0 30px rgba(110, 231, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(167, 139, 250, 0.45); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

.scroll-hint {
  position: absolute; bottom: 40px; width: 24px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 12px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--accent-1); border-radius: 2px; animation: scroll 2s infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Sections */
.section { padding: 120px 6vw; max-width: 1280px; margin: 0 auto; }
.section-head { margin-bottom: 64px; }
.section h2 {
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -1px; line-height: 1.15;
}
.section-desc { color: var(--muted); margin-top: 16px; font-size: 17px; max-width: 560px; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: transform 0.4s, border-color 0.4s, opacity 0.8s;
  --mx: 50%; --my: 50%;
}
.product-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(110, 231, 255, 0.12), transparent 40%);
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(110, 231, 255, 0.35); }
.product-card:hover::before { opacity: 1; }
.product-index { font-family: "Space Grotesk", sans-serif; font-size: 13px; color: var(--muted); letter-spacing: 2px; }
.product-tag {
  align-self: flex-start; margin-top: 28px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  color: var(--accent-1); border: 1px solid rgba(110, 231, 255, 0.3); background: rgba(110, 231, 255, 0.06);
}
.product-card h3 { font-family: "Space Grotesk", sans-serif; font-size: 26px; font-weight: 600; margin-top: 16px; }
.product-card p { color: var(--muted); margin-top: 12px; font-size: 15px; flex: 1; }
.product-link {
  margin-top: 32px; display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500;
}
.arrow {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); transition: background 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.product-card:hover .arrow { border-color: rgba(110, 231, 255, 0.5); }
.arrow:hover, .arrow:focus-visible {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-color: transparent; color: #05060a; transform: rotate(-45deg);
  box-shadow: 0 0 24px rgba(110, 231, 255, 0.45); outline: none;
}

/* About */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.about-card { background: var(--bg); padding: 44px 36px; transition: opacity 0.8s, transform 0.8s; }
.about-num { font-family: "Space Grotesk", sans-serif; font-size: 14px; color: var(--accent-2); letter-spacing: 2px; }
.about-card h3 { font-size: 24px; margin-top: 40px; font-weight: 600; }
.about-card p { color: var(--muted); margin-top: 10px; }

/* Contact */
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .section-desc { margin: 16px auto 40px; }

/* Footer */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 32px 6vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.footer-domain { font-family: "Space Grotesk", sans-serif; letter-spacing: 1px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .nav nav { gap: 18px; }
  .nav nav a { display: none; }
  .section { padding: 80px 6vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
