/* AIFTER 홈 (치킨 아이프터). styles.css, site-chrome.css 뒤에 로드. */

/* ---------- 1. HERO ---------- */
.hm-hero { position: relative; overflow: hidden; padding: 44px 0 64px; isolation: isolate; }
.hm-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hm-blob--a { width: 460px; height: 460px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 68%); }
.hm-blob--b { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle, rgba(37, 99, 219, 0.14), transparent 68%); }
.hm-hero::before {            /* 점 패턴 */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(17, 24, 39, 0.1) 1.2px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hm-hero::after {            /* 아래쪽 경계를 자연스럽게 */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg-page));
}
.hm-hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hm-hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; } .hm-hero { padding: 72px 0 88px; } }

.hm-title { font-size: clamp(34px, 8.2vw, 60px); line-height: 1.18; letter-spacing: -0.03em; font-weight: var(--w-black); word-break: keep-all; margin: 10px 0 16px; }
.hm-lede { font-size: clamp(16px, 2.4vw, 19px); line-height: 1.75; color: var(--text-secondary); margin-bottom: 24px; word-break: keep-all; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hm-proof { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: var(--w-semi); color: var(--text-secondary); }
.hm-proof li::before { content: '✓'; margin-right: 6px; color: var(--apron-khaki); font-weight: var(--w-black); }

.hm-hero__art { position: relative; display: grid; place-items: center; min-height: 300px; }
.hm-mascot {
  width: min(280px, 60vw); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  background: var(--warm-cream); border: 3px solid var(--deep-ink); box-shadow: 7px 8px 0 var(--deep-ink);
  animation: hm-bob 4.2s ease-in-out infinite;
}
@keyframes hm-bob { 50% { transform: translateY(-10px) rotate(1.5deg); } }
.hm-bubble {
  position: absolute; top: 4px; left: 2%; z-index: 2; padding: 10px 16px; max-width: 70%;
  background: #fff; border: 2.5px solid var(--deep-ink); border-radius: 18px 18px 18px 4px;
  box-shadow: 3px 3px 0 var(--deep-ink); font-size: 14px; font-weight: var(--w-bold); transform: rotate(-3deg);
}
.hm-sticker {
  position: absolute; z-index: 2; padding: 6px 12px; border: 2px solid var(--deep-ink); border-radius: var(--radius-pill);
  background: var(--warm-cream); font-size: 13px; font-weight: var(--w-bold); box-shadow: 2px 2px 0 var(--deep-ink);
  animation: hm-float 5s ease-in-out infinite;
}
.hm-sticker--1 { top: 16%; right: 2%; transform: rotate(5deg); }
.hm-sticker--2 { top: 52%; left: -2%; background: #E8EEFC; transform: rotate(-6deg); animation-delay: -1.2s; }
.hm-sticker--3 { bottom: 8%; right: 6%; background: #FFF1CC; transform: rotate(-4deg); animation-delay: -2.4s; }
.hm-sticker--4 { bottom: 2%; left: 14%; transform: rotate(4deg); animation-delay: -3.4s; }
@keyframes hm-float { 50% { translate: 0 -7px; } }

/* ---------- 2. 다루는 것 ---------- */
.hm-cards { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .hm-cards { grid-template-columns: repeat(3, 1fr); } }
.hm-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px 24px 22px; color: inherit; text-decoration: none;
  background: var(--bg-card); border: 2.5px solid var(--deep-ink); border-radius: var(--radius-card); box-shadow: 4px 4px 0 var(--deep-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hm-card:hover, .hm-card:focus-visible { transform: translate(-2px, -3px); box-shadow: 7px 7px 0 var(--deep-ink); }
.hm-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--warm-cream); border: 2px solid var(--deep-ink); color: var(--aifter-blue); }
.hm-card__icon svg { width: 26px; height: 26px; }
.hm-card h3 { font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; word-break: keep-all; }
.hm-card p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); word-break: keep-all; }
.hm-card__go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: var(--w-black); color: var(--aifter-blue); }

/* ---------- 3. 처음이라면 ---------- */
.hm-path { padding-top: 24px; }
.hm-path__box {
  padding: 32px 26px; background: var(--bg-cream); border: 2.5px solid var(--deep-ink); border-radius: var(--radius-lg); box-shadow: 5px 5px 0 var(--deep-ink);
}
@media (min-width: 860px) { .hm-path__box { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: start; padding: 40px 40px 36px; } .hm-path__btn { grid-column: 1; width: fit-content; } }
.hm-steps { list-style: none; margin: 20px 0 22px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .hm-steps { grid-column: 2; grid-row: 1 / span 2; margin: 0; } .hm-path__head { grid-column: 1; } }
.hm-steps li a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 2px solid var(--deep-ink); border-radius: 16px; color: inherit; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.hm-steps li a:hover { transform: translate(-1px, -2px); box-shadow: 3px 4px 0 var(--deep-ink); }
.hm-steps__no { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--chicken-orange); border: 2px solid var(--deep-ink); font-weight: var(--w-black); }
.hm-steps b { display: block; font-size: 16px; line-height: 1.4; }
.hm-steps span:not(.hm-steps__no) { display: block; font-size: 14px; color: var(--text-secondary); }

/* ---------- 4. 용어 ---------- */
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: var(--space-3); }
.hm-head .section__title { margin-bottom: 0; }
.hm-head__link { flex: none; font-size: 14px; font-weight: var(--w-black); color: var(--aifter-blue); padding-bottom: 6px; }
.hm-termgrid { display: grid; gap: var(--space-2); }
@media (min-width: 640px) { .hm-termgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .hm-termgrid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 5. 가이드 미리보기 ---------- */
.hm-guides { padding-top: 8px; }
.hm-guides .guide-teaser__head { margin-bottom: var(--space-2); }

/* ---------- 6. NOW 띠 ---------- */
.hm-nowwrap { padding-top: 8px; }
.hm-now {
  position: relative; overflow: hidden; display: grid; gap: 20px; align-items: center; padding: 34px 28px;
  background: #0B1230; border: 1px solid rgba(124, 147, 255, 0.3); border-radius: var(--radius-lg); color: #F2F5FF;
  box-shadow: 0 18px 50px rgba(11, 18, 48, 0.25);
}
.hm-now::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(124, 147, 255, 0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 147, 255, 0.13) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 90% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 90% 0%, #000 10%, transparent 70%);
}
@media (min-width: 860px) { .hm-now { grid-template-columns: 1fr auto; padding: 44px 48px; } }
.hm-now > * { position: relative; }
.hm-now__giant { position: absolute; right: -8px; bottom: -34px; font-size: clamp(110px, 22vw, 190px); line-height: 1; font-weight: 900; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(124, 147, 255, 0.26); pointer-events: none; }
.hm-now__eyebrow { font-size: 13px; font-weight: var(--w-black); letter-spacing: 0.08em; color: var(--chicken-orange); margin-bottom: 8px; }
.hm-now__title { font-size: clamp(26px, 5vw, 38px); line-height: 1.25; letter-spacing: -0.03em; font-weight: var(--w-black); word-break: keep-all; margin-bottom: 10px; }
.hm-now__desc { font-size: 15px; color: rgba(242, 245, 255, 0.72); word-break: keep-all; }
.hm-now__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 14px;
  background: var(--chicken-orange); color: #111827; font-weight: var(--w-black); font-size: 16px; text-decoration: none; position: relative; z-index: 2;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hm-now__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35); }

/* ---------- 7. 아이프터클럽 ---------- */
.hm-clubwrap { padding-top: 8px; padding-bottom: 8px; }
.hm-club {
  display: grid; gap: 8px; padding: 24px 24px 22px; color: inherit; text-decoration: none;
  background: var(--bg-cream); border: 2.5px solid var(--deep-ink); border-top: 6px solid var(--chicken-orange);
  border-radius: var(--radius-lg); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hm-club:hover, .hm-club:focus-visible { transform: translate(-2px, -3px); box-shadow: 6px 6px 0 var(--deep-ink); }
.hm-club__eyebrow { font-size: 13px; font-weight: var(--w-bold); color: var(--chicken-orange-d); word-break: keep-all; }
.hm-club__title { font-size: clamp(20px, 4.6vw, 26px); line-height: 1.35; font-weight: var(--w-black); letter-spacing: -0.02em; word-break: keep-all; }
.hm-club__go { font-size: 15px; font-weight: var(--w-bold); color: var(--aifter-blue); }

/* ---------- 8. 만든 사람 ---------- */
.hm-about__box {
  display: grid; gap: 18px; align-items: center; padding: 28px 26px; background: var(--bg-card);
  border: 2.5px solid var(--deep-ink); border-radius: var(--radius-lg); box-shadow: 4px 4px 0 var(--deep-ink);
}
@media (min-width: 760px) { .hm-about__box { grid-template-columns: 110px 1fr; gap: 26px; padding: 32px 34px; } }
.hm-about__face { width: 96px; }
.hm-about__title { font-size: 22px; line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 8px; word-break: keep-all; }
.hm-about p { color: var(--text-secondary); font-size: 15px; line-height: 1.75; margin-bottom: 14px; word-break: keep-all; }
.hm-about__links { display: flex; flex-wrap: wrap; gap: 10px; }
.hm-about__links .btn { min-height: 44px; padding: 10px 20px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .hm-mascot, .hm-sticker { animation: none; }
}
