:root {
  --bg: #050814;
  --bg-deep: #02040b;
  --panel: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.11);
  --text: #f6f2ec;
  --muted: #9eabbe;
  --accent: #69ddff;
  --accent-2: #7effc8;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(105, 221, 255, 0.17), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(126, 255, 200, 0.1), transparent 18%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

a {
  color: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 26px 26px;
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 0 10px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.18em;
  font-size: 14px;
  font-weight: 800;
}

.top-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.hero,
.featured,
.categories,
.posts,
.system-strip,
.list-hero,
.related-posts {
  margin-top: 24px;
}

.hero,
.feature-card,
.category-card,
.post-card,
.mini-stat,
.system-card,
.article-shell,
.list-hero {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 20px;
  padding: 34px;
  border-radius: 30px;
}

.eyebrow,
.section-kicker,
.feature-tag,
.meta {
  color: var(--accent);
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.list-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-text,
.article-summary {
  margin: 24px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  color: #051019;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.mini-stat {
  padding: 22px;
  border-radius: 22px;
}

.mini-stat span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.mini-stat strong {
  font-size: 22px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
}

.feature-copy h3 {
  margin: 16px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
}

.feature-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-copy a {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
}

.glow-card {
  width: 100%;
  min-height: 100%;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(105, 221, 255, 0.22), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glow-card span {
  display: block;
  color: var(--accent);
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}

.glow-card strong {
  display: block;
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.25;
}

.category-grid,
.post-grid {
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card,
.post-card,
.system-card,
.article-shell,
.list-hero {
  padding: 24px;
  border-radius: 24px;
}

.category-card h3,
.post-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.category-card h3 a,
.post-card h3 a {
  text-decoration: none;
}

.category-card p,
.post-card p,
.system-card p,
.article-body p,
.article-body li {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.featured-post-card {
  background: rgba(255, 255, 255, 0.07);
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
}

.system-card h2,
.article-head h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.article-main,
.list-main {
  padding-bottom: 12px;
}

.article-shell {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 32px;
}

.article-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-body {
  padding-top: 12px;
}

.article-section + .article-section {
  margin-top: 28px;
}

.article-section h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.article-section ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.list-hero {
  padding: 30px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero,
  .feature-card,
  .category-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .article-shell,
  .list-hero {
    padding: 24px;
  }

  .hero h1,
  .list-hero h1,
  .article-head h1 {
    font-size: clamp(34px, 10vw, 58px);
  }

  .category-card h3,
  .post-card h3 {
    font-size: 22px;
  }
}
