/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4facfe;
  --primary-dark: #0097e6;
  --bg: #0d0f14;
  --bg-card: #161b25;
  --bg-card2: #1e2535;
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --border: #2a3347;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,.45);
  --font: 'Noto Sans KR', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { margin-bottom: 1rem; color: var(--text); }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 4rem 0; }

/* ===== HEADER ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,15,20,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  gap: 1rem;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-left a:hover, .nav-right a:hover { color: var(--primary); }
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.site-logo a {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
}
.site-logo a span { color: var(--primary); }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: .3rem;
}
.mobile-nav {
  display: none;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
.mobile-nav a {
  display: block;
  padding: .6rem 1.25rem;
  color: var(--text-muted);
  font-size: .95rem;
}
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav.open { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 40%, #0d2a4a 0%, var(--bg) 70%);
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(79,172,254,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(79,172,254,.06) 0%, transparent 50%);
  pointer-events: none;
}
.parallax-layer {
  position: absolute;
  inset: -60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='%234facfe' opacity='.15'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
  transition: transform .1s linear;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 2rem 1rem; }
.hero-badge {
  display: inline-block;
  background: rgba(79,172,254,.15);
  border: 1px solid rgba(79,172,254,.3);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero h1 { margin-bottom: 1rem; }
.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .3s ease;
  opacity: 0;
  animation: fadeInUp .6s ease forwards;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,172,254,.4);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,172,254,.55);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(79,172,254,.1);
  transform: translateY(-2px);
}
.btn:nth-child(1) { animation-delay: .2s; }
.btn:nth-child(2) { animation-delay: .4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(79,172,254,.3); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px;
  background: rgba(79,172,254,.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.card p  { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* Coupon card */
.coupon-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card2) 100%);
  border: 1px dashed rgba(79,172,254,.35);
  position: relative;
}
.coupon-card::after {
  content: '';
  position: absolute;
  top: 50%; right: -12px;
  width: 24px; height: 24px;
  background: var(--bg);
  border-radius: 50%;
  transform: translateY(-50%);
}
.coupon-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .75rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ===== SECTION TITLES ===== */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: .5rem; }
.section-title p  { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  margin: .75rem auto 0;
}

/* ===== BLOG ===== */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(79,172,254,.3); }
.post-thumbnail { aspect-ratio: 16/9; overflow: hidden; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumbnail img { transform: scale(1.05); }
.post-body { padding: 1.5rem; }
.post-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }
.post-meta span { margin-right: .75rem; }
.post-category {
  display: inline-block;
  background: rgba(79,172,254,.12);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 4px;
  margin-bottom: .5rem;
}
.post-title { font-size: 1.05rem; margin-bottom: .5rem; }
.post-title a { color: #fff; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { font-size: .88rem; color: var(--text-muted); }
.post-read-more { color: var(--primary); font-size: .85rem; font-weight: 600; margin-top: .75rem; display: inline-block; }

/* ===== SINGLE POST ===== */
.single-post { max-width: 800px; margin: 0 auto; padding: 3rem 1.25rem; }
.entry-header { margin-bottom: 2rem; }
.entry-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .75rem; }
.entry-content { line-height: 1.9; }
.entry-content h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; color: #fff; }
.entry-content h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; color: var(--primary); }
.entry-content p  { margin-bottom: 1.2rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content strong { color: #fff; }
.entry-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: .5rem; margin: 3rem 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .9rem;
  transition: all .2s;
}
.pagination a:hover, .pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1.5rem; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: .3rem; }

/* ===== CONTACT FORM ===== */
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-size: .9rem; margin-bottom: .4rem; color: var(--text-muted); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,172,254,.12);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

/* ===== FOOTER ===== */
#site-footer {
  background: #080a0f;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { font-size: .88rem; color: var(--text-muted); margin-top: .75rem; }
.footer-col h4 { font-size: .9rem; color: #fff; margin-bottom: .75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { font-size: .85rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: .82rem; color: var(--text-muted); margin: 0; }
.social-links { display: flex; gap: .75rem; }
.social-links a {
  width: 34px; height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .95rem;
  transition: all .2s;
}
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 1rem 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--text-muted); }

/* ===== SIDEBAR ===== */
.content-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.widget-title { font-size: 1rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.widget ul { list-style: none; }
.widget li { padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--text-muted); }
.widget li a:hover { color: var(--primary); }

/* ===== NOTICE ===== */
.notice { background: rgba(79,172,254,.1); border: 1px solid rgba(79,172,254,.25); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem; font-size: .9rem; }

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 6rem 1rem; }
.error-404 .error-code { font-size: 8rem; font-weight: 900; color: var(--primary); opacity: .25; line-height: 1; }
.error-404 h1 { margin-top: -1.5rem; margin-bottom: 1rem; }
.error-404 p { color: var(--text-muted); margin-bottom: 2rem; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-left, .nav-right { display: none; }
  .menu-toggle { display: flex; align-items: center; }
  .site-logo { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { min-height: 75vh; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
