@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
  --bg: #050714;
  --bg-soft: #0a1028;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eaf0ff;
  --muted: #9fb0d8;
  --primary: #b69cff;
  --secondary: #6ae2ff;
  --accent: #5be0c8;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  --glow: 0 10px 40px rgba(182, 156, 255, 0.35);
  --gradient: linear-gradient(135deg, #a855f7, #5eead4 50%, #4f46e5);
}

body.light {
  --bg: #f8faff;
  --bg-soft: #eef3ff;
  --panel: rgba(0, 10, 60, 0.03);
  --panel-strong: rgba(0, 10, 60, 0.07);
  --border: rgba(0, 10, 60, 0.1);
  --text: #0c1533;
  --muted: #405075;
  --primary: #7a5dff;
  --secondary: #2ab3d5;
  --accent: #1b9e7b;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --glow: 0 10px 40px rgba(122, 93, 255, 0.15);
  --gradient: linear-gradient(135deg, #8468ff, #42c8ff 50%, #5465ff);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Noto Sans KR', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(180deg, #060915, #070c1b);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

main {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

li + li {
  margin-top: 0.35rem;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

#nebula-canvas {
  display: none; /* keep canvas present but hidden for a cleaner look */
}

#loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(5, 7, 20, 0.9), rgba(5, 7, 20, 0.7));
  backdrop-filter: blur(12px);
  z-index: 999;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(182, 156, 255, 0.6), rgba(106, 226, 255, 0.4), rgba(182, 156, 255, 0.6));
  animation: spin 1.8s linear infinite;
  position: relative;
  box-shadow: var(--glow);
}

.loader-inner::after {
  content: 'NebulaCraft';
  position: absolute;
  inset: 14px;
  background: var(--bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(5, 7, 20, 0.9), rgba(5, 7, 20, 0.6));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1rem;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: var(--border);
  background: var(--panel);
}

.nav-links a.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--panel);
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chip {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
  background: var(--panel-strong);
}

.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.4rem;
  align-items: center;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw + 1rem, 3.9rem);
  margin: 0 0 1rem;
  line-height: 1.08;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0 0 1.6rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.3rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
  background: rgba(255, 255, 255, 0.07);
}

.btn-primary {
  background: linear-gradient(120deg, rgba(182, 156, 255, 0.2), rgba(106, 226, 255, 0.2));
  border-color: rgba(182, 156, 255, 0.35);
  box-shadow: 0 10px 40px rgba(106, 226, 255, 0.26);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--panel);
}

.panel {
  position: relative;
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--panel), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(106, 226, 255, 0.18), transparent 40%);
  opacity: 0.8;
  pointer-events: none;
}

.panel h3 {
  margin: 0 0 0.6rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 82px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 0.4rem;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.card {
  position: relative;
  z-index: 1;
  padding: 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--panel), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(182, 156, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 10px 50px rgba(182, 156, 255, 0.24);
}

.card::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(182, 156, 255, 0.16), transparent 60%);
  transform: translateY(35%);
  transition: transform 0.35s ease;
  z-index: 0;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover::before {
  transform: translateY(0);
}

.card h3 {
  margin: 0 0 0.3rem;
  position: relative;
  z-index: 1;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--panel);
  color: var(--secondary);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.muted {
  color: var(--muted);
}

.progress {
  margin-top: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  width: var(--value, 50%);
}

.meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.6rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  align-items: start;
}

.devlog-list {
  display: grid;
  gap: 1rem;
}

.devlog-item {
  display: block;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.devlog-item:hover {
  transform: translateY(-4px);
  border-color: rgba(182, 156, 255, 0.5);
  box-shadow: var(--glow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ip-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  flex-wrap: wrap;
}

.ip-field {
  flex: 1 1 200px;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 7, 20, 0.7);
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

body.light .ip-field {
  background: rgba(255, 255, 255, 0.7);
}

.copy-btn {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(120deg, rgba(182, 156, 255, 0.2), rgba(106, 226, 255, 0.18));
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.copy-btn.copied {
  background: linear-gradient(120deg, rgba(111, 214, 160, 0.3), rgba(106, 226, 255, 0.3));
  color: #e8fff2;
}

.status-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.status-online {
  color: #58f19c;
}

.status-offline {
  color: #ff6b6b;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.discord-embed {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--panel);
  min-height: 300px;
}

.footer {
  position: relative;
  padding: 32px 0 38px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(5, 7, 20, 0.85), rgba(5, 7, 20, 0.95));
  overflow: hidden;
}

body.light .footer {
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.95), rgba(238, 243, 255, 0.98));
}

.footer-line {
  height: 2px;
  width: 100%;
  background: var(--gradient);
  box-shadow: 0 0 18px rgba(182, 156, 255, 0.6);
  margin-bottom: 18px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.floating-stars {
  display: none; /* disable decorative blobs for a cleaner background */
}

.galaxy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.galaxy .orb {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(182, 156, 255, 0.26), transparent 60%);
  filter: blur(8px);
  top: 10%;
  right: 4%;
  transform: translateY(0);
  transition: transform 0.2s ease;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0.6; }
  50% { transform: translateY(-16px) translateX(4px); opacity: 1; }
  100% { transform: translateY(0) translateX(0); opacity: 0.6; }
}

@media (max-width: 900px) {
  .nav-links {
    flex: 1 1 auto;
    justify-content: center;
  }
  .nav {
    flex-wrap: wrap;
  }
  .hero {
    padding: 90px 0 70px;
  }
  .section {
    padding: 64px 0;
  }
}
