/* =========================================================
   메인페이지 전용 스타일
   ========================================================= */

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(40px, 6vw, 76px);
  overflow: hidden;
}
.hero::before {
  /* soft tint behind hero */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 90% at 85% -10%,
      var(--primary-soft) 0%,
      rgba(234, 242, 246, 0) 55%
    ),
    radial-gradient(80% 70% at -5% 110%, var(--accent-soft) 0%, rgba(252, 240, 219, 0) 50%);
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
}
.hero__title {
  font-size: clamp(2.3rem, 5.6vw, 3.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-top: 20px;
}
.hero__title .hl {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}
.hero__title .hl::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.07em;
  height: 0.34em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 3px;
}
.hero__lead {
  margin-top: 22px;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 42ch;
  text-wrap: pretty;
}
.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__meta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-faint);
  font-size: 0.88rem;
}
.hero__meta .avatars {
  display: flex;
}
.hero__meta .avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--sh-sm);
}
.hero__meta .avatars span:first-child {
  margin-left: 0;
}

/* hero collage */
.hero__collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, 1fr);
  gap: 14px;
  aspect-ratio: 1 / 1.04;
}
.hero__collage figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--surface-2);
}
.hero__collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__collage .c1 {
  grid-column: 1;
  grid-row: 1 / span 3;
}
.hero__collage .c2 {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.hero__collage .c3 {
  grid-column: 2;
  grid-row: 3 / span 3;
}
.hero__collage .c4 {
  grid-column: 1;
  grid-row: 4 / span 2;
}
.hero__collage .tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--sh-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__collage .tag .pin {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- stats ---------- */
.stats {
  margin-top: clamp(20px, 3vw, 40px);
}
.stats__bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.stat {
  padding: clamp(22px, 3vw, 34px) clamp(18px, 2.4vw, 30px);
  border-right: 1px solid var(--line-soft);
}
.stat:last-child {
  border-right: none;
}
.stat__num {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--primary-deep);
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.stat__num .unit {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-faint);
}
.stat__label {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.stat__sub {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 3px;
}

/* progress within stat */
.stat__progress {
  margin-top: 12px;
  height: 6px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
}
.stat__progress > i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
}

/* ---------- section shell ---------- */
.section {
  padding-block: clamp(56px, 8vw, 104px);
}
.section--tint {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

/* ---------- activities ---------- */
.activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
}
.activity {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.activity:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.activity__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.activity__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.activity:hover .activity__media img {
  transform: scale(1.05);
}
.activity__icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: var(--primary);
  box-shadow: var(--sh-sm);
}
.activity__icon svg {
  width: 23px;
  height: 23px;
}
.activity__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.activity__body h3 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.activity__body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-wrap: pretty;
}
.activity__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.activity__count {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.activity__count b {
  color: var(--primary-deep);
}
.activity__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
}
.activity__go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.activity:hover .activity__go svg {
  transform: translateX(3px);
}

/* ---------- archive promo ---------- */
.archive {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.archive__copy h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-top: 16px;
}
.archive__copy p {
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 44ch;
  text-wrap: pretty;
}
.archive__dates {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.date-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.date-chip:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}
.date-chip b {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.date-chip span {
  font-size: 0.74rem;
  color: var(--ink-faint);
  font-weight: 600;
}
.archive__btn {
  margin-top: 26px;
}
.archive__mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
}
.archive__mosaic figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface-2);
  box-shadow: var(--sh-sm);
}
.archive__mosaic figure:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.archive__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- submit / 사진 제출 안내 ---------- */
.submit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step__no {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--primary-deep);
  background: var(--primary-soft);
}
.step h4 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin-top: 3px;
  text-wrap: pretty;
}
.dropcard {
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-xl);
  padding: clamp(30px, 4vw, 46px);
  text-align: center;
  box-shadow: var(--sh-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dropcard:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.dropcard__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, var(--primary), var(--primary-deep));
  box-shadow: var(--sh-md);
}
.dropcard__icon svg {
  width: 30px;
  height: 30px;
}
.dropcard h3 {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.dropcard p {
  color: var(--ink-soft);
  margin-top: 8px;
  font-size: 0.92rem;
}
.dropcard .btn {
  margin-top: 20px;
}
.dropcard__note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__collage {
    max-width: 460px;
    margin-top: 8px;
  }
  .activities {
    grid-template-columns: 1fr 1fr;
  }
  .archive,
  .submit__grid {
    grid-template-columns: 1fr;
  }
  .archive__mosaic {
    order: -1;
  }
}
@media (max-width: 680px) {
  .stats__bar {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-right: none;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line-soft);
  }
}
@media (max-width: 540px) {
  .activities {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 380px) {
  .stats__bar {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .stat:last-child {
    border-bottom: none;
  }
}
