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

/* ===== CSS Variables ===== */
:root {
  --c-primary: #6514ff;
  --c-accent: #bf00ff;
  --c-bg: #1c1726;
  --c-bg2: #241e31;
  --c-bg3: #2e2640;
  --c-surface: #332b48;
  --c-text: #f0eaff;
  --c-text-muted: #a89ec0;
  --c-neon: #e040fb;
  --c-neon2: #7c4dff;
  --c-white: #ffffff;
  --c-border: rgba(101, 20, 255, 0.3);
  --radius-card: 28px;
  --radius-btn: 12px;
  --gap-lg: 48px;
  --gap-md: 32px;
  --gap-sm: 16px;
  --font: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ===== Animated Background Pattern ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(101,20,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(191,0,255,0.10) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(101,20,255,0.08) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

body > * { position: relative; z-index: 1; }

/* ===== Grid Pattern Overlay ===== */
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(101,20,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101,20,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===== Header & Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 23, 38, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  height: var(--nav-h);
}

.site-nav {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-right { justify-content: flex-end; }

.nav-a {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  padding: 10px 10px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.nav-a:hover {
  color: var(--c-white);
  background: rgba(101,20,255,0.18);
}

.nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.brand-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-logo { height: 36px; width: auto; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(101,20,255,0.15);
  border: 1px solid var(--c-border);
  transition: background var(--transition);
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(101,20,255,0.3); }
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Fullscreen Menu ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 14, 28, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  color: var(--c-text-muted);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-surface);
  transition: color var(--transition), background var(--transition);
  min-height: 40px;
}
.menu-close:hover { color: var(--c-white); background: var(--c-primary); }

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.menu-link {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text-muted);
  padding: 14px 32px;
  border-radius: 14px;
  transition: color var(--transition), background var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
  text-align: center;
}
.menu-link:hover {
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
}

/* ===== Wrap ===== */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Eyebrow / Small ===== */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  padding: 4px 12px;
  border: 1px solid rgba(191,0,255,0.4);
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: var(--gap-md);
  line-height: 1.2;
}

/* ===== Page Tag ===== */
.page-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: var(--c-white);
  margin-bottom: 20px;
}

/* ===== Hero (Home) ===== */
.hero-section {
  padding: 80px 0 60px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero-article {
  position: relative;
  text-align: center;
  width: 100%;
}

.hero-badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(101,20,255,0.2);
  border: 1px solid rgba(101,20,255,0.5);
  color: var(--c-text);
  letter-spacing: 0.05em;
  animation: floatBadge 3s ease-in-out infinite;
}
.hero-badge.accent2 {
  background: rgba(191,0,255,0.15);
  border-color: rgba(191,0,255,0.4);
  animation-delay: 0.5s;
}
.hero-badge.accent3 {
  background: rgba(224,64,251,0.15);
  border-color: rgba(224,64,251,0.4);
  animation-delay: 1s;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, var(--c-accent) 60%, var(--c-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.deco-dot {
  position: absolute;
  border-radius: 50%;
}
.d1 { width: 12px; height: 12px; background: var(--c-primary); top: 10%; left: 8%; animation: floatDot 4s ease-in-out infinite; }
.d2 { width: 8px; height: 8px; background: var(--c-accent); top: 60%; right: 10%; animation: floatDot 5s ease-in-out infinite 1s; }
.d3 { width: 16px; height: 16px; background: var(--c-neon); bottom: 10%; left: 20%; animation: floatDot 3.5s ease-in-out infinite 0.5s; }
.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(101,20,255,0.3);
}
.r1 { width: 120px; height: 120px; top: 5%; right: 5%; animation: spinRing 12s linear infinite; }
.r2 { width: 80px; height: 80px; bottom: 5%; left: 3%; animation: spinRing 8s linear infinite reverse; }
@keyframes floatDot {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.2); }
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
  box-shadow: 0 4px 24px rgba(101,20,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(191,0,255,0.5);
  color: var(--c-white);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  min-height: 48px;
}
.btn-ghost:hover {
  border-color: var(--c-accent);
  background: rgba(191,0,255,0.1);
  color: var(--c-accent);
}

/* ===== Cards ===== */
.cards-section {
  padding: var(--gap-lg) 0;
}
.cards-article {
  width: 100%;
}
.alt-section {
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-card);
  padding: var(--gap-lg) var(--gap-md);
  border: 1px solid var(--c-border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-md);
}

.card {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  opacity: 0;
  animation: revealCard 500ms ease forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes revealCard {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(101,20,255,0.3);
  border-color: rgba(191,0,255,0.5);
}
.card-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  background: rgba(101,20,255,0.15);
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.card-title a {
  color: var(--c-white);
  transition: color var(--transition);
}
.card-title a:hover { color: var(--c-accent); }
.card-desc {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
  flex: 1;
}
.card-date {
  font-size: 12px;
  color: var(--c-text-muted);
}
.card-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
  margin-top: 4px;
}
.card-cta:hover { gap: 10px; color: var(--c-neon); }
.card-cta::after { content: '→'; }

/* ===== Content Section (Prose) ===== */
.content-section {
  padding: var(--gap-lg) 0;
}
.content-article {
  width: 100%;
}
.prose-block {
  max-width: 800px;
  margin: 0 auto;
  background: var(--c-bg2);
  border-radius: var(--radius-card);
  padding: 48px;
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.prose-block h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-white);
  margin: 32px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--c-primary);
}
.prose-block h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  margin: 24px 0 12px;
}
.prose-block p {
  margin-bottom: 16px;
  color: var(--c-text);
  line-height: 1.8;
}
.prose-block ul, .prose-block ol {
  margin: 16px 0;
  padding-left: 20px;
}
.prose-block ul { list-style: disc; }
.prose-block ol { list-style: decimal; }
.prose-block li {
  margin-bottom: 8px;
  color: var(--c-text);
  line-height: 1.7;
}
.prose-block a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-block a:hover { color: var(--c-neon); }
.prose-block strong { color: var(--c-white); font-weight: 700; }
.prose-block blockquote {
  border-left: 4px solid var(--c-accent);
  padding: 16px 20px;
  background: rgba(191,0,255,0.06);
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  color: var(--c-text-muted);
  font-style: italic;
}
.prose-block code {
  background: rgba(101,20,255,0.2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
}
.prose-block pre {
  background: rgba(0,0,0,0.4);
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 20px 0;
}
.prose-block pre code {
  background: none;
  padding: 0;
}
.prose-block hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 32px 0;
}
.prose-block table {
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
  font-size: 15px;
}
.prose-block th {
  background: var(--c-primary);
  color: var(--c-white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}
.prose-block td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg3);
}
.prose-block tr:last-child td { border-bottom: none; }

/* ===== Article Prose ===== */
.article-prose { max-width: 760px; }

/* ===== Page Hero (Faq/Article generic) ===== */
.page-hero-section {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 0;
}
.page-hero-article {
  max-width: 800px;
  margin: 0 auto;
}
.page-h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.page-sub {
  font-size: 17px;
  color: var(--c-text-muted);
  line-height: 1.7;
}
.page-date {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-top: 12px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-accent); }
.breadcrumb a:hover { color: var(--c-neon); }

/* ===== Children Table ===== */
.children-section {
  padding: var(--gap-lg) 0;
}
.children-article { width: 100%; }
.tbl-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.children-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.children-table tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background var(--transition);
}
.children-table tbody tr:last-child { border-bottom: none; }
.children-table tbody tr:hover { background: rgba(101,20,255,0.08); }
.children-table td {
  padding: 18px 24px;
  vertical-align: middle;
  color: var(--c-text);
}
.children-table td:first-child { min-width: 200px; }
.children-table td:nth-child(2) { color: var(--c-text-muted); font-size: 14px; }
.children-table td:last-child { white-space: nowrap; font-size: 13px; color: var(--c-text-muted); }
.tbl-link {
  color: var(--c-accent);
  font-weight: 600;
  transition: color var(--transition);
}
.tbl-link:hover { color: var(--c-neon); }

/* ===== Related Section ===== */
.related-section {
  padding: var(--gap-lg) 0;
}
.related-article { width: 100%; }
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.related-link {
  padding: 12px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.related-link:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(191,0,255,0.08);
}

/* ===== Article Hero ===== */
.article-hero-section {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--c-border);
}
.article-hero-article {
  max-width: 800px;
  margin: 0 auto;
}
.art-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.art-parent-link {
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid rgba(191,0,255,0.4);
  border-radius: 20px;
  transition: background var(--transition);
  min-height: 30px;
  display: flex;
  align-items: center;
}
.art-parent-link:hover { background: rgba(191,0,255,0.12); }
.art-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: var(--c-white);
  border-radius: 20px;
}
.art-date, .art-modified {
  font-size: 12px;
  color: var(--c-text-muted);
}
.art-h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.25;
  margin-bottom: 16px;
}
.art-lead {
  font-size: 17px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ===== Related Cards ===== */
.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap-md);
}
.rel-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
  opacity: 0;
  animation: revealCard 500ms ease forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
.rel-card:hover {
  border-color: rgba(191,0,255,0.5);
  transform: translateY(-4px);
}
.rel-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--c-primary);
  background: rgba(101,20,255,0.15);
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 3px;
}
.rel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
  transition: color var(--transition);
  display: block;
  margin-bottom: 6px;
}
.rel-title:hover { color: var(--c-accent); }
.rel-desc {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ===== Nav Bottom ===== */
.nav-bottom-section {
  padding: var(--gap-lg) 0;
}
.nav-bottom-article { width: 100%; }
.bottom-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== About Layout ===== */
.about-hero-section {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.about-hero-article {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}
.about-geo-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.geo-block {
  position: absolute;
  border-radius: 20px;
}
.gb1 { width: 200px; height: 200px; background: rgba(101,20,255,0.12); top: -60px; right: -40px; transform: rotate(20deg); animation: geoFloat 6s ease-in-out infinite; }
.gb2 { width: 120px; height: 120px; background: rgba(191,0,255,0.08); bottom: -30px; right: 15%; transform: rotate(45deg); animation: geoFloat 8s ease-in-out infinite 2s; }
.gb3 { width: 80px; height: 80px; border: 2px solid rgba(101,20,255,0.2); top: 20px; right: 30%; transform: rotate(15deg); animation: geoFloat 5s ease-in-out infinite 1s; }
@keyframes geoFloat {
  0%, 100% { transform: translateY(0) rotate(20deg); }
  50% { transform: translateY(-16px) rotate(25deg); }
}
.about-h1 {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.about-lead {
  font-size: 18px;
  color: var(--c-text-muted);
  line-height: 1.7;
}
.about-content-section { padding: var(--gap-lg) 0; }
.about-prose { max-width: 760px; }
.about-links-section { padding: var(--gap-lg) 0; }
.about-links-article { width: 100%; }
.about-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap-md);
}
.about-link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.about-link-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-accent);
  box-shadow: 0 10px 32px rgba(191,0,255,0.25);
}
.alc-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-primary);
  opacity: 0.7;
  font-feature-settings: 'tnum';
}
.alc-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-white);
}
.alc-sub {
  font-size: 13px;
  color: var(--c-text-muted);
}

/* ===== Privacy Layout ===== */
.privacy-hero-section {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--c-border);
}
.privacy-hero-article {
  max-width: 800px;
  margin: 0 auto;
}
.privacy-h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  margin-bottom: 12px;
}
.privacy-date {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-top: 8px;
}
.privacy-content-section { padding: var(--gap-lg) 0; }
.privacy-prose { max-width: 760px; }
.privacy-nav-section { padding: var(--gap-lg) 0; }
.privacy-nav-article { width: 100%; }

/* ===== Default Layout ===== */
.default-hero-section { padding: 60px 0 40px; }
.default-hero-article { max-width: 800px; margin: 0 auto; }

/* ===== Footer ===== */
.site-footer {
  margin-top: var(--gap-lg);
  padding: var(--gap-lg) 24px 0;
  border-top: 1px solid var(--c-border);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  align-items: flex-start;
}

.footer-dl {
  flex: 1;
  min-width: 140px;
}
.footer-dl dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.footer-dl dd {
  margin-bottom: 8px;
}
.footer-dl dd a {
  font-size: 14px;
  color: var(--c-text-muted);
  transition: color var(--transition);
  display: inline-flex;
  min-height: 28px;
  align-items: center;
}
.footer-dl dd a:hover { color: var(--c-white); }

.footer-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--c-border);
  margin-top: var(--gap-sm);
}
.footer-copy {
  font-size: 13px;
  color: var(--c-text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--c-text-muted);
  transition: color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: var(--c-accent); }

/* ===== Scroll Reveal ===== */
.stagger-item {
  animation: revealCard 500ms ease forwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --gap-lg: 40px;
    --gap-md: 24px;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .site-nav {
    justify-content: space-between;
  }

  .hero-section {
    min-height: 60vh;
    padding: 48px 0 40px;
  }

  .hero-h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

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

  .related-cards {
    grid-template-columns: 1fr;
  }

  .about-quick-links {
    grid-template-columns: 1fr 1fr;
  }

  .prose-block {
    padding: 28px 20px;
  }

  .section-h2 {
    font-size: 24px;
  }

  .menu-link {
    font-size: 18px;
  }

  .site-footer {
    gap: 20px;
    padding: var(--gap-md) 20px 0;
  }

  .footer-dl {
    min-width: 120px;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .children-table td {
    padding: 14px 16px;
    font-size: 14px;
  }

  .children-table td:nth-child(2) {
    display: none;
  }

  .art-h1 {
    font-size: 26px;
  }

  .about-h1 {
    font-size: 28px;
  }

  .bottom-nav-links {
    flex-direction: column;
  }

  .bottom-nav-links .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-badge-row {
    gap: 8px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .about-quick-links {
    grid-template-columns: 1fr;
  }

  .art-meta-row {
    gap: 8px;
  }

  .nav-brand {
    margin-left: 0;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card,
  .rel-card,
  .stagger-item {
    opacity: 1;
    animation: none;
  }

  body::before {
    animation: none;
  }
}
