:root {
  --bg-void: #03060b;
  --bg-elevated: rgba(9, 15, 25, 0.74);
  --bg-elevated-hover: rgba(13, 22, 36, 0.9);
  --border-subtle: rgba(148, 163, 184, 0.13);
  --border-glow: rgba(34, 211, 238, 0.48);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #22d3ee;
  --accent-emerald: #10b981;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Fullscreen Canvas for telemetry grid + luminous ECG awakening wave */
.ecg-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Minimal top status bar */
.topbar {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.85s ease 0.45s;
}

body.awake .topbar {
  opacity: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: #cbd5e1;
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.9), 0 0 18px rgba(34, 211, 238, 0.55);
}

.live-clock {
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

/* Main stage */
.stage {
  position: relative;
  z-index: 5;
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hero awakened by the central R-wave ECG peak */
.hero {
  position: relative;
  width: 100%;
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 0 64px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(110, 231, 183, 0.88);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.75s ease 0.04s, transform 0.75s ease 0.04s;
}

.hero-title {
  font-size: clamp(2.2rem, 5.6vw, 3.85rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.12;
  background: linear-gradient(180deg, #ffffff 12%, #e0f2fe 58%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    letter-spacing 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.hero-bio {
  max-width: 600px;
  font-size: clamp(0.96rem, 1.55vw, 1.08rem);
  line-height: 1.88;
  color: #cbd5e1;
  font-weight: 400;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.85s ease 0.28s, transform 0.85s ease 0.28s;
}

body.awake .eyebrow {
  opacity: 1;
  transform: translateY(0);
}

body.awake .hero-title {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) drop-shadow(0 0 32px rgba(34, 211, 238, 0.34));
  letter-spacing: 0.14em;
}

body.awake .hero-bio {
  opacity: 1;
  transform: translateY(0);
}

/* Module launch deck */
.deck {
  width: 100%;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.42s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.42s;
}

body.awake .deck {
  opacity: 1;
  transform: translateY(0);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 204px;
  padding: 24px 24px 20px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.15), transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-spotlight {
  opacity: 1;
}

.card-primary {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(167, 243, 208, 0.22);
}

.card-top-rim {
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.85), rgba(186, 230, 253, 0.95), rgba(34, 211, 238, 0.85), transparent);
}

.card-primary:hover {
  transform: translateY(-4px);
  background: var(--bg-elevated-hover);
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow:
    0 26px 56px rgba(0, 0, 0, 0.6),
    0 0 34px rgba(34, 211, 238, 0.16),
    inset 0 1px 0 rgba(224, 242, 254, 0.4);
}

.card-muted {
  opacity: 0.72;
  cursor: default;
}

.card-muted:hover {
  opacity: 0.88;
  border-color: rgba(148, 163, 184, 0.24);
}

.card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.24);
  color: #67e8f9;
}

.card-muted .card-icon {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.16);
  color: #94a3b8;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.status-live {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.36);
  color: #6ee7b7;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
  animation: pulse 2.2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.status-soon {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.card-body {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.card-domain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(34, 211, 238, 0.22));
  border: 1px solid rgba(34, 211, 238, 0.42);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.card-primary:hover .card-cta {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.36), rgba(34, 211, 238, 0.34));
  border-color: rgba(125, 211, 252, 0.8);
}

.card-cta .arrow {
  transition: transform 0.25s ease;
}

.card-primary:hover .card-cta .arrow {
  transform: translateX(3px);
}

.muted-cta {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  padding: 0;
}

/* Footer */
.footer {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 18px 24px 26px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.9s ease 0.6s;
}

body.awake .footer {
  opacity: 1;
}

.footer-inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.beian-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.beian-link:hover {
  color: #e0f2fe;
}

/* Responsive */
@media (max-width: 900px) {
  .deck {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .card {
    min-height: 176px;
  }
  .hero {
    padding: 36px 0 44px;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 16px 18px 0;
  }
  .stage {
    padding: 20px 18px 34px;
  }
  .desktop-break {
    display: none;
  }
  .hero-title {
    letter-spacing: 0.09em;
  }
  .live-clock {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
