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

:root {
  --primary: #374151;
  --primary-dark: #1F2937;
  --primary-light: #F3F4F6;
  --bg: #F7F8FA;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(55,65,81,0.2);
  --radius: 14px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ───── Header ───── */
header {
  background: #1F2937;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  gap: 24px;
}

.logo {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo span { opacity: 0.7; font-weight: 400; font-size: 1rem; }

nav {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

nav::-webkit-scrollbar { display: none; }

nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.15s;
  white-space: nowrap;
}

nav a:hover { background: rgba(255,255,255,0.18); color: white; }

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ───── Hero ───── */
.hero {
  background: linear-gradient(135deg, #111827 0%, #1F2937 60%, #4B5563 100%);
  padding: 60px 20px 56px;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.hero-install-btn {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.hero-install-btn:hover { background: rgba(255,255,255,0.35); }

.hero-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-tag {
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.hero-tag:hover {
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.5);
  color: white;
}

/* ───── Links Section ───── */
.links-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 20px 80px;
}

.category-block {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
}

.category-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.category-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
  font-weight: 400;
}

.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}

.link-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  display: block;
  position: relative;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(55,65,81,0.2);
}

.link-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  display: block;
}

.link-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 5px;
  color: var(--text);
}

.link-desc {
  font-size: 0.76rem;
  color: var(--text-light);
  line-height: 1.45;
}

.link-hint {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s;
}

.link-card:hover .link-hint { opacity: 1; }

/* ───── SEO Intro ───── */
.seo-intro {
  background: white;
  border-top: 1px solid var(--border);
  padding: 48px 20px;
}

.seo-intro-inner { max-width: 800px; margin: 0 auto; }

.seo-intro h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.seo-intro p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.seo-intro p:last-child { margin-bottom: 0; }

/* ───── Footer ───── */
footer {
  background: #1F2937;
  color: #9CA3AF;
  padding: 44px 20px 28px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.footer-brand .logo-footer {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p { font-size: 0.83rem; line-height: 1.6; max-width: 260px; }

.footer-links h4 {
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.83rem;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.8rem; }
.footer-bottom-links { display: flex; gap: 20px; }

.footer-bottom-links a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: white; }

/* ───── Responsive ───── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  nav { display: none; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 480px) {
  .links-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .link-card { padding: 18px 10px 14px; }
  .link-icon { font-size: 2rem; }
  .hero { padding: 40px 20px 52px; }
  .hero h1 { font-size: 1.5rem; }
}


/* ───── Our Sites Bar ───── */
.our-sites-bar {
  justify-content: center;
  background: #1A1A2E;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.our-sites-bar::-webkit-scrollbar { display: none; }
.our-sites-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.our-sites-links {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}
.our-sites-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.our-sites-links a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}
/* ───── Cross Link Tips ───── */
.cross-link-tip {
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--primary-light, #f0f4ff);
  border-left: 3px solid var(--primary, #4F46E5);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--text-light, #6B7280);
}
.cross-link-tip a {
  color: var(--primary, #4F46E5);
  font-weight: 600;
  text-decoration: none;
}
.cross-link-tip a:hover { text-decoration: underline; }

.cross-link-banner {
  margin: 32px 0 0;
  padding: 16px 20px;
  background: var(--primary-light, #f0f4ff);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}
.cross-link-banner span { color: var(--text, #1A1A2E); font-weight: 600; }
.cross-link-banner a {
  color: var(--primary, #4F46E5);
  font-weight: 600;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--primary, #4F46E5);
  border-radius: 20px;
  font-size: 0.82rem;
}
.cross-link-banner a:hover { background: var(--primary, #4F46E5); color: white; }

.hero-related {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-related a {
  color: white;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 0.82rem;
}
.hero-related a:hover { background: rgba(255,255,255,0.35); }
