:root {
  --bg: #07050d;
  --surface: rgba(18, 12, 31, .72);
  --surface-strong: rgba(28, 18, 48, .9);
  --text: #f5f0ff;
  --muted: #a99abb;
  --violet: #ad7aff;
  --violet-soft: #d9c6ff;
  --orange: #ff9b5e;
  --line: rgba(205, 174, 255, .16);
  --glow: rgba(155, 91, 255, .24);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: transparent; }
a { color: inherit; text-decoration: none; }

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 8%, rgba(136, 79, 242, .22), transparent 30rem),
    radial-gradient(circle at 20% 38%, rgba(255, 137, 77, .07), transparent 25rem),
    linear-gradient(180deg, #0d0818 0%, #07050d 55%, #09060f 100%);
}
.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.75) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(200,175,255,.6) 0 1px, transparent 1.3px);
  background-position: 20px 40px, 110px 90px;
  background-size: 180px 180px, 250px 250px;
}

.shell { position: relative; width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(207,180,255,.36);
  border-radius: 12px;
  background: rgba(151,91,255,.13);
  box-shadow: 0 0 30px var(--glow);
  color: var(--violet-soft);
  font-weight: 700;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .04em; }
.brand small, .version { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }

.hero { padding: 110px 0 92px; max-width: 820px; }
.eyebrow { margin: 0 0 16px; color: var(--violet); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(48px, 8vw, 92px); line-height: .98; letter-spacing: -.055em; font-weight: 700; }
.hero h1 span {
  background: linear-gradient(90deg, var(--violet-soft), var(--violet) 60%, var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}
.lead { max-width: 690px; margin: 32px 0; color: #c8bed3; font-size: 17px; line-height: 1.8; }
.registry-state {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 10, 23, .7);
  color: var(--muted);
  font-size: 12px;
}
.registry-state strong { color: var(--text); font-size: 12px; }
.signal { width: 7px; height: 7px; border-radius: 50%; background: #8c7b9f; }
.registry-state.ok .signal { background: #9df5bb; box-shadow: 0 0 15px rgba(133,255,174,.75); }
.registry-state.degraded .signal { background: #ffad78; box-shadow: 0 0 15px rgba(255,148,83,.65); }

.modules { padding: 32px 0 100px; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.count { color: var(--muted); font-size: 13px; }

.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.module-card, .empty {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(23,16,38,.82), rgba(12,9,20,.76));
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.module-card { min-height: 210px; padding: 24px; transition: border-color .18s ease, transform .18s ease; }
.module-card:hover { transform: translateY(-2px); border-color: rgba(206,176,255,.32); }
.module-card__meta, .module-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.module-id, .module-version, .module-card__footer { color: #8f829e; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.module-card h3 { margin: 34px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.module-card p { min-height: 48px; margin: 0; color: #b8adbf; line-height: 1.65; font-size: 13px; }
.module-card p.muted { color: #776c82; }
.module-card__footer { margin-top: 28px; justify-content: flex-start; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); }

.empty { padding: 34px; }
.empty strong { display: block; margin-bottom: 8px; }
.empty p { margin: 0; color: var(--muted); line-height: 1.6; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: #766b80;
  font-size: 10px;
  letter-spacing: .11em;
}

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1120px); }
  .topbar { min-height: 74px; }
  .hero { padding: 78px 0 68px; }
  .lead { font-size: 15px; }
  .module-grid { grid-template-columns: 1fr; }
  .registry-state { border-radius: 18px; }
  footer { flex-direction: column; }
}
