/* ============ Tokens ============ */
:root {
  --bg: #05070d;
  --bg-alt: #090c16;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef1fb;
  --text-dim: #9aa3bd;
  --text-faint: #6b7390;
  --accent: #4fd1ff;
  --accent-2: #7c5cff;
  --accent-3: #37f5c4;
  --gradient: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  --shadow-glow: 0 0 40px rgba(79, 209, 255, 0.15);
  --radius: 18px;
  --radius-sm: 12px;
  --font-head: "Orbitron", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Background canvas ============ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

/* ============ Shared bits ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 10px var(--accent-3);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #04070d;
  box-shadow: 0 10px 30px rgba(79, 209, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(79, 209, 255, 0.35); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--surface-strong); transform: translateY(-2px); }
.btn.full-width { width: 100%; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}
.section-head p { color: var(--text-dim); margin: 0; }

section { position: relative; z-index: 1; padding: 110px 0; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  border-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient);
  color: #04070d;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}
.brand-mark.small { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; overflow: hidden; }
.brand-text strong { font-size: 17px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-family: var(--font-head); font-size: 10px; color: var(--text-faint); letter-spacing: 0.12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 14.5px;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { border-color: rgba(79, 209, 255, 0.4); }
.lang-toggle-sep { color: var(--text-faint); opacity: 0.5; }
.lang-toggle span[data-lang-option] { transition: color 0.2s ease; }
.lang-toggle span[data-lang-option].active { color: var(--accent); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--text);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  padding-top: 170px;
  padding-bottom: 90px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.25;
  margin: 0 0 22px;
  font-weight: 800;
}
.hero-desc {
  color: var(--text-dim);
  font-size: 16.5px;
  max-width: 560px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats { display: flex; gap: 42px; flex-wrap: wrap; }
.stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; position: relative; }
.stat-num {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-suffix { font-family: var(--font-head); font-size: 20px; color: var(--accent-3); }
.stat-label { width: 100%; font-size: 13px; color: var(--text-faint); margin-top: 4px; }

/* hero visual */
.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.orbit-ring {
  position: absolute;
  border: 1px dashed var(--border);
  border-radius: 50%;
  animation: spin linear infinite;
}
.ring-1 { width: 200px; height: 200px; animation-duration: 18s; }
.ring-2 { width: 300px; height: 300px; animation-duration: 30s; border-color: rgba(124, 92, 255, 0.25); animation-direction: reverse; }
.ring-3 { width: 400px; height: 400px; animation-duration: 44s; border-color: rgba(55, 245, 196, 0.18); }
@keyframes spin { to { transform: rotate(360deg); } }

.core-node {
  position: relative;
  z-index: 2;
  width: 96px; height: 96px;
  border-radius: 28px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  color: #04070d;
  box-shadow: 0 0 60px rgba(79, 209, 255, 0.4);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.floating-icon {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  color: var(--accent);
  animation: float 6s ease-in-out infinite;
}
.icon-1 { top: 6%; left: 12%; animation-delay: 0.2s; color: #4fd1ff; }
.icon-2 { top: 18%; right: 6%; animation-delay: 1.1s; color: #ff6b6b; }
.icon-3 { bottom: 22%; left: 2%; animation-delay: 0.6s; color: #7c5cff; }
.icon-4 { bottom: 8%; right: 16%; animation-delay: 1.6s; color: #37f5c4; }
.icon-5 { top: 48%; left: -4%; animation-delay: 2s; color: #ffd166; }
.icon-6 { top: 50%; right: -2%; animation-delay: 0.9s; color: #4fd1ff; }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.scroll-hint span {
  width: 1px; height: 30px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ Products ============ */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 46px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 14px;
  transition: all 0.25s ease;
}
.filter-btn:hover { color: var(--text); border-color: rgba(79, 209, 255, 0.4); }
.filter-btn.active {
  background: var(--gradient);
  color: #04070d;
  border-color: transparent;
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(79, 209, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 209, 255, 0.35);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}
.card:hover::before { opacity: 1; }
.card.hidden { display: none; }
.card-wide { grid-column: span 2; }

.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 209, 255, 0.16), rgba(124, 92, 255, 0.16));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.card h3 { margin: 0 0 10px; font-size: 18px; position: relative; z-index: 1; }
.card p { margin: 0 0 16px; color: var(--text-dim); font-size: 14px; position: relative; z-index: 1; }
.card-tag {
  display: inline-block;
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ============ Why ============ */
.why { background: var(--bg-alt); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-item {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.why-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #04070d;
  font-size: 22px;
}
.why-item h3 { margin: 0 0 10px; font-size: 17px; }
.why-item p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about-copy h2 { font-family: var(--font-head); font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 20px; }
.about-copy p { color: var(--text-dim); margin: 0 0 16px; }
.about-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); }
.about-list i { color: var(--accent-3); }

.about-visual { display: flex; align-items: center; justify-content: center; }
.hex-frame {
  width: 260px; height: 260px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 74px;
  color: var(--accent);
  position: relative;
  box-shadow: var(--shadow-glow);
}
.hex-frame::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 40px;
  border: 1px dashed var(--border);
  animation: spin 40s linear infinite;
}

/* ============ Contact ============ */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.contact-copy { padding: 52px; }
.contact-copy h2 { font-family: var(--font-head); font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 14px; }
.contact-copy p { color: var(--text-dim); margin: 0 0 30px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-dim); }
.info-item i { color: var(--accent); width: 18px; text-align: center; }

.contact-form {
  padding: 52px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row { display: flex; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 209, 255, 0.15);
}
.form-note { font-size: 12px; color: var(--text-faint); margin: 0; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.footer-copy, .footer-beian { margin: 0; font-size: 12.5px; color: var(--text-faint); }
.footer-beian a { color: inherit; text-decoration: none; }
.footer-beian a:hover { color: var(--text-dim); text-decoration: underline; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-form { border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(5, 7, 13, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 320px; }
  .nav-link { width: 100%; padding: 12px 0; }
  .nav-toggle { display: flex; }
  .why-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .form-row { flex-direction: column; }
  .contact-copy, .contact-form { padding: 34px 26px; }
  section { padding: 76px 0; }
}

@media (max-width: 480px) {
  .hero-visual { height: 260px; }
  .ring-1 { width: 150px; height: 150px; }
  .ring-2 { width: 220px; height: 220px; }
  .ring-3 { width: 290px; height: 290px; }
  .core-node { width: 74px; height: 74px; font-size: 26px; }
  .floating-icon { width: 42px; height: 42px; font-size: 15px; }
  .lang-toggle { padding: 7px 10px; font-size: 11.5px; }
}

@media (max-width: 420px) {
  .hero-stats { gap: 26px; }
  .brand-text small { display: none; }
}
