/* ==========================================================================
   Home Page — Moony01 Studio Redesign
   Full-wide section-based layout with blog card grid.
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --home-primary: #7c3aed;
  --home-primary-light: #a78bfa;
  --home-indigo: #667eea;
  --home-bg-dark: #1a1a2e;
  --home-bg-dark-alt: #16213e;
  --home-bg-light: #fafafa;
  --home-bg-white: #fff;
  --home-text-dark: #1a202c;
  --home-text-body: #2d3748;
  --home-text-muted: #718096;
  --home-text-light: rgba(255, 255, 255, 0.85);
  --home-link: #3182ce;
  --home-border: #e2e8f0;
  --home-radius: 14px;
  --home-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --home-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --home-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --home-gutter: clamp(16px, 3vw, 40px);
  --home-content-max: 1440px;
  /* Category badge colors */
  --badge-ai: #3182ce;
  --badge-security: #e53e3e;
  --badge-infra: #38a169;
  --badge-javascript: #d69e2e;
  --badge-others: #718096;
}

/* ---------- Body reset for home ---------- */
body.home-page {
  background: var(--home-bg-white);
  overflow-x: hidden;
}

/* Kill default .container width constraint from Bootstrap */
body.home-page .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--home-bg-dark) 0%, var(--home-bg-dark-alt) 60%, #0f3460 100%);
  overflow: hidden;
}

.hero-section__code-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.hero-section__code-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 22, 0.97) 0%, rgba(7, 11, 24, 0.88) 33%, rgba(8, 12, 24, 0.68) 62%, rgba(9, 13, 26, 0.52) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(170, 190, 255, 0.028) 0,
      rgba(170, 190, 255, 0.028) 1px,
      transparent 1px,
      transparent 4px
    );
}

.hero-code {
  position: absolute;
  inset: 2% 1.5% 2%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  font: 500 clamp(10px, 0.78vw, 13px) / 1.4 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  color: rgba(152, 220, 182, 0.28);
  white-space: pre;
  text-shadow: 0 0 9px rgba(82, 211, 146, 0.14);
}

@media (min-width: 1025px) {
  .hero-section__code-bg::before {
    background:
      linear-gradient(90deg, rgba(6, 10, 22, 0.94) 0%, rgba(7, 11, 24, 0.82) 34%, rgba(8, 12, 24, 0.6) 64%, rgba(9, 13, 26, 0.4) 100%),
      repeating-linear-gradient(
        180deg,
        rgba(170, 190, 255, 0.03) 0,
        rgba(170, 190, 255, 0.03) 1px,
        transparent 1px,
        transparent 4px
      );
  }

  .hero-code {
    inset: 1% 0.6% 1%;
    font-size: clamp(15px, 1.55vw, 24px);
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: rgba(152, 220, 182, 0.34);
    text-shadow: 0 0 10px rgba(82, 211, 146, 0.2);
  }
}

.hero-code::after {
  content: '';
  display: inline-block;
  width: 0.52em;
  height: 1.12em;
  margin-left: 0.12em;
  vertical-align: -0.15em;
  background: rgba(186, 244, 214, 0.9);
  animation: codeCaretBlink 0.9s steps(1) infinite;
}

/* Subtle noise overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.28;
  background-size: 280px 280px;
  pointer-events: none;
  z-index: 1;
}

/* Gradient orb decorations */
.hero-section::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-section__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 100px var(--home-gutter) 80px;
  box-sizing: border-box;
}

.hero-section__inner::before {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.12) 0%, transparent 72%);
  filter: blur(2px);
  z-index: 1;
}

.hero-section__inner::after {
  content: '';
  position: absolute;
  top: -28%;
  left: -45%;
  width: 90%;
  height: 180%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.1;
  background: linear-gradient(112deg,
    transparent 0%,
    transparent 36%,
    rgba(167, 139, 250, 0.22) 47%,
    rgba(124, 58, 237, 0.3) 50%,
    rgba(102, 126, 234, 0.2) 53%,
    transparent 64%,
    transparent 100%);
  filter: blur(10px);
  transform: rotate(5deg);
}

.hero-section__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: clamp(14px, 2vw, 28px) clamp(16px, 2.3vw, 32px);
  border-radius: 18px;
  border: 1px solid rgba(169, 185, 255, 0.2);
  background: linear-gradient(115deg, rgba(5, 9, 20, 0.6) 0%, rgba(7, 12, 25, 0.5) 45%, rgba(9, 14, 30, 0.28) 100%);
  box-shadow: 0 14px 34px rgba(3, 6, 16, 0.32);
  backdrop-filter: blur(3px);
}

.hero-section__badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, var(--home-primary), var(--home-indigo));
  border-radius: 20px;
  margin-bottom: 20px;
  font-family: 'Roboto Condensed', sans-serif;
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 0.45s ease-out 0.06s forwards;
}

.hero-section__title {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  border-bottom: none;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.62s ease-out 0.16s forwards;
}

.hero-section__subtitle {
  font-size: 17px;
  color: var(--home-text-light);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 0.52s ease-out 0.28s forwards;
}

.hero-section__cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.52s ease-out 0.4s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all var(--home-transition);
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  cursor: pointer;
  border: none;
}

.hero-cta--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--home-primary), var(--home-indigo));
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  animation: heroCtaPulse 3.6s ease-in-out 1.2s infinite;
}

.hero-cta--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-140%);
  animation: heroCtaShine 4.2s ease-in-out 1.1s infinite;
}

.hero-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
  color: #fff !important;
  text-decoration: none !important;
  animation-play-state: paused;
}

.hero-cta--primary:hover::after {
  animation-play-state: paused;
}

.hero-cta--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.hero-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
}

.hero-section__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 22px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: heroFadeUp 0.5s ease-out 0.62s forwards;
}

.hero-section__scroll-cue::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
  animation: heroScrollHint 1.8s ease-in-out infinite;
}

/* ==========================================================================
   PRODUCTS SECTION (Wrapper only — card CSS lives in main.css)
   ========================================================================== */
.home-products-section {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 64px var(--home-gutter);
  box-sizing: border-box;
}

.home-section-label {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--home-primary);
  background: rgba(124, 58, 237, 0.08);
  border-radius: 6px;
  margin-bottom: 8px;
  font-family: 'Roboto Condensed', sans-serif;
}

.home-section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--home-text-dark);
  margin: 0 0 32px;
  border-bottom: none;
  padding-bottom: 0;
}

/* Override products-grid to 4 columns in home context */
.home-products-section .products-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog-section {
  width: 100%;
  background: var(--home-bg-light);
  padding: 64px 0 48px;
}

.blog-section__inner {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 var(--home-gutter);
  box-sizing: border-box;
}

/* ---------- Category Filter ---------- */
.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.category-filter__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--home-text-muted);
  background: var(--home-bg-white);
  border: 1px solid var(--home-border);
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--home-transition);
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
}
.category-filter__btn:hover {
  color: var(--home-primary);
  border-color: var(--home-primary-light);
  background: rgba(124, 58, 237, 0.04);
}
.category-filter__btn--active {
  color: #fff;
  background: var(--home-primary);
  border-color: var(--home-primary);
}
.category-filter__btn--active:hover {
  color: #fff;
  background: var(--home-primary);
}

/* ---------- Post Card — Standard ---------- */
.post-card {
  background: var(--home-bg-white);
  border-radius: var(--home-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform var(--home-transition), box-shadow var(--home-transition);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-lg);
}

.post-card__link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}
.post-card__link:hover {
  text-decoration: none !important;
  color: inherit !important;
}

.post-card__image-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #f0f0f0;
}

.post-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border: none !important;
}
.post-card:hover .post-card__image {
  transform: scale(1.04);
}

/* Gradient placeholders */
.post-card__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card__placeholder--ai {
  background: linear-gradient(135deg, #2b6cb0 0%, #63b3ed 100%);
}
.post-card__placeholder--security {
  background: linear-gradient(135deg, #c53030 0%, #fc8181 100%);
}
.post-card__placeholder--infra {
  background: linear-gradient(135deg, #276749 0%, #68d391 100%);
}
.post-card__placeholder--javascript {
  background: linear-gradient(135deg, #b7791f 0%, #faf089 100%);
}
.post-card__placeholder--others {
  background: linear-gradient(135deg, #4a5568 0%, #a0aec0 100%);
}
.post-card__placeholder-icon {
  font-size: 48px;
  opacity: 0.5;
  filter: grayscale(0.2);
}

.post-card__body {
  padding: 18px 20px 22px;
}

/* Category badge */
.post-card__badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  margin-bottom: 8px;
  font-family: 'Roboto Condensed', sans-serif;
  color: #fff;
}
.post-card__badge--ai { background: var(--badge-ai); }
.post-card__badge--security { background: var(--badge-security); }
.post-card__badge--infra { background: var(--badge-infra); }
.post-card__badge--javascript { background: var(--badge-javascript); }
.post-card__badge--others { background: var(--badge-others); }

.post-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--home-text-dark);
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-bottom: none;
  padding-bottom: 0;
}

.post-card__date {
  font-size: 13px;
  color: var(--home-text-muted);
  display: block;
}

.post-card__excerpt {
  font-size: 14px;
  color: var(--home-text-body);
  line-height: 1.6;
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt--grid {
  -webkit-line-clamp: 2;
  font-size: 13px;
  color: var(--home-text-muted);
  line-height: 1.55;
}

/* ---------- Post Card — Featured ---------- */
.post-card--featured {
  border-radius: var(--home-radius);
  margin-bottom: 32px;
}

.post-card--featured .post-card__link {
  display: grid;
  grid-template-columns: 60% 40%;
}

.post-card--featured .post-card__image-wrap--featured {
  padding-top: 0;
  min-height: 320px;
}

.post-card--featured .post-card__body--featured {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 36px;
}

.post-card__title--featured {
  font-size: 24px;
  -webkit-line-clamp: 3;
  margin-bottom: 10px;
}

/* ---------- Post Grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Pagination ---------- */
.blog-pagination {
  margin-top: 42px;
  display: flex;
  justify-content: center;
}

.blog-pagination__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.blog-pagination__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  min-width: 76px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--home-text-body) !important;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  transition: all var(--home-transition);
  text-decoration: none !important;
}

.blog-pagination__link:hover {
  color: var(--home-primary) !important;
  border-color: var(--home-primary-light);
  background: rgba(124, 58, 237, 0.06);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.blog-pagination__link.is-disabled {
  color: var(--home-text-muted) !important;
  border-color: var(--home-border);
  background: #f8fafc;
  opacity: 0.7;
  pointer-events: none;
}

.blog-pagination__numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.blog-pagination__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--home-border);
  background: #fff;
  color: var(--home-text-body) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--home-transition);
}

.blog-pagination__number:hover {
  border-color: var(--home-primary-light);
  background: rgba(124, 58, 237, 0.07);
  transform: translateY(-1px);
}

.blog-pagination__number.is-active {
  color: #fff !important;
  border-color: transparent;
  background: linear-gradient(135deg, var(--home-indigo), var(--home-primary));
  box-shadow: 0 6px 14px rgba(102, 126, 234, 0.25);
}

@media (max-width: 640px) {
  .blog-pagination__row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .blog-pagination__numbers {
    gap: 6px;
    order: 1;
    width: 100%;
  }

  .blog-pagination__link {
    min-width: 70px;
    min-height: 30px;
    font-size: 11px;
    order: 2;
  }

  .blog-pagination__number {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
    border-radius: 8px;
  }
}

/* ---------- AdSense Spacing ---------- */
.home-adsense {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 var(--home-gutter);
  box-sizing: border-box;
}

/* ==========================================================================
   ENHANCED FOOTER
   ========================================================================== */
.footer-enhanced {
  background: var(--home-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 0;
  /* Override any inherited footer styles from main.css */
  border-top: none;
  width: 100%;
  height: auto;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.footer-enhanced__inner {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 0 var(--home-gutter);
  box-sizing: border-box;
}

.footer-enhanced__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-enhanced__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-enhanced__logo {
  border-radius: 8px;
  border: none !important;
}

.footer-enhanced__brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer-enhanced__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.footer-enhanced__heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 16px;
  border-bottom: none;
  padding-bottom: 0;
}

.footer-enhanced__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-enhanced__links li {
  margin-bottom: 10px;
}

.footer-enhanced__links a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: color var(--home-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-enhanced__links a:hover {
  color: #fff !important;
  text-decoration: none !important;
}

.footer-enhanced__links .fa {
  font-size: 16px;
  width: 18px;
  text-align: center;
}

.footer-enhanced__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
}

.footer-enhanced__bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroCtaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35); }
  50% { box-shadow: 0 8px 26px rgba(124, 58, 237, 0.52); }
}

@keyframes heroCtaShine {
  0% { transform: translateX(-140%); }
  40%, 100% { transform: translateX(140%); }
}

@keyframes heroScrollHint {
  0% { opacity: 0.95; transform: translate(-50%, 0); }
  70% { opacity: 0.15; transform: translate(-50%, 11px); }
  100% { opacity: 0; transform: translate(-50%, 13px); }
}

@keyframes codeCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Desktop: >= 1025px */
@media (min-width: 1025px) {
  .hero-section__content {
    max-width: 580px;
  }
  .hero-section__content {
    max-width: 580px;
  }
  .hero-code {
    inset: 1% 0.6% 1%;
    font-size: clamp(15px, 1.55vw, 24px);
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: rgba(152, 220, 182, 0.34);
    text-shadow: 0 0 10px rgba(82, 211, 146, 0.2);
  }

  /* K-Pop Face Test 배너 - PC 버전 디자인 */
  .kft-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 24px 32px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    text-decoration: none;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .kft-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.25);
  }

  .kft-banner__glow {
    position: absolute;
    top: 50%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    transform: translateY(-50%);
    pointer-events: none;
  }

  .kft-banner__content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .kft-banner__logo img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .kft-banner__text {
    flex: 1;
  }

  .kft-banner__badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, var(--home-primary), var(--home-indigo));
    border-radius: 12px;
    margin-bottom: 6px;
  }

  .kft-banner__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
  }

  .kft-banner__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
  }

  .kft-banner__cta {
    flex-shrink: 0;
  }

  .kft-banner__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--home-primary), var(--home-indigo));
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  .kft-banner:hover .kft-banner__cta-btn {
    background: linear-gradient(135deg, var(--home-indigo), var(--home-primary));
  }

  .kft-banner__sparkles {
    display: none;
  }

  /* Products Grid - PC 4열 유지 */
  .home-products-section .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .product-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
  }

  .product-card:hover {
    border-color: var(--home-primary-light);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
    transform: translateY(-2px);
  }

  .product-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-icon--emoji {
    font-size: 32px;
  }

  .product-icon img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .product-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--home-text-dark);
    margin: 0 0 4px;
  }

  .product-info p {
    font-size: 13px;
    color: var(--home-text-muted);
    margin: 0;
  }
}

/* Tablet: <= 1280px */
@media (max-width: 1280px) {
  .hero-section__title {
    font-size: 38px;
  }
  .home-products-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: <= 768px */
@media (max-width: 768px) {
  :root {
    --home-gutter: clamp(14px, 4vw, 24px);
  }

  .hero-section {
    min-height: auto;
  }
  .hero-section::before {
    opacity: 0.32;
    background-size: 340px 340px;
  }
  .hero-section__code-bg {
    opacity: 0.9;
  }
  .hero-code {
    inset: 3% 2.5% 3%;
    font-size: 10px;
    line-height: 1.42;
    color: rgba(152, 220, 182, 0.14);
  }
  .hero-section::after {
    opacity: 0.18;
    transform: scale(0.78);
  }
  .hero-section__inner::before {
    opacity: 0.2;
    transform: scale(0.72);
  }
  .hero-section__inner::after {
    opacity: 0.12;
    filter: blur(12px);
  }
  .hero-section__inner {
    padding: 80px var(--home-gutter) 56px;
  }
  .hero-section__content {
    max-width: 100%;
    padding: 16px 16px 18px;
    background: linear-gradient(115deg, rgba(5, 9, 20, 0.74) 0%, rgba(8, 12, 24, 0.58) 48%, rgba(10, 15, 30, 0.36) 100%);
    border-color: rgba(180, 193, 255, 0.18);
    box-shadow: 0 12px 28px rgba(3, 6, 16, 0.36);
  }
  .hero-section__title {
    font-size: 30px;
  }
  .hero-section__subtitle {
    font-size: 15px;
  }
  .hero-cta {
    padding: 12px 22px;
    font-size: 14px;
  }
  .hero-cta--primary,
  .hero-cta--primary::after {
    animation: none;
  }
  .hero-section__scroll-cue {
    display: none;
  }

  .home-products-section {
    padding: 40px var(--home-gutter);
  }
  .home-products-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-section-title {
    font-size: 24px;
  }

  .blog-section__inner {
    padding: 0 var(--home-gutter);
  }
  .blog-section {
    padding: 40px 0 32px;
  }

  /* Featured card stacks */
  .post-card--featured .post-card__link {
    grid-template-columns: 1fr;
  }
  .post-card--featured .post-card__image-wrap--featured {
    min-height: 200px;
    padding-top: 56.25%;
  }
  .post-card--featured .post-card__body--featured {
    padding: 20px 22px 24px;
  }
  .post-card__title--featured {
    font-size: 20px;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Footer */
  .footer-enhanced__inner {
    padding: 0 var(--home-gutter);
  }
  .footer-enhanced__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-adsense {
    padding: 0 var(--home-gutter);
  }
}

/* Small mobile: <= 480px */
@media (max-width: 480px) {
  :root {
    --home-gutter: clamp(12px, 5vw, 18px);
  }

  .hero-section__inner {
    padding: 72px var(--home-gutter) 44px;
  }
  .hero-section__title {
    font-size: 26px;
  }
  .hero-section__subtitle {
    font-size: 14px;
  }
  .hero-section__cta-group {
    flex-direction: column;
  }
  .hero-cta {
    justify-content: center;
    width: 100%;
  }
  .hero-section::before {
    opacity: 0.28;
  }
  .hero-section__inner::after {
    opacity: 0.08;
  }
  .hero-section__code-bg {
    opacity: 0.86;
  }
  .hero-code {
    inset: 3% 2.5% 3%;
    font-size: 9px;
    line-height: 1.36;
    color: rgba(152, 220, 182, 0.1);
  }
  .hero-section__content {
    padding: 14px 14px 16px;
    border-radius: 14px;
    background: linear-gradient(118deg, rgba(4, 8, 18, 0.82) 0%, rgba(8, 12, 24, 0.65) 52%, rgba(10, 16, 30, 0.44) 100%);
  }

  .home-products-section {
    padding: 32px var(--home-gutter);
  }
  .home-products-section .products-grid {
    grid-template-columns: 1fr;
  }

  .blog-section__inner {
    padding: 0 var(--home-gutter);
  }

  .category-filter {
    gap: 6px;
  }
  .category-filter__btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .footer-enhanced__inner {
    padding: 0 var(--home-gutter);
  }

  .home-adsense {
    padding: 0 var(--home-gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .hero-section::before,
  .hero-section::after,
  .hero-section__inner::before,
  .hero-section__inner::after,
  .hero-code::after,
  .hero-section__badge,
  .hero-section__title,
  .hero-section__subtitle,
  .hero-section__cta-group,
  .hero-cta--primary,
  .hero-cta--primary::after,
  .hero-section__scroll-cue,
  .hero-section__scroll-cue::before {
    animation: none !important;
    transition: none !important;
  }

  .hero-section__badge,
  .hero-section__title,
  .hero-section__subtitle,
  .hero-section__cta-group,
  .hero-section__scroll-cue {
    opacity: 1;
    transform: none;
  }
}
