:root {
  --bg: #0d1117;
  --bg-alt: #11161f;
  --card: #161d29;
  --border: #2a3441;
  --text: #e6edf3;
  --text-dim: #9aa7b4;
  --green: #4caf50;
  --green-bright: #6fe26f;
  --red: #ef5350;
  --yellow: #ffd54f;
  --accent: #55c957;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(85, 201, 87, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 201, 87, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 226, 111, 0.22) 0%, rgba(111, 226, 111, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s;
}

.cursor-glow.active {
  opacity: 1;
}

.spark {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
  pointer-events: none;
  z-index: 6;
  animation: spark-fade 0.8s ease-out forwards;
}

@keyframes spark-fade {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(0.2);
  }
}

@media (hover: none) {
  .cursor-glow,
  .spark {
    display: none;
  }
}

.container {
  width: min(1000px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-family: "NeoDunggeunmo", "Noto Sans KR", sans-serif;
  font-size: 1.4rem;
  color: var(--green-bright);
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--green-bright);
}

.hero {
  padding: 90px 0 70px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.hero-title {
  font-family: "NeoDunggeunmo", "Noto Sans KR", sans-serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--green-bright);
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 0 #2e7d32;
}

.btn-primary:hover {
  background: var(--green-bright);
  border-color: var(--green-bright);
}

.btn-primary:active {
  box-shadow: 0 2px 0 #2e7d32;
}

.btn-discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
  box-shadow: 0 4px 0 #3c45a5;
}

.btn-discord:hover {
  background: #6b76ff;
  border-color: #6b76ff;
}

.btn-discord:active {
  box-shadow: 0 2px 0 #3c45a5;
}

.nav-discord {
  color: #8b95ff !important;
}

.nav-discord:hover {
  color: #aab3ff !important;
}

.footer-discord {
  color: #8b95ff;
  text-decoration: none;
  font-weight: 700;
}

.footer-discord:hover {
  color: #aab3ff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
}

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

.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: "NeoDunggeunmo", "Noto Sans KR", sans-serif;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 36px;
  color: var(--text);
}

.section-text {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.uptime-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(111, 226, 111, 0.06));
  border: 1px solid var(--green);
  border-radius: 14px;
  padding: 22px 28px;
  margin-bottom: 18px;
  text-align: center;
}

.uptime-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.uptime-percent {
  font-family: "NeoDunggeunmo", "Noto Sans KR", sans-serif;
  font-size: 2.6rem;
  color: var(--green-bright);
  text-shadow: 0 0 18px rgba(111, 226, 111, 0.5);
}

.uptime-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.uptime-desc {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.uptime-link {
  width: 100%;
  margin-top: 4px;
}

/* ── 업타임 페이지 ── */
.hero-sm {
  padding: 60px 0 30px;
}

.avg-card {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: 16px;
  padding: 30px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.avg-title {
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.avg-percent {
  font-family: "NeoDunggeunmo", "Noto Sans KR", sans-serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--green-bright);
  text-shadow: 0 0 22px rgba(111, 226, 111, 0.45);
}

.avg-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.server-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.server-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.server-row:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.server-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.server-icon {
  font-size: 1.3rem;
}

.server-name {
  font-family: "NeoDunggeunmo", "Noto Sans KR", sans-serif;
  font-size: 1.15rem;
  flex: 1;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.uptime-bar {
  width: 100%;
  height: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.uptime-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--green-bright);
  transition: width 1s ease-out;
}

.avg-bar {
  max-width: 420px;
  height: 14px;
  margin: 4px auto 0;
}

.server-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
}

.server-uptime-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.server-uptime-value {
  font-family: "NeoDunggeunmo", "Noto Sans KR", sans-serif;
  font-size: 1.3rem;
}

.server-downtime {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.server-downtime strong {
  font-family: "NeoDunggeunmo", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.server-downtime.down {
  color: var(--red);
}

.server-downtime.down strong {
  color: #ff8a85;
}

.uptime-note {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}

.uptime-error {
  background: rgba(239, 83, 80, 0.12);
  border: 1px solid var(--red);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  color: #ff8a85;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.server-row.muted {
  opacity: 0.6;
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.status-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}

.edition-title {
  font-family: "NeoDunggeunmo", "Noto Sans KR", sans-serif;
  font-size: 1.2rem;
  color: var(--green-bright);
  margin-bottom: 18px;
}

.status-footer {
  text-align: center;
  margin-top: 22px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.status-main {
  margin-bottom: 24px;
}

.status-label {
  font-family: "NeoDunggeunmo", "Noto Sans KR", sans-serif;
  font-size: 1.6rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.dot-lg {
  width: 16px;
  height: 16px;
}

.dot.online {
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--green-bright);
  animation: pulse 1.6s infinite;
}

.dot.offline {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.status-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-item-title {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.status-item-value {
  font-weight: 700;
  font-size: 0.98rem;
  word-break: break-all;
}

.status-updated {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--green-bright);
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.join-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  text-align: center;
}

.join-steps {
  list-style: none;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.join-steps li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.step-text {
  flex: 1;
  word-break: keep-all;
  line-height: 1.7;
}

.step-text .ip-code {
  white-space: nowrap;
}

.step-num {
  font-family: "NeoDunggeunmo", "Noto Sans KR", sans-serif;
  background: var(--green);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ip-code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--green-bright);
  font-weight: 700;
}

.join-copy {
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }
  .nav {
    gap: 6px 14px;
    justify-content: center;
  }
  .nav a {
    font-size: 0.85rem;
  }
  .hero {
    padding: 60px 0 50px;
  }
  .status-card {
    padding: 22px 16px;
  }
}
