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

:root {
  --bg: #070b16;
  --bg2: #10182b;
  --card: rgba(20, 30, 52, 0.82);
  --text: #e9f0ff;
  --muted: #9eb0d3;
  --line: #2a3a5f;
  --accent: #7ec8ff;
  --accent2: #c7a4ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #1a2450 0%, var(--bg) 45%);
  line-height: 1.7;
  min-height: 100vh;
}

#starCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.mast,
main,
footer,
.toast {
  position: relative;
  z-index: 2;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 22, 0.75);
  backdrop-filter: blur(8px);
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.04em;
}

nav { display: flex; gap: 14px; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
nav a.on,
nav a:hover { color: var(--accent); }

main {
  width: min(1120px, 92vw);
  margin: 28px auto 40px;
}

.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}

.intro-copy {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 36px);
}

.chip {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent2);
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.12;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #08101f;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 12px;
}

.btn.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.intro-visual {
  margin: 0;
  min-height: 320px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.panel {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.panel h2 { margin-top: 0; }

.meter-wrap {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

#cloudRange { width: 100%; accent-color: var(--accent); }
#cloudOut {
  font-family: "Space Mono", monospace;
  color: var(--accent);
}

.hint { color: var(--muted); font-size: 14px; }

.orbit {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.orbit-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.orbit-btn.active {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #08101f;
  border-color: transparent;
  font-weight: 700;
}

.orbit-card h3 { margin-top: 0; }

.page-hero {
  min-height: 36vh;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  border: 1px solid var(--line);
  background-image: linear-gradient(180deg, rgba(7, 11, 22, 0.1), rgba(7, 11, 22, 0.78)), var(--hero-img, none);
}

.page-hero[style] {
  background-image: linear-gradient(180deg, rgba(7, 11, 22, 0.15), rgba(7, 11, 22, 0.82)), var(--inline-bg);
}

/* fallback: inline style sets background-image directly */
section.page-hero {
  background-blend-mode: normal;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cols article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(10, 16, 30, 0.5);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.checklist label {
  display: flex;
  gap: 10px;
  align-items: center;
}

.accordion { display: grid; gap: 8px; }

.acc-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(10, 16, 30, 0.6);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 12px;
}

.acc-body.open {
  max-height: 120px;
  padding-bottom: 10px;
}

.contact-panel a { color: var(--accent); }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 0 16px 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.45s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #12203a;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 30;
}

@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
}
