/* =========================
   MSHUB index - dark premium UI
========================= */

* { box-sizing: border-box; }

:root {
  --bg: #0b1220;
  --surface: rgba(17, 24, 39, 0.86);
  --surface-2: rgba(23, 32, 51, 0.92);
  --surface-3: rgba(255, 255, 255, 0.055);
  --text: #f8fafc;
  --muted: #a7b2c5;
  --soft: #cbd5e1;
  --line: rgba(255,255,255,0.10);
  --brand: #60a5fa;
  --brand-2: #34d399;
  --amber: #fbbf24;
  --violet: #a78bfa;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.30);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.26), transparent 30%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 26%),
    linear-gradient(180deg, #08111f 0%, #0b1220 42%, #0f172a 100%);
}

a { color: inherit; }

.site-header {
  padding: 22px 20px 52px;
  border-bottom: 1px solid var(--line);
}

.top-nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.13);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
  border-color: var(--line);
}

.hero {
  max-width: 1180px;
  margin: 58px auto 0;
  display: grid;
  gap: 16px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  margin: 0 0 10px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 790px;
  margin: 0;
  color: rgba(255,255,255,0.74);
  font-size: clamp(15px, 1.45vw, 18px);
  word-break: keep-all;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-head h2,
.warning-box h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.7vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.section-head p,
.info-card p,
.warning-box p {
  margin: 0;
  color: var(--muted);
  word-break: keep-all;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 16px;
}

.info-card,
.warning-box,
.series-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.info-card { padding: 28px; }
.main-copy { grid-row: span 2; }

.info-card h2,
.info-card h3 {
  margin: 0 0 10px;
  letter-spacing: -0.04em;
}

.info-card p + p { margin-top: 14px; }
.small-card { display: flex; flex-direction: column; justify-content: center; }

.tool-grid,
.guide-grid,
.article-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card,
.guide-card,
.article-card {
  display: flex;
  flex-direction: column;
  min-height: 142px;
  padding: 22px;
  border-radius: 22px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tool-card:hover,
.article-card:hover,
.guide-card:hover,
.more-btn:hover {
  transform: translateY(-2px);
}

.tool-card strong,
.guide-card strong,
.article-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.tool-card span,
.guide-card span,
.article-card span {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.blue { background: linear-gradient(135deg, #2563eb, #1e40af); }
.amber { background: linear-gradient(135deg, #d97706, #92400e); }
.violet { background: linear-gradient(135deg, #7c3aed, #4c1d95); }

.megatrend-section { padding-top: 24px; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }

.series-block {
  padding: 24px;
  margin-top: 18px;
  position: relative;
  overflow: hidden;
}

.series-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.series-block > * { position: relative; }

.series-block.season-one::before { background: radial-gradient(circle at top right, rgba(34,211,238,0.14), transparent 35%); }
.series-block.season-two::before { background: radial-gradient(circle at top right, rgba(52,211,153,0.14), transparent 35%); }
.series-block.season-three::before { background: radial-gradient(circle at top right, rgba(251,191,36,0.13), transparent 35%); }

.series-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.series-title h3 {
  margin: 4px 0 0;
  font-size: clamp(20px, 2.2vw, 27px);
  letter-spacing: -0.04em;
}

.series-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.13);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
}

.more-btn {
  flex: 0 0 auto;
  display: inline-flex;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #dbeafe;
  background: rgba(255,255,255,0.075);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 900;
}

.article-card,
.guide-card {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.article-card:hover,
.guide-card:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(96,165,250,0.42);
}

.article-card strong,
.guide-card strong { color: var(--text); }
.article-card span,
.guide-card span { color: var(--muted); }

.warning-box {
  padding: 22px 24px;
  margin-bottom: 12px;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.08), transparent 62%),
    var(--surface);
}

.warning-box h2 {
  font-size: clamp(20px, 2.2vw, 26px);
}

.warning-box p {
  font-size: 14.5px;
  line-height: 1.75;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 48px;
  color: var(--muted);
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover { color: var(--brand); }

@media (max-width: 900px) {
  .top-nav,
  .row-head,
  .series-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links { justify-content: flex-start; }

  .intro-grid,
  .tool-grid,
  .guide-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .main-copy { grid-row: auto; }
  .hero { margin-top: 42px; }
}

@media (max-width: 640px) {
  .site-header { padding: 18px 16px 36px; }
  .section { padding: 32px 16px; }
  .hero h1 { font-size: 36px; }
  .info-card,
  .warning-box,
  .series-block,
  .tool-card,
  .guide-card,
  .article-card {
    border-radius: 18px;
    padding: 20px;
  }
  .tool-card,
  .guide-card,
  .article-card { min-height: auto; }
  .more-btn { width: 100%; }
}


/* =========================
   Final layout polish: equal widths + compact notice
========================= */
:root {
  --container: 1180px;
  --content-inner: calc(var(--container) - 40px);
}

.top-nav,
.hero,
.section,
.site-footer {
  max-width: var(--container);
}

.section.warning-box {
  max-width: var(--content-inner);
  margin: 6px auto 38px;
  padding: 20px 24px;
}

.section.warning-box h2 {
  margin-bottom: 8px;
  font-size: clamp(18px, 1.9vw, 23px);
  letter-spacing: -0.035em;
}

.section.warning-box p {
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .section.warning-box {
    max-width: calc(100% - 32px);
    margin: 0 16px 34px;
    padding: 18px;
  }

  .section.warning-box h2 {
    font-size: 20px;
  }
}
