:root {
  --color-primary: #1a365d;
  --color-primary-light: #2a4a7f;
  --color-accent: #e67e22;
  --color-accent-light: #f39c4f;
  --color-bg: #ffffff;
  --color-bg-warm: #faf8f5;
  --color-bg-section: #f1f5f9;
  --color-text: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-success: #059669;
  --color-info: #0284c7;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  --max-width: 1200px;
  --content-width: 780px;
  --transition: 200ms ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--space-lg);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo { display: flex; align-items: center; gap: var(--space-sm); }
.site-logo img { width: 36px; height: 36px; border-radius: var(--radius-sm); }
.site-logo-text {
  font-size: 1.05rem; font-weight: 700; color: var(--color-primary);
  letter-spacing: -0.02em;
}
.nav-menu { display: flex; gap: var(--space-lg); list-style: none; }
.nav-menu a {
  font-size: 0.9rem; font-weight: 500; color: var(--color-text-secondary);
  padding: var(--space-sm) 0; position: relative;
  transition: color var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--color-primary); }
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--color-accent);
  transition: width var(--transition);
}
.nav-menu a:hover::after { width: 100%; }
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.mobile-toggle span {
  display: block; width: 20px; height: 2px; background: var(--color-text);
  position: relative; transition: var(--transition);
}
.mobile-toggle span::before, .mobile-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--color-text); transition: var(--transition);
}
.mobile-toggle span::before { top: -6px; }
.mobile-toggle span::after { top: 6px; }

/* HERO */
.hero-section {
  position: relative; overflow: hidden;
  padding: var(--space-5xl) var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d3748 50%, #1a365d 100%);
  min-height: 520px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.18; filter: blur(1px);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,54,93,0.92) 0%, rgba(45,55,72,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: var(--max-width);
  margin: 0 auto; width: 100%; color: #fff;
}
.hero-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  background: rgba(230,126,34,0.2); color: var(--color-accent-light);
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid rgba(230,126,34,0.3); margin-bottom: var(--space-lg);
  letter-spacing: 0.04em;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.7;
  color: rgba(255,255,255,0.8); max-width: 600px;
  margin-bottom: var(--space-2xl);
}
.hero-stats {
  display: flex; gap: var(--space-2xl); flex-wrap: wrap;
}
.hero-stat { text-align: left; }
.hero-stat-value {
  font-size: 1.6rem; font-weight: 800; color: var(--color-accent-light);
}
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* SECTION */
.section {
  padding: var(--space-5xl) var(--space-lg);
}
.section--alt { background: var(--color-bg-warm); }
.section--gray { background: var(--color-bg-section); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-label {
  font-size: 0.8rem; font-weight: 700; color: var(--color-accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-sm);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--color-primary); letter-spacing: -0.02em; line-height: 1.3;
  margin-bottom: var(--space-md);
}
.section-desc {
  font-size: 1rem; color: var(--color-text-secondary);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}
.post-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-card-img {
  width: 100%; height: 200px; object-fit: cover;
  border-bottom: 1px solid var(--color-border-light);
}
.post-card-body { padding: var(--space-lg); }
.post-card-cat {
  font-size: 0.75rem; font-weight: 600; color: var(--color-accent);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-sm);
}
.post-card-title {
  font-size: 1.1rem; font-weight: 700; color: var(--color-text);
  line-height: 1.4; margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-excerpt {
  font-size: 0.88rem; color: var(--color-text-secondary);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.85rem; font-weight: 600; color: var(--color-primary);
  margin-top: var(--space-md); transition: gap var(--transition);
}
.post-card-link:hover { gap: 8px; color: var(--color-accent); }

/* CAROUSEL */
.carousel-section { overflow: hidden; }
.carousel-track {
  display: flex; gap: var(--space-lg); overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-md); scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 300px; scroll-snap-align: start;
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; aspect-ratio: 4/3;
}
.carousel-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms ease;
}
.carousel-item:hover img { transform: scale(1.04); }
.carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}
.carousel-caption h3 { font-size: 1rem; font-weight: 600; }

/* COST TABLE SECTION */
.cost-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.cost-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cost-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cost-card-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--color-bg-section);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-md);
}
.cost-card-icon svg { width: 28px; height: 28px; color: var(--color-primary); }
.cost-card h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.cost-card .price-range {
  font-size: 1.3rem; font-weight: 800; color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.cost-card p { font-size: 0.88rem; color: var(--color-text-secondary); line-height: 1.6; }

/* INFO BOXES */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.info-box {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.info-box h3 {
  font-size: 0.95rem; font-weight: 700; color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.info-box p { font-size: 0.88rem; color: var(--color-text-secondary); line-height: 1.6; }

/* FOOTER */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name {
  font-size: 1.1rem; font-weight: 700; color: #fff;
  margin-bottom: var(--space-md);
}
.footer-brand { display: inline-flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; border-radius: var(--radius-sm); }
.footer-brand .footer-brand-name { margin-bottom: 0; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; }
.footer-heading {
  font-size: 0.85rem; font-weight: 700; color: #fff;
  margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: var(--color-accent-light); }
.footer-bottom {
  padding-top: var(--space-xl);
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: var(--space-md);
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-legal {
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
  line-height: 1.7; max-width: 700px;
}

/* SINGLE POST */
.single-hero {
  position: relative; height: 360px; overflow: hidden;
  background: var(--color-primary);
}
.single-hero img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.3;
}
.single-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--color-primary), transparent 60%);
}
.single-hero-content {
  position: absolute; bottom: var(--space-2xl); left: 0; right: 0;
  padding: 0 var(--space-lg); color: #fff;
}
.single-hero-content .container { max-width: var(--content-width); margin: 0 auto; }
.single-hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.25;
}
.single-hero-content .post-meta {
  margin-top: var(--space-sm); font-size: 0.85rem; color: rgba(255,255,255,0.6);
}

.post-content-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}
.post-content {
  font-size: 1.05rem; line-height: 1.8; color: var(--color-text);
}
.post-content h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--color-primary);
  margin: var(--space-3xl) 0 var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-accent);
  letter-spacing: -0.01em; line-height: 1.3;
}
.post-content h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--color-primary-light);
  margin: var(--space-2xl) 0 var(--space-md);
}
.post-content p { margin-bottom: var(--space-lg); }
.post-content ul, .post-content ol {
  margin: var(--space-md) 0 var(--space-lg);
  padding-left: var(--space-xl);
}
.post-content li { margin-bottom: var(--space-sm); line-height: 1.7; }
.post-content img {
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-md);
}
.post-content blockquote {
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-warm);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1rem; color: var(--color-text-secondary);
}
.post-content table {
  width: 100%; border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: 0.92rem;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-content thead { background: var(--color-primary); color: #fff; }
.post-content th {
  padding: 12px 16px; font-weight: 600; text-align: left;
  font-size: 0.85rem; letter-spacing: 0.02em;
}
.post-content td {
  padding: 12px 16px; border-bottom: 1px solid var(--color-border);
}
.post-content tbody tr:nth-child(even) { background: var(--color-bg-section); }
.post-content tbody tr:hover { background: rgba(26,54,93,0.04); }
.post-content .callout-box {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border: 1px solid rgba(26,54,93,0.12);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
}
.post-content .callout-box strong { color: var(--color-primary); }

.post-content .chart-bar {
  background: var(--color-bg-section);
  border-radius: var(--radius-sm);
  overflow: hidden; height: 28px;
  margin-bottom: var(--space-sm);
  position: relative;
}
.post-content .chart-bar-fill {
  height: 100%; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  display: flex; align-items: center; padding: 0 12px;
  font-size: 0.78rem; font-weight: 600; color: #fff; white-space: nowrap;
  min-width: fit-content;
}
.post-content .chart-label {
  font-size: 0.85rem; font-weight: 600; color: var(--color-text);
  margin-bottom: 4px;
}

.legal-notice { font-size: 0.85em !important; }
.ai-notice { font-size: 0.85em !important; }

/* RELATED POSTS */
.related-posts { padding: var(--space-3xl) var(--space-lg); background: var(--color-bg-section); }
.related-inner { max-width: var(--max-width); margin: 0 auto; }
.related-title {
  font-size: 1.3rem; font-weight: 700; color: var(--color-primary);
  margin-bottom: var(--space-xl);
}

/* PAGE */
.page-content-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}
.page-content-wrap h1 {
  font-size: 2rem; font-weight: 800; color: var(--color-primary);
  margin-bottom: var(--space-xl); letter-spacing: -0.02em;
}
.page-content-wrap h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--color-primary);
  margin: var(--space-2xl) 0 var(--space-md);
}
.page-content-wrap p { margin-bottom: var(--space-md); line-height: 1.8; }
.page-content-wrap ul, .page-content-wrap ol {
  margin: var(--space-md) 0; padding-left: var(--space-xl);
}
.page-content-wrap li { margin-bottom: var(--space-sm); line-height: 1.7; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }
  .hero-section { padding: var(--space-3xl) var(--space-lg); min-height: 400px; }
  .hero-title { font-size: 1.8rem; }
  .hero-stats { gap: var(--space-lg); }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-xl); }
  .card-grid { grid-template-columns: 1fr; }
  .cost-cards { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .carousel-item { flex: 0 0 260px; }
  .section { padding: var(--space-3xl) var(--space-lg); }
  .single-hero { height: 260px; }
  .post-content { font-size: 1rem; }
  .post-content h2 { font-size: 1.3rem; }
  .post-content table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Scroll animation */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
