/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #030712;
  --bg-elevated: #0a0f1e;
  --bg-card: rgba(15, 23, 42, 0.55);
  --border: rgba(148, 163, 184, 0.1);
  --border-hover: rgba(0, 212, 255, 0.3);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --cyan: #00d4ff;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --green: #10b981;
  --gradient: linear-gradient(135deg, #00d4ff 0%, #3b82f6 50%, #8b5cf6 100%);
  --font: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Background layers ── */
#grid-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 212, 255, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.05), transparent),
    linear-gradient(180deg, transparent 0%, rgba(3, 7, 18, 0.4) 100%);
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.glow--1 {
  width: 560px; height: 560px;
  top: -180px; right: -80px;
  background: rgba(0, 212, 255, 0.07);
}
.glow--2 {
  width: 480px; height: 480px;
  bottom: 10%; left: -120px;
  background: rgba(139, 92, 246, 0.06);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.22);
}
.btn--primary:hover {
  box-shadow: 0 8px 36px rgba(0, 212, 255, 0.32);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--cyan);
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.brand__icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}
.brand__icon svg { width: 20px; height: 20px; }
.brand__icon--sm { width: 32px; height: 32px; border-radius: 8px; box-shadow: none; }
.brand__icon--sm svg { width: 16px; height: 16px; }

.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header__cta { margin-left: 8px; flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* 修复：hidden 属性不被 display:flex 覆盖 */
.mobile-nav[hidden] { display: none !important; }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  background: rgba(3, 7, 18, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.mobile-nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mobile-nav .btn { margin-top: 12px; }

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 88px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2.6rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero__desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.stat {
  padding: 0 20px;
  text-align: center;
}
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }

.stat__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* Visual card (replaces terminal) */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(10, 15, 30, 0.75));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.04),
    0 32px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.visual-card__header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.visual-card__title {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  flex: 1;
}
.visual-card__status {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 100px;
}

.visual-card__body { padding: 24px 22px 28px; }

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.status-row:last-of-type { border-bottom: none; }
.status-row--highlight {
  color: var(--cyan);
  font-weight: 600;
  margin-top: 4px;
}
.status-row__icon {
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 6px;
  flex-shrink: 0;
}
.status-row__icon--ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}
.status-row--highlight .status-row__icon {
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  font-size: 9px;
}

.visual-card__meter { margin-top: 20px; }
.meter__label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.meter__value { color: var(--cyan); font-weight: 600; }
.meter__bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}
.meter__fill {
  width: 92%;
  height: 100%;
  background: var(--gradient);
  border-radius: 100px;
  animation: meter-pulse 3s ease-in-out infinite;
}
@keyframes meter-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.orbit {
  position: absolute;
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.orbit--1 {
  width: 460px; height: 460px;
  animation: spin 35s linear infinite;
}
.orbit--2 {
  width: 360px; height: 360px;
  border-color: rgba(139, 92, 246, 0.08);
  animation: spin 24s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Sections ── */
.section {
  position: relative;
  z-index: 1;
  padding: 108px 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(10, 15, 30, 0.45), transparent);
}

.section__head {
  text-align: center;
  margin-bottom: 60px;
}

.section__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 14px;
  padding: 5px 14px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 100px;
}

.section__title {
  font-size: clamp(1.9rem, 3.8vw, 2.65rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section__desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 32px 30px 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.feature-card:hover::before { opacity: 0.7; }

.feature-card__icon {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 18px;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card__icon--cyan { background: rgba(0, 212, 255, 0.1); color: var(--cyan); }
.feature-card__icon--purple { background: rgba(139, 92, 246, 0.1); color: var(--purple); }
.feature-card__icon--blue { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.feature-card__icon--green { background: rgba(16, 185, 129, 0.1); color: var(--green); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Workflow ── */
.workflow {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.workflow__line {
  position: absolute;
  left: 27px;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  opacity: 0.25;
}

.workflow__step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.workflow__num {
  flex-shrink: 0;
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  background: var(--bg-elevated);
  border: 2px solid rgba(0, 212, 255, 0.35);
  border-radius: 50%;
  color: var(--cyan);
  position: relative;
  z-index: 1;
}

.workflow__content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  padding-top: 12px;
}
.workflow__content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Assurance ── */
.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.assurance-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.assurance-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.assurance-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  font-size: 14px;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 18px;
}

.assurance-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.assurance-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── CTA ── */
.section--cta { padding-bottom: 112px; }

.cta-card {
  position: relative;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
}

.cta-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(0, 212, 255, 0.07), transparent 65%);
  pointer-events: none;
}

.cta-card__content { position: relative; z-index: 1; }

.cta-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cta-card p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.cta-card__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-card__meta {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-card__meta span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: rgba(3, 7, 18, 0.5);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__name { font-size: 14px; font-weight: 600; }
.footer__copy { font-size: 12px; color: var(--text-dim); margin-top: 3px; }

.footer__links { display: flex; gap: 22px; }
.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--cyan); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
  }
  .stat { padding: 0 12px; }
  .stat-divider { display: none; }
  .hero__visual { order: -1; }
  .orbit { display: none; }

  .features-grid,
  .assurance-grid { grid-template-columns: 1fr; }

  .nav, .header__cta { display: none; }
  .menu-toggle { display: flex; }

  .cta-card { padding: 44px 24px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding-bottom: 64px; }
  .section { padding: 80px 0; }
  .workflow__step { flex-direction: column; gap: 12px; }
  .workflow__line { display: none; }
  .workflow__content h3 { padding-top: 0; }
}
