@font-face {
  font-family: 'TmonMonsori';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/TmonMonsori.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff4b26;
  --orange-dark: #d93a1a;
  --cream: #fff3ee;
  --ink: #201310;
  --ink-soft: #6b4a41;
  --white: #ffffff;
  --radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--orange) var(--cream);
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-dark); }

body {
  font-family: 'TmonMonsori', 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--white);
  color: var(--orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn:active { transform: scale(0.97); }

.btn--pulse.is-pulsing { animation: btn-pulse 1.8s ease-out 2; }

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 0 rgba(255, 75, 38, 0.35); }
  50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 12px rgba(255, 75, 38, 0); }
}

.section--story .btn,
.section--features .btn { background: var(--orange); color: var(--white); }

/* ---------- layout ---------- */

.section {
  position: relative;
  padding: 96px 20px;
  overflow: hidden;
}

.section__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.eyebrow--dark { color: var(--orange); }

h1, h2 {
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ---------- hero ---------- */

.section--hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--orange);
  text-align: center;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 0;
  pointer-events: none;
  animation: hero-overlay-fade 1.4s ease-out forwards;
}

@keyframes hero-overlay-fade {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__overlay { display: none; }
}

.hero__inner { position: relative; z-index: 1; }

.hero__logo {
  width: min(64vw, 280px);
  aspect-ratio: 1920 / 1080;
  margin: 0 auto 32px;
  background-color: var(--white);
  -webkit-mask-image: url('./assets/logo.png');
  mask-image: url('./assets/logo.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.hero__inner > * {
  opacity: 0;
  animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.3s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.46s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.62s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.8s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translate(-48px, -28px) scale(0.94); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner > * { opacity: 1; animation: none; }
}

.hero__title {
  font-size: clamp(36px, 9vw, 64px);
  color: var(--white);
  margin-bottom: 20px;
}

.hero__sub {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: clamp(15px, 3.6vw, 18px);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ---------- signup ---------- */

.section--signup {
  padding: 0 20px;
  background: var(--cream);
  text-align: left;
}

.signup-wrap {
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.signup-inner .section__inner {
  padding: 48px 0 64px;
}

.signup__step.pop-in {
  animation: signup-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes signup-pop {
  from { opacity: 0; transform: scale(0.9) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .signup__step.pop-in { animation: none; }
}

.signup__step .eyebrow { margin-bottom: 16px; }

.signup__roles {
  display: flex;
  gap: 14px;
}

.signup__role {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--white);
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.signup__role img { width: 64px; }
.signup__role:active { transform: scale(0.97); }
.signup__role.is-selected { border-color: var(--orange); }

.signup__form:not([hidden]) {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.signup__field label {
  display: block;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.signup__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup__field label span {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 12px;
}

[data-role-field] { display: none; }
[data-role-text] { display: none; }

.signup__form[data-role="구직자"] [data-role-field="구직자"],
.signup__form[data-role="사장님"] [data-role-field="사장님"] { display: block; }

.signup__form[data-role="구직자"] [data-role-text="구직자"],
.signup__form[data-role="사장님"] [data-role-text="사장님"] { display: inline; }

.signup__field label [data-role-text] { font-weight: 700; font-size: 14px; color: var(--ink); }

.signup__field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--white);
  background: var(--white);
  border-radius: 12px;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: 15px;
  color: var(--ink);
}

.signup__field input:focus {
  outline: none;
  border-color: var(--orange);
}

.signup__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--white);
  background: var(--white);
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip.is-selected {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.signup__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.signup__consent input { margin-top: 3px; flex-shrink: 0; }

.signup__consent span {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.signup__error {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: 13px;
  color: var(--orange-dark);
}

.signup__form .btn { align-self: flex-start; }

.signup__done { text-align: center; }

.signup__done h3 {
  font-size: clamp(22px, 5vw, 30px);
  margin-bottom: 12px;
}

.signup__done p {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* ---------- story ---------- */

.section--story {
  background: var(--cream);
  text-align: left;
}

.section--story h2 {
  font-size: clamp(26px, 6vw, 40px);
  margin-bottom: 20px;
}

.story__desc {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: clamp(15px, 3.4vw, 17px);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 48px;
}

.story__characters {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6vw;
  padding: 0 4vw;
}

.story__char-offset { display: block; }
.story__char--left .story__char-offset { transform: translateX(-2vw); }
.story__char--right .story__char-offset { transform: translateX(2vw); }

.story__char img {
  width: clamp(120px, 30vw, 200px);
  animation: float 4s ease-in-out infinite;
}

.story__char--right img { animation-delay: 0.6s; }

.story__char figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.story__char figcaption span {
  display: block;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.story__arrow { width: 40px; flex-shrink: 0; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- impact ---------- */

.section--impact {
  background: var(--orange);
  color: var(--white);
  text-align: left;
  min-height: 60dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.impact__title {
  position: relative;
  z-index: 1;
  width: 100%;
  font-size: clamp(38px, 13vw, 108px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.impact__desc {
  position: relative;
  z-index: 1;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: clamp(15px, 3.6vw, 18px);
  opacity: 0.92;
  line-height: 1.6;
  max-width: 480px;
}

/* ---------- features / bento ---------- */

.section--features {
  background: var(--white);
  text-align: left;
}

.section--features h2 {
  font-size: clamp(26px, 6vw, 40px);
  margin-bottom: 40px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  text-align: left;
}

.bento__card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(32, 19, 16, 0.1);
}

.bento__card:active { transform: scale(0.98); }

.bento__card:hover .bento__icon {
  background: var(--orange);
  color: var(--white);
}

.bento__card:nth-child(1) { transition-delay: 0s; }
.bento__card:nth-child(2) { transition-delay: 0.1s; }
.bento__card:nth-child(3) { transition-delay: 0.2s; }
.bento__card:nth-child(4) { transition-delay: 0.3s; }

.story__char--left.reveal { transition-delay: 0s; }
.story__arrow.reveal { transition-delay: 0.15s; }
.story__char--right.reveal { transition-delay: 0.3s; }

.bento__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  color: var(--orange);
  margin-bottom: 16px;
  transition: background 0.25s ease, color 0.25s ease;
}

.bento__icon svg { width: 22px; height: 22px; }

.bento__card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.bento__card p {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- cta ---------- */

.section--cta {
  background: var(--white);
  text-align: center;
  min-height: 60dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--cta h2 {
  font-size: clamp(24px, 6vw, 36px);
  margin-bottom: 12px;
}

.section--cta p {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.section--cta .btn--primary {
  background: var(--orange);
  color: var(--white);
}

.cta__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  background: var(--cream);
  padding: 48px 20px 32px;
  text-align: center;
  overflow: hidden;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer__social {
  display: flex;
  gap: 18px;
  margin: 4px 0;
}

.footer__social a {
  color: var(--orange);
  display: inline-flex;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.footer__social a:hover { transform: translateY(-2px); }
.footer__social svg { width: 22px; height: 22px; }

.footer a,
.footer__legal {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: 13px;
  color: var(--orange);
  text-decoration: none;
}

.footer__legal { opacity: 0.85; }

.footer__copy {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- section dividers & decorative blobs ---------- */

.section--story::before,
.section--impact::before,
.section--features::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 5vw;
  min-height: 24px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 0;
  pointer-events: none;
}

.section--story::before { background: var(--cream); }
.section--impact::before { background: var(--orange); }
.section--features::before { background: var(--white); }

.section--story::after,
.section--features::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -12%;
  width: 55vw;
  height: 55vw;
  max-width: 380px;
  max-height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 75, 38, 0.1), rgba(255, 75, 38, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.section--features::after { top: auto; bottom: -15%; left: -12%; right: auto; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .story__char img { animation: none; }
}

/* ---------- scroll-driven color & parallax (progressive enhancement) ---------- */

@supports (animation-timeline: view()) {
  .hero__pattern, .cta__pattern {
    animation: pattern-drift linear both;
    animation-timeline: view();
  }

  @keyframes pattern-drift {
    from { transform: translateY(-4%) rotate(-1deg); }
    to { transform: translateY(4%) rotate(1deg); }
  }

  .section--impact {
    animation: impact-bloom ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }

  @keyframes impact-bloom {
    from { filter: saturate(0.7) brightness(0.96); }
    to { filter: saturate(1) brightness(1); }
  }
}

/* ---------- desktop enhancement ---------- */

@media (min-width: 720px) {
  .section { padding: 140px 40px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .story__char img { width: 260px; }
  .story__characters { gap: 60px; }
  .story__char--left .story__char-offset { transform: translateX(-1vw); }
  .story__char--right .story__char-offset { transform: translateX(1vw); }
}
