:root {
  --bg: #070b14;
  --bg-soft: #0b1220;
  --card: rgba(18, 26, 44, 0.6);
  --border: rgba(94, 234, 212, 0.14);
  --text: #e6edf7;
  --text-dim: #94a3b8;
  --primary: #22d3ee;
  --primary-2: #818cf8;
  --glow: rgba(34, 211, 238, 0.35);
  --radius: 16px;
  --font: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--primary); color: #04121a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1d2b45; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2b3f66; }

.container { width: min(1100px, 92%); margin: 0 auto; }

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(129, 140, 248, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(34, 211, 238, 0.06), transparent 60%);
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled { border-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 18px var(--glow);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  font-size: 18px;
}

.nav-links { display: flex; gap: 30px; }

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.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); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-sm { padding: 8px 18px; font-size: 14px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #04121a;
  box-shadow: 0 0 24px var(--glow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px var(--glow); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--primary); box-shadow: 0 0 18px rgba(34, 211, 238, 0.15); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 22px;
}

.grad-text {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-desc {
  color: var(--text-dim);
  max-width: 480px;
  font-size: 16px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: flex;
  gap: 42px;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.orbit::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px var(--primary);
}

.orbit-1 { width: 380px; height: 380px; }
.orbit-2 { width: 300px; height: 300px; animation-direction: reverse; animation-duration: 20s; }
.orbit-2::before { background: var(--primary-2); box-shadow: 0 0 14px var(--primary-2); }

@keyframes spin { to { transform: rotate(360deg); } }

.core-card {
  position: relative;
  width: 220px;
  padding: 30px 24px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 30, 52, 0.9), rgba(10, 16, 30, 0.9));
  border: 1px solid var(--border);
  box-shadow: 0 0 50px rgba(34, 211, 238, 0.18);
  backdrop-filter: blur(6px);
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.core-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 0 24px var(--glow);
}

.core-avatar svg { width: 100%; height: 100%; display: block; }

.core-name { font-size: 22px; font-weight: 700; }
.core-role { font-size: 13px; color: var(--primary); margin: 4px 0 14px; }

.core-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.core-tags span {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-dim);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(13, 20, 36, 0.5), transparent);
}

.section-head { text-align: center; margin-bottom: 56px; }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-sub { color: var(--text-dim); font-size: 15px; }

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.12);
}

.card-icon {
  font-size: 28px;
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.card h3 { font-size: 18px; margin-bottom: 10px; }

.card p { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }

.card-feats { list-style: none; }

.card-feats li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.card-feats li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 8px var(--glow);
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, rgba(20, 30, 52, 0.7), rgba(10, 16, 30, 0.7));
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34, 211, 238, 0.14), transparent 70%);
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder span {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.about-text .section-title { margin-bottom: 20px; }

.about-text p { color: var(--text-dim); margin-bottom: 16px; }

.about-points { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }

.point { display: flex; gap: 18px; align-items: flex-start; }

.point-num {
  font-family: var(--mono);
  color: var(--primary);
  font-size: 15px;
  flex-shrink: 0;
  padding-top: 2px;
}

.point p { color: var(--text); margin: 0; font-size: 15px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

.step {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--primary);
  display: block;
  margin-bottom: 14px;
}

.step h3 { font-size: 17px; margin-bottom: 8px; }

.step p { color: var(--text-dim); font-size: 14px; }

.step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  width: 18px; height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
  display: none;
}

.steps > .step:not(:last-child)::after { display: block; }

/* ---------- Contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  padding: 18px;
  border-radius: 14px;
  transition: background 0.25s, border-color 0.25s;
  border: 1px solid transparent;
}

.contact-item:hover { background: rgba(34, 211, 238, 0.06); border-color: var(--border); }

.contact-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--border);
}

.contact-label { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; }
.contact-value { font-size: 15px; font-weight: 500; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: rgba(7, 11, 20, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { height: 400px; }
  .cards-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 68px; right: 0;
    flex-direction: column;
    width: 220px;
    background: rgba(7, 11, 20, 0.97);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 0 0 0 16px;
    padding: 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .cards-grid, .steps, .contact-card { grid-template-columns: 1fr; }
  .steps > .step:not(:last-child)::after { display: none; }
  .hero-stats { gap: 28px; }
  .contact-card { padding: 20px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
}
