:root {
  --bg: #071018;
  --panel: rgba(255,255,255,0.05);
  --line: rgba(255,255,255,0.12);
  --text: #edf3f8;
  --muted: #aebcca;
  --accent: #d7b866;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 18%, rgba(49, 86, 132, 0.18), transparent 26%),
    radial-gradient(circle at 78% 22%, rgba(121, 28, 56, 0.12), transparent 20%),
    linear-gradient(180deg, #04080d 0%, #08111a 38%, #071018 100%);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.thread-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.thread-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transform: scale(1.03);
  animation: threadFloat 14s ease-in-out infinite;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(5, 10, 16, 0.62);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.brand {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.topnav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.topnav a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: var(--text);
}

main, .site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.018), transparent 42%),
    linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.18));
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-logo {
  width: min(440px, 80vw);
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  filter:
    drop-shadow(0 0 18px rgba(255,255,255,0.05))
    drop-shadow(0 0 30px rgba(22, 170, 120, 0.07));
}

.hero-copy {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.hero-subcopy {
  color: var(--muted);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-actions,
.prelude-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, rgba(122, 29, 50, 0.26), rgba(122, 29, 50, 0.10));
  border-color: rgba(215, 184, 102, 0.24);
  box-shadow: 0 8px 28px rgba(110, 20, 34, 0.14);
}

.btn-primary:hover {
  border-color: rgba(255, 126, 148, 0.30);
  box-shadow: 0 10px 34px rgba(138, 28, 48, 0.20);
}

.btn-secondary {
  background: rgba(255,255,255,0.03);
}

.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.55);
  animation: hintFloat 1.8s ease-in-out infinite;
}

.section {
  padding: 6rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 820px;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
}

.section-text {
  color: var(--muted);
  margin: 0;
}

.intro-section,
.prelude-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.03));
}

.sign-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sign-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.042));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.sign-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 126, 148, 0.48), transparent);
}

.sign-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(188, 46, 82, 0.12), transparent 70%);
  pointer-events: none;
}

.sign-card h3 {
  margin: 0.5rem 0 0.7rem;
  font-size: 1.1rem;
}

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

.sign-index {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.prelude-text {
  max-width: 760px;
  margin-bottom: 1.8rem;
}

.site-footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: rgba(255,255,255,0.48);
  font-size: 0.85rem;
}

@keyframes threadFloat {
  0%, 100% { transform: scale(1.03) translateY(0); }
  50% { transform: scale(1.03) translateY(10px); }
}

@keyframes hintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@media (max-width: 900px) {
  .topbar {
    padding: 0.9rem 1rem;
    flex-direction: column;
    gap: 0.7rem;
  }

  .topnav {
    justify-content: center;
  }

  .sign-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8rem;
  }

  .thread-svg {
    object-position: center;
    opacity: 0.88;
  }
}
